# Claude API cost calculator

[Calculate my cost →](https://apicostcheck.com/calculator/?model=claude-haiku-5-5)[Compare Anthropic models side by side](https://apicostcheck.com/compare/?m=claude-haiku-5-5,claude-haiku-4-5,claude-sonnet-5-5,claude-opus-5-5)

Anthropic bills Claude per token, with separate rates for input, output and the prompt cache. Caching is opt-in: you mark the shared prefix with cache_control, and writing it costs more than normal input, 1.25× the input price for the 5-minute cache and 2× for the 1-hour cache. Each later request that reuses the prefix reads it at 2.5%–10% of the input price, depending on the model, and every read restarts the cache lifetime.

The discounts stack. The Batch API takes 50% off input and 50% off output, and a cache read inside a batch costs 50% of the normal cache-read price, so batched jobs that share a prefix are the cheapest way to run Claude. Long prompts work the other way: long-context rates apply above 100K for Claude Haiku 5.5 (input 5×, output 5×), and then to the whole request. The threshold counts every input token, cached reads and writes included, so caching a large document does not keep a request under it. 

The table prices one workload on each model: 10,000 requests a day with 6,000 input and 500 output tokens per request. Columns: no caching; 70% of input read from the cache and 5% written to it; every request sent through the Batch API. For the same traffic [Claude Fable 5.1](https://apicostcheck.com/models/claude-fable-5-1/) costs 100× as much as [Claude Haiku 5.5](https://apicostcheck.com/models/claude-haiku-5-5/).

| Model | Standard 10,000 req/day · 6,000 in · 500 out [Calculate with your numbers →](https://apicostcheck.com/calculator/?daily=10000&input=6000&output=500&cache=0&write=0&batch=0) | With prompt caching 10,000 req/day · 6,000 in · 500 out · cache 70% [Calculate with your numbers →](https://apicostcheck.com/calculator/?daily=10000&input=6000&output=500&cache=70&write=5&batch=0) | Batch API 10,000 req/day · 6,000 in · 500 out · batch [Calculate with your numbers →](https://apicostcheck.com/calculator/?daily=10000&input=6000&output=500&cache=0&write=0&batch=100) |
| --- | --- | --- | --- |
| [Claude Haiku 5.5](https://apicostcheck.com/models/claude-haiku-5-5/) | $255/mo | $144/mo | $128/mo |
| [Claude Haiku 4.5](https://apicostcheck.com/models/claude-haiku-4-5/) | $2,550/mo | $1,438/mo | $1,275/mo |
| [Claude Sonnet 5.5](https://apicostcheck.com/models/claude-sonnet-5-5/) | $5,100/mo | $2,751/mo | $2,550/mo |
| [Claude Opus 5.5](https://apicostcheck.com/models/claude-opus-5-5/) | $10,200/mo | $5,502/mo | $5,100/mo |
| [Claude Fable 5.2](https://apicostcheck.com/models/claude-fable-5-2/) | $20,400/mo | $10,752/mo | $10,200/mo |
| [Claude Fable 5.1](https://apicostcheck.com/models/claude-fable-5-1/) | $25,500/mo | $13,440/mo | $12,750/mo |

Estimates from published per-token rates; check official pricing before budgeting. Data synced from the LiteLLM price list 2026-11-24 01:00 UTC. 

[All Anthropic API prices →](https://apicostcheck.com/providers/anthropic/) 

## Cost per 1,000 requests

For 1,000 requests of 6,000 input and 500 output tokens, [Claude Haiku 5.5](https://apicostcheck.com/models/claude-haiku-5-5/) costs $0.85 at standard rates, $0.48 with caching and $0.42 through the Batch API; [Claude Fable 5.1](https://apicostcheck.com/models/claude-fable-5-1/) costs $85.00, $44.80 and $42.50. Multiply by your own request count, or put your traffic into the calculator. 

## How to cut the bill, in order
- Put instructions, tool definitions and reference documents first and mark the end of that block with cache_control; only the tail of the prompt should change between requests.
- Pick the cache lifetime by traffic: 5 minutes for steady traffic, 1 hour for sparse traffic ([caching calculator](https://apicostcheck.com/prompt-caching-calculator/)).
- Send anything that can wait (evaluations, backfills, reports) through the Batch API, grouping requests that share a prefix in one batch.
- Cap max_tokens and ask for short answers: output tokens cost several times input.
- Keep requests under the long-context threshold with retrieval, and count prompts with the [token counter](https://apicostcheck.com/token-counter/) before budgeting in the [calculator](https://apicostcheck.com/calculator/). 

[When does caching pay off for your traffic? Use the prompt caching calculator →](https://apicostcheck.com/prompt-caching-calculator/)

## FAQ

### Is the 1-hour cache worth it?

Only when the same prefix comes back at gaps longer than five minutes but within the hour, for example a support bot with sparse traffic. A 1-hour write costs more than a 5-minute write, so with steady traffic the 5-minute cache, refreshed by every hit, is cheaper. The prompt caching calculator compares both for your traffic.

### Can I combine the Batch API with prompt caching on Claude?

Yes. Batch requests can read and write the cache, and cache prices are discounted inside a batch as well. Hits are less predictable because batch requests run in no fixed order, so send the requests that share a prefix in the same batch.

### Why does my Claude bill jump on long prompts?

Some Claude models switch to long-context rates once one request's input passes a threshold. The whole request, cached tokens included, is then billed at the higher input and output rates. Keep prompts under the threshold with retrieval, or pick a model without a long-context tier.

### Haiku, Sonnet or Opus?

Haiku for classification, extraction, routing and high-volume simple chat; Sonnet for most production work; Opus for hard reasoning and long agent runs. The table above shows the price gap for one workload, so run your own prompts on two tiers and compare quality per dollar before committing.

---
Source: https://apicostcheck.com/claude-api-cost-calculator/ · prices in USD per 1M tokens, synced 2026-11-24 01:00 UTC · Free to reuse under CC BY 4.0 with attribution to apicostcheck.com (a plain or nofollow link is fine). Prices derived from LiteLLM's model price list, MIT License, (c) 2023 Berri AI.
