Claude API pricing: every model, token rate and discount
What each Claude model costs per million tokens, what caching, batch, fast mode and tools add or save, and how to estimate your monthly bill.
Last updated
The Claude API has no monthly fee: you pay per million tokens (MTok), and the price depends on the model. As of November 30, 2026, Claude Fable 5.2 costs $8 input and $40 output per MTok, Claude Opus 5.5 costs $4 and $20, Claude Sonnet 5.5 costs $2 and $10, and Claude Haiku 5.5 starts at $0.10 and $0.50. Prompt caching cuts repeated input to a fraction of that, and the Batch API halves everything if you can wait for the answer.
Every figure on this page comes from Anthropic's own pricing, models and rate limit docs, checked on November 30, 2026 (links at the end). All prices are in USD, before tax. Anthropic changes prices and adds models often, so if you are reading this months later, check Anthropic's pricing docs before you budget.
If you want the subscription side (Pro, Max, Ultra and what Claude Code costs on each), that is on our Claude Code pricing page.
Anthropic Claude API pricing for every current model
These are the four models Anthropic lists as its latest, with every token price the API charges. Prices per million tokens, as of November 30, 2026.
| Model | API ID | Input | Output | 5-minute cache write | 1-hour cache write | Cache read (hit) |
|---|---|---|---|---|---|---|
| Claude Fable 5.2 | claude-fable-5-2 |
$8 | $40 | $10 | $16 | $0.20 |
| Claude Opus 5.5 | claude-opus-5-5 |
$4 | $20 | $5 | $8 | $0.20 |
| Claude Sonnet 5.5 | claude-sonnet-5-5 |
$2 | $10 | $2.50 | $4 | $0.10 |
| Claude Haiku 5.5, prompts up to 100,000 tokens | claude-haiku-5-5 |
$0.10 | $0.50 | $0.125 | $0.20 | $0.01 |
| Claude Haiku 5.5, prompts over 100,000 tokens | claude-haiku-5-5 |
$0.50 | $2.50 | $0.625 | $1 | $0.05 |
What each model is for, in Anthropic's words from its models overview:
- Fable 5.2: "For demanding reasoning and long-horizon agentic work."
- Opus 5.5: "For long-running agentic coding and knowledge work." Anthropic says: "If you're unsure which model to use, start with Claude Opus 5.5 for most workloads."
- Sonnet 5.5: "The best combination of speed and intelligence."
- Haiku 5.5: "For high-volume, latency-sensitive tasks such as classification, extraction, and routing."
All four have a 1M token context window and up to 128K output tokens per request. Anthropic also lists a Claude Mythos line (Mythos 5.2 at the same prices as Fable 5.2), but it is "limited availability," open only to organizations verified through programs such as Anthropic's Cyber Verification Program.
Claude Opus API pricing
Opus 5.5 is $4 input and $20 output per MTok, which is cheaper than the Opus models before it: Opus 5, 4.8, 4.7, 4.6 and 4.5 all cost $5 and $25. Its cache reads are priced at 0.05x the input price ($0.20), half the usual ratio. If you are still on an older Opus, moving to 5.5 lowers the per-token price, though see the tokenizer note below before you compare bills.
Claude Haiku API pricing
Haiku 5.5 is the only current model whose price depends on prompt length. Anthropic's rule: "a request whose prompt is over 100,000 tokens pays higher prices," and the prompt length "counts all of its input tokens, including cache reads and cache writes." The higher price applies to the whole request, input and output, not only the tokens past 100,000. Haiku 4.5 is still available at a flat $1 input and $5 output.
Older Claude models still on the API
Searches for older versions are common, so here are their list prices per MTok as of November 30, 2026. Cache reads on these are 0.1x the input price, except on Fable 5.1 (0.025x).
| Model | Input | Output | 5-minute cache write | Cache read |
|---|---|---|---|---|
| Claude Fable 5.1 | $10 | $50 | $12.50 | $0.25 |
| Claude Fable 5 | $10 | $50 | $12.50 | $1 |
| Claude Opus 5 | $5 | $25 | $6.25 | $0.50 |
| Claude Opus 4.8, 4.7, 4.6 and 4.5 | $5 | $25 | $6.25 | $0.50 |
| Claude Sonnet 5 | $2 | $10 | $2.50 | $0.20 |
| Claude Sonnet 4.6 and 4.5 | $3 | $15 | $3.75 | $0.30 |
| Claude Haiku 4.5 | $1 | $5 | $1.25 | $0.10 |
Sonnet 5's $2 and $10 was announced as introductory pricing; Anthropic now says it "is now the standard price" and the planned move to $3 and $15 on September 1, 2026 "will not occur." Opus 4.1, Opus 4 and Sonnet 4 are retired on Anthropic's API, though some cloud platforms still serve them. Anthropic's rate limit docs also mark Opus 4.5 and Sonnet 4.5 as deprecated on the Claude API.
How Claude API token pricing works
A token is a piece of text. You are billed for three kinds of tokens on every request:
- Input tokens: everything you send, including the system prompt, the conversation history, documents, images and tool definitions.
- Output tokens: everything the model writes back.
- Cache tokens: if you use prompt caching, writing a prompt prefix to the cache and reading it back are billed at their own rates (the cache columns above).
Four details change real bills more than people expect:
- Thinking is billed as output. Anthropic's thinking docs: "the tokens Claude spends reasoning are billed as output tokens, even when the thinking text isn't returned to you." Thinking is on by default on the current models. Fable 5.2 and Opus 5.5 reject requests to turn it off, Sonnet 5.5 rejects the plain
disabledsetting (its lowest setting,between_tools, only turns off up-front thinking), and Haiku 5.5 acceptsdisabledat high effort or below. If you hide the thinking summary, "you're still charged for the full thinking tokens." - The newer tokenizer makes more tokens. Claude 4.7 and later models use a tokenizer that "produces approximately 30% more tokens for the same text." So moving from Sonnet 4.6 to Sonnet 5.5 lowers the price per token but raises the token count; count your own prompts on the new model before you compare.
- Tools add input tokens. Any request with tools gets an automatic tool use system prompt (286 tokens on Opus 5.5 and Sonnet 5.5), plus the tool names, descriptions and schemas you send. If you connect tools through MCP, their definitions are input tokens too.
- Long context is not a surcharge, except on Haiku 5.5. Claude 4.6 and later models get the full 1M context "at standard pricing," and Anthropic's example is plain: "A 900k-token request is billed at the same per-token rate as a 9k-token request." Haiku 5.5 is the exception, with its 100,000-token threshold.
Counting tokens before you send is free. The /v1/messages/count_tokens endpoint returns the input token count for a request; Anthropic calls the result "an estimate" that can differ "by a small amount."
What batch, fast mode, regional inference and tools cost
These are the modifiers that sit on top of the base prices, as of November 30, 2026.
| Option | What it does to the price | Notes from Anthropic's docs |
|---|---|---|
| Batch API | 50% off input and output | Most batches finish "within 1 hour"; results arrive after all requests finish or 24 hours. Not available with fast mode. |
| Prompt caching, 5-minute write | 1.25x input price | Pays off "after one cache read" |
| Prompt caching, 1-hour write | 2x input price | Pays off "after two cache reads" |
| Cache read | 0.1x input on most models; 0.05x on Opus 5.5 and Sonnet 5.5; 0.025x on Fable 5.2 | Each hit also refreshes the cache "for no additional cost" |
| Fast mode | Opus 5.5: $8 input, $40 output. Fable 5.2: $16 input, $80 output | "Up to 2.5x higher output tokens per second." Caching and data residency multipliers apply on top. |
US-only inference (inference_geo: "us") |
1.1x on all token prices | Claude 4.6 and later models; the default global routing is standard price |
| Web search | $10 per 1,000 searches, plus tokens | Search results count as input tokens; failed searches aren't billed |
| Web fetch | No extra charge | You pay for the fetched content as input tokens |
| Code execution | Free with web search or web fetch (web_search_20260209 or web_fetch_20260209 or later) |
Otherwise 1,550 free hours per organization per month, then $0.05 per hour per container, 5-minute minimum |
| Claude Managed Agents | Tokens at normal rates, plus $0.08 per session-hour of running time | No batch discount for sessions |
Batch with fast mode is the one combination that is not allowed. Everything else stacks: Anthropic says the caching multipliers "stack with other pricing modifiers, including the Batch API discount and data residency."
Batch prices per MTok for the current models, so you don't have to halve them yourself: Fable 5.2 $4 and $20, Opus 5.5 $2 and $10, Sonnet 5.5 $1 and $5, Haiku 5.5 $0.05 and $0.25 (up to 100,000 tokens) or $0.25 and $1.25 (over).
If you use Claude through Amazon Bedrock or Google Cloud (Google managed), those platforms set their own prices, and their regional endpoints "include a 10 percent premium over global endpoints." Check their price lists rather than this table.
How much does Claude API cost? Worked examples
These use only the list prices above. Real traffic varies, so treat them as a way to set up the arithmetic for your own case. "M" means million tokens.
A support chatbot on Sonnet 5.5
Say each request sends a 3,000-token system prompt (instructions and product docs), 1,000 tokens of history and question, and gets 500 output tokens back (thinking included). You handle 100,000 requests a month.
Without caching:
- Input: 4,000 × 100,000 = 400M tokens × $2 = $800
- Output: 500 × 100,000 = 50M tokens × $10 = $500
- Total: $1,300 a month
With the 3,000-token system prompt cached and the cache staying warm:
- Cache reads: 3,000 × 100,000 = 300M × $0.10 = $30
- Uncached input: 1,000 × 100,000 = 100M × $2 = $200
- Output: $500, unchanged
- Cache writes when the cache goes cold, say 1,000 times: 3M × $2.50 = $7.50
- Total: about $737.50 a month, 43% less
Output did not change, and at this mix it is the largest line. That is the usual pattern: caching shrinks input, and only a shorter answer or a cheaper model shrinks output.
Classifying a million documents on Haiku 5.5
One million short documents, 800 input tokens each, 50 output tokens each (a label and a reason). Every prompt is under 100,000 tokens, so the lower Haiku rates apply.
- Standard: 800M × $0.10 = $80, plus 50M × $0.50 = $25. Total $105.
- Batch API: 800M × $0.05 = $40, plus 50M × $0.25 = $12.50. Total $52.50.
A job like this rarely needs an answer within seconds, so batch is the obvious choice.
The Haiku 5.5 threshold
Same model, two prompt sizes, 1,000 output tokens each:
- 99,000-token prompt: 0.099M × $0.10 = $0.0099, plus 0.001M × $0.50 = $0.0005. About $0.0104.
- 150,000-token prompt: 0.15M × $0.50 = $0.075, plus 0.001M × $2.50 = $0.0025. About $0.0775.
The second prompt is about 1.5 times longer and costs about 7.5 times more, because the whole request moves to the higher price. If your Haiku prompts hover near 100,000 tokens, trimming them under the line is worth real money.
Asking ten questions about a long contract on Opus 5.5
A 300,000-token document, ten questions in the same hour, 2,000 output tokens per answer (ignoring the few tokens of each question).
Without caching, each question resends the whole document:
- Per question: 0.3M × $4 = $1.20, plus 0.002M × $20 = $0.04, so $1.24
- Ten questions: $12.40
With a 1-hour cache:
- First question writes the cache: 0.3M × $8 = $2.40
- Nine more read it: 9 × 0.3M × $0.20 = $0.54
- Ten answers: 10 × $0.04 = $0.40
- Total: $3.34
With US-only inference, multiply by 1.1: about $3.67.
An agent that searches the web
An agent that runs 5 web searches per question across 10,000 questions makes 50,000 searches: 50,000 ÷ 1,000 × $10 = $500 in search fees, before any tokens. The results are added to the conversation as input tokens, so the token bill grows with every search too. On a model with caching, the earlier turns become cache reads on later requests.
Claude API pricing calculator: estimate your monthly bill
You don't need a tool for a first estimate. Take one typical request from your app, count its tokens with the token counting endpoint, and fill in this:
monthly cost =
requests per month × (
uncached input tokens × input price
+ cached tokens read × cache read price
+ output tokens × output price (thinking counts here)
) ÷ 1,000,000
+ cache writes, web searches, code execution hours
then × 0.5 for anything sent through the Batch API
then × 1.1 if you pin inference to the US
Then check it against reality. Every API response returns a usage object with input_tokens, output_tokens, cache_read_input_tokens and cache_creation_input_tokens, and the Claude Console's Usage page lets you monitor your usage. Run a day of real traffic, multiply, and you have a far better number than any calculator can give you.
How to cut your Claude API bill
Anthropic's pricing docs list four cost strategies: "Use appropriate models," "Implement prompt caching," "Batch operations" and "Monitor usage patterns." In practice:
- Pick the cheapest model that passes your evals. Anthropic's guidance: "Choose Haiku for simple tasks, Sonnet for most production workloads, and Opus for the most complex reasoning." Sonnet 5.5 is half the price of Opus 5.5 per token, and Haiku 5.5 is a twentieth of Sonnet 5.5 below the 100,000-token line. Many apps route easy requests to Haiku and hard ones to a bigger model.
- Cache everything that repeats. System prompts, tool definitions, long documents and conversation history are the usual candidates. The simplest start is automatic caching: one
cache_controlfield at the top level of the request. Prompts below a minimum length are not cached (512 tokens on the current models), and "no error is returned," so checkcache_read_input_tokensto confirm it works. The default cache lives 5 minutes; for traffic with longer gaps, the 1-hour cache costs more to write but survives the gap. - Batch anything that can wait. Evaluations, backfills, nightly reports, bulk classification. Half price, and Anthropic suggests the 1-hour cache for batches that share context, because batches can take longer than 5 minutes.
- Control output length. Output costs five times input on every current model. Ask for shorter answers, structured output instead of prose, and set
max_tokenswhere it makes sense. On models that allow it, lower effort also means less thinking. - Set a spend limit. On the Spend limits page of the Claude Console, you can set a monthly limit below your tier's cap, for the whole organization or per workspace.
Claude API rate limits and usage tiers
The API has two kinds of limits, according to Anthropic's rate limit docs: spend limits ("a maximum monthly cost") and rate limits (requests and tokens per minute). Your organization is placed on a tier "automatically based on usage history and account standing." New organizations "may start in the Evaluation tier, with limits below the standard limits" until they build history.
Monthly spend caps, as of November 30, 2026:
| Usage tier | Monthly spend cap |
|---|---|
| Start | $500 |
| Build | $1,000 |
| Scale | $200,000 |
| Custom | No cap; arranged with Anthropic's sales team |
Standard rate limits for the current models, in requests per minute (RPM), input tokens per minute (ITPM) and output tokens per minute (OTPM):
| Tier | Model | RPM | ITPM | OTPM |
|---|---|---|---|---|
| Start | Fable 5.2 | 4,000 | 500,000 | 100,000 |
| Start | Opus 5.5, Sonnet 5.5, Haiku 5.5 (each) | 4,000 | 2,000,000 | 400,000 |
| Build | Fable 5.2 | 10,000 | 1,500,000 | 300,000 |
| Build | Opus 5.5, Sonnet 5.5, Haiku 5.5 (each) | 10,000 | 5,000,000 | 1,000,000 |
| Scale | Fable 5.2 | 13,000 | 4,000,000 | 800,000 |
| Scale | Opus 5.5, Sonnet 5.5, Haiku 5.5 (each) | 13,000 | 10,000,000 | 2,000,000 |
Three things from the same docs that matter for cost planning:
- Cached reads don't count toward ITPM. Only uncached input and cache writes do. Anthropic's example: with a 2,000,000 ITPM limit and an 80% cache hit rate, "you could effectively process 10,000,000 total input tokens per minute." Caching raises your throughput as well as cutting the bill.
- Hitting the spend cap pauses the API until 00:00 UTC on the first day of the next month, with HTTP 429 and the error code
enforced_spend_limit_reached. Retrying won't help; you need a higher tier, which you request with "Request tier increase" on the Console's Rate limits page. - Sudden jumps can fail too. A "ramp limit" can return 429 after "a sharp increase in usage," even under your rate limit. Ramp up bulk jobs gradually, or use the Batch API, which "isn't subject to ramp limits."
If you are getting errors and you're nowhere near your limits, check whether the Anthropic API is down before you change any code.
Claude API vs a Claude subscription
They are separate products with separate bills. Anthropic's help center: "A paid Claude subscription enhances your chat experience, and the Claude API is billed separately." Paying for Pro does not give you an API key with free usage.
| Claude subscription | Claude API | |
|---|---|---|
| What you pay | $20 Pro ($17 a month billed annually), $100 Max, $200 Ultra, per month | Per token, no monthly fee |
| What it's for | Using Claude yourself: the chat apps and Claude Code | Building Claude into your own software |
| Limits | Usage windows every 5 hours and every week | Rate limits and a monthly spend cap per tier |
| Bill when idle | The plan price | $0 |
The overlap is small. Max includes $100 a month in API credits, Ultra $200, and Team plans $20 per standard seat and $100 per premium seat, pooled up to $500 a month. The help center says those credits work on the Claude API, the Console Playground, Managed Agents and the Agent SDK, but not for "Interactive Claude Code in the terminal, IDE, desktop, or web," and "unused credits expire at the end of each billing cycle." For how the plans compare with each other, see Claude Pro vs Max.
Claude Code API pricing
Claude Code can run on either. Logged in with a subscription, it uses your plan's limits. Logged in with a Claude Console account or an API key, it bills every token at the prices on this page, and Opus 5.5 is its default model. Our Claude Code pricing page has Anthropic's published average daily cost for Claude Code on the API and which option is cheaper for which kind of user. An agent also uses fewer tokens in a codebase with clear conventions and tests, because it has less to explore; that is part of why we build RailsFast on Rails.
How Claude API pricing compares with OpenAI's
OpenAI's API pricing page, checked the same day, lists models at price points very close to Anthropic's. Standard rates per MTok as of November 30, 2026:
| Price point | Anthropic model: input / cached / output | OpenAI model: input / cached / output |
|---|---|---|
| Top | Fable 5.2: $8 / $0.20 / $40 | gpt-6.2-astra: $8 / $0.40 / $40 |
| Middle | Sonnet 5.5: $2 / $0.10 / $10 | gpt-6.2-sol: $2 / $0.10 / $10 |
| Small | Haiku 5.5 (up to 100K): $0.10 / $0.01 / $0.50 | gpt-6-luna: $0.10 / $0.01 / $0.50 |
Opus 5.5 ($4 and $20) sits between the top and middle rows; OpenAI lists gpt-5.6-sol at the same $4 and $20, though its page says that model's promotional pricing runs only until November 30, 2026. Where they differ:
- Long prompts. OpenAI's pricing page has separate short and long price views, with the long view for input above 272K tokens. Anthropic charges the same rate across the 1M window on Fable, Opus and Sonnet, while Haiku 5.5 steps up above 100,000 tokens.
- Cached input. Fable 5.2's cache read is half of gpt-6.2-astra's; at the middle and small price points they match.
- Both discount batch work (Anthropic halves every batch price; OpenAI's batch input rate for gpt-6.2-astra is also half its standard rate), and both add 10% for regional or US-only processing.
Equal list prices don't mean equal bills. The two companies use different tokenizers, so the same text is a different number of tokens on each, and the models differ in how much they think and how long they answer. Run your own prompts through both and compare the usage totals, not the price per token.
Frequently asked questions
What is Claude API pricing?
Claude API pricing is pay per token, with no monthly fee. As of November 30, 2026, per million tokens: Fable 5.2 costs $8 input and $40 output, Opus 5.5 $4 and $20, Sonnet 5.5 $2 and $10, and Haiku 5.5 from $0.10 and $0.50. Prompt caching and the Batch API reduce those prices.
How does Claude API pricing work?
You are billed for the input tokens you send, the output tokens Claude writes (including its thinking), and any prompt cache writes and reads, each at the model's rate per million tokens. Some tools add usage fees, such as web search at $10 per 1,000 searches. Billing is based on actual monthly usage, in USD.
How much does the Claude API cost per month?
It depends entirely on your traffic and model. As a worked example, a chatbot on Sonnet 5.5 sending 4,000 input tokens and getting 500 output tokens per request, 100,000 times a month, costs $1,300 at list price, or about $740 with the system prompt cached. Count your own request with the free token counting endpoint and multiply by your volume.
Is the Claude API free?
No, but there is a small free start. Anthropic's pricing docs say "New users receive free credits to test the API." After those, every request is billed per token.
Is the Claude API included in Claude Pro?
No. Anthropic bills the API separately from Claude subscriptions, and Pro includes no API credits. Max includes $100 and Ultra $200 a month in API credits, which expire at the end of each billing cycle.
How much does Claude Opus cost on the API?
Claude Opus 5.5 costs $4 per million input tokens and $20 per million output tokens as of November 30, 2026, with cache reads at $0.20. Older Opus models (Opus 5, 4.8, 4.7, 4.6 and 4.5) cost $5 and $25. Fast mode on Opus 5.5 costs $8 and $40.
What does Claude Sonnet 4.6 cost on the API?
Claude Sonnet 4.6 costs $3 per million input tokens and $15 per million output tokens, with cache reads at $0.30, as of November 30, 2026. The newer Sonnet 5.5 is cheaper per token at $2 and $10, though it uses a tokenizer that produces about 30% more tokens for the same text.
What does Claude Haiku 4.5 cost on the API?
Claude Haiku 4.5 costs $1 per million input tokens and $5 per million output tokens as of November 30, 2026. The newer Haiku 5.5 costs $0.10 and $0.50 for prompts up to 100,000 tokens and $0.50 and $2.50 above that.
Does the Batch API work with prompt caching?
Yes. Anthropic says batch and caching discounts can be combined, so a cached batch request pays half the already reduced cache price. Anthropic suggests the 1-hour cache for batches with shared context, because batches can take longer than 5 minutes.
What are the Claude API rate limits?
They depend on your usage tier. On the Start tier, Opus 5.5, Sonnet 5.5 and Haiku 5.5 each allow 4,000 requests, 2,000,000 input tokens and 400,000 output tokens per minute, rising to 13,000, 10,000,000 and 2,000,000 on the Scale tier. Monthly spend caps are $500 on Start, $1,000 on Build and $200,000 on Scale.
Does a long prompt cost more on the Claude API?
Only on Haiku 5.5. Claude 4.6 and later models, apart from Haiku 5.5, bill the full 1M token context at the standard rate. Haiku 5.5 charges higher prices for the whole request when the prompt is over 100,000 tokens.
Sources
All pages fetched on November 30, 2026.
- Claude API pricing docs: https://platform.claude.com/docs/en/about-claude/pricing
- Claude plans and pricing: https://claude.com/pricing
- Models overview: https://platform.claude.com/docs/en/about-claude/models/overview (served at https://platform.claude.com/docs/en/models/overview)
- Rate limits and usage tiers: https://platform.claude.com/docs/en/api/rate-limits
- Prompt caching: https://platform.claude.com/docs/en/build-with-claude/prompt-caching
- Batch processing: https://platform.claude.com/docs/en/build-with-claude/batch-processing
- Thinking: https://platform.claude.com/docs/en/build-with-claude/thinking
- Token counting: https://platform.claude.com/docs/en/build-with-claude/token-counting
- Monthly API credits for Max, Ultra, and Team plans: https://support.claude.com/en/articles/17154008-monthly-api-credits-for-max-ultra-and-team-plans
- Why a Claude subscription and the API are billed separately: https://support.claude.com/en/articles/9876003-i-have-a-paid-claude-subscription-pro-max-team-or-enterprise-plans-why-do-i-have-to-pay-separately-to-use-the-claude-api-and-console
- Claude Code model configuration: https://code.claude.com/docs/en/model-config
- OpenAI API pricing: https://developers.openai.com/api/docs/pricing (platform.openai.com/docs/pricing redirects here)