Blog · Generative AI ·
Claude API Pricing (2026): Every Model + Cost Calculator
By Khadim Hussain · 9 min read
In short
Claude API pricing is per million tokens (MTok), with separate input and output prices. Claude Opus 5.5 costs $4 per million input tokens and $20 per million output tokens, Sonnet 5.5 $2 and $10, Fable 5.2 $8 and $40, and Haiku 5.5 $0.10 and $0.50 for prompts up to 100,000 tokens. Reading a cached prompt costs 5% of the input price on Opus 5.5 and Sonnet 5.5, and the Batch API halves every price. These are Anthropic's published prices, checked on 25 November 2026; the calculator below turns them into a monthly bill for your workload.
Contents
- Claude API pricing per million tokens
- Other Claude models still on the API
- Claude API cost calculator
- How to calculate the cost of one Claude API request
- Worked examples: a chatbot, a RAG app and a coding agent
- Support chatbot on Claude Haiku 5.5
- RAG app on Claude Sonnet 5.5
- Coding agent on Claude Opus 5.5
- How prompt caching changes the Claude API bill
- How the Batch API changes the Claude API bill
- Other charges on a Claude API bill
- Claude token counter: count tokens before you pay
- Frequently asked questions
Claude API pricing is set per million tokens (MTok), with one price for input, a higher one for output, and two discounts on top: prompt caching and the Batch API. I checked every price on this page on 25 November 2026 against Anthropic's pricing documentation and claude.com/pricing, where anthropic.com/pricing now redirects, and the two pages listed the same prices for every model.
Claude API pricing per million tokens
These are the four current models in Anthropic's models overview. Cache read is what Anthropic's table calls "cache hits and refreshes", and the batch columns are the Batch API prices.
| Model | Input | Output | Cache write, 5 min | Cache write, 1 h | Cache read | Batch input | Batch output |
|---|---|---|---|---|---|---|---|
| Claude Fable 5.2 | $8 | $40 | $10 | $16 | $0.20 | $4 | $20 |
| Claude Opus 5.5 | $4 | $20 | $5 | $8 | $0.20 | $2 | $10 |
| Claude Sonnet 5.5 | $2 | $10 | $2.50 | $4 | $0.10 | $1 | $5 |
| Claude Haiku 5.5, prompts up to 100K tokens | $0.10 | $0.50 | $0.125 | $0.20 | $0.01 | $0.05 | $0.25 |
| Claude Haiku 5.5, prompts over 100K tokens | $0.50 | $2.50 | $0.625 | $1 | $0.05 | $0.25 | $1.25 |
US dollars per million tokens (MTok), from Anthropic docs: Pricing, checked .
A cache read costs 5% of the input price on Opus 5.5 and Sonnet 5.5, 2.5% on Fable 5.2, and 10% on Haiku 5.5. A cache write costs 1.25 times the input price for a cache that lives 5 minutes and 2 times for one that lives an hour.
Haiku 5.5 is the only model priced by prompt length. A request with more than 100,000 input tokens, counting cache reads and writes, pays the higher row for all of its tokens, output included. Every other Claude 4.6 or later model bills its full 1M-token context at one rate; in Anthropic's words, "a 900k-token request is billed at the same per-token rate as a 9k-token request."
Other Claude models still on the API
| Model | Input | Output | Cache write, 5 min | Cache write, 1 h | Cache read | Batch input | Batch output |
|---|---|---|---|---|---|---|---|
| Claude Mythos 5.2 (verified organizations only) | $8 | $40 | $10 | $16 | $0.20 | $4 | $20 |
| Claude Fable 5.1 | $10 | $50 | $12.50 | $20 | $0.25 | $5 | $25 |
| Claude Mythos 5.1 (verified organizations only) | $10 | $50 | $12.50 | $20 | $0.25 | $5 | $25 |
| Claude Fable 5 | $10 | $50 | $12.50 | $20 | $1 | $5 | $25 |
| Claude Mythos 5 (verified organizations only) | $10 | $50 | $12.50 | $20 | $1 | $5 | $25 |
| Claude Opus 5 | $5 | $25 | $6.25 | $10 | $0.50 | $2.50 | $12.50 |
| Claude Opus 4.8 | $5 | $25 | $6.25 | $10 | $0.50 | $2.50 | $12.50 |
| Claude Opus 4.7 | $5 | $25 | $6.25 | $10 | $0.50 | $2.50 | $12.50 |
| Claude Opus 4.6 | $5 | $25 | $6.25 | $10 | $0.50 | $2.50 | $12.50 |
| Claude Opus 4.5 (deprecated, retires 22 January 2027) | $5 | $25 | $6.25 | $10 | $0.50 | $2.50 | $12.50 |
| Claude Sonnet 5 | $2 | $10 | $2.50 | $4 | $0.20 | $1 | $5 |
| Claude Sonnet 4.6 | $3 | $15 | $3.75 | $6 | $0.30 | $1.50 | $7.50 |
| Claude Haiku 4.5 | $1 | $5 | $1.25 | $2 | $0.10 | $0.50 | $2.50 |
US dollars per million tokens (MTok), from Anthropic docs: Pricing, checked .
The Mythos models are available only to organizations verified through programs such as Anthropic's Cyber Verification Program. Sonnet 5's $2 and $10, announced at launch as an introductory price until 31 August 2026, is now its standard price, and the planned rise to $3 and $15 won't happen. Claude Sonnet 4.5 ($3 input, $15 output) is deprecated and retires on 30 November 2026, with Sonnet 5.5 as Anthropic's recommended replacement. Claude Opus 4.1, Opus 4 and Sonnet 4 are already retired on the Claude API.
Claude API cost calculator
Enter your own token counts. The calculator opens on the support chatbot from the first example below, and it counts a month as 30 days. Every model in the comparison gets the same token counts, so use it to see what a model switch would cost.
System prompt, tools, history and the new message.
Include thinking: it is billed as output.
The part of each prompt that repeats, such as a shared system prompt.
About 0 for one shared prompt under steady traffic; in agent loops, the new tokens of each turn.
A write costs 1.25x the input price for 5 minutes, 2x for 1 hour.
- Per request
- $0.00033
- Per day
- $6.60
- Per month (30 days)
- $198.00
One request: input $0.0001, cache reads $0.00003, cache writes $0, output $0.0002.
- Prompt caching saves $162.00 a month (45%); without it this costs $360.00.
- As a Batch API job the same work costs $99.00 a month, $99.00 less, if results can wait up to 24 hours.
Every model, same workload
| Model | Per request | Per month |
|---|---|---|
| Claude Haiku 5.5 | $0.00033 | $198.00 |
| Claude Haiku 4.5 | $0.0033 | $1,980.00 |
| Claude Sonnet 5.5 | $0.0063 | $3,780.00 |
| Claude Sonnet 5 | $0.0066 | $3,960.00 |
| Claude Sonnet 4.6 | $0.0099 | $5,940.00 |
| Claude Opus 5.5 | $0.0126 | $7,560.00 |
| Claude Opus 5 | $0.0165 | $9,900.00 |
| Claude Opus 4.8 | $0.0165 | $9,900.00 |
| Claude Opus 4.7 | $0.0165 | $9,900.00 |
| Claude Opus 4.6 | $0.0165 | $9,900.00 |
| Claude Opus 4.5deprecated, retires 22 January 2027 | $0.0165 | $9,900.00 |
| Claude Fable 5.2 | $0.0246 | $14,760.00 |
| Claude Mythos 5.2verified organizations only | $0.0246 | $14,760.00 |
| Claude Fable 5.1 | $0.0308 | $18,450.00 |
| Claude Mythos 5.1verified organizations only | $0.0308 | $18,450.00 |
| Claude Fable 5 | $0.033 | $19,800.00 |
| Claude Mythos 5verified organizations only | $0.033 | $19,800.00 |
Every model gets the same token counts. Claude 4.7 and later models make about 30% more tokens from the same text than Sonnet 4.6, Opus 4.6, Opus 4.5 and Haiku 4.5, so text you measured on one generation counts differently on the other.
Estimate tokens from text
Estimate: about 0 tokens on Claude 4.7 and later models, about 0 on older ones. It assumes 2.5 characters per token; Anthropic's free token counting endpoint gives the exact count.
Prices checked . The calculation runs in your browser; nothing you type here is sent anywhere.
The API reports the real numbers in the usage field of every response: input_tokens, output_tokens, cache_creation_input_tokens (cache writes) and cache_read_input_tokens. A day of those from your logs is a better input than any estimate.
How to calculate the cost of one Claude API request
Add four products and divide by a million:
cost = ( uncached input tokens × input price
+ cache read tokens × cache read price
+ cache write tokens × cache write price
+ output tokens × output price ) / 1,000,000With the Batch API every price in that sum is halved. Output includes thinking: Anthropic bills the tokens Claude spends reasoning as output tokens "even when the thinking text isn't returned to you", and on Opus 5.5 and Fable 5.2 thinking is always on. How much the model thinks is steered by the effort setting, which defaults to medium on Opus 5.5.
Worked examples: a chatbot, a RAG app and a coding agent
The three workloads are example sizes, not data from a client project.
Support chatbot on Claude Haiku 5.5
Each request sends a 3,000-token system prompt with the product documentation, the same for every user, plus 1,000 tokens of conversation, and gets 400 tokens back. There are 20,000 requests a day.
| Per request | Without caching | System prompt cached |
|---|---|---|
| Input | 4,000 × $0.10 / 1M = $0.0004 | 1,000 × $0.10 / 1M = $0.0001 |
| Cache reads | none | 3,000 × $0.01 / 1M = $0.00003 |
| Output | 400 × $0.50 / 1M = $0.0002 | $0.0002 |
| Total | $0.0006 | $0.00033 |
| Per day (20,000 requests) | $12 | $6.60 |
| Per month (30 days) | $360 | $198 |
Caching saves $162 a month, 45%. Spread over a day, 20,000 requests arrive about every 4.3 seconds, so the 5-minute cache stays warm and is rewritten only when traffic stops for longer than that. Each rewrite of the 3,000-token prompt costs $0.000375, too little to change the monthly figure.
RAG app on Claude Sonnet 5.5
A document question-answering app sends a 2,000-token system prompt, 7,800 tokens of retrieved document chunks and a 200-token question, 10,000 input tokens in all, and gets a 500-token answer. It answers 2,000 questions a day.
| Per question | Without caching | System prompt cached |
|---|---|---|
| Input | 10,000 × $2 / 1M = $0.02 | 8,000 × $2 / 1M = $0.016 |
| Cache reads | none | 2,000 × $0.10 / 1M = $0.0002 |
| Output | 500 × $10 / 1M = $0.005 | $0.005 |
| Total | $0.025 | $0.0212 |
| Per day (2,000 questions) | $50 | $42.40 |
| Per month (30 days) | $1,500 | $1,272 |
Caching saves only $228 a month, 15%, because the retrieved chunks change with every question and only the system prompt repeats. The cache matches a prompt from its start (tools, then system, then messages), so the part that repeats has to come first. Here the model choice moves the bill far more: the same workload costs $64.20 a month on Haiku 5.5 and $2,544 on Opus 5.5. Whether Haiku 5.5 answers well enough from your documents is worth testing before you pay for a bigger model.
Coding agent on Claude Opus 5.5
An agent makes 30 model calls per task and runs 50 tasks a day, 1,500 calls. The average call sends 40,000 input tokens: 36,000 are earlier turns already in the cache, and 4,000 are new (the last tool result and the agent's previous reply), which are written to the 5-minute cache for the next call. Each call returns 1,500 output tokens, thinking included.
| Per call | Without caching | Earlier turns cached |
|---|---|---|
| Input | 40,000 × $4 / 1M = $0.16 | none |
| Cache reads | none | 36,000 × $0.20 / 1M = $0.0072 |
| Cache writes | none | 4,000 × $5 / 1M = $0.02 |
| Output | 1,500 × $20 / 1M = $0.03 | $0.03 |
| Total | $0.19 | $0.0572 |
| Per task (30 calls) | $5.70 | $1.72 |
| Per day (50 tasks) | $285 | $85.80 |
| Per month (30 days) | $8,550 | $2,574 |
Caching cuts the bill by $5,976 a month, 70%. With caching on, output is the biggest line, $0.03 of the $0.0572, and part of that is thinking. The 1-hour cache would cost more here ($3,114 a month), since its writes cost 2 times the input price instead of 1.25 times and the next call comes well within 5 minutes.
How prompt caching changes the Claude API bill
Prompt caching stores the start of a prompt so that later requests with the same start read it at a fraction of the input price. The rules that decide what you pay, from Anthropic's prompt caching guide:
- A 5-minute cache write pays for itself after one read, a 1-hour write after two.
- The 5-minute lifetime restarts for free every time the cached prefix is read. It counts from the start of the request, so a response that streams for 4 minutes leaves about 1 minute for the next request to hit the cache.
- If a prefix is reused less often than every 5 minutes, each request writes it again at 1.25 times the input price, which costs more than no caching. Anthropic suggests the 1-hour cache for prompts used less often than every 5 minutes but more often than every hour.
- Short prompts aren't cached at all, and you get no error. The minimum is 512 tokens on Fable 5.2, Opus 5.5, Sonnet 5.5 and Haiku 5.5, 1,024 on Opus 4.8, Sonnet 5 and Sonnet 4.6, 2,048 on Opus 4.7, and 4,096 on Opus 4.6, Opus 4.5 and Haiku 4.5.
- A new cache entry becomes available only after the first response starts, so requests sent in parallel before that all miss.
To check that caching works, read cache_read_input_tokens in the response's usage. If it and cache_creation_input_tokens are both 0 on repeated requests, nothing was cached.
How the Batch API changes the Claude API bill
The Message Batches API takes many requests at once and processes them asynchronously at 50% off input and output on every model. Anthropic says most batches finish within an hour; results come when every request is done or after 24 hours, and requests not processed within 24 hours expire. It suits work nobody is waiting for, such as classifying or summarizing a backlog overnight.
Take 100,000 documents of 3,000 input tokens each, with a 300-token summary per document. On Sonnet 5.5 that costs $900 as live requests and $450 as a batch. On Haiku 5.5 as a batch it costs $22.50.
Batch and caching discounts stack, but in a batch, cache hits are best effort: Anthropic reports hit rates from 30 to 98 percent depending on traffic patterns, and suggests the 1-hour cache for shared context because a batch can take longer than 5 minutes. Fast mode isn't available for batches.
Other charges on a Claude API bill
| Charge | Price | Applies to |
|---|---|---|
US-only inference (inference_geo: "us") | 1.1 times every token price | Claude 4.6 and later models |
| Fast mode | $8 input, $40 output per MTok on Opus 5.5; $16 and $80 on Fable 5.2 | Requests in fast mode, for up to 2.5 times faster output; not available for batches |
| Tool use system prompt | 286 extra input tokens on Opus 5.5, Sonnet 5.5 and Haiku 5.5 | Any request with tools, plus the tool definitions themselves |
| Web search | $10 per 1,000 searches, plus the result tokens | The web search tool |
| Web fetch | No extra charge beyond the fetched tokens | The web fetch tool |
| Managed Agents session runtime | $0.08 per session-hour while running | Claude Managed Agents, on top of tokens |
Two more things change a bill without changing a price. Claude 4.7 and later models use a tokenizer that makes about 30% more tokens from the same text than Sonnet 4.6 and older models, so recount your prompts when you move up from an older model. And on Amazon Bedrock and Claude Models on Google Cloud (Google managed), the cloud provider sets the price; Anthropic's page links to their price lists.
Claude token counter: count tokens before you pay
Anthropic's token counting endpoint returns the input token count of a request without running it. Anthropic says it is free to use, with rate limits separate from message creation, and that the count is an estimate that can differ slightly from the real request. This is the Python example from Anthropic's documentation:
import anthropic
client = anthropic.Anthropic()
response = client.messages.count_tokens(
model="claude-opus-5-5",
system="You are a scientist",
messages=[{"role": "user", "content": "Hello, Claude"}],
)
print(response.json())Anthropic's documentation shows { "input_tokens": 14 } as the response for that request. Count with the model you plan to use, because the tokenizer changed with Claude 4.7. Without the API, Anthropic's own rule of thumb is that 1M tokens hold roughly 2.5 million characters or 555,000 words on the current tokenizer; the estimator inside the calculator above uses the same 2.5 characters per token.
If you are planning an agent or a RAG system on the Claude API and want the model choice and the caching layout checked before it runs up a bill, that is part of my Claude Code and AI agent consulting. When one narrow, high-volume task is the expensive part, a smaller open model tuned for that task can be an alternative to measure, which is what my LLM fine-tuning service covers.
Next
Related
Claude Code consultant: AI agents, MCP servers and RAG
Claude Code and AI agent consultant: I scope, build and test agents that work with your tools and data, using MCP servers, RAG, Claude Code skills and n8n.
AI Agents · · 13 min read
Claude Code on Windows: install it, fix 'claude' is not recognized, and use it with no coding
Install Claude Code on Windows with one PowerShell command, fix 'claude' is not recognized with two PATH lines, sign in, and run two tasks with no coding.
Unsloth and QLoRA fine-tuning consultant for open LLMs
LLM fine-tuning consultant: I fine-tune open models with Unsloth and QLoRA, test them against a baseline, and ship them for Ollama, vLLM or Transformers.
Frequently asked questions
How much does the Claude API cost per million tokens?
Claude Opus 5.5 costs $4 per million input tokens and $20 per million output tokens, Claude Sonnet 5.5 $2 and $10, and Claude Fable 5.2 $8 and $40. Claude Haiku 5.5 costs $0.10 and $0.50 when the prompt is up to 100,000 tokens, and $0.50 and $2.50 above that. These are Anthropic's prices as of 25 November 2026; the tables on this page list every other model still on the API.
How much does the Claude API cost per token?
Divide the per-million price by 1,000,000. On Claude Opus 5.5 one input token costs $0.000004 and one output token $0.00002; on Claude Haiku 5.5 an input token costs $0.0000001 for prompts up to 100,000 tokens. Anthropic bills the sum over each month's usage, so the per-million figure is the one to plan with.
Where is Anthropic's official Claude API pricing?
On the pricing page of Anthropic's API documentation, platform.claude.com/docs/en/about-claude/pricing, which has every model, the cache and batch prices and the feature charges. anthropic.com/pricing redirects to claude.com/pricing, which shows the API prices next to the Claude subscription plans. On 25 November 2026 the two pages listed the same prices for every model.
Is the Claude API free?
No, it is pay as you go per token. Anthropic's pricing documentation says new users receive free credits to test the API. Claude Max and Ultra subscriptions also include a monthly API credit for the Claude Platform, $100 on Max and $200 on Ultra, according to claude.com/pricing.
Are thinking tokens billed on the Claude API?
Yes, as output tokens at the model's output price, even when the thinking text isn't returned to you. On Claude Opus 5.5 and Fable 5.2 thinking is always on, and the effort setting steers how much the model thinks, so count thinking in your output estimate.
Does a longer prompt cost more per token on Claude?
Only on Claude Haiku 5.5. A Haiku 5.5 request whose prompt is over 100,000 tokens, counting cache reads and writes, pays $0.50 per million input tokens and $2.50 per million output tokens for the whole request. Claude 4.6 and later models other than Haiku 5.5 bill their full 1M-token context window at the standard price.
How do I count tokens for the Claude API?
Send the request to the token counting endpoint, POST /v1/messages/count_tokens, with the model you plan to use. Anthropic says it is free to use, with its own rate limits, and the count is an estimate that can differ slightly from the real request. For a quick guess without the API, the current tokenizer makes about one token per 2.5 characters.
Want a second pair of eyes on this?
Book a 15-minute intro call. Bring the problem, and you leave with a concrete next step.