Claude Haiku 4.5 vs Gemini 2.5 Flash pricing
Side-by-side LLM API pricing.Gemini 2.5 Flash is cheaper on input ($0.30 vs $1.00 /1M), and Gemini 2.5 Flash is cheaper on output ($2.50 vs $5.00 /1M). On a blended average, Gemini 2.5 Flash is lower — but which wins for you depends on your input/output mix, so check the example workloads below or run the calculator.
| Attribute | Claude Haiku 4.5 | Gemini 2.5 Flash |
|---|---|---|
| Provider | Anthropic | |
| Tier | Budget | Mid-range |
| Status | GA | GA |
| Context window | 200K | 1M |
| Input /1M | $1.00 | $0.30 |
| Output /1M | $5.00 | $2.50 |
| Cached input /1M | $0.10 | $0.03 |
| Batch input /1M | $0.50 | $0.15 |
| Batch output /1M | $2.50 | $1.25 |
| Blended (avg in+out) | $3.00 | $1.40 |
| 1M in + 1M out | $6.00 | $2.80 |
| 1M in (90% cached) + 100K out | $0.6900 | $0.3070 |
List prices, USD, directional. Rates are provider list prices per 1M tokens and are meant for comparison, not billing. Batch rates shown as 50% off are derived where a provider offers batch but does not publish a separate figure. Preview, promo, intro, peak/off-peak, long-context, and third-party-host prices are labeled where they apply. Token counts vary by tokenizer, so per-token price is not always a like-for-like cost. Always confirm with the provider before relying on a number. Prices as of 2026-08-03.
Which should you pick?
For a balanced job (1M input + 1M output), Gemini 2.5 Flash costs $2.80 versus $6.00. If your prompts are large and reused, prompt caching changes the maths — the cache-heavy row above shows a 90%-cached input scenario. If your work can run asynchronously, both providers' batch rates cut the bill further where offered.
Full price matrices: Claude Haiku 4.5 pricing → · Gemini 2.5 Flash pricing → · Back to the LLM pricing hub →