Side-by-side technical and economic comparison between Anthropic's Claude Haiku 4.5 and Google's Gemini 3.8 Flash.
| Metric | Claude Haiku 4.5 | Gemini 3.8 Flash | Advantage |
|---|---|---|---|
| Provider Organization | Anthropic | — | |
| Standard Input / 1M | $1.00 | $0.75 | Gemini 3.8 Flash (25% lower) |
| Cached Input / 1M | $0.10 | $0.075 | Gemini 3.8 Flash lower |
| Output / 1M | $5.00 | $3.75 | Gemini 3.8 Flash lower |
| Context Window | 200k | 1.05M | Gemini 3.8 Flash (1.05M) |
| Max Generation Tokens | 8.2k | 16.4k | Gemini 3.8 Flash |
| Tokenizer Family | Anthropic Claude BPE (~65k vocabulary) | Google Gemini SentencePiece (256k vocabulary) | — |
| Workload (per month) | Claude Haiku 4.5 | Gemini 3.8 Flash |
|---|---|---|
| Chatbot10k requests · 500 in / 200 out | $15.00 | $11.25 |
| RAG app100k requests · 8,000 in / 1,200 out | $1,400.00 | $1,050.00 |
| Coding agent100k requests · 12,000 in / 2,000 out | $2,200.00 | $1,650.00 |
Standard rates, no caching or batch discounts. Model your own numbers below.
Opt for Claude Haiku 4.5 when your engineering requirements prioritize Anthropic's ecosystem, specific tokenizer efficiencies (Calibrated Claude Tokenizer (±3%)), or when your expected prompt-to-completion ratios favor its $1/M input rate.
Opt for Gemini 3.8 Flash when looking for Google's tooling integration, specific context window depth (1.05M tokens), or when output generation volume favors its $3.75/M rate.
At a typical 3:1 input-to-output token mix, Gemini 3.8 Flash is about 25% cheaper than Claude Haiku 4.5. Claude Haiku 4.5 costs $1 per 1M input and $5 per 1M output tokens; Gemini 3.8 Flash costs $0.75 and $3.75.
Gemini 3.8 Flash has the larger context window: 1.05M tokens vs 200k.
Claude Haiku 4.5: yes, cached input costs $0.1/1M. Gemini 3.8 Flash: yes, cached input costs $0.075/1M.