Enter opens the highlighted result. Esc closes.

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.7Anthropic
Coding
67.5
Overall
71.6
Output $/M
$25.00
23
Gemini 3.8 FlashGoogle
Coding
61.6
Overall
69.0
Output $/M
$3.75
61
vs boards won of 84 shared

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.

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.

Boards won, where both have a result
CategoryClaude Opus 4.7BarsGemini 3.8 FlashTies
Coding411
Intelligence02
Agentic work16
Reasoning113
Math33
Knowledge56
General920
All shared boards2361
CodingLike-for-likeSix of these boards feed the Vibe Coding Index411
Coding benchmarks for Claude Opus 4.7 and Gemini 3.8 Flash
BenchmarkClaude Opus 4.7Gemini 3.8 FlashLeader
LiveBench codingNot measured82.2%Only Gemini 3.8 Flash measured
LMArena WebDev15581585Gemini 3.8 Flash
AA Coding Index73.676.3Gemini 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 measured19.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 measured56.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 measured40.8%Only Gemini 3.8 Flash measured
Vibe Code Bench 1-100 (Vals AI)Not measured18.8%Only Gemini 3.8 Flash measured
SkillsBench (Vals AI)Not measured58.0%Only Gemini 3.8 Flash measured
CyberBench (Vals AI)Not measured43.8%Only Gemini 3.8 Flash measured
SciCodeNot measured56.6%Only Gemini 3.8 Flash measured
Terminal-Bench Hard (Artificial Analysis run)54.5%Not measuredOnly Claude Opus 4.7 measured
Terminal-Bench80.2%Not measuredOnly Claude Opus 4.7 measured
FrontierCode38.5%41.2%Gemini 3.8 Flash
FrontierSWENot measured19.6%Only Gemini 3.8 Flash measured
GSO-Bench44.1%Not measuredOnly Claude Opus 4.7 measured
WeirdML76.4%84.8%Gemini 3.8 Flash
MirrorCode31.1%Not measuredOnly Claude Opus 4.7 measured
ALE-BenchNot measured1269.7Only Gemini 3.8 Flash measured
LMArena Text: coding15191508Claude Opus 4.7
LMArena Text: software and IT15161507Claude Opus 4.7
LMArena WebDev: React15601577Gemini 3.8 Flash
LMArena WebDev: HTML15541616Gemini 3.8 Flash
LMArena WebDev: from an image15771593Gemini 3.8 Flash
SciCodeNot measured12.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
Intelligence benchmarks for Claude Opus 4.7 and Gemini 3.8 Flash
BenchmarkClaude Opus 4.7Gemini 3.8 FlashLeader
AA Intelligence Index40.740.9Gemini 3.8 Flash
Epoch Capabilities Index156.8157.4Gemini 3.8 Flash
Agentic workLike-for-likePublic boards, shown as published, kept out of the index16
Agentic work benchmarks for Claude Opus 4.7 and Gemini 3.8 Flash
BenchmarkClaude Opus 4.7Gemini 3.8 FlashLeader
AA Agentic Index38.640.2Gemini 3.8 Flash
Design Arena: agents building web appsNot measured1238Only Gemini 3.8 Flash measured
Design Arena: agents building full-stack appsNot measured1244Only Gemini 3.8 Flash measured
Design Arena: agents building mobile appsNot measured1236Only Gemini 3.8 Flash measured
Design Arena: agents building Android appsNot measured1074Only Gemini 3.8 Flash measured
Design Arena: agents building Godot gamesNot measured1273Only Gemini 3.8 Flash measured
Design Arena: PowerPoint slidesNot measured1177Only Gemini 3.8 Flash measured
Design Arena: spreadsheetsNot measured1056Only Gemini 3.8 Flash measured
LiveBench researchNot measured79.1%Only Gemini 3.8 Flash measured
LiveBench browserNot measured64.0%Only Gemini 3.8 Flash measured
LiveBench long agenticNot measured30.1%Only Gemini 3.8 Flash measured
SREBench (Vals AI)Not measured11.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 measured12.1%Only Gemini 3.8 Flash measured
Excel Modeling Benchmark (Vals AI)63.7%72.2%Gemini 3.8 Flash
BioMysteryBench (Vals AI)Not measured62.2%Only Gemini 3.8 Flash measured
Terminal-Bench-Science (Vals AI)Not measured8.6%Only Gemini 3.8 Flash measured
Vals Science IndexNot measured35.8%Only Gemini 3.8 Flash measured
Time Horizon Index (Vals AI)Not measured18.8%Only Gemini 3.8 Flash measured
CUA-bench (Vals AI)Not measured4.2%Only Gemini 3.8 Flash measured
τ²-Bench Telecom88.6%Not measuredOnly Claude Opus 4.7 measured
APEX-Agents49.2%64.3%Gemini 3.8 Flash
Remote Labor IndexNot measured5.8%Only Gemini 3.8 Flash measured
OSWorld 2.018.2%Not measuredOnly Claude Opus 4.7 measured
PostTrainBench28.6%Not measuredOnly Claude Opus 4.7 measured
Vending-Bench 2$10,937$5,094Claude Opus 4.7
LMArena Search1230Not measuredOnly 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
Reasoning benchmarks for Claude Opus 4.7 and Gemini 3.8 Flash
BenchmarkClaude Opus 4.7Gemini 3.8 FlashLeader
GPQA Diamond90.2%94.4%Gemini 3.8 Flash
LiveBench reasoningNot measured89.3%Only Gemini 3.8 Flash measured
MysteryMechanism (Vals AI)Not measured36.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-AGI93.5%98.5%Gemini 3.8 Flash
ARC-AGI-275.8%89.2%Gemini 3.8 Flash
SimpleBench61.7%Not measuredOnly Claude Opus 4.7 measured
Chess puzzles41.0%58.0%Gemini 3.8 Flash
Mystery game puzzles28.0%47.0%Gemini 3.8 Flash
EBR-bench19.0%Not measuredOnly Claude Opus 4.7 measured
LMArena Text: hard prompts15061509Gemini 3.8 Flash
LMArena Text: expert15211526Gemini 3.8 Flash
LMArena Text: hard prompts in English15081504Claude Opus 4.7
LMArena Vision: diagrams13361345Gemini 3.8 Flash
LMArena Vision: homework13371351Gemini 3.8 Flash
Kagi LLM Benchmark80.7%Not measuredOnly 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
Math benchmarks for Claude Opus 4.7 and Gemini 3.8 Flash
BenchmarkClaude Opus 4.7Gemini 3.8 FlashLeader
AIME96.3%Not measuredOnly Claude Opus 4.7 measured
OTIS Mock AIME97.8%98.9%Gemini 3.8 Flash
FrontierMath, tiers 1 to 370.2%68.4%Claude Opus 4.7
FrontierMath, tier 431.7%22.0%Claude Opus 4.7
ProofBench54.0%48.0%Claude Opus 4.7
LMArena Text: math14981532Gemini 3.8 Flash
LMArena Text: mathematical work15091519Gemini 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
Knowledge benchmarks for Claude Opus 4.7 and Gemini 3.8 Flash
BenchmarkClaude Opus 4.7Gemini 3.8 FlashLeader
MMLU Pro89.9%90.2%Gemini 3.8 Flash
LegalBench (Vals AI)85.3%87.0%Gemini 3.8 Flash
CaseLaw (Vals AI)68.4%Not measuredOnly Claude Opus 4.7 measured
CorpFin (Vals AI)66.1%Not measuredOnly 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 Verified51.7%69.7%Gemini 3.8 Flash
LMArena Text: science15081523Gemini 3.8 Flash
LMArena Text: medicine and healthcare14951508Gemini 3.8 Flash
LMArena Text: legal and government15041497Claude Opus 4.7
LMArena Text: business and finance14901479Claude Opus 4.7
FACTS Benchmark Suite45.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
Web design benchmarks for Claude Opus 4.7 and Gemini 3.8 Flash
BenchmarkClaude Opus 4.7Gemini 3.8 FlashLeader
Design Arena: websitesNot measured1300Only Gemini 3.8 Flash measured
Design Arena: UI componentsNot measured1319Only Gemini 3.8 Flash measured
Design Arena: game devNot measured1305Only Gemini 3.8 Flash measured
Design Arena: data vizNot measured1269Only Gemini 3.8 Flash measured
Design Arena: 3DNot measured1295Only Gemini 3.8 Flash measured
Design Arena: all code categoriesNot measured1304Only Gemini 3.8 Flash measured
Design Arena: SVGNot measured1295Only Gemini 3.8 Flash measured
Design Arena: ASCII artNot measured1265Only Gemini 3.8 Flash measured
LiveBench designNot measured72.7%Only Gemini 3.8 Flash measured
GeneralLike-for-likePublic boards, shown as published, kept out of the index920
General benchmarks for Claude Opus 4.7 and Gemini 3.8 Flash
BenchmarkClaude Opus 4.7Gemini 3.8 FlashLeader
Vals IndexNot measured56.0%Only Gemini 3.8 Flash measured
LiveBench data analysisNot measured54.0%Only Gemini 3.8 Flash measured
Public Benefits Bench (Vals AI)Not measured65.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 Index67.4%Not measuredOnly Claude Opus 4.7 measured
IFBench58.6%Not measuredOnly Claude Opus 4.7 measured
Long context reasoning (AA-LCR)78.7%84.0%Gemini 3.8 Flash
DTBench94.7%95.7%Gemini 3.8 Flash
LMCA52.2%52.9%Gemini 3.8 Flash
Surface Evolver BenchNot measured76.9%Only Gemini 3.8 Flash measured
Furniture assembly33.3%31.7%Claude Opus 4.7
ExploitBench26.5%Not measuredOnly Claude Opus 4.7 measured
LMArena Text14901499Gemini 3.8 Flash
LMArena Text: instruction following14981492Claude Opus 4.7
LMArena Text: creative writing14861488Gemini 3.8 Flash
LMArena Vision13171315Claude Opus 4.7
LMArena Text: English14961498Gemini 3.8 Flash
LMArena Text: non-English14801491Gemini 3.8 Flash
LMArena Text: Chinese15311553Gemini 3.8 Flash
LMArena Text: German14951501Gemini 3.8 Flash
LMArena Text: Japanese14741507Gemini 3.8 Flash
LMArena Text: Korean14641464Gemini 3.8 Flash
LMArena Text: French15031496Claude Opus 4.7
LMArena Text: Spanish14941487Claude Opus 4.7
LMArena Text: Russian14941514Gemini 3.8 Flash
LMArena Text: Polish14891497Gemini 3.8 Flash
LMArena Text: multi-turn15051503Claude Opus 4.7
LMArena Text: longer queries15051507Gemini 3.8 Flash
LMArena Text: writing and language14921494Gemini 3.8 Flash
LMArena Text: entertainment and media14741480Gemini 3.8 Flash
LMArena Vision: English13221318Claude Opus 4.7
LMArena Vision: Chinese13711416Gemini 3.8 Flash
LMArena Vision: reading text13271333Gemini 3.8 Flash
LMArena Vision: humor13091321Gemini 3.8 Flash
LMArena Vision: recognizing things1278Not measuredOnly Claude Opus 4.7 measured
LMArena Vision: creative writing13261299Claude Opus 4.7
LMArena Document1495Not measuredOnly 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
Image generation benchmarks for Claude Opus 4.7 and Gemini 3.8 Flash
BenchmarkClaude Opus 4.7Gemini 3.8 FlashLeader
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

Claude Opus 4.7$0.018Fits in one request
Gemini 3.8 Flash$0.0026Fits in one request

Gemini 3.8 Flash costs less

Repository review

50K input + 3K output tokens

Claude Opus 4.7$0.325Fits in one request
Gemini 3.8 Flash$0.049Fits in one request

Gemini 3.8 Flash costs less

Agent loop

200K input + 10K output tokens

Claude Opus 4.7$1.25Fits in one request
Gemini 3.8 Flash$0.188Fits in one request

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.

Specifications of Claude Opus 4.7 and Gemini 3.8 Flash
SpecificationAnthropic Claude Opus 4.7Google Gemini 3.8 Flash
MakerAnthropicGoogle
WeightsNo public weights listedNo public weights listed
ReleasedApril 16, 2026September 2, 2026
Context window1M1.05M
Input $/Mtok$5.00$0.75
Output $/Mtok$25.00$3.75
Coding index67.561.6
Independent measurements behind it46
Cost per solved task$2.95$2.74
SourceOpenRouter listingOpenRouter 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.

Compare next

Embed this comparison on your site

Free under CC BY 4.0, while the source link stays visible. Preview the frame · Terms and other embeds

<iframe src="https://llmbenchmark.ai/embed/compare/claude-opus-4-7-vs-gemini-3-8-flash" title="Claude Opus 4.7 vs Gemini 3.8 Flash, LLMBenchmark.ai" width="100%" height="360" style="border:0;max-width:100%" loading="lazy"></iframe>
<p style="font:13px/1.4 sans-serif;margin:6px 0 0">Source: <a href="https://llmbenchmark.ai/compare/claude-opus-4-7-vs-gemini-3-8-flash">LLMBenchmark.ai, Claude Opus 4.7 vs Gemini 3.8 Flash</a></p>