Claude Sonnet 4.5 vs Gemini 3.7 Flash
Gemini 3.7 Flash leads Claude Sonnet 4.5 on coding, 58.0 to 39.5 on the Vibe Coding Index, and Gemini 3.7 Flash costs 4.0x less per output token ($3.75 vs $15.00 per million). Updated October 21, 2026; 71 benchmarks have a result for both.
Claude Sonnet 4.5 or Gemini 3.7 Flash: which to pick
Pick Gemini 3.7 Flash for coding: it scores 58.0 on the Vibe Coding Index against 39.5 for Claude Sonnet 4.5.
Pick Claude Sonnet 4.5 for a lower cost per solved task ($1.16 against $1.78) and work measured by MedScribe (Vals AI), where it leads.
- Shared results
- 71
- Claude Sonnet 4.5 only
- 24
- Gemini 3.7 Flash only
- 43
- Like-for-like categories
- 8 of 9
Only benchmarks that tested both models count toward a pick; a result only one model has is shown but not compared.
Which one for your work
Each card is decided by one number both models carry. Where only one has it, the card says so and makes no call.
Coding
Vibe Coding Index, six public coding benchmarks
Gemini 3.7 Flash
Gemini 3.7 Flash scores 58.0 against 39.5.
3 and 6 benchmarks behind the scores
Intelligence
AA Intelligence Index
Gemini 3.7 Flash
Gemini 3.7 Flash leads, 39.6 against 20.7.
Same board, both measured
Agentic work
AA Agentic Index
No call
Only Claude Sonnet 4.5 has a AA Agentic Index result, 15.8.
Directional only
Reasoning
GPQA Diamond
Gemini 3.7 Flash
Gemini 3.7 Flash leads, 93.9% against 81.6%.
Same board, both measured
Math
AIME
No call
Only Claude Sonnet 4.5 has a AIME result, 88.2%.
Directional only
Knowledge
MMLU Pro
Gemini 3.7 Flash
Gemini 3.7 Flash leads, 90.1% against 87.4%.
Same board, both measured
Web design
Design Arena: websites
Gemini 3.7 Flash
Gemini 3.7 Flash leads, 1304 against 1190.
Same board, both measured
Long documents
Listed context window
Gemini 3.7 Flash
Gemini 3.7 Flash takes 1.05M tokens against 1M.
Listed by OpenRouter
Everyday cost
1K input + 500 output tokens
Gemini 3.7 Flash
Claude Sonnet 4.5 $0.011, Gemini 3.7 Flash $0.0026 per turn.
List prices
Cost per solved task
One SWE-bench Verified task, solved
Claude Sonnet 4.5
Claude Sonnet 4.5 $1.16, Gemini 3.7 Flash $1.78.
Published attempt cost and pass rate
At a glance
- Coding index
- Claude Sonnet 4.5 39.5 from 3 benchmarks, Gemini 3.7 Flash 58.0 from 6 benchmarks.
- Widest category
- Math, 26.2 points apart on average over 6 shared benchmarks.
- Widest single gap
- ARC-AGI-2: Claude Sonnet 4.5 13.6% against Gemini 3.7 Flash 84.6%, 71.0 points apart on a 0 to 100 scale.
- Output price
- Claude Sonnet 4.5 $15.00 against Gemini 3.7 Flash $3.75 per million output tokens, 4.0x apart.
- Context window
- Claude Sonnet 4.5 takes 1M tokens, Gemini 3.7 Flash 1.05M.
Benchmark by benchmark
First the score: boards each model leads, per category, where both have a result. Then every board, a category to a fold; bars are each result on a 0 to 100 scale, so compare the two in a row, not one row with another.
| Category | Claude Sonnet 4.5 | Bars | Gemini 3.7 Flash | Ties |
|---|---|---|---|---|
| Coding | 0 | 9 | ||
| Intelligence | 0 | 2 | ||
| Agentic work | 0 | 4 | ||
| Reasoning | 0 | 10 | ||
| Math | 0 | 6 | ||
| Knowledge | 0 | 11 | ||
| Web design | 0 | 8 | ||
| General | 1 | 20 | ||
| All shared boards | 1 | 70 |
CodingLike-for-likeSix of these boards feed the Vibe Coding Index09
| Benchmark | Claude Sonnet 4.5 | Gemini 3.7 Flash | Leader |
|---|---|---|---|
| SWE-bench Verified | 74.8% | Not measured | Only Claude Sonnet 4.5 measured |
| SWE-bench Multilingual | 67.0% | Not measured | Only Claude Sonnet 4.5 measured |
| LiveBench coding | Not measured | 80.5% | Only Gemini 3.7 Flash measured |
| LMArena WebDev | 1394 | 1591 | Gemini 3.7 Flash |
| AA Coding Index | 52.1 | 71.5 | Gemini 3.7 Flash |
| LiveCodeBench (Vals AI) | 73.0% | 88.7% | Gemini 3.7 Flash |
| SWE-bench Verified (Vals AI) | 70.0% | 80.8% | Gemini 3.7 Flash |
| Terminal-Bench 4 (Vals AI) | Not measured | 12.1% | Only Gemini 3.7 Flash measured |
| Vibe Code Bench (Vals AI) | 22.6% | 70.4% | Gemini 3.7 Flash |
| Code migration (Vals AI) | Not measured | 34.8% | Only Gemini 3.7 Flash measured |
| ProgramBench (Vals AI) | Not measured | 0.0% | Only Gemini 3.7 Flash measured |
| IOI (Vals AI) | Not measured | 67.8% | Only Gemini 3.7 Flash measured |
| Terminal-Bench 2.1 (Vals AI) | Not measured | 77.5% | Only Gemini 3.7 Flash measured |
| SkillsBench (Vals AI) | Not measured | 65.9% | Only Gemini 3.7 Flash measured |
| CyberBench (Vals AI) | Not measured | 43.8% | Only Gemini 3.7 Flash measured |
| SciCode | Not measured | 59.8% | Only Gemini 3.7 Flash measured |
| Terminal-Bench | 46.5% | Not measured | Only Claude Sonnet 4.5 measured |
| FrontierCode | Not measured | 43.6% | Only Gemini 3.7 Flash measured |
| FrontierSWE | Not measured | 20.3% | Only Gemini 3.7 Flash measured |
| GSO-Bench | 14.7% | Not measured | Only Claude Sonnet 4.5 measured |
| WeirdML | 47.7% | Not measured | Only Claude Sonnet 4.5 measured |
| Cybench | 60.0% | Not measured | Only Claude Sonnet 4.5 measured |
| ALE-Bench | Not measured | 904.3 | Only Gemini 3.7 Flash measured |
| LMArena Text: coding | 1488 | 1499 | Gemini 3.7 Flash |
| LMArena Text: software and IT | 1473 | 1498 | Gemini 3.7 Flash |
| LMArena WebDev: React | 1386 | 1587 | Gemini 3.7 Flash |
| LMArena WebDev: HTML | 1399 | 1593 | Gemini 3.7 Flash |
| LMArena WebDev: from an image | Not measured | 1599 | Only Gemini 3.7 Flash measured |
| SciCode | Not measured | 13.8% | Only Gemini 3.7 Flash measured |
| Neither model has a result on the other 10 boards here | |||
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index02
| Benchmark | Claude Sonnet 4.5 | Gemini 3.7 Flash | Leader |
|---|---|---|---|
| AA Intelligence Index | 20.7 | 39.6 | Gemini 3.7 Flash |
| Epoch Capabilities Index | 146.7 | 158.0 | Gemini 3.7 Flash |
Agentic workLike-for-likePublic boards, shown as published, kept out of the index04
| Benchmark | Claude Sonnet 4.5 | Gemini 3.7 Flash | Leader |
|---|---|---|---|
| AA Agentic Index | 15.8 | Not measured | Only Claude Sonnet 4.5 measured |
| Design Arena: agents building web apps | 1059 | 1223 | Gemini 3.7 Flash |
| Design Arena: agents building full-stack apps | 1050 | 1208 | Gemini 3.7 Flash |
| Design Arena: agents building mobile apps | 1137 | 1230 | Gemini 3.7 Flash |
| Design Arena: agents building Android apps | Not measured | 1242 | Only Gemini 3.7 Flash measured |
| Design Arena: agents building Godot games | Not measured | 1264 | Only Gemini 3.7 Flash measured |
| Design Arena: agents building games | Not measured | 1235 | Only Gemini 3.7 Flash measured |
| Design Arena: spreadsheets | Not measured | 1053 | Only Gemini 3.7 Flash measured |
| LiveBench research | Not measured | 76.5% | Only Gemini 3.7 Flash measured |
| LiveBench browser | Not measured | 56.0% | Only Gemini 3.7 Flash measured |
| LiveBench long agentic | Not measured | 28.3% | Only Gemini 3.7 Flash measured |
| SREBench (Vals AI) | Not measured | 4.6% | Only Gemini 3.7 Flash measured |
| Finance Agent (Vals AI) | Not measured | 59.0% | Only Gemini 3.7 Flash measured |
| Tax Agent Bench (Vals AI) | Not measured | 22.8% | Only Gemini 3.7 Flash measured |
| Legal Research Bench (Vals AI) | Not measured | 34.6% | Only Gemini 3.7 Flash measured |
| Excel Modeling Benchmark (Vals AI) | Not measured | 71.3% | Only Gemini 3.7 Flash measured |
| Terminal-Bench-Science (Vals AI) | Not measured | 7.1% | Only Gemini 3.7 Flash measured |
| APEX-Agents | Not measured | 67.8% | Only Gemini 3.7 Flash measured |
| METR time horizons | 67.4% | Not measured | Only Claude Sonnet 4.5 measured |
| Remote Labor Index | 2.1% | 5.0% | Gemini 3.7 Flash |
| GDPval | 42.5% | Not measured | Only Claude Sonnet 4.5 measured |
| DeepResearch Bench | 52.6% | Not measured | Only Claude Sonnet 4.5 measured |
| OSWorld | 62.9% | Not measured | Only Claude Sonnet 4.5 measured |
| Vending-Bench 2 | $3,839 | Not measured | Only Claude Sonnet 4.5 measured |
| Berkeley Function Calling Leaderboard (BFCL) | 73.2% | Not measured | Only Claude Sonnet 4.5 measured |
| Neither model has a result on the other 16 boards here | |||
ReasoningLike-for-likePublic boards, shown as published, kept out of the index010
| Benchmark | Claude Sonnet 4.5 | Gemini 3.7 Flash | Leader |
|---|---|---|---|
| GPQA Diamond | 81.6% | 93.9% | Gemini 3.7 Flash |
| LiveBench reasoning | Not measured | 87.8% | Only Gemini 3.7 Flash measured |
| MMMU Pro (Vals AI) | 79.3% | 89.0% | Gemini 3.7 Flash |
| GPQA Diamond (Artificial Analysis run) | Not measured | 94.5% | Only Gemini 3.7 Flash measured |
| Humanity's Last Exam (Artificial Analysis run) | Not measured | 47.9% | Only Gemini 3.7 Flash measured |
| GPQA Diamond (Epoch AI run) | 82.3% | 94.8% | Gemini 3.7 Flash |
| ARC-AGI | 63.7% | 95.5% | Gemini 3.7 Flash |
| ARC-AGI-2 | 13.6% | 84.6% | Gemini 3.7 Flash |
| SimpleBench | 54.3% | Not measured | Only Claude Sonnet 4.5 measured |
| Chess puzzles | 10.0% | 66.0% | Gemini 3.7 Flash |
| Mystery game puzzles | 17.0% | 37.0% | Gemini 3.7 Flash |
| EBR-bench | 2.4% | Not measured | Only Claude Sonnet 4.5 measured |
| VPCT | 39.8% | Not measured | Only Claude Sonnet 4.5 measured |
| LMArena Text: hard prompts | 1462 | 1495 | Gemini 3.7 Flash |
| LMArena Text: expert | 1483 | 1512 | Gemini 3.7 Flash |
| LMArena Text: hard prompts in English | 1471 | 1487 | Gemini 3.7 Flash |
| LMArena Vision: diagrams | Not measured | 1329 | Only Gemini 3.7 Flash measured |
| LMArena Vision: homework | Not measured | 1320 | Only Gemini 3.7 Flash measured |
| Kagi LLM Benchmark | 57.9% | Not measured | Only Claude Sonnet 4.5 measured |
| Neither model has a result on the other 3 boards here | |||
MathLike-for-likePublic boards, shown as published, kept out of the index06
| Benchmark | Claude Sonnet 4.5 | Gemini 3.7 Flash | Leader |
|---|---|---|---|
| AIME | 88.2% | Not measured | Only Claude Sonnet 4.5 measured |
| MGSM (Vals AI) | 94.3% | Not measured | Only Claude Sonnet 4.5 measured |
| OTIS Mock AIME | 77.8% | 97.2% | Gemini 3.7 Flash |
| FrontierMath, tiers 1 to 3 | 23.9% | 71.6% | Gemini 3.7 Flash |
| FrontierMath, tier 4 | 2.4% | 36.6% | Gemini 3.7 Flash |
| ProofBench | 19.0% | 58.0% | Gemini 3.7 Flash |
| MATH level 5 | 97.7% | Not measured | Only Claude Sonnet 4.5 measured |
| LMArena Text: math | 1449 | 1511 | Gemini 3.7 Flash |
| LMArena Text: mathematical work | 1462 | 1502 | Gemini 3.7 Flash |
| Neither model has a result on the other 4 boards here | |||
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index011
| Benchmark | Claude Sonnet 4.5 | Gemini 3.7 Flash | Leader |
|---|---|---|---|
| MMLU Pro | 87.4% | 90.1% | Gemini 3.7 Flash |
| LegalBench (Vals AI) | 84.1% | 87.3% | Gemini 3.7 Flash |
| CaseLaw (Vals AI) | 62.2% | Not measured | Only Claude Sonnet 4.5 measured |
| CorpFin (Vals AI) | 62.0% | Not measured | Only Claude Sonnet 4.5 measured |
| TaxEval (Vals AI) | 73.3% | 74.7% | Gemini 3.7 Flash |
| MortgageTax (Vals AI) | 64.0% | 66.7% | Gemini 3.7 Flash |
| MedQA (Vals AI) | 94.7% | Not measured | Only Claude Sonnet 4.5 measured |
| MedCode (Vals AI) | 44.1% | 53.4% | Gemini 3.7 Flash |
| SimpleQA Verified | 30.7% | 69.2% | Gemini 3.7 Flash |
| LMArena Text: science | 1448 | 1511 | Gemini 3.7 Flash |
| LMArena Text: medicine and healthcare | 1444 | 1494 | Gemini 3.7 Flash |
| LMArena Text: legal and government | 1451 | 1496 | Gemini 3.7 Flash |
| LMArena Text: business and finance | 1440 | 1479 | Gemini 3.7 Flash |
| FACTS Benchmark Suite | 40.6% | 71.2% | Gemini 3.7 Flash |
| Neither model has a result on the other 4 boards here | |||
Web designLike-for-likePublic boards, shown as published, kept out of the index08
| Benchmark | Claude Sonnet 4.5 | Gemini 3.7 Flash | Leader |
|---|---|---|---|
| Design Arena: websites | 1190 | 1304 | Gemini 3.7 Flash |
| Design Arena: UI components | 1173 | 1299 | Gemini 3.7 Flash |
| Design Arena: game dev | 1166 | 1318 | Gemini 3.7 Flash |
| Design Arena: data viz | 1167 | 1315 | Gemini 3.7 Flash |
| Design Arena: 3D | 1158 | 1308 | Gemini 3.7 Flash |
| Design Arena: all code categories | 1183 | 1308 | Gemini 3.7 Flash |
| Design Arena: SVG | 1115 | 1283 | Gemini 3.7 Flash |
| Design Arena: ASCII art | 1205 | 1276 | Gemini 3.7 Flash |
| LiveBench design | Not measured | 73.2% | Only Gemini 3.7 Flash measured |
GeneralLike-for-likePublic boards, shown as published, kept out of the index120
| Benchmark | Claude Sonnet 4.5 | Gemini 3.7 Flash | Leader |
|---|---|---|---|
| LiveBench data analysis | Not measured | 68.0% | Only Gemini 3.7 Flash measured |
| SAGE (Vals AI) | 36.1% | 49.2% | Gemini 3.7 Flash |
| MedScribe (Vals AI) | 84.5% | 83.9% | Claude Sonnet 4.5 |
| Long context reasoning (AA-LCR) | Not measured | 83.0% | Only Gemini 3.7 Flash measured |
| DTBench | 83.2% | 96.8% | Gemini 3.7 Flash |
| LMCA | 38.8% | 50.4% | Gemini 3.7 Flash |
| Furniture assembly | Not measured | 26.7% | Only Gemini 3.7 Flash measured |
| LMArena Text | 1438 | 1489 | Gemini 3.7 Flash |
| LMArena Text: instruction following | 1459 | 1484 | Gemini 3.7 Flash |
| LMArena Text: creative writing | 1442 | 1488 | Gemini 3.7 Flash |
| LMArena Vision | Not measured | 1314 | Only Gemini 3.7 Flash measured |
| LMArena Text: English | 1450 | 1483 | Gemini 3.7 Flash |
| LMArena Text: non-English | 1425 | 1487 | Gemini 3.7 Flash |
| LMArena Text: Chinese | 1460 | 1552 | Gemini 3.7 Flash |
| LMArena Text: German | 1427 | 1506 | Gemini 3.7 Flash |
| LMArena Text: Japanese | 1390 | 1511 | Gemini 3.7 Flash |
| LMArena Text: Korean | 1402 | 1481 | Gemini 3.7 Flash |
| LMArena Text: French | 1459 | 1500 | Gemini 3.7 Flash |
| LMArena Text: Spanish | 1458 | 1495 | Gemini 3.7 Flash |
| LMArena Text: Russian | 1437 | 1515 | Gemini 3.7 Flash |
| LMArena Text: Polish | 1423 | 1503 | Gemini 3.7 Flash |
| LMArena Text: multi-turn | 1465 | 1485 | Gemini 3.7 Flash |
| LMArena Text: longer queries | 1475 | 1492 | Gemini 3.7 Flash |
| LMArena Text: writing and language | 1442 | 1491 | Gemini 3.7 Flash |
| LMArena Text: entertainment and media | 1428 | 1477 | Gemini 3.7 Flash |
| LMArena Vision: English | Not measured | 1309 | Only Gemini 3.7 Flash measured |
| LMArena Vision: Chinese | Not measured | 1394 | Only Gemini 3.7 Flash measured |
| LMArena Vision: reading text | Not measured | 1322 | Only Gemini 3.7 Flash measured |
| LMArena Vision: humor | Not measured | 1299 | Only Gemini 3.7 Flash measured |
| LMArena Vision: creative writing | Not measured | 1312 | Only Gemini 3.7 Flash measured |
| LMArena Document | 1450 | Not measured | Only Claude Sonnet 4.5 measured |
| Neither model has a result on the other 15 boards here | |||
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
| Benchmark | Claude Sonnet 4.5 | Gemini 3.7 Flash | Leader |
|---|---|---|---|
| Neither model has a result on 5 boards here | |||
What each workload costs
Three fixed token mixes at each model's listed price, so per-token rates become a bill.
Chat turn
1K input + 500 output tokens
Gemini 3.7 Flash costs less
Repository review
50K input + 3K output tokens
Gemini 3.7 Flash costs less
Agent loop
200K input + 10K output tokens
Gemini 3.7 Flash costs less
Listed OpenRouter rates, without cache or batch discounts. A workload that does not fit a model's context window would need splitting.
Specification differences
The leading value in a row is marked; a row with a missing value names no leader. Our two rows are marked in red.
| Specification | Anthropic Claude Sonnet 4.5 | Google Gemini 3.7 Flash |
|---|---|---|
| Maker | Anthropic | |
| Weights | No public weights listed | No public weights listed |
| Released | September 29, 2025 | August 13, 2026 |
| Context window | 1M | 1.05M |
| Input $/Mtok | $3.00 | $0.75 |
| Output $/Mtok | $15.00 | $3.75 |
| Coding index | 39.5 | 58.0 |
| Independent measurements behind it | 3 | 6 |
| Cost per solved task | $1.16 | $1.78 |
| Source | OpenRouter listing | OpenRouter listing |
Questions
Is Claude Sonnet 4.5 better than Gemini 3.7 Flash for coding?
Pick Gemini 3.7 Flash for coding: it scores 58.0 on the Vibe Coding Index against 39.5 for Claude Sonnet 4.5. Pick Claude Sonnet 4.5 for a lower cost per solved task ($1.16 against $1.78) and work measured by MedScribe (Vals AI), where it leads.
Which is cheaper, Claude Sonnet 4.5 or Gemini 3.7 Flash?
Claude Sonnet 4.5 costs $3.00 per million input tokens and $15.00 per million output tokens; Gemini 3.7 Flash costs $0.75 and $3.75. Per solved SWE-bench Verified task, Claude Sonnet 4.5 costs $1.16 and Gemini 3.7 Flash $1.78.
Which has the bigger context window, Claude Sonnet 4.5 or Gemini 3.7 Flash?
Gemini 3.7 Flash, with 1.05M tokens against 1M.
How many benchmarks is the Claude Sonnet 4.5 vs Gemini 3.7 Flash comparison based on?
71 benchmarks have a result for both models as of October 21, 2026. Claude Sonnet 4.5's coding index rests on 3 independent benchmarks and Gemini 3.7 Flash's on 6. Where only one model has a result, the page says so instead of naming a winner.