Menu

I built a $2/month Claude API wrapper — here's the exact curl command
📰
0

I built a $2/month Claude API wrapper — here's the exact curl command

DEV Community·brian austin·about 1 month ago
#tnaR1afQ
Reading 0:00
15s threshold

I built a $2/month Claude API wrapper — here's the exact curl command I got tired of paying $20/month for Claude when I only use it for: Code review in my terminal Quick text summarization scripts Automated PR descriptions So I built a simple HTTP wrapper around the Anthropic API, deployed it, and now I charge $2/month flat. No token counting. No surprise bills. Just send a POST request and get a response. Here's exactly how to use it. The curl command curl -X POST https://simplylouie.com/api/chat \ -H "Content-Type: application/json" \ -H "Authorization: Bearer YOUR_API_KEY" \ -d '{ "message": "Explain async/await in JavaScript in 3 sentences" }' Enter fullscreen mode Exit fullscreen mode Response: { "response" : "Async/await is syntactic sugar over JavaScript Promises that lets you write asynchronous code that looks synchronous. The async keyword marks a function as asynchronous, and await pauses execution inside that function until a Promise resolves.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.

Read More