Claude Code cost guide

Claude Code subscription vs API billing

When you sign in with an eligible Claude subscription, Claude Code draws from the allowance you share with Claude chat. When a session or script uses an Anthropic API key, Anthropic bills that usage separately. API charges depend on input and output tokens, with separate rates for cache reads and writes.

Last updated · Published

By CWYN · Published · Billing comparison as of · Anthropic API token rates (as of )

1. Decide which work the plan could cover

On Windows, follow the PowerShell installation guide to reach the sign-in prompt. Choose the Claude account that holds your subscription if you want the session to use your plan allowance.

List your interactive sessions separately from any scripts that need an API key. For example, Claude Code's bare print-mode setup uses API authentication. Keep those calls in your API budget even if you also buy a plan. Claude Code print mode (as of ).

For work you could move, ask two questions. What did those calls cost last month? Would the shared allowance cover the times you need to work? Anthropic leaves absolute Claude limits unpublished and offers usage credits for work past the plan limit. Claude plan pricing (as of ). Claude Code costs (as of ).

Estimate your own monthly bill with the free AI cost calculator.

Expected your subscription to cover a request that returned a 429? Check which credential Claude Code used and what the error means.

2. Compare a monthly fee with your API usage

Individual monthly billing options in USD
Billing routePriceWhat to compare
Claude Pro$20 per monthIncludes Claude Code within shared plan limits. Claude plan terms (as of ).
Claude Max$100 per month5x Pro usage every 5 hours and every week, plus $100 in monthly API credits. Claude plan terms (as of ).
Claude Ultra$200 per month10x Pro usage every week, with no 5-hour limit for verified accounts, plus $200 in monthly API credits. Claude plan terms (as of ).
API key, Claude Sonnet 4.6$3 input and $15 output per million tokens before cachingPrice the tokens in each billing category. Cache reads cost $0.3 per million. Anthropic API pricing (as of ).

How many code reviews reach the Pro fee?

The calculator's Code review preset has 2 turns per review. Assume all 9,500 input tokens are billed as regular input and all 800 output tokens are billed at the output rate. A review costs (9,500 × $3 + 800 × $15) ÷ 1,000,000 = $0.0405.

6 reviews/day × 30 days × $0.0405 = $7.29. At that rate, $20 ÷ $0.0405 ≈ 493.8 reviews. The first whole review count that reaches the monthly fee is 494. This compares dollars only. The plan's shared limit still applies.

For your own break-even count, divide the monthly fee by your measured API cost per task. If you have a monthly API total already, compare it directly below.

Use AI API pricing per million tokens to price the API side of the comparison for your model.

To measure the cost, ask Claude Code to review a representative diff in an API-key session, then check usage from the Claude Code prompt.

3. What changes the break-even point?

  • Your existing subscription. If you would pay for Claude anyway, compare the additional spend from moving this work. Counting the full plan fee again would overstate that amount.
  • Shared usage. Leave room for your other Claude work. A month can look affordable on paper and still have a busy week that requires extra usage. Check when your Claude Code usage limits reset. Claude plan pricing (as of ).
  • Cost per review. More output or a different model changes the rate at which reviews add up. Substitute observed cache reads and writes when you have them. If a long review needed a summary, see how compaction uses the prompt cache. Anthropic API rates (as of ).

4. Subscription and API FAQ

What if my API total equals the plan fee?

At that workload the two dollar amounts are equal. Check which tasks need an API key, whether you already pay for the plan and whether its shared limit fits your busiest period before moving any work.

Can I turn the break-even count into a plan quota?

The count is a price comparison for reviews of the stated size. Anthropic publishes relative allowances and leaves absolute usage limits unpublished. For a multi-turn coding session with caching, see the monthly Claude Code ledger. Claude plan pricing (as of ).

Next steps

Estimate your own usage

Use the free AI cost calculator

Estimate your monthly API total and use it in the plan comparison above.

Configure your Claude Code project

Run the repository reviewer in the Claude Code Complete Setup Pack ($12.95) on a few typical diffs. Use the average API cost per review to estimate your monthly total.