This free Claude API cost calculator works out your Claude token cost per request, per day and per month. Pick a Claude model, enter the tokens in each request and how many requests you expect, and it does the math with prompt caching, Batch and Fast mode pricing included.
It also compares every Claude model on the same workload (and OpenAI’s models, if you tick the box) and lists Anthropic’s full API prices, checked against Anthropic’s pricing page on October 18, 2026. Nothing you type leaves your browser.
Free API cost calculator
What will the Claude API cost you?
Pick a Claude model, enter the tokens in each request and how many requests you expect. You get your Claude token cost per request, per day and per month as you type, with prompt caching, Batch and Fast mode pricing, plus the same workload on every other Claude model.
Processing tier
Not sure how many tokens? Paste a sample
Paste text to estimate its tokens.
Prompt caching
Turn on JavaScript to use the calculator. The full price list is below.
The same workload on every Claude model
| Model | Input | Cache read | Output | Per request | Per month | Compared with yours |
|---|---|---|---|---|---|---|
| The comparison needs JavaScript. The full price list is below. | ||||||
Keep up when API prices change
Join the free weekly HOW TO // AI newsletter, which covers AI price changes, and unlock two extras on this page now: your cost at 10x and 100x traffic, and a CSV download of the full comparison.
Unlocked: your growth table and the CSV download are just above. You are also on the weekly HOW TO // AI newsletter, which covers AI price changes.
Free. You also get the HOW TO // AI newsletter once a week. Unsubscribe any time.
Claude API prices per 1M tokens (MTok)
Every Claude model in this calculator, from Anthropic's pricing page, checked October 18, 2026. Batch and Fast mode cache prices are worked out from Anthropic's caching multipliers, which stack with those discounts and premiums.
| Model | Input | 5-minute cache write | 1-hour cache write | Cache read | Output |
|---|---|---|---|---|---|
| Claude Fable 5.1 Latest | $10.00 | $12.50 | $20.00 | $0.25 | $50.00 |
| Claude Opus 5.5 Latest | $4.00 | $5.00 | $8.00 | $0.20 | $20.00 |
| Claude Sonnet 5.5 Latest | $2.00 | $2.50 | $4.00 | $0.10 | $10.00 |
| Claude Haiku 5.5 (prompts up to 100,000 tokens) Latest | $0.10 | $0.125 | $0.20 | $0.01 | $0.50 |
| Claude Haiku 5.5 (prompts over 100,000 tokens) Latest | $0.50 | $0.625 | $1.00 | $0.05 | $2.50 |
| Claude Fable 5 | $10.00 | $12.50 | $20.00 | $1.00 | $50.00 |
| Claude Opus 5 | $5.00 | $6.25 | $10.00 | $0.50 | $25.00 |
| Claude Sonnet 5 | $2.00 | $2.50 | $4.00 | $0.20 | $10.00 |
| Claude Opus 4.8 | $5.00 | $6.25 | $10.00 | $0.50 | $25.00 |
| Claude Opus 4.7 | $5.00 | $6.25 | $10.00 | $0.50 | $25.00 |
| Claude Opus 4.6 | $5.00 | $6.25 | $10.00 | $0.50 | $25.00 |
| Claude Sonnet 4.6 | $3.00 | $3.75 | $6.00 | $0.30 | $15.00 |
| Claude Opus 4.5 | $5.00 | $6.25 | $10.00 | $0.50 | $25.00 |
| Claude Sonnet 4.5 Retiring November 30, 2026 | $3.00 | $3.75 | $6.00 | $0.30 | $15.00 |
| Claude Haiku 4.5 | $1.00 | $1.25 | $2.00 | $0.10 | $5.00 |
Standard: Normal speed and price.
| Model | Input | 5-minute cache write | 1-hour cache write | Cache read | Output |
|---|---|---|---|---|---|
| Claude Fable 5.1 Latest | $5.00 | $6.25 | $10.00 | $0.125 | $25.00 |
| Claude Opus 5.5 Latest | $2.00 | $2.50 | $4.00 | $0.10 | $10.00 |
| Claude Sonnet 5.5 Latest | $1.00 | $1.25 | $2.00 | $0.05 | $5.00 |
| Claude Haiku 5.5 (prompts up to 100,000 tokens) Latest | $0.05 | $0.0625 | $0.10 | $0.005 | $0.25 |
| Claude Haiku 5.5 (prompts over 100,000 tokens) Latest | $0.25 | $0.3125 | $0.50 | $0.025 | $1.25 |
| Claude Fable 5 | $5.00 | $6.25 | $10.00 | $0.50 | $25.00 |
| Claude Opus 5 | $2.50 | $3.125 | $5.00 | $0.25 | $12.50 |
| Claude Sonnet 5 | $1.00 | $1.25 | $2.00 | $0.10 | $5.00 |
| Claude Opus 4.8 | $2.50 | $3.125 | $5.00 | $0.25 | $12.50 |
| Claude Opus 4.7 | $2.50 | $3.125 | $5.00 | $0.25 | $12.50 |
| Claude Opus 4.6 | $2.50 | $3.125 | $5.00 | $0.25 | $12.50 |
| Claude Sonnet 4.6 | $1.50 | $1.875 | $3.00 | $0.15 | $7.50 |
| Claude Opus 4.5 | $2.50 | $3.125 | $5.00 | $0.25 | $12.50 |
| Claude Sonnet 4.5 Retiring November 30, 2026 | $1.50 | $1.875 | $3.00 | $0.15 | $7.50 |
| Claude Haiku 4.5 | $0.50 | $0.625 | $1.00 | $0.05 | $2.50 |
Batch: 50% off. Most batches finish within 1 hour, and results are available within 24 hours (Message Batches API).
| Model | Input | 5-minute cache write | 1-hour cache write | Cache read | Output |
|---|---|---|---|---|---|
| Claude Opus 5.5 Latest | $8.00 | $10.00 | $16.00 | $0.40 | $40.00 |
| Claude Opus 5 | $10.00 | $12.50 | $20.00 | $1.00 | $50.00 |
| Claude Opus 4.8 | $10.00 | $12.50 | $20.00 | $1.00 | $50.00 |
Fast mode: Up to 2.5x faster output at premium prices. Opus 5.5, Opus 5 and Opus 4.8 only; not available with Batch.
- Claude Haiku 5.5: Prompts over 100,000 tokens pay higher prices (Anthropic prices Haiku 5.5 by prompt length).
- Claude Opus 5: Fast mode is in research preview for this model.
- Claude Sonnet 5: The $2 / $10 launch price is now the standard price (Anthropic).
- Claude Opus 4.8: Fast mode is in research preview for this model.
- Not included: Claude Mythos 5.1 and Mythos 5 (limited availability), and retired models such as Claude Opus 4.1, Opus 4, Sonnet 4 and Haiku 3.5.
How the calculator works
Cost per request = (uncached input tokens x input price + cached tokens x cache price + output tokens x output price) / 1,000,000. Cached tokens are the repeated part of the prompt: requests that find it cached pay the cache read price, the rest pay the cache write price for the lifetime you pick. Per month = cost per request x requests per day x days per month. Token estimates from pasted text use Anthropic's figures: about 555,000 words per million tokens on Claude 4.7 and later, and about 750,000 on earlier models.
- Prices are USD per 1 million tokens (MTok) from Anthropic's pricing page.
- 5-minute cache writes cost 1.25x the base input price and 1-hour writes cost 2x. Cache reads cost 0.1x (0.05x on Opus 5.5 and Sonnet 5.5, 0.025x on Fable 5.1).
- Batch is 50% off input and output. Caching multipliers stack with Batch, Fast mode and US-only inference, so Batch cache prices here are the standard cache prices x 0.5, and Fast mode cache prices use the same multipliers on the Fast mode input price.
- US-only inference (inference_geo "us") costs 1.1x on Claude 4.6 and later models.
- Claude 4.6 and later models (except Haiku 5.5) use the full 1M token context window at standard prices. Haiku 5.5 charges more for prompts over 100,000 tokens.
- Claude 4.7 and later models use a newer tokenizer that produces about 30% more tokens for the same text.
- Each model has a minimum cacheable prompt length (512 to 4,096 tokens); shorter prefixes are not cached.
- Thinking tokens are billed as output tokens.
More: OpenAI API pricing calculator, AI token calculator.
Sources, checked October 18, 2026: Anthropic: Pricing, Claude API pricing (claude.com), Anthropic: Token counting (newer tokenizer, about 30% more tokens), Anthropic: Models overview (words per million tokens), Anthropic: Model deprecations, Anthropic: Batch processing, Anthropic: Fast mode, Anthropic: Prompt caching (minimum cacheable length), Anthropic: Extended thinking (thinking tokens are billed as output), OpenAI prices for the side-by-side: OpenAI API pricing. Estimates only: your bill depends on the real tokens each request uses. Prices are USD and exclude tax.
How to use the Claude API cost calculator
- Pick a model. Fable 5.1, Opus 5.5, Sonnet 5.5 and Haiku 5.5 are Anthropic’s latest. Older models that are still available are listed below them.
- Pick Standard, Batch or Fast mode. Batch is half price for jobs that can wait. Fast mode is a premium speed option on Opus 5.5, Opus 5 and Opus 4.8.
- Enter tokens per request and say where your counts came from. Claude 4.7 and later count about 30% more tokens for the same text, so the calculator adjusts the other models. No counts yet? Paste a sample to estimate.
- Enter requests per day and days per month to turn the cost per request into a monthly bill.
- Add prompt caching if part of every prompt repeats, and choose a 5-minute or 1-hour cache.
How Claude API pricing works
Anthropic prices the Claude API per million tokens (MTok), with a different rate for each kind of token:
- Input: everything you send, including the system prompt, chat history and tool definitions.
- Cache writes: storing a prompt prefix costs 1.25 times the input price for a 5-minute cache, or 2 times for a 1-hour cache.
- Cache reads: reusing it costs 0.1 times the input price on most models, 0.05 times on Opus 5.5 and Sonnet 5.5, and 0.025 times on Fable 5.1.
- Output: what Claude writes back, including thinking tokens, at five times the input price on every model in the calculator.
Discounts stack. Batch halves every price, including cache reads and writes, and US-only inference adds 10% on Claude 4.6 and later models.
One more thing changes the bill: Claude 4.7 and later models use a newer tokenizer that produces about 30% more tokens for the same text. When you move from an older model, recount your prompts instead of comparing per-token prices alone.
Claude’s latest models at a glance
| Model | Input | Cache read | Output | Batch input / output |
|---|---|---|---|---|
| Claude Fable 5.1 | $10 | $0.25 | $50 | $5 / $25 |
| Claude Opus 5.5 | $4 | $0.20 | $20 | $2 / $10 |
| Claude Sonnet 5.5 | $2 | $0.10 | $10 | $1 / $5 |
| Claude Haiku 5.5 (prompts up to 100K tokens) | $0.10 | $0.01 | $0.50 | $0.05 / $0.25 |
| Claude Haiku 5.5 (prompts over 100K tokens) | $0.50 | $0.05 | $2.50 | $0.25 / $1.25 |
Prices per million tokens. The calculator above lists every model, both cache lengths and Fast mode.
Ways to cut your Claude API bill
- Cache your system prompt and documents. A 5-minute cache pays for itself after one read. The repeated part needs a minimum length: 512 tokens on the newest models and up to 4,096 on some older ones.
- Use Batch for anything that can wait. It is half price, most batches finish within an hour, and results are available within 24 hours.
- Try Haiku first. Haiku 5.5 is the cheapest Claude model by far, but its prices rise for prompts over 100,000 tokens.
- Set a max output and a thinking budget. Output, including thinking, costs five times as much as input.
- Recount tokens when you switch models. The newer tokenizer can make a request on a newer model cost more than its per-token price suggests.
Prices exclude tax and negotiated discounts. Claude on Amazon Bedrock and Google Cloud is billed by those platforms at their own prices.
Related on HOW TO // AI
- OpenAI API pricing calculator: the same calculator for OpenAI’s GPT models.
- AI token calculator: paste any text to count its tokens on older and newer Claude models.
- Claude pricing: the Claude app plans, if you want the chat app rather than the API.
- How to pass the Claude Developer exam (CCDV-F): a study plan if you build with the Claude API.
Checked against Anthropic’s pricing, token counting, prompt caching, batch processing, fast mode, extended thinking and model deprecations pages on October 18, 2026.
Frequently asked questions
How much does the Claude API cost per token?
On October 18, 2026, Claude's latest models ranged from $0.10 per million input tokens and $0.50 per million output tokens (Haiku 5.5, for prompts up to 100,000 tokens) to $10 and $50 (Fable 5.1). Sonnet 5.5 costs $2 and $10, and Opus 5.5 costs $4 and $20.
Why do newer Claude models use more tokens?
Anthropic says Claude 4.7 and later models use a newer tokenizer that produces about 30% more tokens for the same text than earlier models. Count your prompts on the model you plan to use before comparing costs.
How much does Claude prompt caching save?
Cache reads cost 10% of the normal input price on most models (5% on Opus 5.5 and Sonnet 5.5, 2.5% on Fable 5.1). Writing to the cache costs 1.25 times the input price for 5 minutes or 2 times for 1 hour, so a 5-minute cache pays off after one read.
How much does the Claude Batch API save?
Batch costs 50% less on input and output for every Claude model. Most batches finish within an hour, and results are available within 24 hours.
Do thinking tokens cost extra on Claude?
Thinking tokens are billed as output tokens, so a large thinking budget raises your output cost. Set a budget and watch your usage to keep it predictable.
