Claude Opus 4.7 vs Gemini 3.8 Flash
Claude Opus 4.7 leads Gemini 3.8 Flash on coding, 67.5 to 61.6 on the Vibe Coding Index, and Gemini 3.8 Flash costs 6.7x less per output token ($3.75 vs $25.00 per million). Updated October 21, 2026; 84 benchmarks have a result for both.
Claude Opus 4.7 or Gemini 3.8 Flash: which to pick
Pick Claude Opus 4.7 for coding: it scores 67.5 on the Vibe Coding Index against 61.6 for Gemini 3.8 Flash, though on 4 benchmarks against 6.
Pick Gemini 3.8 Flash for output tokens 6.7x cheaper ($3.75 vs $25.00 per million) and a lower cost per solved task ($2.74 against $2.95).
- Shared results
- 84
- Claude Opus 4.7 only
- 19
- Gemini 3.8 Flash only
- 44
- Like-for-like categories
- 7 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
Claude Opus 4.7
Claude Opus 4.7 scores 67.5 against 61.6.
4 and 6 benchmarks behind the scores
Intelligence
AA Intelligence Index
Gemini 3.8 Flash
Gemini 3.8 Flash leads, 40.9 against 40.7.
Same board, both measured
Agentic work
AA Agentic Index
Gemini 3.8 Flash
Gemini 3.8 Flash leads, 40.2 against 38.6.
Same board, both measured
Reasoning
GPQA Diamond
Gemini 3.8 Flash
Gemini 3.8 Flash leads, 94.4% against 90.2%.
Same board, both measured
Math
AIME
No call
Only Claude Opus 4.7 has a AIME result, 96.3%.
Directional only
Knowledge
MMLU Pro
Gemini 3.8 Flash
Gemini 3.8 Flash leads, 90.2% against 89.9%.
Same board, both measured
Web design
Design Arena: websites
No call
Only Gemini 3.8 Flash has a Design Arena: websites result, 1300.
Directional only
General
Vals Index
No call
Only Gemini 3.8 Flash has a Vals Index result, 56.0%.
Directional only
Long documents
Listed context window
Gemini 3.8 Flash
Gemini 3.8 Flash takes 1.05M tokens against 1M.
Listed by OpenRouter
Everyday cost
1K input + 500 output tokens
Gemini 3.8 Flash
Claude Opus 4.7 $0.018, Gemini 3.8 Flash $0.0026 per turn.
List prices
Cost per solved task
One SWE-bench Verified task, solved
Gemini 3.8 Flash
Claude Opus 4.7 $2.95, Gemini 3.8 Flash $2.74.
Published attempt cost and pass rate
At a glance
- Coding index
- Claude Opus 4.7 67.5 from 4 benchmarks, Gemini 3.8 Flash 61.6 from 6 benchmarks.
- Widest category
- Agentic work, 11.5 points apart on average over 7 shared benchmarks.
- Widest single gap
- Vending-Bench 2: Claude Opus 4.7 $10,937 against Gemini 3.8 Flash $5,094, 36.5 points apart on a 0 to 100 scale.
- Output price
- Claude Opus 4.7 $25.00 against Gemini 3.8 Flash $3.75 per million output tokens, 6.7x apart.
- Context window
- Claude Opus 4.7 takes 1M tokens, Gemini 3.8 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 Opus 4.7 | Bars | Gemini 3.8 Flash | Ties |
|---|---|---|---|---|
| Coding | 4 | 11 | ||
| Intelligence | 0 | 2 | ||
| Agentic work | 1 | 6 | ||
| Reasoning | 1 | 13 | ||
| Math | 3 | 3 | ||
| Knowledge | 5 | 6 | ||
| General | 9 | 20 | ||
| All shared boards | 23 | 61 |
CodingLike-for-likeSix of these boards feed the Vibe Coding Index411
| Benchmark | Claude Opus 4.7 | Gemini 3.8 Flash | Leader |
|---|---|---|---|
| LiveBench coding | Not measured | 82.2% | Only Gemini 3.8 Flash measured |
| LMArena WebDev | 1558 | 1585 | Gemini 3.8 Flash |
| AA Coding Index | 73.6 | 76.3 | Gemini 3.8 Flash |
| LiveCodeBench (Vals AI) | 85.1% | 89.5% | Gemini 3.8 Flash |
| SWE-bench Verified (Vals AI) | 82.0% | 80.0% | Claude Opus 4.7 |
| Terminal-Bench 4 (Vals AI) | Not measured | 19.7% | Only Gemini 3.8 Flash measured |
| Vibe Code Bench (Vals AI) | 71.0% | 78.7% | Gemini 3.8 Flash |
| Code migration (Vals AI) | 43.9% | 36.5% | Claude Opus 4.7 |
| ProgramBench (Vals AI) | 0.0% | 1.0% | Gemini 3.8 Flash |
| IOI (Vals AI) | Not measured | 56.9% | Only Gemini 3.8 Flash measured |
| Terminal-Bench 2.1 (Vals AI) | 68.5% | 81.3% | Gemini 3.8 Flash |
| SWE-bench Multimodal (Vals AI) | Not measured | 40.8% | Only Gemini 3.8 Flash measured |
| Vibe Code Bench 1-100 (Vals AI) | Not measured | 18.8% | Only Gemini 3.8 Flash measured |
| SkillsBench (Vals AI) | Not measured | 58.0% | Only Gemini 3.8 Flash measured |
| CyberBench (Vals AI) | Not measured | 43.8% | Only Gemini 3.8 Flash measured |
| SciCode | Not measured | 56.6% | Only Gemini 3.8 Flash measured |
| Terminal-Bench Hard (Artificial Analysis run) | 54.5% | Not measured | Only Claude Opus 4.7 measured |
| Terminal-Bench | 80.2% | Not measured | Only Claude Opus 4.7 measured |
| FrontierCode | 38.5% | 41.2% | Gemini 3.8 Flash |
| FrontierSWE | Not measured | 19.6% | Only Gemini 3.8 Flash measured |
| GSO-Bench | 44.1% | Not measured | Only Claude Opus 4.7 measured |
| WeirdML | 76.4% | 84.8% | Gemini 3.8 Flash |
| MirrorCode | 31.1% | Not measured | Only Claude Opus 4.7 measured |
| ALE-Bench | Not measured | 1269.7 | Only Gemini 3.8 Flash measured |
| LMArena Text: coding | 1519 | 1508 | Claude Opus 4.7 |
| LMArena Text: software and IT | 1516 | 1507 | Claude Opus 4.7 |
| LMArena WebDev: React | 1560 | 1577 | Gemini 3.8 Flash |
| LMArena WebDev: HTML | 1554 | 1616 | Gemini 3.8 Flash |
| LMArena WebDev: from an image | 1577 | 1593 | Gemini 3.8 Flash |
| SciCode | Not measured | 12.3% | Only Gemini 3.8 Flash measured |
| Neither model has a result on the other 9 boards here | |||
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index02
| Benchmark | Claude Opus 4.7 | Gemini 3.8 Flash | Leader |
|---|---|---|---|
| AA Intelligence Index | 40.7 | 40.9 | Gemini 3.8 Flash |
| Epoch Capabilities Index | 156.8 | 157.4 | Gemini 3.8 Flash |
Agentic workLike-for-likePublic boards, shown as published, kept out of the index16
| Benchmark | Claude Opus 4.7 | Gemini 3.8 Flash | Leader |
|---|---|---|---|
| AA Agentic Index | 38.6 | 40.2 | Gemini 3.8 Flash |
| Design Arena: agents building web apps | Not measured | 1238 | Only Gemini 3.8 Flash measured |
| Design Arena: agents building full-stack apps | Not measured | 1244 | Only Gemini 3.8 Flash measured |
| Design Arena: agents building mobile apps | Not measured | 1236 | Only Gemini 3.8 Flash measured |
| Design Arena: agents building Android apps | Not measured | 1074 | Only Gemini 3.8 Flash measured |
| Design Arena: agents building Godot games | Not measured | 1273 | Only Gemini 3.8 Flash measured |
| Design Arena: PowerPoint slides | Not measured | 1177 | Only Gemini 3.8 Flash measured |
| Design Arena: spreadsheets | Not measured | 1056 | Only Gemini 3.8 Flash measured |
| LiveBench research | Not measured | 79.1% | Only Gemini 3.8 Flash measured |
| LiveBench browser | Not measured | 64.0% | Only Gemini 3.8 Flash measured |
| LiveBench long agentic | Not measured | 30.1% | Only Gemini 3.8 Flash measured |
| SREBench (Vals AI) | Not measured | 11.1% | Only Gemini 3.8 Flash measured |
| Finance Agent (Vals AI) | 51.5% | 61.4% | Gemini 3.8 Flash |
| Tax Agent Bench (Vals AI) | 23.7% | 32.1% | Gemini 3.8 Flash |
| Legal Research Bench (Vals AI) | 38.5% | 38.9% | Gemini 3.8 Flash |
| Harvey's Legal Agent Benchmark (Vals AI) | Not measured | 12.1% | Only Gemini 3.8 Flash measured |
| Excel Modeling Benchmark (Vals AI) | 63.7% | 72.2% | Gemini 3.8 Flash |
| BioMysteryBench (Vals AI) | Not measured | 62.2% | Only Gemini 3.8 Flash measured |
| Terminal-Bench-Science (Vals AI) | Not measured | 8.6% | Only Gemini 3.8 Flash measured |
| Vals Science Index | Not measured | 35.8% | Only Gemini 3.8 Flash measured |
| Time Horizon Index (Vals AI) | Not measured | 18.8% | Only Gemini 3.8 Flash measured |
| CUA-bench (Vals AI) | Not measured | 4.2% | Only Gemini 3.8 Flash measured |
| τ²-Bench Telecom | 88.6% | Not measured | Only Claude Opus 4.7 measured |
| APEX-Agents | 49.2% | 64.3% | Gemini 3.8 Flash |
| Remote Labor Index | Not measured | 5.8% | Only Gemini 3.8 Flash measured |
| OSWorld 2.0 | 18.2% | Not measured | Only Claude Opus 4.7 measured |
| PostTrainBench | 28.6% | Not measured | Only Claude Opus 4.7 measured |
| Vending-Bench 2 | $10,937 | $5,094 | Claude Opus 4.7 |
| LMArena Search | 1230 | Not measured | Only Claude Opus 4.7 measured |
| Neither model has a result on the other 12 boards here | |||
ReasoningLike-for-likePublic boards, shown as published, kept out of the index113
| Benchmark | Claude Opus 4.7 | Gemini 3.8 Flash | Leader |
|---|---|---|---|
| GPQA Diamond | 90.2% | 94.4% | Gemini 3.8 Flash |
| LiveBench reasoning | Not measured | 89.3% | Only Gemini 3.8 Flash measured |
| MysteryMechanism (Vals AI) | Not measured | 36.5% | Only Gemini 3.8 Flash measured |
| MMMU Pro (Vals AI) | 85.5% | 89.1% | Gemini 3.8 Flash |
| GPQA Diamond (Artificial Analysis run) | 91.4% | 95.3% | Gemini 3.8 Flash |
| Humanity's Last Exam (Artificial Analysis run) | 42.3% | 47.8% | Gemini 3.8 Flash |
| GPQA Diamond (Epoch AI run) | 90.2% | 95.4% | Gemini 3.8 Flash |
| ARC-AGI | 93.5% | 98.5% | Gemini 3.8 Flash |
| ARC-AGI-2 | 75.8% | 89.2% | Gemini 3.8 Flash |
| SimpleBench | 61.7% | Not measured | Only Claude Opus 4.7 measured |
| Chess puzzles | 41.0% | 58.0% | Gemini 3.8 Flash |
| Mystery game puzzles | 28.0% | 47.0% | Gemini 3.8 Flash |
| EBR-bench | 19.0% | Not measured | Only Claude Opus 4.7 measured |
| LMArena Text: hard prompts | 1506 | 1509 | Gemini 3.8 Flash |
| LMArena Text: expert | 1521 | 1526 | Gemini 3.8 Flash |
| LMArena Text: hard prompts in English | 1508 | 1504 | Claude Opus 4.7 |
| LMArena Vision: diagrams | 1336 | 1345 | Gemini 3.8 Flash |
| LMArena Vision: homework | 1337 | 1351 | Gemini 3.8 Flash |
| Kagi LLM Benchmark | 80.7% | Not measured | Only Claude Opus 4.7 measured |
| Neither model has a result on the other 3 boards here | |||
MathLike-for-likePublic boards, shown as published, kept out of the index33
| Benchmark | Claude Opus 4.7 | Gemini 3.8 Flash | Leader |
|---|---|---|---|
| AIME | 96.3% | Not measured | Only Claude Opus 4.7 measured |
| OTIS Mock AIME | 97.8% | 98.9% | Gemini 3.8 Flash |
| FrontierMath, tiers 1 to 3 | 70.2% | 68.4% | Claude Opus 4.7 |
| FrontierMath, tier 4 | 31.7% | 22.0% | Claude Opus 4.7 |
| ProofBench | 54.0% | 48.0% | Claude Opus 4.7 |
| LMArena Text: math | 1498 | 1532 | Gemini 3.8 Flash |
| LMArena Text: mathematical work | 1509 | 1519 | Gemini 3.8 Flash |
| Neither model has a result on the other 6 boards here | |||
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index56
| Benchmark | Claude Opus 4.7 | Gemini 3.8 Flash | Leader |
|---|---|---|---|
| MMLU Pro | 89.9% | 90.2% | Gemini 3.8 Flash |
| LegalBench (Vals AI) | 85.3% | 87.0% | Gemini 3.8 Flash |
| CaseLaw (Vals AI) | 68.4% | Not measured | Only Claude Opus 4.7 measured |
| CorpFin (Vals AI) | 66.1% | Not measured | Only Claude Opus 4.7 measured |
| TaxEval (Vals AI) | 75.3% | 74.5% | Claude Opus 4.7 |
| MortgageTax (Vals AI) | 70.3% | 65.3% | Claude Opus 4.7 |
| MedCode (Vals AI) | 54.9% | 48.1% | Claude Opus 4.7 |
| SimpleQA Verified | 51.7% | 69.7% | Gemini 3.8 Flash |
| LMArena Text: science | 1508 | 1523 | Gemini 3.8 Flash |
| LMArena Text: medicine and healthcare | 1495 | 1508 | Gemini 3.8 Flash |
| LMArena Text: legal and government | 1504 | 1497 | Claude Opus 4.7 |
| LMArena Text: business and finance | 1490 | 1479 | Claude Opus 4.7 |
| FACTS Benchmark Suite | 45.5% | 69.4% | Gemini 3.8 Flash |
| Neither model has a result on the other 5 boards here | |||
Web designDirectional onlyPublic boards, shown as published, kept out of the index9 boards, none shared
| Benchmark | Claude Opus 4.7 | Gemini 3.8 Flash | Leader |
|---|---|---|---|
| Design Arena: websites | Not measured | 1300 | Only Gemini 3.8 Flash measured |
| Design Arena: UI components | Not measured | 1319 | Only Gemini 3.8 Flash measured |
| Design Arena: game dev | Not measured | 1305 | Only Gemini 3.8 Flash measured |
| Design Arena: data viz | Not measured | 1269 | Only Gemini 3.8 Flash measured |
| Design Arena: 3D | Not measured | 1295 | Only Gemini 3.8 Flash measured |
| Design Arena: all code categories | Not measured | 1304 | Only Gemini 3.8 Flash measured |
| Design Arena: SVG | Not measured | 1295 | Only Gemini 3.8 Flash measured |
| Design Arena: ASCII art | Not measured | 1265 | Only Gemini 3.8 Flash measured |
| LiveBench design | Not measured | 72.7% | Only Gemini 3.8 Flash measured |
GeneralLike-for-likePublic boards, shown as published, kept out of the index920
| Benchmark | Claude Opus 4.7 | Gemini 3.8 Flash | Leader |
|---|---|---|---|
| Vals Index | Not measured | 56.0% | Only Gemini 3.8 Flash measured |
| LiveBench data analysis | Not measured | 54.0% | Only Gemini 3.8 Flash measured |
| Public Benefits Bench (Vals AI) | Not measured | 65.3% | Only Gemini 3.8 Flash measured |
| SAGE (Vals AI) | 56.1% | 35.1% | Claude Opus 4.7 |
| MedScribe (Vals AI) | 83.0% | 84.5% | Gemini 3.8 Flash |
| Vals Multimodal Index | 67.4% | Not measured | Only Claude Opus 4.7 measured |
| IFBench | 58.6% | Not measured | Only Claude Opus 4.7 measured |
| Long context reasoning (AA-LCR) | 78.7% | 84.0% | Gemini 3.8 Flash |
| DTBench | 94.7% | 95.7% | Gemini 3.8 Flash |
| LMCA | 52.2% | 52.9% | Gemini 3.8 Flash |
| Surface Evolver Bench | Not measured | 76.9% | Only Gemini 3.8 Flash measured |
| Furniture assembly | 33.3% | 31.7% | Claude Opus 4.7 |
| ExploitBench | 26.5% | Not measured | Only Claude Opus 4.7 measured |
| LMArena Text | 1490 | 1499 | Gemini 3.8 Flash |
| LMArena Text: instruction following | 1498 | 1492 | Claude Opus 4.7 |
| LMArena Text: creative writing | 1486 | 1488 | Gemini 3.8 Flash |
| LMArena Vision | 1317 | 1315 | Claude Opus 4.7 |
| LMArena Text: English | 1496 | 1498 | Gemini 3.8 Flash |
| LMArena Text: non-English | 1480 | 1491 | Gemini 3.8 Flash |
| LMArena Text: Chinese | 1531 | 1553 | Gemini 3.8 Flash |
| LMArena Text: German | 1495 | 1501 | Gemini 3.8 Flash |
| LMArena Text: Japanese | 1474 | 1507 | Gemini 3.8 Flash |
| LMArena Text: Korean | 1464 | 1464 | Gemini 3.8 Flash |
| LMArena Text: French | 1503 | 1496 | Claude Opus 4.7 |
| LMArena Text: Spanish | 1494 | 1487 | Claude Opus 4.7 |
| LMArena Text: Russian | 1494 | 1514 | Gemini 3.8 Flash |
| LMArena Text: Polish | 1489 | 1497 | Gemini 3.8 Flash |
| LMArena Text: multi-turn | 1505 | 1503 | Claude Opus 4.7 |
| LMArena Text: longer queries | 1505 | 1507 | Gemini 3.8 Flash |
| LMArena Text: writing and language | 1492 | 1494 | Gemini 3.8 Flash |
| LMArena Text: entertainment and media | 1474 | 1480 | Gemini 3.8 Flash |
| LMArena Vision: English | 1322 | 1318 | Claude Opus 4.7 |
| LMArena Vision: Chinese | 1371 | 1416 | Gemini 3.8 Flash |
| LMArena Vision: reading text | 1327 | 1333 | Gemini 3.8 Flash |
| LMArena Vision: humor | 1309 | 1321 | Gemini 3.8 Flash |
| LMArena Vision: recognizing things | 1278 | Not measured | Only Claude Opus 4.7 measured |
| LMArena Vision: creative writing | 1326 | 1299 | Claude Opus 4.7 |
| LMArena Document | 1495 | Not measured | Only Claude Opus 4.7 measured |
| Neither model has a result on the other 8 boards here | |||
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
| Benchmark | Claude Opus 4.7 | Gemini 3.8 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.8 Flash costs less
Repository review
50K input + 3K output tokens
Gemini 3.8 Flash costs less
Agent loop
200K input + 10K output tokens
Gemini 3.8 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 Opus 4.7 | Google Gemini 3.8 Flash |
|---|---|---|
| Maker | Anthropic | |
| Weights | No public weights listed | No public weights listed |
| Released | April 16, 2026 | September 2, 2026 |
| Context window | 1M | 1.05M |
| Input $/Mtok | $5.00 | $0.75 |
| Output $/Mtok | $25.00 | $3.75 |
| Coding index | 67.5 | 61.6 |
| Independent measurements behind it | 4 | 6 |
| Cost per solved task | $2.95 | $2.74 |
| Source | OpenRouter listing | OpenRouter listing |
Questions
Is Claude Opus 4.7 better than Gemini 3.8 Flash for coding?
Pick Claude Opus 4.7 for coding: it scores 67.5 on the Vibe Coding Index against 61.6 for Gemini 3.8 Flash, though on 4 benchmarks against 6. Pick Gemini 3.8 Flash for output tokens 6.7x cheaper ($3.75 vs $25.00 per million) and a lower cost per solved task ($2.74 against $2.95).
Which is cheaper, Claude Opus 4.7 or Gemini 3.8 Flash?
Claude Opus 4.7 costs $5.00 per million input tokens and $25.00 per million output tokens; Gemini 3.8 Flash costs $0.75 and $3.75. Per solved SWE-bench Verified task, Claude Opus 4.7 costs $2.95 and Gemini 3.8 Flash $2.74.
Which has the bigger context window, Claude Opus 4.7 or Gemini 3.8 Flash?
Gemini 3.8 Flash, with 1.05M tokens against 1M.
How many benchmarks is the Claude Opus 4.7 vs Gemini 3.8 Flash comparison based on?
84 benchmarks have a result for both models as of October 21, 2026. Claude Opus 4.7's coding index rests on 4 independent benchmarks and Gemini 3.8 Flash's on 6. Where only one model has a result, the page says so instead of naming a winner.