DEV Community

brian austin
brian austin

Posted on

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

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

I got tired of paying $20/month for Claude Pro when I only use it for a few projects. So I built a flat-rate API proxy that gives you full Claude access for $2/month. Here's exactly how to use it.

The curl command

curl https://simplylouie.com/api/chat \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"message": "Write a function to parse JSON safely in Python"}'
Enter fullscreen mode Exit fullscreen mode

That's it. You get Claude's response back as JSON.

Why I built this

The official Claude API charges per token. For a developer doing regular work — code reviews, documentation, debugging — you can easily spend $30-50/month on token-by-token pricing.

I wanted flat-rate. Pay once, use as much as you need.

So I built SimplyLouie: a Claude API proxy at $2/month flat. No token counting. No surprises.

Full API reference

POST /api/chat

Send a message to Claude:

curl -X POST https://simplylouie.com/api/chat \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "message": "Explain this error: TypeError: Cannot read properties of undefined",
    "context": "I am debugging a Node.js Express app"
  }'
Enter fullscreen mode Exit fullscreen mode

Response:

{
  "response": "This error occurs when you try to access a property on a value that is undefined...",
  "model": "claude-3-5-sonnet",
  "timestamp": "2026-04-12T19:00:00Z"
}
Enter fullscreen mode Exit fullscreen mode

Using it in Python

import requests

API_KEY = "your_api_key_here"
BASE_URL = "https://simplylouie.com"

def ask_claude(message, context=""):
    response = requests.post(
        f"{BASE_URL}/api/chat",
        headers={
            "Authorization": f"Bearer {API_KEY}",
            "Content-Type": "application/json"
        },
        json={
            "message": message,
            "context": context
        }
    )
    return response.json()["response"]

# Use it in your code
result = ask_claude(
    "Review this function for bugs",
    context="def parse_config(path):\n    with open(path) as f:\n        return json.load(f)"
)
print(result)
Enter fullscreen mode Exit fullscreen mode

Using it in JavaScript/Node.js

const fetch = require('node-fetch');

const API_KEY = 'your_api_key_here';
const BASE_URL = 'https://simplylouie.com';

async function askClaude(message, context = '') {
  const response = await fetch(`${BASE_URL}/api/chat`, {
    method: 'POST',
    headers: {
      'Authorization': `Bearer ${API_KEY}`,
      'Content-Type': 'application/json'
    },
    body: JSON.stringify({ message, context })
  });

  const data = await response.json();
  return data.response;
}

// In your CI/CD pipeline:
const review = await askClaude(
  'Review this PR diff for security issues',
  prDiff
);
console.log(review);
Enter fullscreen mode Exit fullscreen mode

Integration with Claude Code

If you use Claude Code CLI, you can point it at SimplyLouie instead of the official API:

export ANTHROPIC_API_KEY=your_simplylouie_key
export ANTHROPIC_BASE_URL=https://simplylouie.com

# Now Claude Code uses SimplyLouie
claude "Fix the failing tests in auth.test.js"
Enter fullscreen mode Exit fullscreen mode

This gives you unlimited Claude Code sessions for $2/month instead of burning through Pro Max quota.

Real-world use cases

Automated code review in CI:

# .github/workflows/ai-review.yml
- name: AI Code Review
  run: |
    DIFF=$(git diff HEAD~1)
    curl -X POST https://simplylouie.com/api/chat \
      -H "Authorization: Bearer $SIMPLYLOUIE_KEY" \
      -H "Content-Type: application/json" \
      -d "{\"message\": \"Review this diff: $DIFF\"}" \
      | jq -r '.response'
Enter fullscreen mode Exit fullscreen mode

Documentation generator:

# Generate docs for any file
cat mymodule.py | curl -X POST https://simplylouie.com/api/chat \
  -H "Authorization: Bearer $SIMPLYLOUIE_KEY" \
  -H "Content-Type: application/json" \
  -d "{\"message\": \"Write docstrings for every function in this code: $(cat mymodule.py)\"}" \
  | jq -r '.response'
Enter fullscreen mode Exit fullscreen mode

Git commit message writer:

alias ai-commit='git diff --staged | curl -X POST https://simplylouie.com/api/chat \
  -H "Authorization: Bearer $SIMPLYLOUIE_KEY" \
  -H "Content-Type: application/json" \
  -d "{\"message\": \"Write a git commit message for this diff: $(git diff --staged)\"}" \
  | jq -r ".response" | git commit -F -'
Enter fullscreen mode Exit fullscreen mode

Pricing comparison

Service Monthly cost Token limits
Claude Pro $20/month Rate limited
Claude API Pay per token $30-50 typical
SimplyLouie $2/month Flat rate

For a solo developer or small team, the math is obvious.

The mission

50% of SimplyLouie's revenue goes to animal rescue organizations. So your $2/month also helps rescue dogs find homes.

Get your API key

Sign up at simplylouie.com/developers — 7-day free trial, then $2/month.

No token counting. No quota exhaustion emails. Just Claude, flat rate.


SimplyLouie is an independent API proxy. It is not affiliated with Anthropic.

Top comments (0)