Claude Sonnet 5 vs Claude Haiku 4.5: API pricing

Anthropic's Claude Sonnet 5 against Anthropic's Claude Haiku 4.5 on price alone — per-token rates, caching, and context window. Run your own workload through both with the calculator below; capability differences are yours to judge on your evals.

Claude Sonnet 5Claude Haiku 4.5
Input / 1M tokens$2.00$1.00
Cached input / 1M$0.20$0.10
Output / 1M tokens$10.00$5.00
Context window1M200K
Max output125K64K
VendorAnthropicAnthropic

Prices last synced Aug 20, 2026 from the LiteLLM community price catalog — the same catalog Marginal prices real usage events against, refreshed daily. Spot an error? Tell us.

Price takeaways

  • Input: Claude Haiku 4.5 is 2x cheaper.
  • Output: Claude Haiku 4.5 is 2x cheaper.
  • Cached input: Claude Haiku 4.5 is 2x cheaper.
  • Ratios shift with workload shape — output-heavy traffic weights the output rate, cache-friendly traffic weights the cached rate. The calculator below does the arithmetic on your numbers.

Your workload on both

Your monthly workload

Cache hit rate = share of input tokens served from the provider's prompt cache, billed at the model's cached-input price. Estimates use standard per-token rates — batch discounts, service tiers, and long-context surcharges are not applied.

Claude Sonnet 5Claude Haiku 4.5
ModelInputCached inputOutputPer requestMonthly
Claude Haiku 4.5cheapest$600$40.00$1,250$0.00378$1,890
Claude Sonnet 5$1,200$80.00$2,500$0.00756$3,780
Rates used: Claude Sonnet 5 $2.00 in / $10.00 out · Claude Haiku 4.5 $1.00 in / $5.00 out

Related comparisons

Switching models? Watch the bill move in real time.

Marginal prices every call against that day's rates, so an A/B between these two shows up as dollars per customer and feature — not a surprise at month end.