LLM MeasurementGitHub
Guides

Haiku 5.5 is 20× cheaper than Sonnet on paper, 3.4× on a Claude Code trace

On paper, Haiku 5.5 costs a twentieth of Sonnet 5.5 per input and output token. In the fine print, that rate holds only up to 100,000 prompt tokens. One token past that line and the entire request reprices at 5×: input, cache hits and output alike. Anthropic counts cache reads and writes toward the 100,000.

Coding agents live in long contexts, so we checked how often they cross that line. SemiAnalysis published a trace of 233 Claude Code sessions (cc-traces-weka-061526): 60,996 model calls, each with its prompt size, output size and 64-token prefix hashes. We replayed five-minute prompt caching from those hashes, the same way as in our cache study, and priced the exact same work at both models' published rates. Sixty-three percent of the calls cleared 100,000 tokens. Instead of a 20× price cut, the whole trace came out 3.4× cheaper on Haiku (29.8% of Sonnet's bill), and that assumes Haiku finishes every task without taking a single extra step.

Where the 20× goes

Split the cached bill by what it pays for, and half of Sonnet's spend turns out to be cache writes:

ComponentSonnet 5.5Haiku 5.5Fable 5.2
Cache writes$1,769 (50%)$388 (37%)$7,075 (60%)
Cache reads$1,192 (34%)$552 (52%)$2,385 (20%)
Output$598 (17%)$121 (11%)$2,390 (20%)
Total$3,559$1,061$11,850

Most of that $1,769 pays for old context. In the replay (which, like the cache study, offers every prompt to the cache, so uncached tokens are written at 1.25× the input price rather than billed as plain input), 69% of the written tokens had already been cached once and expired during a pause of more than five minutes. Roughly a third of Sonnet's whole bill goes to paying again for context the cache dropped. Our cache study makes the case for the one-hour cache on traffic like this. On this trace it cuts the Sonnet bill by 16% and Haiku's by 14%, which moves more of the spend from writes to reads and narrows Haiku's edge from 3.4× to 3.3×.

Output is the smallest line: 17% of the Sonnet bill and 11% of Haiku's. A chattier model moves an agent's bill far less than one that takes more turns.

The less obvious factor is that Anthropic gives larger models steeper cache-read discounts. A cache read costs 0.025× the input price on Fable 5.2, 0.05× on Opus 5.5 and Sonnet 5.5, and 0.10× on Haiku 5.5. Calls over 100,000 tokens carry 85% of Sonnet's spend on this trace, and on those calls Haiku's writes and output are four times cheaper than Sonnet's while its reads are only twice as cheap ($0.05 against $0.10 per million). The same rule explains the Fable row: Fable lists at four times Sonnet's price, its cache reads cost twice as much, and Sonnet comes out 3.3× cheaper rather than 4×. Opus 5.5 to Sonnet 5.5 is exactly half on every line of the price sheet, and it comes out exactly 2×.

How much cheaper the smaller model is, on the price sheet and on a re-priced Claude Code trace Opus 5.5 → Sonnet 5.5: 2.0 on the price sheet, 2.0 on the trace; Fable 5.2 → Sonnet 5.5: 4.0 on the price sheet, 3.3 on the trace; Sonnet 5.5 → Haiku 5.5: 20.0 on the price sheet, 3.4 on the trace; Same, if prompts stayed under 100k: 20.0 on the price sheet, 15.0 on the trace. How much cheaper is the smaller model? Price sheet (base input price) 233 Claude Code sessions, re-priced with caching 0× 5× 10× 15× 20× times cheaper than the bigger model Opus 5.5 → Sonnet 5.5 Opus 5.5 → Sonnet 5.5, price sheet: 2.0× cheaper 2.0× Opus 5.5 → Sonnet 5.5, on the trace: 2.0× cheaper 2.0× Fable 5.2 → Sonnet 5.5 Fable 5.2 → Sonnet 5.5, price sheet: 4.0× cheaper 4.0× Fable 5.2 → Sonnet 5.5, on the trace: 3.3× cheaper 3.3× Sonnet 5.5 → Haiku 5.5 Sonnet 5.5 → Haiku 5.5, price sheet: 20.0× cheaper 20.0× Sonnet 5.5 → Haiku 5.5, on the trace: 3.4× cheaper 3.4× Same, if prompts stayed under 100k Same, if prompts stayed under 100k, price sheet: 20.0× cheaper 20.0× Same, if prompts stayed under 100k, on the trace: 15.0× cheaper 15.0×
How much cheaper the smaller model is, on the price sheet and on a re-priced Claude Code trace Opus 5.5 → Sonnet 5.5: 2.0 on the price sheet, 2.0 on the trace; Fable 5.2 → Sonnet 5.5: 4.0 on the price sheet, 3.3 on the trace; Sonnet 5.5 → Haiku 5.5: 20.0 on the price sheet, 3.4 on the trace; Same, if prompts stayed under 100k: 20.0 on the price sheet, 15.0 on the trace. How much cheaper is the smaller model? Price sheet (base input price) Trace, with caching (233 sessions) Opus 5.5 → Sonnet 5.5 Opus 5.5 → Sonnet 5.5, price sheet: 2.0× cheaper 2.0× Opus 5.5 → Sonnet 5.5, on the trace: 2.0× cheaper 2.0× Fable 5.2 → Sonnet 5.5 Fable 5.2 → Sonnet 5.5, price sheet: 4.0× cheaper 4.0× Fable 5.2 → Sonnet 5.5, on the trace: 3.3× cheaper 3.3× Sonnet 5.5 → Haiku 5.5 Sonnet 5.5 → Haiku 5.5, price sheet: 20.0× cheaper 20.0× Sonnet 5.5 → Haiku 5.5, on the trace: 3.4× cheaper 3.4× Same, if prompts stayed under 100k Same, if prompts stayed under 100k, price sheet: 20.0× cheaper 20.0× Same, if prompts stayed under 100k, on the trace: 15.0× cheaper 15.0× 0× 5× 10× 15× 20× times cheaper than the bigger model

Anthropic's own cost guide recommends compacting Haiku before 100,000 tokens; in their test, a 90,000-token trigger cost 70% less per request than the default of 150,000. On this trace, even magically keeping every call under 100,000 tokens gets you to 15×, because Haiku's cache reads are 10× cheaper than Sonnet's ($0.01 against $0.10 per million) while everything else is 20× cheaper. And 15× is a ceiling before you pay the compaction tax: extra summarization calls, cold cache rewrites after every reset, and whatever quality drops when you throw context away early. The median call here carries about 141,000 tokens, and a quarter of the calls clear 275,000. Staying under Haiku's cliff means running a much more amnesiac agent.

In the wild, a team flips a routing rule in their gateway on a Tuesday afternoon and leaves the agent harness alone. Haiku accepts a million-token prompt without complaint, nothing errors, no alerts fire, and the 100,000 cliff first shows up when someone opens the invoice.

Long sessions and subagents

The 3.4× is the ratio of total spend, and it hides a wide spread from session to session. Rank the sessions by what they cost on Sonnet and cut them into quarters:

Sessions, by Sonnet costCost rangeMedian share of calls over 100kHaiku is cheaper by
Smallest quarter$0.29 to $1.5411%6.8×
Second$1.63 to $4.1656%4.6×
Third$4.20 to $12.7075%3.7×
Largest quarter$13.28 to $364.7578%3.2×

Short sessions mostly stay under the line and come out nearly 7× cheaper. Long sessions live above it, and long sessions are where the money is: the ten most expensive hold 41% of the trace's spend, and the biggest single session costs $364.75 on Sonnet, as much as 87 median sessions. The sessions you most want to make cheaper shrink by the smallest factor.

Fair enough: Anthropic's Haiku 5.5 announcement recommends Sonnet 5.5 or Opus 5.5 for complex agentic coding (Terminal-Bench 4.0: 39.2% for Haiku 5.5, 70.6% for Sonnet 5.5) and names compaction, summarization and subagent work as Haiku's job. So we priced the setup Anthropic recommends: keep the main thread on Sonnet and hand the subagents to Haiku. Subagents turn out to be only 18% of the Sonnet bill, and 43% of their calls are still over 100,000 tokens, so even the helper tasks run long. Moving them cuts the subagent slice by 4.0× and trims the whole bill by 13%. Worth doing, sure, but nowhere near the order-of-magnitude cut people picture when they see a 20× price gap.

Why 3.4× is the best case

All of those numbers assume Haiku takes exactly the path recorded in the trace, step for step. A real switch changes the path.

Every step of an agent loop re-sends the conversation so far. If Haiku needs extra steps and each one costs as much as the session's average step, it stays ahead until it needs 3.4 times as many. The real threshold is lower, because extra steps land late in the session, where the context is longest. They can also push a session that started under 100,000 tokens over the line halfway through, and from that call on everything costs five times as much.

Worse than a slow loop is a failed one. If Haiku works through a refactor for twenty turns, gets stuck near the end, and the developer restarts the task on Sonnet, you didn't save 70%. You paid about 30% of a Sonnet run for the attempt, then the full Sonnet run on top: roughly 1.3 times what Sonnet alone would have cost.

Measure sessions, not rate cards

Your own traffic has its own session lengths, compaction settings and cache hit rate. To price a switch on your logs instead of a rate card, we built fleetdiff, a single local binary that reads LiteLLM spend logs from a CSV export or a read-only snapshot of LiteLLM's Postgres. Its what-if command re-prices recorded traffic at another model's rates, request by request, price tiers and cache rates included. On the trace, exported as LiteLLM rows priced at Sonnet 5.5:

$ fleetdiff what-if --litellm-spend trace-sonnet.csv --period 2026-10-07 \
    --from claude-sonnet-5-5 --to claude-haiku-5-5 --fraction 1
Moving 100% of claude-sonnet-5-5 traffic to claude-haiku-5-5 (covered usage): $3,558.76 -> $1,060.99 at the same work and output length, on 2026-11-19 prices.
Target price tiers: 22,592 requests at or under 100,000 prompt tokens; 38,404 over.

That's the first half of this post in two lines: the real discount, and how much of your traffic sits on each side of the cliff.

To see how many extra steps the cheaper model takes, run a canary: route a randomly picked set of sessions to Haiku, export them and the rest of the same week separately, and run fleetdiff's session review on each. On the trace's Haiku-priced export:

$ fleetdiff investigate --litellm-spend trace-haiku.csv --period 2026-10-07
Recorded USD: p50 $1.08; p95 $19.35; max $116.90 (n=233, exact nearest-rank).
Logged model calls: p50 81; p95 979; max 4095 (n=233, exact nearest-rank).

The Sonnet-priced export prints p50 $4.20, p95 $65.89 and max $364.75, with the same call counts. On a real canary, the calls line is the one to watch. fleetdiff stitches rows into sessions by session ID and counts missing spend separately. Its full output also lists the costliest sessions, under aliases in place of raw IDs.

We first tried predicting switches like this from benchmark output ratios; the calibration write-up has that test, and it's why we now measure steps on real sessions instead.

fleetdiff is open source (Apache-2.0) at github.com/llm-measurement/fleetdiff, and every script behind the numbers in this post is in the evidence folder.


What the numbers mean

  • Prices are Anthropic's published standard rates, read on November 19, 2026. The trace is SemiAnalysis's cc-traces-weka-061526, under Apache-2.0.
  • 85% of the calls ran on Claude 4.7-and-later models, which share Haiku 5.5's tokenizer. Scaling the other 15% by the 1.3× that the older tokenizer implies moves the result from 3.35× to 3.34×.
  • The trace's in field is the number of 64-token prefix blocks times 64, a block-based count rather than an exact tokenizer count. SemiAnalysis found it matches billed prompt tokens on average and overcounts by up to about 260,000 tokens in the heaviest cache-write tail. Shrinking every call over 500,000 tokens by the full 260,000 gives 3.42×, and dropping those calls entirely gives 3.56×.
  • The dataset keeps sessions with at least 20 Anthropic requests, so quick few-turn tasks are outside it. The trace's cheapest quarter of sessions came out 6.8× cheaper.