Claude API · Pricing
Cheap Claude API: Opus, Sonnet and Haiku below list price
Every Claude model on aicodewith is listed next to its Anthropic list price, and the rate you pay depends on the channel you pick. The table below is pulled live from the same data as the models page, so what you see here is what your balance is charged.
Last checked
Claude API prices vs Anthropic list price
| Model (USD per 1M tokens) | Anthropic list price, input / output | Cache read / 5-min cache write (list) | aicodewith Economy channel, input / output |
|---|---|---|---|
| Claude Opus 5.5 | $4.00 / $20.00 | $0.20 / $5.00 | from $0.76 / from $3.80 |
| Claude Sonnet 5.5 | $2.00 / $10.00 | $0.10 / $2.50 | from $0.38 / from $1.90 |
| Claude Haiku 5.5 | $0.10 / $0.50 | $0.01 / $0.125 | from $0.019 / from $0.095 |
"From" prices are based on the Economy channel, the lowest-priced Claude channel currently listed (about 19% of Anthropic list price). Other channels cost more; the rate depends on the channel you choose, and the models page is always the source of truth.
Prices are in USD per million tokens. Cache reads are where long Claude Code sessions spend most of their tokens, so the cache-read column often matters more than the input price.
Why the rate can be lower than list price
aicodewith is an independent platform that aggregates capacity from several third-party providers. Each source is offered as a channel with its own rate, and the rate is shown before you send a request. Lower-priced channels can differ in availability and speed, which is why each model page also shows channel health.
- You choose the channel; nothing switches you to a different rate silently.
- Every request is billed per token from your balance and listed in your usage records with model, tokens and cost.
- If a cheaper channel is busy, you can move to another one instead of waiting.
How to check you get the model you pay for
- Send a request and read the model field in the response; it names the model that answered.
- Open your usage records: each request shows the model, input, output and cache tokens, and the charge.
- In Claude Code, run /status for the endpoint and /cost for the session's token count and cost.
- Compare quality on your own prompts. The model page shows each channel's recent health if something looks off.
Payment, top-ups and refunds
| Details | |
|---|---|
| Billing | Prepaid balance, charged per token. Credits are valid for one year. |
| International accounts | USD, by credit or debit card through Stripe |
| Mainland China accounts | CNY, through Alipay |
| Minimum top-up | Shown at checkout for your billing region |
| Refunds | Unused balance within 90 days of the top-up, with a 10% fee deducted |
| Spend control | Daily, monthly or total spend cap per API key |
Use it from Claude Code or the SDK
1. Claude Code
Add the env block to ~/.claude/settings.json and restart. ANTHROPIC_BASE_URL is the bare domain, with no /v1.
~/.claude/settings.json{ "env": { "ANTHROPIC_AUTH_TOKEN": "YOUR_API_KEY", "ANTHROPIC_API_KEY": "", "ANTHROPIC_BASE_URL": "https://api.aicodewith.ai" } }2. curl (Anthropic Messages API)
The Messages API path is /v1/messages on api.aicodewith.ai.
bashcurl https://api.aicodewith.ai/v1/messages \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "anthropic-version: 2023-06-01" \ -H "content-type: application/json" \ -d '{ "model": "claude-sonnet-5-5", "max_tokens": 512, "messages": [{"role": "user", "content": "Hello"}] }'3. Python (anthropic SDK)
Point the SDK at the base URL and pass your key as the auth token.
pythonfrom anthropic import Anthropic client = Anthropic( base_url="https://api.aicodewith.ai", auth_token="YOUR_API_KEY", ) message = client.messages.create( model="claude-sonnet-5-5", max_tokens=512, messages=[{"role": "user", "content": "Hello"}], ) print(message.content[0].text)
Compared with OpenRouter and other aggregators
| aicodewith | OpenRouter | |
|---|---|---|
| Claude price basis | Per-channel rate shown next to Anthropic list price | Provider prices, plus a fee when you buy credits (see their pricing page) |
| Model range | Focused on coding models: Claude, GPT/Codex and a set of others | Hundreds of models from many providers |
| Claude Code | Native Anthropic endpoint; set ANTHROPIC_BASE_URL | Supported through their Anthropic-compatible setup |
| Payment | Card (Stripe) or Alipay | Card and other methods listed on their site |
If you need a very wide model catalog, OpenRouter fits better. If you mostly run Claude Code or Codex and care about the per-token rate, compare the prices in the table above with the rates you pay today.
FAQ
What is the cheapest way to use the Claude API?
Use the cheapest model that does the job (Haiku for small tasks, Sonnet for everyday coding, Opus for hard problems), keep prompts cacheable, and compare per-token rates. The price table on this page shows aicodewith rates next to Anthropic list prices.
Is this the same Claude model?
You request a model by its ID, and the response and your usage records name the model that answered. Rates differ by channel, and each model page shows channel health.
Why is it cheaper than Anthropic list price?
aicodewith aggregates capacity from several third-party providers and offers each as a channel with its own rate. Lower-priced channels can differ in availability and speed.
Does it work with Claude Code?
Yes. Set ANTHROPIC_BASE_URL to https://api.aicodewith.ai and ANTHROPIC_AUTH_TOKEN to your key in ~/.claude/settings.json, then restart Claude Code.
Are there rate limits?
Yes. Rate and concurrency limits apply, and requests above them get a 429 response. You can also set your own spend caps per key.
How do I pay, and can I get a refund?
International accounts pay in USD by card through Stripe; mainland China accounts pay in CNY through Alipay. Unused balance can be refunded within 90 days of the top-up, with a 10% fee deducted.
Is aicodewith affiliated with Anthropic?
No. aicodewith is an independent API platform. Claude is a trademark of Anthropic.
Ready to try it?
Billing is per token from a prepaid balance. Rate and concurrency limits apply, and you can set daily, monthly or total spend caps on each API key.
Related
Sources
Claude is a trademark of Anthropic PBC; OpenRouter is a trademark of its owner. aicodewith is an independent platform and is not affiliated with or endorsed by Anthropic or OpenRouter. Prices are pulled from live pricing data; list prices are Anthropic list prices. Checked 2026-10-10.