Compare · updated 2026-11-01
Claude Sonnet vs Gemini Flash
Claude Sonnet is better at writing, coding, reasoning; Gemini Flash is better at quick answers, maths, structured data, long documents, translation. Gemini Flash is the cheaper of the two on output.
Measured quality by task
| Task | Claude Sonnet | Gemini Flash | Better |
|---|---|---|---|
| Quick answers | 85/100 | 91/100 | Gemini Flash |
| Writing | 93/100 | 81/100 | Claude Sonnet |
| Coding | 94/100 | 80/100 | Claude Sonnet |
| Reasoning | 90/100 | 74/100 | Claude Sonnet |
| Maths | 84/100 | 85/100 | Gemini Flash |
| Structured data | 88/100 | 93/100 | Gemini Flash |
| Long documents | 90/100 | 94/100 | Gemini Flash |
| Translation | 86/100 | 92/100 | Gemini Flash |
Quality is Nivana’s measured score for each kind of task, from weekly pairwise evals judged by models from several labs. Prices are live AI Gateway list prices per million tokens. Updated 2026-11-01. How this is measured.
Price and context
| Claude Sonnet | Gemini Flash | |
|---|---|---|
| Lab | Anthropic | |
| Input per 1M tokens | $2 | $0.75 |
| Output per 1M tokens | $10 | $3.75 |
| Typical chat answer | $0.010 | $0.00375 |
| Context window | 1M | 1M |
| Router picks it for | 3 of 24 request types | 1 of 24 request types |
Which should you use?
Use the one that wins the kind of work you do most, unless the price gap outweighs the quality gap for easy requests. Or don’t choose: Nivana scores both, and the rest of the pool, on every request and sends it to whichever is best for that request.
Questions
Is Claude Sonnet better than Gemini Flash?
On Nivana’s weekly evals Claude Sonnet scores higher on 3 of 8 task types (writing, coding, reasoning) and Gemini Flash on 5 (quick answers, maths, structured data, long documents, translation). Neither is better at everything.
Which is better for coding, Claude Sonnet or Gemini Flash?
Claude Sonnet: 94/100 against 80/100 for Gemini Flash on Nivana’s coding evals.
Which is better for writing, Claude Sonnet or Gemini Flash?
Claude Sonnet: 93/100 against 81/100 for Gemini Flash on Nivana’s writing evals.
Which is cheaper, Claude Sonnet or Gemini Flash?
Gemini Flash: $3.75 per million output tokens against $10 for Claude Sonnet, about 2.7× less. A typical chat answer costs about $0.0037 on Gemini Flash and $0.010 on Claude Sonnet.
Or let the router pick, per request
Nivana sends every message to the model that scores best for it, sets how hard it thinks, and tells you which one answered. 2,000 free credits to start, no card.