Skip to main content
Claude Code costs USD 20 a month with Claude Pro, USD 100 with Max, and USD 200 with Ultra. On the Claude API you pay per token instead: Claude Fable 5.2 costs USD 8 per 1M input tokens and USD 40 per 1M output tokens, and Claude Opus 5.5 USD 4 and USD 20. Anthropic reports that across enterprise deployments, Claude Code averages about USD 13 per developer per active day and USD 150 to USD 250 per developer per month. Capriole AI Premium costs USD 9 a month for unlimited web chat with GPT-6.2 Astra, Claude Fable 5.2, Claude Opus 5.5, and Gemini 4 Carbon, and its API runs Claude Code at up to 90% below official API prices. Premium includes 5M API tokens a month, and more cost USD 8 per 5M on any Claude model. In the example month below, Claude Code costs USD 378 on Fable 5.2 at Anthropic’s list prices and USD 81 on Capriole AI, Premium included.

How much does Claude Code cost per month?

Anthropic offers Claude Code on its paid Claude plans and through API billing. Claude Free does not include Claude Code. Claude Code also runs on Amazon Bedrock, Google Cloud’s Agent Platform, and Microsoft Foundry, where your cloud account is billed per token.

Claude Code subscription vs API

A Claude plan gives Claude Code a fixed monthly price and usage limits. The API bills every token. These rules decide what you pay on each:
  • Shared limits. On Pro, Max, and Ultra, everything you do in Claude and Claude Code counts against the same limits. Claude usage limits explained covers how the five-hour and weekly limits reset.
  • Past the limit. Usage credits keep Claude Code working, billed at standard API rates.
  • API credits on Max and Ultra. Max includes USD 100 a month in API credits and Ultra USD 200. Anthropic says they don’t apply to interactive Claude Code in the terminal, IDE, desktop, or web, or to usage beyond the plan’s limits. Unused credits expire at the end of each billing cycle.
  • Which billing Claude Code uses. When the ANTHROPIC_API_KEY environment variable is set, Claude Code authenticates with that key instead of your subscription, and the usage is billed to the API.
  • Starting on the API. The Claude API has no free tier. The minimum credit purchase is USD 5.
To replace the plan for chat as well, see a cheaper alternative to Claude Pro and Max.

Claude Code API prices per 1M tokens

Claude Code sends four kinds of tokens: uncached input, prompt-cache writes, prompt-cache reads, and output. Anthropic prices each one separately. Capriole AI counts them as charged tokens at one rate. Capriole’s column is USD 8 per 5M charged tokens. Cache writes count as normal input and cache reads at 10%, as charged tokens explained shows. Fable models and Opus 5.5 always use extended thinking in Claude Code, and thinking tokens are billed as output. On output, Fable 5.2’s USD 40 per 1M becomes USD 1.60, 96% less. At standard input and output rates, with three input tokens for every output token, 5M tokens cost USD 80 on Fable 5.2 and USD 8 on Capriole AI, 90% less. Claude API pricing covers batch, fast mode, and US-only inference rates.

What a developer spends on Claude Code

Anthropic’s Claude Code cost guide says Claude Code charges by API token consumption, and that the cost per developer depends on the model, the size of the codebase, and habits such as running several instances or automation. Across enterprise deployments, Anthropic reports an average of about USD 13 per developer per active day and USD 150 to USD 250 per developer per month, with 90% of users below USD 30 per active day. To see your own numbers, run /usage in Claude Code. With API billing, its Session block shows an estimated cost at list price and the input, output, cache read, and cache write tokens for each model. Pro, Max, and Ultra subscribers see plan usage bars there instead.

Worked example: a month of Claude Code

Claude Code re-sends the whole conversation with every request and reads most of it from the prompt cache. In the sample session on Anthropic’s cost guide, cache reads make up about 94% of the tokens. This example keeps that shape for one developer’s month. Cache writes use the five-minute rate, which Claude Code uses by default with an API key. At Anthropic’s list prices, the month costs USD 378 on Fable 5.2 and USD 219 on Opus 5.5; the Opus figure sits inside the USD 150 to USD 250 a month Anthropic reports for enterprise deployments. On Capriole AI, the 50M charged tokens cost the same on either model. Premium’s USD 9 includes 5M, and nine 5M top-ups at USD 8 cover the other 45M. The month costs USD 81 in all, unlimited web chat included. Buy the nine packs in one purchase and the 12% multi-pack discount brings it to USD 72.36, 81% less than Fable 5.2.

Price your own month

Copy the four token counts from the /usage Session block, or your monthly totals, into these formulas:
Premium’s 5M monthly tokens come off the charged total before any top-up.

Run Claude Code on Capriole AI

  1. Subscribe to Premium and create an API key on the API page.
  2. In ~/.claude/settings.json, set ANTHROPIC_BASE_URL to https://api.caprioletech.com, ANTHROPIC_AUTH_TOKEN to your key, and model to claude-fable-5-2 or claude-opus-5-5.
  3. Run claude in your project, and switch models with /model.
The Claude Code setup guide has the full settings file, including the pins that make /model opus select Opus 5.5, and fixes for common errors. Each request then appears in the usage table on the API page, with its input, cached, and charged tokens.

Ways to spend less on Claude Code

Anthropic’s cost guide and prompt-caching guide recommend these habits:
  • Clear between tasks. /clear starts fresh, so old context isn’t sent with every request.
  • Keep one model per session. Each model has its own cache, so a mid-session switch re-reads the whole conversation uncached.
  • Match effort to the task. Lower the effort level with /effort for simple work, because thinking tokens are billed as output.
  • Compact at natural breaks. Run /compact between tasks rather than letting compaction start mid-task.
  • Keep CLAUDE.md short. It loads into every session; move workflow instructions into skills, which load when used.
  • Give subagents a smaller model for simple jobs.
Anthropic’s model overview suggests starting most work on Opus 5.5 rather than Fable 5.2, and on its API, Opus 5.5 costs half as much for input, output, and cache writes; which Claude model to use when compares the two. On Capriole AI, a warm cache also keeps your charge low, because cache reads count at 10%.

What USD 9 a month includes

  • Unlimited web chat with GPT-6.2 Astra, Claude Fable 5.2, Claude Opus 5.5, Gemini 4 Carbon, and every other supported model.
  • 5M API tokens a month for Claude Code and your other coding agents.
  • More API tokens at USD 8 per 5M, with multi-pack discounts up to 15%.
  • One key for 10 documented coding agents, including Codex and OpenCode.
  • Free image generation (GPT Image 2.6, Nano Banana 2.1, and Seedream 5.5), files and web search, side-by-side model comparison, and projects.
An API key comes with Premium or Team. Team costs USD 70 a month for 5 seats and 50M shared API tokens.

Frequently asked questions

What is the cheapest way to use Claude Code?

Use fewer tokens, and pay less for each one. Clear context between tasks, keep one model per session, and lower the effort for simple work. Then run Claude Code on Capriole AI’s API: USD 8 per 5M charged tokens on Claude Fable 5.2 or Opus 5.5, up to 90% below Anthropic’s API prices, with 5M tokens a month included in the USD 9 Premium plan.

Is Claude Code cheaper with a subscription or the API?

It depends on how many tokens you use. A Claude plan has a fixed price and usage limits, and the API charges for every token. Take your token counts from /usage and price them with the formulas above. The example month costs USD 378 on Fable 5.2 through Anthropic’s API and USD 81 on Capriole AI.

Is Claude Code included in Claude Pro?

Yes. Pro includes Claude Code within the same five-hour and weekly limits as Claude chat. Fable models on Pro are paid with usage credits at standard API rates.

Do Max and Ultra API credits pay for Claude Code?

Not for interactive sessions. Anthropic says the monthly API credits don’t apply to interactive Claude Code in the terminal, IDE, desktop, or web, or to usage beyond the plan’s limits.

Can I use Claude Code with a Capriole AI key?

Yes. Set ANTHROPIC_BASE_URL to https://api.caprioletech.com and ANTHROPIC_AUTH_TOKEN to your Capriole key. The Claude Code setup has the full configuration.

How do I check what Claude Code costs me?

Run /usage in Claude Code for the session’s tokens and its estimated cost at list price. On Capriole AI, the usage table on the API page shows the input, cached, and charged tokens of each request.

Start with Capriole AI

Start chatting free with no account, or get an API key with Premium and point Claude Code at it. Capriole AI is an independent workspace, not affiliated with Anthropic.

Official sources

We checked these pages on December 4, 2026. Capriole AI plan, top-up, and charged-token facts on this page are maintained as first-party documentation.
Last modified on December 4, 2026