Claude Code Subscription vs API Pricing: Which Costs Less?
A Claude subscription is a flat monthly price with a usage ceiling; an API key is pay per token with no ceiling. For someone running Claude Code most days, the subscription usually costs less. For occasional use or automation, the API key can.
Prices from claude.com/pricing and Anthropic’s Claude Code cost guide, checked November 10, 2026. Anthropic changes these often.
What each one costs
Subscriptions (Claude Code included on every paid plan):
- Pro: $20/month, or $17 billed annually.
- Max: $100/month, with 5x Pro usage and $100/month in API credits.
- Ultra: $200/month, with 10x Pro usage every week, no 5-hour limit on verified accounts, and $200/month in API credits.
API key (per million tokens):
| Model | Input | Output | Cache read |
|---|---|---|---|
| Opus 5.5 | $4 | $20 | $0.20 |
| Sonnet 5.5 | $2 | $10 | $0.10 |
Batch processing saves 50%. Fast mode on Opus 5.5 costs 2x standard, and US-only inference is 1.1x.
The number that decides it
Anthropic publishes a benchmark: across enterprise deployments, Claude Code averages around $13 per developer per active day and $150 to $250 per developer per month, with 90% of users under $30 per active day.
Put that next to the plans. Twenty active days at $13 is about $260 of API usage, more than Ultra’s $200 flat price. A developer who opens Claude Code once or twice a month is on the other side of the line: at $13 per active day, that is less than Pro’s $20.
| You use Claude Code… | Usually cheaper |
|---|---|
| Every working day | A subscription (Pro, then Max or Ultra as you hit limits) |
| Once or twice a month | An API key |
| From scripts, CI, or your own app | An API key (or the API credits that come with Max, Ultra, and Team) |
Why long sessions cost more than you think
Claude Code sends your full conversation with every request, and each tool call sends another request carrying the results. Prompt caching re-reads that history at the cheaper cache rate, but a session left open all day still draws on it for every one-line question. Anthropic’s guide lists the usual causes of climbing usage: long context, cache misses after a break, scheduled tasks, subagents, and agent teammates, each of which keeps consuming tokens until it exits. The fix is the same on both billing models: /clear between unrelated tasks, and match the model to the job.
The Agent SDK and claude -p
If something drives Claude Code headless, through the Claude Agent SDK or claude -p, the billing follows how it signs in. Signed in with your Claude plan, it draws from your subscription limits; Anthropic paused a planned change to that and confirmed it again on October 7, 2026. Run with an API key from your linked Console organization, it bills the API, and the monthly API credits on Max, Ultra, and Team apply there.
Seeing it
On an API key, /usage in Claude Code shows the session’s token use and an estimated cost at list price. On a subscription it shows your plan usage bars and what is eating them: skills, subagents, plugins, MCP servers, and loops.
What neither one shows is the room. When several people’s agents work on one project, each bill lives in a different account. In Braid, each agent joins a shared channel under its own owner’s login, so every agent keeps billing its own owner’s plan or key, and the channel has brakes: bots pause themselves after too many bot-only messages, any human reply resumes them, and one click stops every bot in the room.
Related: what Claude Code costs solo and on a team, is Claude Code free?, and Claude Code team and enterprise pricing.
Questions
Is a Claude subscription or an API key cheaper for Claude Code?
For daily use, a subscription is usually cheaper. Anthropic's cost guide puts the enterprise average at around $13 per developer per active day and $150 to $250 per month, while Pro is $20 a month and Max is $100. For occasional use, an API key can cost less.
How much does the Claude API cost for Claude Code?
As of November 10, 2026, Opus 5.5 costs $4 per million input tokens and $20 per million output tokens, and Sonnet 5.5 costs $2 and $10. Prompt caching reads cost a fraction of that, and batch processing saves 50%.
Do Claude subscriptions include API credits?
Yes, on some plans. Max includes $100 a month in API credits, Ultra $200, and Team up to $500 a month pooled. They apply when you use the API, the Agent SDK, or claude -p with an API key from your linked Console organization.
How do I see what Claude Code is costing me?
Run /usage in Claude Code. On an API key it shows the session's token use and an estimated dollar figure computed at list price. On a subscription it shows plan usage bars and a breakdown of what counts against your limits.