# Claude Code Pricing: Plans, Limits and API Costs

> Claude Code has no price of its own. It comes with Claude Pro, Max, Ultra and Team, or you pay per token through the API. Here is what each option costs.

By Jonathan Ben Haim. Updated 2026-11-29. Source: https://jonathanai.io/blog/claude-code-pricing

The first time I checked my API bill after a weekend with Claude Code, I learned that it had been using an old API key from my shell profile instead of my subscription. Nothing was broken. I just did not know how Claude Code decides who pays.

**In short:** Claude Code has no price tag of its own. You get it with a paid Claude plan (Pro $20, Max $100, Ultra $200 a month, or a Team seat), or you pay per token with a Claude API key. The plan decides how much you can use before you hit a limit. Prices were checked on Anthropic's pages on November 29, 2026.

## Key takeaways

- Claude Code is not part of the [Free plan](/blog/free-claude-code-guide).
- Pro ($20), Max ($100), Ultra ($200) and Team seats all include Claude Code.
- Claude Code shares one usage allowance with the Claude apps.
- An `ANTHROPIC_API_KEY` in your environment switches Claude Code to API billing.
- Monthly API credits on Max and Ultra cannot be used in Claude Code.
- On the API, Sonnet 5.5 costs $2 per million input tokens and $10 per million output tokens.

## What are the ways to pay for Claude Code?

There are two: [a subscription](/blog/claude-pro-vs-max) or the API.

| Option | Price | How usage is limited | Best for |
|---|---|---|---|
| Pro | $20/month, or $17/month yearly | Five-hour and weekly limits | Daily use with short sessions |
| Max | $100/month | 5x Pro, per five hours and per week | Heavy daily coding |
| Ultra | $200/month | 10x Pro weekly, no five-hour limit for verified accounts | Long agent sessions |
| Team Standard | $25/seat monthly, $20 yearly | More than Pro | Small teams |
| Team Premium | $125/seat monthly, $100 yearly | 5x a Standard seat | Team members who code all day |
| Claude API | Per token | Your spend and rate limits | Automation, CI and occasional use |

## How do subscription limits apply to Claude Code?

Claude Code draws from the same pool as chat. A long morning in the terminal leaves less for the Claude app in the afternoon.

- Pro and Max have a [five-hour session limit](/blog/claude-code-limit-keep-working-free) and a weekly limit.
- Ultra has a weekly limit and, for verified accounts, no five-hour limit.
- Max and Ultra also have a separate weekly limit for the [Fable models](/blog/claude-fable-5-2-guide).
- When you hit a limit, you can wait for the reset or turn on usage credits, which are billed at standard API rates.

Inside Claude Code, the `/usage` and `/status` commands show where you stand.

## How do you make sure Claude Code uses your plan, not your API key?

Claude Code prefers an API key when one is set. If `ANTHROPIC_API_KEY` exists in your environment, you are billed at API rates even if you pay for Max.

```bash
# See if a key is set
echo $ANTHROPIC_API_KEY

# Remove it for this session
unset ANTHROPIC_API_KEY
```

If the key is set in a file such as `~/.zshrc` or `~/.bashrc`, remove the line there too, then open a new terminal.

## What does Claude Code cost on the API?

On the API you pay per million tokens (MTok). These are Anthropic's current list prices for the newest models:

| Model | Input | Output | Cache hit |
|---|---|---|---|
| Claude Fable 5.2 | $8 / MTok | $40 / MTok | $0.20 / MTok |
| Claude Opus 5.5 | $4 / MTok | $20 / MTok | $0.20 / MTok |
| Claude Sonnet 5.5 | $2 / MTok | $10 / MTok | $0.10 / MTok |
| Claude Haiku 5.5 | $0.10 / MTok (prompts up to 100,000 tokens) | $0.50 / MTok | $0.01 / MTok |

Coding sessions resend a lot of context, so prompt caching matters. A cache hit on Opus 5.5 costs $0.20 per million tokens instead of $4.

## Subscription or API: which is cheaper?

For most people who code with Claude every day, a subscription is cheaper and more predictable. The API makes sense in three cases:

1. You use Claude Code a few times a month.
2. You run it in automation, such as a CI job or a [scheduled agent](/blog/always-on-ai-agents-guide).
3. A company account pays for usage and needs per-token billing.

If you are on the API, set a spend limit in the Claude Console before a long session.

## Can Max or Ultra API credits pay for Claude Code?

No. Max includes $100 a month and Ultra $200 a month in [Claude API credits](/blog/claude-api-pricing), and Team plans get up to $500 a month in pooled credits. Anthropic says the credits on Max and Ultra cannot be used in Claude Code or the Claude apps. Use them for things you build on the Claude Platform.

## Bottom line

If you code with Claude most days, start on Pro and move to Max once the five-hour limit keeps interrupting you. Use the API for automation and occasional use, and always check that a stray `ANTHROPIC_API_KEY` is not billing you twice.

## Sources

- [Claude pricing page](https://claude.com/pricing)
- [What is the Max plan? (Claude Help Center)](https://support.claude.com/en/articles/11049741)
- [The Ultra plan (Claude Help Center)](https://support.claude.com/en/articles/17728952)
- [Using Claude Code with your Pro, Max or Ultra plan (Claude Help Center)](https://support.claude.com/en/articles/11145838)
- [Claude API pricing (Claude Platform docs)](https://platform.claude.com/docs/en/about-claude/pricing)
