Claude Sonnet 5.5 vs Gemini 3.8 Flash: pricing compared
For a 30-step coding agent run, Gemini 3.8 Flash is 2.3x cheaper ($0.36 vs $0.83). Prices verified 2026-10-18.
| Claude Sonnet 5.5 | Gemini 3.8 Flash | |
|---|---|---|
| Provider | Anthropic | |
| Input / 1M | $2.00 | $0.75 |
| Cached input / 1M | $0.10 | $0.075 |
| Output / 1M | $10.00 | $3.75 |
| Batch discount | 50% | 50% |
| Context window | 1M | 1.05M |
| Long-context tier | none | none |
Cost on real workloads
| Workload | Claude Sonnet 5.5 | Gemini 3.8 Flash |
|---|---|---|
| 10,000 chatbot replies 2,000 input + 400 output tokens each, 50% of the prompt cached | $61.00 | $23.25 |
| One 30-step coding agent run 12K system + tools prompt, 1K output and 3K tool result per step, caching on | $0.83 | $0.36 |
| 1M documents classified (batch) 600 input + 20 output tokens each, batch API where available | $700 | $263 |
Price is only half the decision: a cheaper model that needs more steps or retries can cost more per finished task. Run your own numbers in the calculator (both models pinned), or see how both rank in the use-case guides.
FAQ
Is Claude Sonnet 5.5 cheaper than Gemini 3.8 Flash?
For a typical 30-step coding agent run with caching, Gemini 3.8 Flash costs $0.36 and Claude Sonnet 5.5 costs $0.83, so Gemini 3.8 Flash is 2.3x cheaper. Per 1M tokens, Claude Sonnet 5.5 is $2.00 / $10.00 and Gemini 3.8 Flash is $0.75 / $3.75.
Which has the bigger context window?
Claude Sonnet 5.5: 1,000,000 tokens. Gemini 3.8 Flash: 1,048,576 tokens.