I built a $2/month Claude API — here's the curl command
Everyone talks about the Anthropic Claude API. But at $15-75 per million tokens, running it yourself gets expensive fast.
I built a wrapper that gives you Claude access for a flat $2/month. No token counting, no surprise bills, no usage anxiety.
Here's how to use it.
The API endpoint
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"
}'
That's it. You get a response back:
{
"response": "Async/await is syntactic sugar over Promises that lets you write asynchronous code that looks synchronous. The `await` keyword pauses execution of an async function until the Promise resolves, making async code easier to read and reason about.",
"model": "claude-3-5-sonnet"
}
Get your API key
- Sign up at simplylouie.com/developers
- Generate an API key in your dashboard
- Start making requests
$2/month. Unlimited requests.
Real examples
Code review bot
import requests
def review_code(code_snippet):
response = requests.post(
'https://simplylouie.com/api/chat',
headers={
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
},
json={
'message': f'Review this code for bugs and improvements:\n\n{code_snippet}'
}
)
return response.json()['response']
# Use it
code = """
def fibonacci(n):
if n <= 1:
return n
return fibonacci(n-1) + fibonacci(n-2)
"""
print(review_code(code))
Automated commit message generator
#!/bin/bash
# git-commit-ai.sh
DIFF=$(git diff --staged)
MESSAGE=$(curl -s -X POST https://simplylouie.com/api/chat \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d "{\"message\": \"Write a concise git commit message for this diff:\\n$DIFF\"}" \
| jq -r '.response')
echo "Suggested commit message: $MESSAGE"
Documentation generator
const axios = require('axios');
async function generateDocs(functionCode) {
const response = await axios.post('https://simplylouie.com/api/chat', {
message: `Generate JSDoc documentation for this function:\n\n${functionCode}`
}, {
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
}
});
return response.data.response;
}
// Example usage
const myFunction = `
function calculateTax(income, rate) {
return income * (rate / 100);
}
`;
generateDocs(myFunction).then(console.log);
Telegram bot with AI responses
import telebot
import requests
bot = telebot.TeleBot('YOUR_TELEGRAM_TOKEN')
def ask_claude(question):
response = requests.post(
'https://simplylouie.com/api/chat',
headers={'Authorization': 'Bearer YOUR_API_KEY'},
json={'message': question}
)
return response.json()['response']
@bot.message_handler(func=lambda m: True)
def handle_message(message):
reply = ask_claude(message.text)
bot.reply_to(message, reply)
bot.polling()
Why not use the Anthropic API directly?
Fair question. Here's the math:
| Approach | Monthly cost | Billing model |
|---|---|---|
| Anthropic Claude API | $15-75/million tokens | Pay-per-token |
| OpenAI ChatGPT Plus | $20/month | Flat |
| SimplyLouie API | $2/month | Flat |
For personal projects, side hustles, and small tools — you don't need to count tokens. You need it to just work.
The $2/month pricing works globally too:
| Country | Monthly price |
|---|---|
| 🇮🇳 India | Rs165/month |
| 🇳🇬 Nigeria | N3,200/month |
| 🇵🇭 Philippines | P112/month |
| 🇰🇪 Kenya | KSh260/month |
| 🇬🇭 Ghana | GH₵25/month |
| 🇮🇩 Indonesia | Rp32,000/month |
| 🇧🇷 Brazil | R$10/month |
| 🇲🇽 Mexico | MX$35/month |
What's under the hood?
SimplyLouie runs on Claude (Anthropic's model) and absorbs the underlying API costs as part of the flat subscription. When Anthropic changes their tokenizer pricing or system prompts, SimplyLouie handles it — you don't have to.
Your code doesn't change when the model updates. Your bill doesn't change when token prices go up.
Rate limits?
For personal use and small projects: essentially none that you'll hit. If you're running a high-volume production app serving thousands of users, you'll want to contact us first. But for scripts, bots, personal tools, and prototypes — you're covered.
Start building
→ Get your API key at simplylouie.com/developers
7-day free trial. No credit card required to try the API. After that, $2/month.
SimplyLouie donates 50% of revenue to animal rescue. Your $2/month helps both your projects and animals in need.
Top comments (0)