Claude Code pricing: subscription or pay per token?
Updated 2026-11-19
The question behind "how much does Claude Code cost" is really two questions: which subscription, and whether a subscription is the right way to pay at all. Claude Code itself is the same tool either way. What changes is how usage is counted: a subscription gives you a usage allowance that resets every five hours and every week, while an API key bills every token and never runs out as long as there is money behind it.
Plan details below come from claude.com/pricing and Anthropic's help centre, and cost figures from the Claude Code costs documentation, all checked on 19 November 2026. Anthropic changes plans and limits often, so check those pages before you commit.
Claude plans that include Claude Code
Max 20x has been renamed Ultra, and Anthropic now describes it as 10x Pro's weekly usage with no 5-hour limit for verified accounts. The monthly API credits on Max, Ultra and Team cannot be spent on interactive Claude Code sessions.
| Plan | Price | Usage | Claude Code |
|---|---|---|---|
| Free | $0 | Limited usage every 5 hours and every week | Not included |
| Pro | $20/month, or $17/month billed annually | More than Free; 5-hour and weekly limits | Included |
| Max | $100/month | 5x Pro every 5 hours and every week; Fable up to half the weekly limit; $100/month API credits | Included |
| Ultra | $200/month (monthly only) | 10x Pro every week; no 5-hour limit for verified accounts; $200/month API credits | Included |
| Team, standard seat | $25/seat/month, or $20 annually | More than Pro | Included |
| Team, premium seat | $125/seat/month, or $100 annually | 5x a standard seat | Included |
| Enterprise | $20/seat/month annually, 20-seat minimum | Seat price plus usage at API rates | Included |
How the subscription limits work
Shared with chat: everything you do in Claude and in Claude Code counts against the same limits.
5-hour session: the window starts with your first message and resets in full five hours later.
Weekly limit: resets at a fixed time each week assigned to your account; Max and Ultra also have a separate weekly limit for Fable.
Usage varies: how far a limit goes depends on conversation length, the model, the effort level and the features you use, and Anthropic publishes multiples rather than token counts.
When you hit a limit: wait for the reset, upgrade, or turn on usage credits, which are billed at standard API rates and let work continue instead of stopping.
Paying per token with an API key
With an API key, Claude Code charges by token consumption. Anthropic's costs documentation puts the average for enterprise deployments at around $13 per developer per active day and $150 to $250 per developer per month, with 90% of users staying under $30 per active day. On a subscription that figure is irrelevant for billing, because usage is included up to your limits.
Those figures come from Anthropic's own pricing. Through APIMODELS, Claude Opus 5.5, Sonnet 5.5 and Fable 5.2 cost 40% less per token than Anthropic's list price, so the same token usage on those models costs 40% less; Haiku 5.5 is 10% less. Requests through a third-party key are billed by that provider, and your subscription's 5-hour and weekly limits do not apply to them.
| Model | Anthropic list (input / output per 1M tokens) | APIMODELS (input / output per 1M tokens) | Call name |
|---|---|---|---|
| Claude Fable 5.2 | $8 / $40 | $4.80 / $24 | claude-fable-5-2 |
| Claude Opus 5.5 | $4 / $20 | $2.40 / $12 | claude-opus-5-5 |
| Claude Sonnet 5.5 | $2 / $10 | $1.20 / $6 | claude-sonnet-5-5 |
| Claude Haiku 5.5 (prompts up to 100K tokens) | $0.10 / $0.50 | $0.09 / $0.45 | claude-haiku-5-5 |
Subscription or per token: which costs you less
You code with it most days and rarely hit the limits: a subscription. Pro at $20 is hard to beat if it covers your week.
You keep hitting the weekly limit: compare Max or Ultra against per-token. If you would need Ultra only for a few heavy days a month, per-token often costs less.
You use it a few days a month: per token. You pay only for the days you work.
CI jobs, scripts and claude -p automation: per token with an API key; subscription limits are shared with your own interactive use.
A team sharing one budget: per token, so usage pools across people instead of stranding unused allowance on each seat.
You need Claude Code features that require a claude.ai login, such as cloud sessions, Slack or Code Review: a subscription; those do not work with an API key.
How to switch Claude Code to per-token billing
Set ANTHROPIC_API_KEY to an Anthropic key, or set ANTHROPIC_BASE_URL to https://api.apimodels.app and ANTHROPIC_AUTH_TOKEN to an APIMODELS key, ideally in the env block of ~/.claude/settings.json. Approve the key when Claude Code asks, then run /status to confirm which credential is active. To go back to your subscription, remove the variables and run /login.
Quick start
~/.claude/settings.json (per-token via APIMODELS)
{
"env": {
"ANTHROPIC_BASE_URL": "https://api.apimodels.app",
"ANTHROPIC_AUTH_TOKEN": "sk_...your_apimodels_key...",
"ANTHROPIC_MODEL": "claude-opus-5-5"
}
}cURL
curl https://api.apimodels.app/v1/messages \
-H "x-api-key: $APIMODELS_API_KEY" \
-H "anthropic-version: 2023-06-01" \
-H "content-type: application/json" \
-d '{
"model": "claude-opus-5-5",
"max_tokens": 512,
"messages": [{"role": "user", "content": "Say hello in three languages."}]
}'FAQ
How much does Claude Code cost?
Claude Code is included with Claude Pro ($20 a month, or $17 billed annually), Max ($100) and Ultra ($200), each with usage limits. With an API key it is billed per token instead; Anthropic's enterprise average is about $13 per developer per active day and $150 to $250 per month. Checked on 19 November 2026.
Is Claude Code included in Claude Pro?
Yes. Claude Code is included with Pro, Max, Ultra, every Team seat and Enterprise, but not with the Free plan. On Pro, usage is shared with Claude chat under a 5-hour session limit and a weekly limit.
Does Claude Pro have usage limits?
Yes. Pro has a 5-hour session limit that starts with your first message and a weekly limit that resets at a fixed weekly time, both shared between Claude and Claude Code. Anthropic does not publish exact counts; Max offers 5x Pro's usage and Ultra 10x Pro's weekly usage.
When does Claude Code usage reset?
The session limit resets in full five hours after the first message of that session, and the weekly limit resets at a fixed time each week assigned to your account. Usage credits, if you turn them on, let you keep working at API rates but do not change the reset times.
Can I use Claude Code without a subscription?
Yes, with an API key billed per token: either an Anthropic key in ANTHROPIC_API_KEY, or a provider such as APIMODELS via ANTHROPIC_BASE_URL and ANTHROPIC_AUTH_TOKEN. Features that need a claude.ai login, such as cloud sessions, Slack and Code Review, are not available that way.
