Back to articles
I built a $2/month Claude API — here's the curl command

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

via Dev.to Webdevbrian austin

I built a $2/month Claude API — here's the curl command Everyone's building AI coding agents right now. The problem? The API costs are brutal. Claude API is expensive at scale. OpenAI is expensive at scale. Most developers are spending $50-$200/month just to experiment . I built SimplyLouie — an AI assistant that runs on Claude Sonnet — and then I opened up the API layer to developers. Here's the deal: $2/month gets you full API access. 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 2 sentences", "model": "claude-sonnet" }' That's it. You get a response like: { "response" : "Async/await is syntactic sugar over Promises that lets you write asynchronous code that reads like synchronous code. The async keyword marks a function as returning a Promise, and await pauses execution until that Promise resolves." , "model" : "claude-sonnet-4-5"

Continue reading on Dev.to Webdev

Opens in a new tab

Read Full Article
5 views

Related Articles