Claude Opus 4.8 vs Gemini 3.8 Flash
Claude Opus 4.8 leads Gemini 3.8 Flash on coding, 65.0 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; 114 benchmarks have a result for both.
Claude Opus 4.8 or Gemini 3.8 Flash: which to pick
Pick Claude Opus 4.8 for coding: it scores 65.0 on the Vibe Coding Index against 61.6 for Gemini 3.8 Flash.
Pick Gemini 3.8 Flash for output tokens 6.7x cheaper ($3.75 vs $25.00 per million) and a larger context window (1.05M against 1M tokens).
- Shared results
- 114
- Claude Opus 4.8 only
- 16
- Gemini 3.8 Flash only
- 14
- 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
Claude Opus 4.8
Claude Opus 4.8 scores 65.0 against 61.6.
6 benchmarks behind each score
Intelligence
AA Intelligence Index
Claude Opus 4.8
Claude Opus 4.8 leads, 41.8 against 40.9.
Same board, both measured
Agentic work
AA Agentic Index
Claude Opus 4.8
Claude Opus 4.8 leads, 41.9 against 40.2.
Same board, both measured
Reasoning
GPQA Diamond
Gemini 3.8 Flash
Gemini 3.8 Flash leads, 94.4% against 92.4%.
Same board, both measured
Knowledge
MMLU Pro
Gemini 3.8 Flash
Gemini 3.8 Flash leads, 90.2% against 89.6%.
Same board, both measured
Web design
Design Arena: websites
Gemini 3.8 Flash
Gemini 3.8 Flash leads, 1300 against 1259.
Same board, both measured
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.8 $0.018, Gemini 3.8 Flash $0.0026 per turn.
List prices
Cost per solved task
One SWE-bench Verified task, solved
Claude Opus 4.8
Claude Opus 4.8 $2.17, Gemini 3.8 Flash $2.74.
Published attempt cost and pass rate
At a glance
- Coding index
- Claude Opus 4.8 65.0 from 6 benchmarks, Gemini 3.8 Flash 61.6 from 6 benchmarks.
- Widest category
- Math, 13.1 points apart on average over 6 shared benchmarks.
- Widest single gap
- FrontierMath, tier 4: Claude Opus 4.8 56.1% against Gemini 3.8 Flash 22.0%, 34.1 points apart on a 0 to 100 scale.
- Output price
- Claude Opus 4.8 $25.00 against Gemini 3.8 Flash $3.75 per million output tokens, 6.7x apart.
- Context window
- Claude Opus 4.8 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.8 | Bars | Gemini 3.8 Flash | Ties |
|---|---|---|---|---|
| Coding | 6 | 11 | 2 ties | |
| Intelligence | 2 | 0 | ||
| Agentic work | 11 | 9 | ||
| Reasoning | 1 | 14 | ||
| Math | 3 | 3 | ||
| Knowledge | 3 | 8 | ||
| Web design | 2 | 7 | ||
| General | 8 | 24 | ||
| All shared boards | 36 | 76 | 2 ties |
CodingLike-for-likeSix of these boards feed the Vibe Coding Index611
| Benchmark | Claude Opus 4.8 | Gemini 3.8 Flash | Leader |
|---|---|---|---|
| LiveBench coding | 77.3% | 82.2% | Gemini 3.8 Flash |
| LMArena WebDev | 1556 | 1585 | Gemini 3.8 Flash |
| AA Coding Index | 74.3 | 76.3 | Gemini 3.8 Flash |
| LiveCodeBench (Vals AI) | 87.8% | 89.5% | Gemini 3.8 Flash |
| SWE-bench Verified (Vals AI) | 88.6% | 80.0% | Claude Opus 4.8 |
| Terminal-Bench 4 (Vals AI) | 23.2% | 19.7% | Claude Opus 4.8 |
| Vibe Code Bench (Vals AI) | 82.7% | 78.7% | Claude Opus 4.8 |
| Code migration (Vals AI) | 47.3% | 36.5% | Claude Opus 4.8 |
| ProgramBench (Vals AI) | 1.0% | 1.0% | Tie |
| IOI (Vals AI) | Not measured | 56.9% | Only Gemini 3.8 Flash measured |
| Terminal-Bench 2.1 (Vals AI) | 71.9% | 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) | 59.2% | 58.0% | Claude Opus 4.8 |
| CyberBench (Vals AI) | Not measured | 43.8% | Only Gemini 3.8 Flash measured |
| SciCode | 54.4% | 56.6% | Gemini 3.8 Flash |
| Terminal-Bench Hard (Artificial Analysis run) | 58.3% | Not measured | Only Claude Opus 4.8 measured |
| FrontierCode | 46.5% | 41.2% | Claude Opus 4.8 |
| FrontierSWE | Not measured | 19.6% | Only Gemini 3.8 Flash measured |
| GSO-Bench | 47.1% | Not measured | Only Claude Opus 4.8 measured |
| WeirdML | 82.9% | 84.8% | Gemini 3.8 Flash |
| ALE-Bench | Not measured | 1269.7 | Only Gemini 3.8 Flash measured |
| LMArena Text: coding | 1490 | 1508 | Gemini 3.8 Flash |
| LMArena Text: software and IT | 1488 | 1507 | Gemini 3.8 Flash |
| LMArena WebDev: React | 1557 | 1577 | Gemini 3.8 Flash |
| LMArena WebDev: HTML | 1543 | 1616 | Gemini 3.8 Flash |
| LMArena WebDev: from an image | Not measured | 1593 | Only Gemini 3.8 Flash measured |
| SciCode | 12.3% | 12.3% | Tie |
| Neither model has a result on the other 11 boards here | |||
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index20
| Benchmark | Claude Opus 4.8 | Gemini 3.8 Flash | Leader |
|---|---|---|---|
| AA Intelligence Index | 41.8 | 40.9 | Claude Opus 4.8 |
| Epoch Capabilities Index | 159.0 | 157.4 | Claude Opus 4.8 |
Agentic workLike-for-likePublic boards, shown as published, kept out of the index119
| Benchmark | Claude Opus 4.8 | Gemini 3.8 Flash | Leader |
|---|---|---|---|
| AA Agentic Index | 41.9 | 40.2 | Claude Opus 4.8 |
| Design Arena: agents building web apps | 1233 | 1238 | Gemini 3.8 Flash |
| Design Arena: agents building full-stack apps | 1249 | 1244 | Claude Opus 4.8 |
| Design Arena: agents building mobile apps | 1222 | 1236 | Gemini 3.8 Flash |
| Design Arena: agents building Android apps | 1232 | 1074 | Claude Opus 4.8 |
| Design Arena: agents building Godot games | 1231 | 1273 | Gemini 3.8 Flash |
| Design Arena: agents building games | 1238 | Not measured | Only Claude Opus 4.8 measured |
| Design Arena: HTML slides | 1221 | Not measured | Only Claude Opus 4.8 measured |
| Design Arena: PowerPoint slides | 1227 | 1177 | Claude Opus 4.8 |
| Design Arena: spreadsheets | 1270 | 1056 | Claude Opus 4.8 |
| LiveBench research | 81.8% | 79.1% | Claude Opus 4.8 |
| LiveBench browser | 96.0% | 64.0% | Claude Opus 4.8 |
| LiveBench long agentic | 48.3% | 30.1% | Claude Opus 4.8 |
| SREBench (Vals AI) | Not measured | 11.1% | Only Gemini 3.8 Flash measured |
| Finance Agent (Vals AI) | 53.9% | 61.4% | Gemini 3.8 Flash |
| Tax Agent Bench (Vals AI) | 30.0% | 32.1% | Gemini 3.8 Flash |
| Legal Research Bench (Vals AI) | 43.8% | 38.9% | Claude Opus 4.8 |
| Harvey's Legal Agent Benchmark (Vals AI) | Not measured | 12.1% | Only Gemini 3.8 Flash measured |
| Excel Modeling Benchmark (Vals AI) | 69.4% | 72.2% | Gemini 3.8 Flash |
| BioMysteryBench (Vals AI) | Not measured | 62.2% | Only Gemini 3.8 Flash measured |
| Terminal-Bench-Science (Vals AI) | 4.3% | 8.6% | Gemini 3.8 Flash |
| Vals Science Index | Not measured | 35.8% | Only Gemini 3.8 Flash measured |
| Time Horizon Index (Vals AI) | 11.8% | 18.8% | Gemini 3.8 Flash |
| CUA-bench (Vals AI) | Not measured | 4.2% | Only Gemini 3.8 Flash measured |
| τ²-Bench Telecom | 94.4% | Not measured | Only Claude Opus 4.8 measured |
| APEX-Agents | 48.9% | 64.3% | Gemini 3.8 Flash |
| Remote Labor Index | 8.3% | 5.8% | Claude Opus 4.8 |
| OSWorld 2.0 | 20.6% | Not measured | Only Claude Opus 4.8 measured |
| DeepResearch Bench | 50.2% | Not measured | Only Claude Opus 4.8 measured |
| PostTrainBench | 33.8% | Not measured | Only Claude Opus 4.8 measured |
| Vending-Bench 2 | $5,787 | $5,094 | Claude Opus 4.8 |
| LMArena Search | 1204 | Not measured | Only Claude Opus 4.8 measured |
| Neither model has a result on the other 9 boards here | |||
ReasoningLike-for-likePublic boards, shown as published, kept out of the index114
| Benchmark | Claude Opus 4.8 | Gemini 3.8 Flash | Leader |
|---|---|---|---|
| GPQA Diamond | 92.4% | 94.4% | Gemini 3.8 Flash |
| LiveBench reasoning | 89.2% | 89.3% | Gemini 3.8 Flash |
| MysteryMechanism (Vals AI) | Not measured | 36.5% | Only Gemini 3.8 Flash measured |
| MMMU Pro (Vals AI) | 86.6% | 89.1% | Gemini 3.8 Flash |
| GPQA Diamond (Artificial Analysis run) | 92.0% | 95.3% | Gemini 3.8 Flash |
| Humanity's Last Exam (Artificial Analysis run) | 48.7% | 47.8% | Claude Opus 4.8 |
| GPQA Diamond (Epoch AI run) | 91.0% | 95.4% | Gemini 3.8 Flash |
| ARC-AGI | 92.5% | 98.5% | Gemini 3.8 Flash |
| ARC-AGI-2 | 72.1% | 89.2% | Gemini 3.8 Flash |
| SimpleBench | 64.8% | Not measured | Only Claude Opus 4.8 measured |
| Chess puzzles | 52.0% | 58.0% | Gemini 3.8 Flash |
| Mystery game puzzles | 36.0% | 47.0% | Gemini 3.8 Flash |
| EBR-bench | 28.6% | Not measured | Only Claude Opus 4.8 measured |
| LMArena Text: hard prompts | 1482 | 1509 | Gemini 3.8 Flash |
| LMArena Text: expert | 1503 | 1526 | Gemini 3.8 Flash |
| LMArena Text: hard prompts in English | 1487 | 1504 | Gemini 3.8 Flash |
| LMArena Vision: diagrams | 1315 | 1345 | Gemini 3.8 Flash |
| LMArena Vision: homework | 1337 | 1351 | Gemini 3.8 Flash |
| Kagi LLM Benchmark | 88.8% | Not measured | Only Claude Opus 4.8 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.8 | Gemini 3.8 Flash | Leader |
|---|---|---|---|
| OTIS Mock AIME | 98.3% | 98.9% | Gemini 3.8 Flash |
| FrontierMath, tiers 1 to 3 | 80.0% | 68.4% | Claude Opus 4.8 |
| FrontierMath, tier 4 | 56.1% | 22.0% | Claude Opus 4.8 |
| ProofBench | 69.0% | 48.0% | Claude Opus 4.8 |
| LMArena Text: math | 1486 | 1532 | Gemini 3.8 Flash |
| LMArena Text: mathematical work | 1497 | 1519 | Gemini 3.8 Flash |
| Neither model has a result on the other 7 boards here | |||
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index38
| Benchmark | Claude Opus 4.8 | Gemini 3.8 Flash | Leader |
|---|---|---|---|
| MMLU Pro | 89.6% | 90.2% | Gemini 3.8 Flash |
| LegalBench (Vals AI) | 83.6% | 87.0% | Gemini 3.8 Flash |
| CorpFin (Vals AI) | 66.7% | Not measured | Only Claude Opus 4.8 measured |
| TaxEval (Vals AI) | 75.6% | 74.5% | Claude Opus 4.8 |
| MortgageTax (Vals AI) | 69.9% | 65.3% | Claude Opus 4.8 |
| MedCode (Vals AI) | 53.2% | 48.1% | Claude Opus 4.8 |
| SimpleQA Verified | 53.0% | 69.7% | Gemini 3.8 Flash |
| LMArena Text: science | 1477 | 1523 | Gemini 3.8 Flash |
| LMArena Text: medicine and healthcare | 1464 | 1508 | Gemini 3.8 Flash |
| LMArena Text: legal and government | 1477 | 1497 | Gemini 3.8 Flash |
| LMArena Text: business and finance | 1458 | 1479 | Gemini 3.8 Flash |
| FACTS Benchmark Suite | 53.5% | 69.4% | Gemini 3.8 Flash |
| Neither model has a result on the other 6 boards here | |||
Web designLike-for-likePublic boards, shown as published, kept out of the index27
| Benchmark | Claude Opus 4.8 | Gemini 3.8 Flash | Leader |
|---|---|---|---|
| Design Arena: websites | 1259 | 1300 | Gemini 3.8 Flash |
| Design Arena: UI components | 1257 | 1319 | Gemini 3.8 Flash |
| Design Arena: game dev | 1264 | 1305 | Gemini 3.8 Flash |
| Design Arena: data viz | 1240 | 1269 | Gemini 3.8 Flash |
| Design Arena: 3D | 1223 | 1295 | Gemini 3.8 Flash |
| Design Arena: all code categories | 1255 | 1304 | Gemini 3.8 Flash |
| Design Arena: SVG | 1194 | 1295 | Gemini 3.8 Flash |
| Design Arena: ASCII art | 1277 | 1265 | Claude Opus 4.8 |
| LiveBench design | 78.8% | 72.7% | Claude Opus 4.8 |
GeneralLike-for-likePublic boards, shown as published, kept out of the index824
| Benchmark | Claude Opus 4.8 | Gemini 3.8 Flash | Leader |
|---|---|---|---|
| Vals Index | Not measured | 56.0% | Only Gemini 3.8 Flash measured |
| LiveBench data analysis | 66.0% | 54.0% | Claude Opus 4.8 |
| Public Benefits Bench (Vals AI) | 68.1% | 65.3% | Claude Opus 4.8 |
| SAGE (Vals AI) | 54.8% | 35.1% | Claude Opus 4.8 |
| MedScribe (Vals AI) | 85.8% | 84.5% | Claude Opus 4.8 |
| Vals Multimodal Index | 70.9% | Not measured | Only Claude Opus 4.8 measured |
| IFBench | 62.2% | Not measured | Only Claude Opus 4.8 measured |
| Long context reasoning (AA-LCR) | 77.7% | 84.0% | Gemini 3.8 Flash |
| DTBench | 94.9% | 95.7% | Gemini 3.8 Flash |
| LMCA | 57.5% | 52.9% | Claude Opus 4.8 |
| Surface Evolver Bench | 87.5% | 76.9% | Claude Opus 4.8 |
| Furniture assembly | 42.5% | 31.7% | Claude Opus 4.8 |
| LMArena Text | 1461 | 1499 | Gemini 3.8 Flash |
| LMArena Text: instruction following | 1476 | 1492 | Gemini 3.8 Flash |
| LMArena Text: creative writing | 1454 | 1488 | Gemini 3.8 Flash |
| LMArena Vision | 1294 | 1315 | Gemini 3.8 Flash |
| LMArena Text: English | 1468 | 1498 | Gemini 3.8 Flash |
| LMArena Text: non-English | 1450 | 1491 | Gemini 3.8 Flash |
| LMArena Text: Chinese | 1506 | 1553 | Gemini 3.8 Flash |
| LMArena Text: German | 1472 | 1501 | Gemini 3.8 Flash |
| LMArena Text: Japanese | 1442 | 1507 | Gemini 3.8 Flash |
| LMArena Text: Korean | 1431 | 1464 | Gemini 3.8 Flash |
| LMArena Text: French | 1481 | 1496 | Gemini 3.8 Flash |
| LMArena Text: Spanish | 1465 | 1487 | Gemini 3.8 Flash |
| LMArena Text: Russian | 1474 | 1514 | Gemini 3.8 Flash |
| LMArena Text: Polish | 1459 | 1497 | Gemini 3.8 Flash |
| LMArena Text: multi-turn | 1476 | 1503 | Gemini 3.8 Flash |
| LMArena Text: longer queries | 1483 | 1507 | Gemini 3.8 Flash |
| LMArena Text: writing and language | 1461 | 1494 | Gemini 3.8 Flash |
| LMArena Text: entertainment and media | 1440 | 1480 | Gemini 3.8 Flash |
| LMArena Vision: English | 1293 | 1318 | Gemini 3.8 Flash |
| LMArena Vision: Chinese | 1346 | 1416 | Gemini 3.8 Flash |
| LMArena Vision: reading text | 1303 | 1333 | Gemini 3.8 Flash |
| LMArena Vision: humor | 1282 | 1321 | Gemini 3.8 Flash |
| LMArena Vision: creative writing | 1301 | 1299 | Claude Opus 4.8 |
| LMArena Document | 1475 | Not measured | Only Claude Opus 4.8 measured |
| Neither model has a result on the other 10 boards here | |||
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
| Benchmark | Claude Opus 4.8 | 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.8 | Google Gemini 3.8 Flash |
|---|---|---|
| Maker | Anthropic | |
| Weights | No public weights listed | No public weights listed |
| Released | May 27, 2026 | September 2, 2026 |
| Context window | 1M | 1.05M |
| Input $/Mtok | $5.00 | $0.75 |
| Output $/Mtok | $25.00 | $3.75 |
| Coding index | 65.0 | 61.6 |
| Independent measurements behind it | 6 | 6 |
| Cost per solved task | $2.17 | $2.74 |
| Source | OpenRouter listing | OpenRouter listing |
Questions
Is Claude Opus 4.8 better than Gemini 3.8 Flash for coding?
Pick Claude Opus 4.8 for coding: it scores 65.0 on the Vibe Coding Index against 61.6 for Gemini 3.8 Flash. Pick Gemini 3.8 Flash for output tokens 6.7x cheaper ($3.75 vs $25.00 per million) and a larger context window (1.05M against 1M tokens).
Which is cheaper, Claude Opus 4.8 or Gemini 3.8 Flash?
Claude Opus 4.8 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.8 costs $2.17 and Gemini 3.8 Flash $2.74.
Which has the bigger context window, Claude Opus 4.8 or Gemini 3.8 Flash?
Gemini 3.8 Flash, with 1.05M tokens against 1M.
How many benchmarks is the Claude Opus 4.8 vs Gemini 3.8 Flash comparison based on?
114 benchmarks have a result for both models as of October 21, 2026. Claude Opus 4.8's coding index rests on 6 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.