Models · Anthropic

Claude API cost: the tokenizer and the cache write

Sonnet 5.5 and Haiku 5.5 rates, plus the three Anthropic-specific line items that move your bill more than the sticker price does: the tokenizer, the cache write, and Haiku's prompt-length tier.

All numbers computed from pricing data verified 2026-11-09 — this page updates with every pricing refresh.

The rate card

ModelInput /1MOutput /1MCached readCache writeBatch inputContext
Claude Sonnet 5.5$2$10$0.1$2.5$11000K
Claude Haiku 5.5$0.1$0.5$0.01$0.125$0.051000K

What it costs on real workloads

Realistic monthly cost at 1,000 requests/day with the calculator’s defaults — 8% retries, 40% cache hit rate, 15% infra overhead, per-model tokenizer calibration applied. The same three workloads used across every comparison on this site, so the numbers line up.

WorkloadClaude Sonnet 5.5Claude Haiku 5.5
Simple chatbot$265/mo$13/mo
Chatbot with history$538/mo$27/mo
Multi-step agent$3,365/mo$169/mo

The tokenizer is a hidden price increase

Claude’s tokenizer emits roughly 43% more tokens than OpenAI’s o200k_base for the same English text. Providers meter their own tokenizer, so this is not an accounting curiosity — it is a real multiplier on every input line of your invoice.

Sonnet 5.5 sticker input     $2/1M
× tokenizer ratio            1.43
= effective input price      $2.86/1M of the same text

Any like-for-like comparison against another provider has to apply this, or it flatters Claude by about 43%. Our calculator applies it automatically; most published comparison tables do not.

The cache write costs 1.25× input

Anthropic bills first-time cache writes at $2.5/1M on Sonnet — 1.25× the standard input rate — where OpenAI and Google charge nothing extra to warm a cache. In exchange, cached reads come back at $0.1/1M, or 5% of input.

That is a genuine trade, not a penalty: pay a little more on the miss, get one of the steepest read discounts available on the hit. Which side you land on is entirely a function of your cache hit rate — high, steady traffic against a stable prefix wins, while spiky low-volume traffic pays the write premium repeatedly without earning it back. It’s worth modelling rather than guessing.

Sonnet or Haiku?

On the history-carrying chatbot above, Sonnet 5.5 runs $538/mo against Haiku 5.5 at $27/mo — Haiku is 95% cheaper for the same workload. Anthropic positions Haiku as near-frontier quality at budget pricing, which makes it an unusually strong default; the honest caveat is that “near-frontier” is a claim to verify on your task before committing at scale, not a spec to take on faith.

Context: both models ship a 1000K window, but only Sonnet prices it flat. Haiku 5.5 is priced by prompt length — a request whose prompt exceeds 100,000 tokens, counting cache reads and writes, bills at 5× the rates above ($0.50/$2.50 per 1M). Every workload on this page sits far below that line, so the figures above are the tier that applies — but a document-heavy design that pushes past 100K has to be costed against the higher tier, and at that point the Sonnet comparison narrows sharply. Above a few hundred thousand tokens this stops being a pricing question and becomes an architecture one: a long window can remove an entire retrieval pipeline, and the calls that came with it.

Model the Claude line on your workload — with the tokenizer ratio and cache-write premium applied.

Open the calculator →

Related