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

TaskClaude SonnetGemini FlashBetter
Quick answers85/10091/100Gemini Flash
Writing93/10081/100Claude Sonnet
Coding94/10080/100Claude Sonnet
Reasoning90/10074/100Claude Sonnet
Maths84/10085/100Gemini Flash
Structured data88/10093/100Gemini Flash
Long documents90/10094/100Gemini Flash
Translation86/10092/100Gemini 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 SonnetGemini Flash
LabAnthropicGoogle
Input per 1M tokens$2$0.75
Output per 1M tokens$10$3.75
Typical chat answer$0.010$0.00375
Context window1M1M
Router picks it for3 of 24 request types1 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.