Claude API pricing per million tokens (2026), every model
Claude API prices per million input and output tokens for Fable 5.1, Opus 5.5, Sonnet 5.5 and Haiku 5.5, plus prompt caching read/write, batch, tools and Managed Agents, worked cost examples and how to cut the bill.
Claude API pricing looks simple: a price per million tokens in, a price per million tokens out. What makes bills hard to predict is everything around it: which model, how much context each request carries, whether it is cached, and which tools the model calls along the way.
This guide lists the current prices, explains the modifiers that change them, works through two realistic examples, and ends with the levers that actually move a company's bill. Prices are from Anthropic's pricing page as of October 2026, in US dollars. They change, so check the source before you budget.
Claude API prices per model
Prices are per million tokens (MTok). As a rough guide, a million tokens is about 750,000 English words.
| Model | Input | Output | Cache read | Typical use |
|---|---|---|---|---|
| Claude Fable 5.1 | $10 | $50 | $0.25 | The most capable model, hardest problems |
| Claude Opus 5.5 | $4 | $20 | $0.20 | Complex reasoning, coding, agents |
| Claude Opus 5 | $5 | $25 | $0.50 | Previous Opus generation |
| Claude Sonnet 5.5 | $2 | $10 | $0.20 | The default for most production workloads |
| Claude Sonnet 5 | $2 | $10 | $0.20 | Previous Sonnet generation |
| Claude Sonnet 4.6 | $3 | $15 | $0.30 | Older Sonnet, still widely deployed |
| Claude Haiku 5.5 | $0.10 | $0.50 | see note | High-volume, simple tasks: classification, routing, extraction, subagents |
| Claude Haiku 4.5 | $1 | $5 | $0.10 | Previous Haiku generation, 200K context |
Haiku 5.5's prices apply to prompts up to 100K tokens; longer prompts cost $0.50 input / $2.50 output. Check Anthropic's pricing page for its cache-read rate.
Three things in this table are easy to miss:
- Output costs five times input on every current model. A task that writes long answers costs far more than one that reads a lot and answers briefly.
- Newer is not always pricier. Opus 5.5 is cheaper per token than Opus 5, and Sonnet 5's $2/$10 introductory price became its standard price instead of rising to $3/$15.
- Tokens are not words. Claude 4.7 and later models use a newer tokenizer that produces roughly 30% more tokens for the same text. Comparing per-token prices across model generations understates that difference.
Claude 4.6 and later models include the full 1M-token context window at standard prices: a 900k-token request costs the same per token as a 9k-token one. It is still 900k tokens, so long context is a capability, not a discount.
What changes the price
Prompt caching
Most requests repeat a large prefix: the system prompt, tool definitions, a document, the conversation so far. Prompt caching stores that prefix so the next request reads it instead of reprocessing it.
| Cache operation | Price relative to input |
|---|---|
| 5-minute cache write | 1.25x |
| 1-hour cache write | 2x |
| Cache read | 0.1x (0.05x on Opus 5.5, 0.025x on Fable 5.1) |
A 5-minute cache pays for itself after a single read. On most models cached tokens also do not count toward your input rate limit, so caching raises throughput as well as cutting cost. For anything with a stable system prompt or repeated documents, it is the single biggest lever.
Batch processing: 50% off
The Message Batches API processes requests asynchronously at half price for both input and output. It suits anything that does not need an answer in seconds: nightly classification, document processing, evaluations, backfills. Batch and caching discounts stack.
Tools
- Web search: $10 per 1,000 searches, plus the tokens of the results the model reads.
- Web fetch: no extra charge, only the tokens of the fetched content. Set
max_content_tokensso one large page does not blow up a request. - Code execution: 1,550 free container-hours per organisation per month, then $0.05 per hour; free when used together with the current web search or web fetch tools.
- Tool definitions add a few hundred input tokens per request for the tool-use system prompt, plus your tool schemas. With dozens of tools or a browser toolset (about 6,600 tokens) this becomes noticeable on every call.
Claude Managed Agents
Anthropic's hosted agent harness bills normal token prices plus $0.08 per session-hour while the session is actually running (idle time waiting for input or approval is free). See Claude Managed Agents for the full picture.
Data residency and fast mode
- US-only inference (
inference_geo: "us") costs 1.1x on all token categories for Claude 4.6 and later. Global routing is standard price. - Fast mode (research preview) for Opus 5.5 costs $8 / $40 per MTok, double the standard rate, for significantly faster output.
Two worked examples
Anthropic's own example: a one-hour agent session on Opus 5 with 50,000 input and 15,000 output tokens costs $0.25 + $0.375 = $0.625 in tokens, plus $0.08 runtime on Managed Agents. With 40,000 of the input tokens read from cache, the token cost falls to about $0.45.
An internal assistant on Sonnet 5.5, our own illustration: 1,000 requests a day, each with 6,000 tokens of system prompt and reference material that is cached, 2,000 tokens of fresh input, and a 500-token answer.
| Line item | Calculation | Per day |
|---|---|---|
| Fresh input | 2M tokens × $2 / MTok | $4.00 |
| Cache reads | 6M tokens × $0.20 / MTok | $1.20 |
| Output | 0.5M tokens × $10 / MTok | $5.00 |
| Total | ≈ $10.20 |
That is roughly $300 a month (cache writes add a little on top). Without caching, the 6M tokens of repeated context would cost $12 a day instead of $1.20, roughly doubling the bill. On Haiku 5.5 the same workload would cost roughly a twentieth; on Opus 5.5 about double.
The pattern holds generally: output and uncached context drive the bill, not the request count.
Spend caps and billing
API usage is billed separately from Claude.ai subscriptions, normally through prepaid credits in the Claude Console. Organisations sit on a usage tier, and each tier has a monthly spend cap:
| Usage tier | Monthly spend cap |
|---|---|
| Start | $500 |
| Build | $1,000 |
| Scale | $200,000 |
When you hit the cap, requests fail with a 429 error until the first of the next month or until you move up a tier. You can set your own lower limit on the Billing page, and per-workspace spend and rate limits so one team or one runaway script cannot use up everyone's budget. Rate limits (requests and tokens per minute) also depend on the tier.
Claude API pricing through AWS, Google Cloud and Azure
Claude is also sold through Amazon Bedrock, Google Cloud, Claude Platform on AWS and Microsoft Foundry. Each bills through the cloud provider:
- Bedrock and Google Cloud price Claude themselves. For Claude 4.5 and later models, regional and multi-region endpoints cost 10% more than global ones. This is the route most European companies use to keep inference in an EU region.
- Claude Platform on AWS and Microsoft Foundry are operated by Anthropic and use the same per-token rates as the first-party API, billed in Claude Consumption Units ($0.01 each) through the marketplace.
Batch processing and some features differ by platform, so check the provider's own pricing page before you commit.
How to keep a company's Claude API bill under control
Individual developers optimise prompts. Companies need structure, because the spend is spread across teams, tools and agents nobody has a full view of.
- Route by task, not by habit. Many requests that go to Opus by default would be just as good on Sonnet or Haiku. A small evaluation set per use case tells you which.
- Cache by design. Put stable content (instructions, tool definitions, reference documents) first in the prompt and the changing part last, so the prefix can be cached.
- Batch what can wait. Anything overnight or bulk goes through the Batch API.
- Cap the context. Limit how much retrieved text, tool output and conversation history goes into each request. Agents that read whole files or web pages are the usual surprise on the bill.
- Budget per team. Separate workspaces with their own spend limits, so cost is attributable and contained.
- Watch it weekly. Use the Console's Usage page, or the Usage and Cost API, rather than discovering the trend on the invoice.
Doing that across Claude Code, internal assistants and agents, and across more than one model vendor, is what a gateway is for. Walma AI Hub enforces budgets and model policy per team, forecasts cost per model to month end, and logs every call, running in the customer's own Azure tenant in an EU region. There is a cost calculator on the home page, and the Claude Code pricing guide covers the subscription side of the same question.
Where to go next
- Claude API key: creating keys, key types and team key management.
- Claude Code pricing: subscriptions vs API for developers.
- Claude Managed Agents: what hosted agent sessions cost.
Frequently asked questions
How much does the Claude API cost?+
You pay per million tokens (MTok), with separate prices for input and output. At the time of writing Claude Haiku 5.5 costs $0.10 input / $0.50 output per MTok (for prompts up to 100K tokens), Claude Sonnet 5.5 $2 / $10, Claude Opus 5.5 $4 / $20 and Claude Fable 5.1 $10 / $50. Prompt caching, batch processing and data residency change the effective price; check Anthropic's pricing page for current numbers.
Is the Claude API free?+
No. New Console accounts get a small amount of free credit for testing, but usage is billed per token, normally through prepaid credits. A Claude Pro, Max, Team or Enterprise subscription does not include API usage.
What is the cheapest way to use the Claude API?+
Use the smallest model that does the job well (often Haiku or Sonnet), cache the repeated parts of your prompts (cache reads cost a tenth of the input price on most models), send non-urgent work through the Batch API for a 50% discount, and keep tool results and retrieved documents short. Together these often cut a bill by more than half.
Is the Claude API cheaper than a Claude subscription?+
It depends on volume. For occasional use, pay-per-token is usually cheaper. For a developer using Claude Code heavily every day, a Max subscription is often cheaper than the same usage on the API. Automation, CI and products you build for others need the API regardless.
Does Claude API pricing differ in the EU?+
The first-party Claude API offers global routing at standard prices or US-only inference at 1.1x; there is no EU-only option there. Through Amazon Bedrock or Google Cloud you can use regional endpoints in EU regions, which carry a 10% premium over global endpoints for Claude 4.5 and later models.
The same tools, in your EU region, under your control
A 20-minute walkthrough with an engineer. We map it to your tools, your MCP servers and your budget model.