Claude Haiku 4.5 vs Gemini 2.5 Flash

Gemini 2.5 Flash is the cheaper of the two across every workload shape tested below. Headline rates are $1 in / $5 out for Claude Haiku 4.5 versus $0.3 in / $2.5 out for Gemini 2.5 Flash, per million tokens.

Real monthly cost, three workloads

Workload Claude Haiku 4.5 Gemini 2.5 Flash Cheaper
Support chatbot
1.5k in / 400 out · 100k req/mo · 30% cached
$309.50 $132.85 Gemini 2.5 Flash (2.3× cheaper)
RAG / doc Q&A
12k in / 700 out · 50k req/mo · 60% cached
$451.00 $170.30 Gemini 2.5 Flash (2.6× cheaper)
Coding agent
25k in / 2.5k out · 20k req/mo · 80% cached
$390.00 $167.00 Gemini 2.5 Flash (2.3× cheaper)

Costs include prompt caching at the stated hit rate and per-model tokenizer correction. Adjust for your own traffic →

Specifications side by side

Claude Haiku 4.5 Gemini 2.5 Flash
Provider Anthropic Google
Input / M tokens $1 $0.3
Output / M tokens $5 $2.5
Cached input $0.1 $0.03
Context window 200K 1000K
Batch discount −50% −50%
Tokenizer factor ×1 ×1
Min prefix to cache 4096 —
Announced retirement 2026-10-15+ —

Which should you pick?

On cost alone, Gemini 2.5 Flash wins every workload shape above.

Caching behaviour differs. Claude Haiku 4.5 requires a prefix of at least 4,096 tokens before caching activates. Below those thresholds cache_control is ignored silently, with no error — which can quietly erase the saving you were counting on.

Lifecycle matters as much as price here. Claude Haiku 4.5 has an announced shutdown date of 2026-10-15 or later. A model that is marginally cheaper but retires within your planning horizon is rarely the better choice.

Full detail: Claude Haiku 4.5 · Gemini 2.5 Flash

All figures verified 2026-08-18 against official provider documentation. Fields a provider does not publish are shown as “—” rather than estimated.