Claude Code pricing, December 2026: plans vs pay-per-token API
Claude Code pricing for Pro, Max, Team and Enterprise, and what the same month of work costs per token at Anthropic's list price and ours.
Claude Code costs $20 a month on Pro and $100 on Max (claude.com/pricing, read 2026-11-02), each with a rolling five-hour usage cap. On an API key it costs what your tokens cost, with no cap and no plan: Claude Sonnet 5.5 is $2.00 in and $10.00 out per million tokens at Anthropic's list, $1.20 and $3.00 on UplinkSwitch. A plan wins when you code every day inside the window. A key wins when usage is bursty, when you want other models in the same tool, or when the per-token rate is under list.
Updated 2026-11-02: Anthropic's plan table re-read (the $200 tier is now Ultra, with no five-hour limit for verified accounts and ten times Pro's weekly usage), its cost and caching docs re-read, and every per-token figure below is the live catalog price.

Claude Code pricing: every plan
Claude Code pricing comes in two shapes. A Claude plan includes Claude Code from $17 a month and caps how much you use. An API key has no plan price and bills every token. The plans below are Anthropic's; the last two rows are the per-token options.
| Plan | Price | Usage |
|---|---|---|
| Free | $0 | No Claude Code |
| Pro | $20 a month, or $17 a month billed yearly ($200) | Rolling 5-hour window plus a weekly limit |
| Max | $100 a month | 5x Pro usage every 5 hours and every week |
| Ultra | $200 a month | No 5-hour limit for verified accounts; 10x Pro usage a week |
| Team, Standard seat | $25 a seat a month, or $20 billed yearly | More than Pro per seat |
| Team, Premium seat | $125 a seat a month, or $100 billed yearly | 5x a Standard seat |
| Enterprise | $20 a seat a month billed yearly, 20 seats minimum, plus usage at API rates | Usage billed per token |
| Anthropic API key | Per token: $2.00 in, $10.00 out per million on Sonnet 5.5 | Billed from prepaid Console credit |
| UplinkSwitch key | Per token: $1.20 in, $3.00 out per million on Sonnet 5.5 | Billed from prepaid credit, from $10 |
Plan prices from claude.com/pricing, read 2026-11-02, and Anthropic's Max plan article, read 2026-11-02, before tax. Per-token rates from the live catalog. Every paid plan includes Claude Code; the Free plan does not.
A plan's usage resets on a rolling five-hour window, with a weekly limit on top (Ultra drops the five-hour limit for verified accounts), and Claude Code shares that pool with Claude chat. Anthropic does not publish the allowance in tokens, so the useful comparison is your month's token bill against the plan price, which the next tables work out.
What a plan’s price buys per token
The same monthly money spent per token, counted in Claude Code turns of 80,000 cached, 2,000 new input and 1,500 output tokens. That is one turn late in a working session, explained under the three prices below.
| Model | One turn | $20 buys | $100 buys | $200 buys |
|---|---|---|---|---|
| Claude Opus 5.5, list | $0.054 | 370 turns | 1,851 turns | 3,703 turns |
| Claude Opus 5.5, here | $0.0326 | 613 turns | 3,067 turns | 6,134 turns |
| Claude Sonnet 5.5, list | $0.027 | 740 turns | 3,703 turns | 7,407 turns |
| Claude Sonnet 5.5, here | $0.0129 | 1,550 turns | 7,751 turns | 15,503 turns |
| Claude Haiku 5.5, list | $0.0018 | 11,428 turns | 57,142 turns | 114,285 turns |
| Claude Haiku 5.5, here | $0.0011 | 17,467 turns | 87,336 turns | 174,672 turns |
$20 is Pro billed monthly, $100 Max, $200 Ultra. List is Anthropic's per-token price; here is ours, from the live catalog. Every turn hits the cache.
On Sonnet 5.5, Pro's $20 buys 740 turns at Anthropic's list price and 1,550 here. At 150 turns a working day that is 10.3 days of steady use on a key here, with nothing resetting on a five-hour clock.
What Claude Code API cost is
Claude Code API cost is what Claude Code bills when it runs on an API key instead of a plan: every request is metered by tokens, at three rates per million. Input tokens are the new text in the request, cached input tokens are the part of the conversation read back from the prompt cache, and output tokens are what the model writes, thinking included. Anthropic's cost docs put it in one line, "Claude Code charges by API token consumption" (read 2026-11-02).
Two places show the number. Inside Claude Code, /usage computes the session at Anthropic's list price from the token counts. On a key here, the receipt for each request records the tokens and the rate charged, so the two differ by exactly the gap in the price table below.
Claude Code cost per token: the three prices
A Claude Code bill on an API key comes from three rates: input, cached input and output, each per million tokens. Claude Code sends the whole conversation again on every request, so most of the tokens in a session are the same tokens, read back from cache. The cached rate decides most of the bill.
| Model | Input | Cached input | Output | List input | List cached | List output |
|---|---|---|---|---|---|---|
| Claude Opus 5.5 | $2.80 | $0.15 | $10.00 | $4.00 | $0.20 | $20.00 |
| Claude Sonnet 5.5 | $1.20 | $0.075 | $3.00 | $2.00 | $0.10 | $10.00 |
| Claude Haiku 5.5 | $0.06 | $0.01 | $0.15 | $0.10 | $0.01 | $0.50 |
USD per million tokens. Ours from the live catalog; list is the price on the developer's pricing page, the read date on each model page.
Claude Opus 5.5 is $2.80 in and $10.00 out here, against $4.00 and $20.00 at Anthropic: 30% under list on input and 50% on output. The other rows read the same way. Every Claude model on the key gets the same test prompt once a day, with the token counts public on the real-model check.
The check today: Claude Opus 5.5, steady since Oct 19; Claude Sonnet 5.5, steady since Oct 19; Claude Haiku 5.5, steady since Nov 25. Each verdict is the live one from the proof page, not a typed claim.
One turn, worked
Take one turn late in a session: 80,000 tokens read from cache, 2,000 new input tokens and 1,500 output tokens. Cache writes are left out.
| Model | At list price | Here | Saving |
|---|---|---|---|
| Claude Opus 5.5 | $0.054 | $0.0326 | 39% |
| Claude Sonnet 5.5 | $0.027 | $0.0129 | 52% |
| Claude Haiku 5.5 | $0.0018 | $0.0011 | 34% |
80,000 cached + 2,000 input + 1,500 output tokens, each at its rate per million.
The arithmetic for Sonnet 5.5 at list: 80,000 × $0.10 + 2,000 × $2.00 + 1,500 × $10.00, all per million, is $0.027. The same turn here is $0.0129.
The same turn after the cache expires
On an API key the prompt cache lasts five minutes by default; on a subscription, inside the plan's usage, the main conversation gets an hour (Anthropic's Claude Code caching docs, read 2026-11-02). Step away for longer and the next request pays the input rate for the whole context: 82,000 input tokens plus 1,500 output.
| Model | At list price | Here |
|---|---|---|
| Claude Opus 5.5 | $0.358 | $0.2446 |
| Claude Sonnet 5.5 | $0.179 | $0.1029 |
| Claude Haiku 5.5 | $0.009 | $0.0051 |
82,000 input + 1,500 output tokens, nothing from cache.
That one turn costs about five times the cached one. A long break in the middle of a session costs one of these; a session that keeps moving pays the cached rate.
Claude Code cost per day
Three sizes of day, each made of the turn above with every turn hitting the cache. The sizes are assumptions, not measurements; change the turn count and the table scales with it.
| Day | Tokens in a day | Claude Opus 5.5, list | Claude Opus 5.5, here | Claude Sonnet 5.5, list | Claude Sonnet 5.5, here | Claude Haiku 5.5, list | Claude Haiku 5.5, here |
|---|---|---|---|---|---|---|---|
| Light, 40 turns | 3,200,000 cached, 80,000 in, 60,000 out | $2.16 | $1.30 | $1.08 | $0.52 | $0.07 | $0.05 |
| Steady, 150 turns | 12,000,000 cached, 300,000 in, 225,000 out | $8.10 | $4.89 | $4.05 | $1.94 | $0.26 | $0.17 |
| Heavy, 400 turns | 32,000,000 cached, 800,000 in, 600,000 out | $21.60 | $13.04 | $10.80 | $5.16 | $0.70 | $0.46 |
Each turn is 80,000 cached + 2,000 input + 1,500 output tokens. Cache writes and cold turns after a break are not included.
For scale, Anthropic's own figure across its enterprise deployments is about $13 per developer per active day at list price, and under $30 a day for 90% of users (the same docs, read 2026-11-02). That is context, not a forecast for your sessions.
Claude Code cost per month
The same three days over 20 working days. This is the number to hold against a plan price.
| Month | Turns | Claude Opus 5.5, list | Claude Opus 5.5, here | Claude Sonnet 5.5, list | Claude Sonnet 5.5, here |
|---|---|---|---|---|---|
| Light | 800 | $43.20 | $26.00 | $21.60 | $10.40 |
| Steady | 3,000 | $162.00 | $97.80 | $81.00 | $38.80 |
| Heavy | 8,000 | $432.00 | $260.80 | $216.00 | $103.20 |
20 working days of the day table above, every turn cached.
A steady month on Opus 5.5 is $162.00 at list and $97.80 here. Anthropic's own average is $150-250 per developer per month at list (the cost docs). On Sonnet 5.5 the same month is $81.00 at list and $38.80 here.
Plan or API key: which costs less
A plan costs the same whatever you use. It is the cheaper route when your month on a key would cost more than the plan and the five-hour window rarely stops you.
A key costs what you use. It is the cheaper route when your month comes in under the plan price, and when you code in bursts: a quiet week costs nothing, and a long day never waits for a reset. Each key can carry its own monthly spend limit, so one developer or one CI job has a ceiling of its own.
Credit is prepaid from $10, and each top-up locks your prices for 30 days. Bonus credit on larger top-ups: +5% from $50, +10% from $100, +15% from $120.
Two details from Anthropic's Help Center (Claude Code with Pro or Max, read 2026-11-02): the monthly API credit that comes with Max can't be spent in Claude Code, and an ANTHROPIC_API_KEY variable in your shell makes Claude Code bill that key instead of your plan.
The same question for the Kimi, GLM and Qwen coding plans is worked in coding plans vs pay-per-token API; this page stays on Claude Code.
The same key in every coding tool
Claude Code is one of several tools that take an OpenAI-compatible or Anthropic-compatible key, and the token bill is the same arithmetic in each. What differs is whether the tool adds a fee of its own. One line per tool, each with its setup guide:
- Claude Code: two environment variables; the tool bills nothing itself.
- Cursor: own-key requests bill per token here; on Teams and Enterprise, Cursor counts them against its usage and adds its own per-token fee (Cursor's API key docs). One agent request is costed in Cursor with your own API key.
- Cline: an open-source VS Code extension; with your own key it adds nothing, and cached input bills at the cached rate.
- Zoo Code, the Roo Code fork: free and open source per its docs (read 2026-10-19); the OpenAI Compatible panel takes the key.
- Kilo Code: a free extension; Kilo Gateway bills provider rates plus a 5% fee on credit purchases (kilo.ai/pricing, read 2026-10-19), or a custom provider takes this key with no fee on top.
- OpenCode: free and open source; its Zen provider sells models at list price plus a 4.4% + $0.30 card fee (opencode.ai docs, read 2026-10-19), or the same ids run on this key at the rates in the table above.
- OpenClaw: the model config takes the key and a model id; nothing is billed by the tool.
- Claude Code Router: an open-source local gateway that puts GLM, DeepSeek and Kimi behind Claude Code; it bills nothing, and the Claude models need no router here.
The five tools that run on one key are compared side by side, with what each charges and the same turn priced on five models, in Claude Code alternatives.
Best practices for a Claude Code API bill
- Keep the system prompt and CLAUDE.md stable, so every turn inside five minutes reads the context back at the cached rate. A shorter CLAUDE.md is in every request.
- Keep sessions moving. A turn after the five-minute expiry pays the input rate for the whole context.
/clearbetween tasks, so the next request does not carry the last task's context.- Haiku 5.5 for subagents and background tasks, through
ANTHROPIC_DEFAULT_HAIKU_MODEL; keep Opus for planning. - A lower effort level where the task allows it; thinking tokens bill as output.
- A monthly spend limit on the key, so a runaway loop stops at a number you chose, and budget autopilot so the key steps down to a cheaper model from 80% of the limit instead of stopping.
- One key per tool, so Claude Code, Cursor and CI each show their own line in the console.
- Read the receipt for the real rate;
/usageis an estimate at list.
Common mistakes
- Reading
/usageas the bill. It is computed at Anthropic's list price whatever the key costs. - Letting the cache expire between turns. One cold turn costs about five of the cached kind in the tables above.
- Running Opus 5.5 on every task. A steady month is $97.80 on Opus and $38.80 on Sonnet here.
- Comparing the plan price to the API at list only. The decision changes when the per-token rate is under list.
- Expecting the Max plan's monthly API credits to work in Claude Code. They do not (Anthropic's Help Center, read 2026-11-02).
- Sharing one key with no spend cap. A loop in a CI job spends until the balance is gone.
What /usage shows
On an API key, Claude Code computes the session cost on your machine from its token counts at Anthropic's list price (the cost docs). It is an estimate at list, whatever host you point it at. On a plan, /usage shows plan usage bars instead. The real bill for a key here is in the console, which records what each request was charged.
Thinking tokens
Thinking tokens bill as output and cannot be switched off on Opus 5.5, Sonnet 5.5, Haiku 5.5 or the Fable models (the cost docs). A lower effort level produces fewer of them.
Switching Claude Code to an API key
Two variables. The Claude Code guide has the settings.json form and the model variables, and how to get a Claude API key covers Anthropic's own key.
export ANTHROPIC_BASE_URL="https://api.uplinkswitch.com/v1"
export ANTHROPIC_AUTH_TOKEN="sk-uplink-live-..."
claudePrompt caching works through the gateway; cached input bills at the cached rate in the price table. To go back to your plan, unset both variables and run /login with your Claude account.
Tools for a Claude Code bill
- The LLM cost calculator: the cost of one request and of a month of them, for any model on the list.
- Savings: upload an Anthropic usage export and read the same month re-priced at these rates.
- Claude API pricing: every Claude model, list next to ours, and Claude API cost per request for one request at a time.
POST https://api.uplinkswitch.com/v1/estimate: prices a prompt on every model before it is sent, no key needed.- Per-key monthly spend limits and budget autopilot in the console.
- The daily real-model check: each Claude model gets the same prompt once a day, and the verdict is public.
- Signed receipts and monthly statements show the billed rate per request, with a public verifier at statements/verify.
- The LLM API pricing comparison for every other model on the key, and reviews on Product Hunt.