Enter opens the highlighted result. Esc closes.

Claude Opus 4.8 vs Gemini 3.1 Pro Preview

Claude Opus 4.8 leads Gemini 3.1 Pro Preview on coding, 65.0 to 32.3 on the Vibe Coding Index, and Gemini 3.1 Pro Preview costs 2.1x less per output token ($12.00 vs $25.00 per million). Updated October 22, 2026; 113 benchmarks have a result for both.

Claude Opus 4.8Anthropic
Coding
65.0
Overall
69.8
Output $/M
$25.00
66
Gemini 3.1 Pro PreviewGoogle
Coding
32.3
Overall
54.0
Output $/M
$12.00
47
vs boards won of 113 shared

Claude Opus 4.8 or Gemini 3.1 Pro Preview: which to pick

Pick Claude Opus 4.8 for coding: it scores 65.0 on the Vibe Coding Index against 32.3 for Gemini 3.1 Pro Preview.

Pick Gemini 3.1 Pro Preview for output tokens 2.1x cheaper ($12.00 vs $25.00 per million) and a lower cost per solved task ($0.99 against $2.17).

Shared results
113
Claude Opus 4.8 only
17
Gemini 3.1 Pro Preview only
20
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.

At a glance

Coding index
Claude Opus 4.8 65.0 from 6 benchmarks, Gemini 3.1 Pro Preview 32.3 from 4 benchmarks.
Widest category
Math, 16.4 points apart on average over 6 shared benchmarks.
Widest single gap
Vibe Code Bench (Vals AI): Claude Opus 4.8 82.7% against Gemini 3.1 Pro Preview 32.0%, 50.7 points apart on a 0 to 100 scale.
Output price
Claude Opus 4.8 $25.00 against Gemini 3.1 Pro Preview $12.00 per million output tokens, 2.1x apart.
Context window
Claude Opus 4.8 takes 1M tokens, Gemini 3.1 Pro Preview 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.8BarsGemini 3.1 Pro PreviewTies
Coding153
Intelligence10
Agentic work172
Reasoning88
Math60
Knowledge39
Web design62
General1023
All shared boards6647
CodingLike-for-likeSix of these boards feed the Vibe Coding Index153
Coding benchmarks for Claude Opus 4.8 and Gemini 3.1 Pro Preview
BenchmarkClaude Opus 4.8Gemini 3.1 Pro PreviewLeader
LiveBench coding77.3%Not measuredOnly Claude Opus 4.8 measured
LMArena WebDev15561447Claude Opus 4.8
AA Coding Index74.368.8Claude Opus 4.8
LiveCodeBench (Vals AI)87.8%88.5%Gemini 3.1 Pro Preview
SWE-bench Verified (Vals AI)88.6%78.8%Claude Opus 4.8
Terminal-Bench 4 (Vals AI)23.2%2.5%Claude Opus 4.8
Vibe Code Bench (Vals AI)82.7%32.0%Claude Opus 4.8
Code migration (Vals AI)47.3%17.3%Claude Opus 4.8
ProgramBench (Vals AI)1.0%0.0%Claude Opus 4.8
IOI (Vals AI)Not measured51.8%Only Gemini 3.1 Pro Preview measured
Terminal-Bench 2.1 (Vals AI)71.9%70.8%Claude Opus 4.8
Vibe Code Bench 1-100 (Vals AI)Not measured6.7%Only Gemini 3.1 Pro Preview measured
SkillsBench (Vals AI)59.2%Not measuredOnly Claude Opus 4.8 measured
SciCode54.4%58.7%Gemini 3.1 Pro Preview
Terminal-Bench Hard (Artificial Analysis run)58.3%53.8%Claude Opus 4.8
Terminal-BenchNot measured80.2%Only Gemini 3.1 Pro Preview measured
FrontierCode46.5%Not measuredOnly Claude Opus 4.8 measured
GSO-Bench47.1%22.6%Claude Opus 4.8
WeirdML82.9%72.1%Claude Opus 4.8
MirrorCodeNot measured8.9%Only Gemini 3.1 Pro Preview measured
ALE-BenchNot measured1160.6Only Gemini 3.1 Pro Preview measured
LMArena Text: coding14901484Claude Opus 4.8
LMArena Text: software and IT14881487Claude Opus 4.8
LMArena WebDev: React15571438Claude Opus 4.8
LMArena WebDev: HTML15431490Claude Opus 4.8
LMArena WebDev: from an imageNot measured1481Only Gemini 3.1 Pro Preview measured
SciCode12.3%14.3%Gemini 3.1 Pro Preview
Neither model has a result on the other 12 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index10
Intelligence benchmarks for Claude Opus 4.8 and Gemini 3.1 Pro Preview
BenchmarkClaude Opus 4.8Gemini 3.1 Pro PreviewLeader
AA Intelligence Index41.829.7Claude Opus 4.8
Epoch Capabilities Index159.0Not measuredOnly Claude Opus 4.8 measured
Agentic workLike-for-likePublic boards, shown as published, kept out of the index172
Agentic work benchmarks for Claude Opus 4.8 and Gemini 3.1 Pro Preview
BenchmarkClaude Opus 4.8Gemini 3.1 Pro PreviewLeader
AA Agentic Index41.98.2Claude Opus 4.8
Design Arena: agents building web apps12331125Claude Opus 4.8
Design Arena: agents building full-stack apps12491068Claude Opus 4.8
Design Arena: agents building mobile apps12221094Claude Opus 4.8
Design Arena: agents building Android apps12331049Claude Opus 4.8
Design Arena: agents building Godot games12311236Gemini 3.1 Pro Preview
Design Arena: agents building games12391113Claude Opus 4.8
Design Arena: HTML slides11711103Claude Opus 4.8
Design Arena: PowerPoint slides12021041Claude Opus 4.8
Design Arena: spreadsheets1303Not measuredOnly Claude Opus 4.8 measured
LiveBench research81.8%Not measuredOnly Claude Opus 4.8 measured
LiveBench browser96.0%Not measuredOnly Claude Opus 4.8 measured
LiveBench long agentic48.3%Not measuredOnly Claude Opus 4.8 measured
SREBench (Vals AI)Not measured0.0%Only Gemini 3.1 Pro Preview measured
Finance Agent (Vals AI)53.9%43.0%Claude Opus 4.8
Tax Agent Bench (Vals AI)30.0%9.3%Claude Opus 4.8
Legal Research Bench (Vals AI)43.8%20.7%Claude Opus 4.8
Excel Modeling Benchmark (Vals AI)69.4%52.6%Claude Opus 4.8
BioMysteryBench (Vals AI)Not measured60.0%Only Gemini 3.1 Pro Preview measured
Terminal-Bench-Science (Vals AI)4.3%1.4%Claude Opus 4.8
Vals Science IndexNot measured27.4%Only Gemini 3.1 Pro Preview measured
Time Horizon Index (Vals AI)11.8%Not measuredOnly Claude Opus 4.8 measured
τ²-Bench Telecom94.4%95.6%Gemini 3.1 Pro Preview
APEX-Agents48.9%35.1%Claude Opus 4.8
METR time horizonsNot measured77.0%Only Gemini 3.1 Pro Preview measured
Remote Labor Index8.3%Not measuredOnly Claude Opus 4.8 measured
OSWorld 2.020.6%Not measuredOnly Claude Opus 4.8 measured
BALROGNot measured57.0%Only Gemini 3.1 Pro Preview measured
DeepResearch Bench50.2%47.8%Claude Opus 4.8
PostTrainBench33.8%22.0%Claude Opus 4.8
Vending-Bench 2$5,787$911Claude Opus 4.8
LMArena Search1204Not measuredOnly 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 index88
Reasoning benchmarks for Claude Opus 4.8 and Gemini 3.1 Pro Preview
BenchmarkClaude Opus 4.8Gemini 3.1 Pro PreviewLeader
GPQA Diamond92.4%95.5%Gemini 3.1 Pro Preview
LiveBench reasoning89.2%Not measuredOnly Claude Opus 4.8 measured
MysteryMechanism (Vals AI)Not measured20.7%Only Gemini 3.1 Pro Preview measured
MMMU Pro (Vals AI)86.6%88.2%Gemini 3.1 Pro Preview
GPQA Diamond (Artificial Analysis run)92.0%94.1%Gemini 3.1 Pro Preview
Humanity's Last Exam (Artificial Analysis run)48.7%47.0%Claude Opus 4.8
GPQA Diamond (Epoch AI run)91.0%94.4%Gemini 3.1 Pro Preview
ARC-AGI92.5%98.0%Gemini 3.1 Pro Preview
ARC-AGI-272.1%77.1%Gemini 3.1 Pro Preview
SimpleBench64.8%79.6%Gemini 3.1 Pro Preview
Chess puzzles52.0%51.0%Claude Opus 4.8
Mystery game puzzles36.0%34.0%Claude Opus 4.8
EBR-bench28.6%14.3%Claude Opus 4.8
LMArena Text: hard prompts14821485Gemini 3.1 Pro Preview
LMArena Text: expert15031483Claude Opus 4.8
LMArena Text: hard prompts in English14871480Claude Opus 4.8
LMArena Vision: diagrams13151311Claude Opus 4.8
LMArena Vision: homework13371316Claude Opus 4.8
Kagi LLM Benchmark88.8%Not measuredOnly 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 index60
Math benchmarks for Claude Opus 4.8 and Gemini 3.1 Pro Preview
BenchmarkClaude Opus 4.8Gemini 3.1 Pro PreviewLeader
AIMENot measured98.1%Only Gemini 3.1 Pro Preview measured
OTIS Mock AIME98.3%95.6%Claude Opus 4.8
FrontierMath, tiers 1 to 380.0%59.6%Claude Opus 4.8
FrontierMath, tier 456.1%26.8%Claude Opus 4.8
ProofBench69.0%26.0%Claude Opus 4.8
LMArena Text: math14861486Claude Opus 4.8
LMArena Text: mathematical work14971478Claude Opus 4.8
Neither model has a result on the other 6 boards here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index39
Knowledge benchmarks for Claude Opus 4.8 and Gemini 3.1 Pro Preview
BenchmarkClaude Opus 4.8Gemini 3.1 Pro PreviewLeader
MMLU Pro89.6%91.0%Gemini 3.1 Pro Preview
LegalBench (Vals AI)83.6%87.4%Gemini 3.1 Pro Preview
CaseLaw (Vals AI)Not measured64.8%Only Gemini 3.1 Pro Preview measured
CorpFin (Vals AI)66.7%64.5%Claude Opus 4.8
TaxEval (Vals AI)75.6%72.9%Claude Opus 4.8
MortgageTax (Vals AI)69.9%69.4%Claude Opus 4.8
MedQA (Vals AI)Not measured96.4%Only Gemini 3.1 Pro Preview measured
MedCode (Vals AI)53.2%59.1%Gemini 3.1 Pro Preview
SimpleQA Verified53.0%73.5%Gemini 3.1 Pro Preview
LMArena Text: science14771497Gemini 3.1 Pro Preview
LMArena Text: medicine and healthcare14641486Gemini 3.1 Pro Preview
LMArena Text: legal and government14771487Gemini 3.1 Pro Preview
LMArena Text: business and finance14581459Gemini 3.1 Pro Preview
FACTS Benchmark Suite53.5%67.4%Gemini 3.1 Pro Preview
Neither model has a result on the other 4 boards here
Web designLike-for-likePublic boards, shown as published, kept out of the index62
Web design benchmarks for Claude Opus 4.8 and Gemini 3.1 Pro Preview
BenchmarkClaude Opus 4.8Gemini 3.1 Pro PreviewLeader
Design Arena: websites12581233Claude Opus 4.8
Design Arena: UI components12551224Claude Opus 4.8
Design Arena: game dev12641202Claude Opus 4.8
Design Arena: data viz12401209Claude Opus 4.8
Design Arena: 3D12221234Gemini 3.1 Pro Preview
Design Arena: all code categories12551231Claude Opus 4.8
Design Arena: SVG11951285Gemini 3.1 Pro Preview
Design Arena: ASCII art12771270Claude Opus 4.8
LiveBench design78.8%Not measuredOnly Claude Opus 4.8 measured
GeneralLike-for-likePublic boards, shown as published, kept out of the index1023
General benchmarks for Claude Opus 4.8 and Gemini 3.1 Pro Preview
BenchmarkClaude Opus 4.8Gemini 3.1 Pro PreviewLeader
LiveBench data analysis66.0%Not measuredOnly Claude Opus 4.8 measured
Public Benefits Bench (Vals AI)68.1%53.8%Claude Opus 4.8
SAGE (Vals AI)54.8%48.7%Claude Opus 4.8
MedScribe (Vals AI)85.8%76.1%Claude Opus 4.8
Vals Multimodal Index70.9%56.1%Claude Opus 4.8
IFBench62.2%77.1%Gemini 3.1 Pro Preview
Long context reasoning (AA-LCR)77.7%82.0%Gemini 3.1 Pro Preview
DTBench94.9%97.1%Gemini 3.1 Pro Preview
LMCA57.5%53.8%Claude Opus 4.8
CL-benchNot measured20.8%Only Gemini 3.1 Pro Preview measured
Surface Evolver Bench87.5%Not measuredOnly Claude Opus 4.8 measured
Furniture assembly42.5%26.7%Claude Opus 4.8
ExploitBenchNot measured26.1%Only Gemini 3.1 Pro Preview measured
CL-bench LifeNot measured16.9%Only Gemini 3.1 Pro Preview measured
LMArena Text14611480Gemini 3.1 Pro Preview
LMArena Text: instruction following14761466Claude Opus 4.8
LMArena Text: creative writing14541482Gemini 3.1 Pro Preview
LMArena Vision12941296Gemini 3.1 Pro Preview
LMArena Text: English14681478Gemini 3.1 Pro Preview
LMArena Text: non-English14501476Gemini 3.1 Pro Preview
LMArena Text: Chinese15061527Gemini 3.1 Pro Preview
LMArena Text: German14721490Gemini 3.1 Pro Preview
LMArena Text: Japanese14421491Gemini 3.1 Pro Preview
LMArena Text: Korean14311455Gemini 3.1 Pro Preview
LMArena Text: French14811487Gemini 3.1 Pro Preview
LMArena Text: Spanish14651481Gemini 3.1 Pro Preview
LMArena Text: Russian14741497Gemini 3.1 Pro Preview
LMArena Text: Polish14591498Gemini 3.1 Pro Preview
LMArena Text: multi-turn14761487Gemini 3.1 Pro Preview
LMArena Text: longer queries14831482Claude Opus 4.8
LMArena Text: writing and language14611481Gemini 3.1 Pro Preview
LMArena Text: entertainment and media14401465Gemini 3.1 Pro Preview
LMArena Vision: English12931287Claude Opus 4.8
LMArena Vision: Chinese13461364Gemini 3.1 Pro Preview
LMArena Vision: reading text13031304Gemini 3.1 Pro Preview
LMArena Vision: humor12821322Gemini 3.1 Pro Preview
LMArena Vision: captioningNot measured1345Only Gemini 3.1 Pro Preview measured
LMArena Vision: recognizing thingsNot measured1330Only Gemini 3.1 Pro Preview measured
LMArena Vision: creative writing13011324Gemini 3.1 Pro Preview
LMArena Document14751444Claude Opus 4.8
Neither model has a result on the other 6 boards here
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
Image generation benchmarks for Claude Opus 4.8 and Gemini 3.1 Pro Preview
BenchmarkClaude Opus 4.8Gemini 3.1 Pro PreviewLeader
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.8$0.018Fits in one request
Gemini 3.1 Pro Preview$0.0080Fits in one request

Gemini 3.1 Pro Preview costs less

Repository review

50K input + 3K output tokens

Claude Opus 4.8$0.325Fits in one request
Gemini 3.1 Pro Preview$0.136Fits in one request

Gemini 3.1 Pro Preview costs less

Agent loop

200K input + 10K output tokens

Claude Opus 4.8$1.25Fits in one request
Gemini 3.1 Pro Preview$0.520Fits in one request

Gemini 3.1 Pro Preview 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.8 and Gemini 3.1 Pro Preview
SpecificationAnthropic Claude Opus 4.8Google Gemini 3.1 Pro Preview
MakerAnthropicGoogle
WeightsNo public weights listedNo public weights listed
ReleasedMay 27, 2026February 19, 2026
Context window1M1.05M
Input $/Mtok$5.00$2.00
Output $/Mtok$25.00$12.00
Coding index65.032.3
Independent measurements behind it64
Cost per solved task$2.17$0.99
SourceOpenRouter listingOpenRouter listing

Questions

Is Claude Opus 4.8 better than Gemini 3.1 Pro Preview for coding?

Pick Claude Opus 4.8 for coding: it scores 65.0 on the Vibe Coding Index against 32.3 for Gemini 3.1 Pro Preview. Pick Gemini 3.1 Pro Preview for output tokens 2.1x cheaper ($12.00 vs $25.00 per million) and a lower cost per solved task ($0.99 against $2.17).

Which is cheaper, Claude Opus 4.8 or Gemini 3.1 Pro Preview?

Claude Opus 4.8 costs $5.00 per million input tokens and $25.00 per million output tokens; Gemini 3.1 Pro Preview costs $2.00 and $12.00. Per solved SWE-bench Verified task, Claude Opus 4.8 costs $2.17 and Gemini 3.1 Pro Preview $0.99.

Which has the bigger context window, Claude Opus 4.8 or Gemini 3.1 Pro Preview?

Gemini 3.1 Pro Preview, with 1.05M tokens against 1M.

How many benchmarks is the Claude Opus 4.8 vs Gemini 3.1 Pro Preview comparison based on?

113 benchmarks have a result for both models as of October 22, 2026. Claude Opus 4.8's coding index rests on 6 independent benchmarks and Gemini 3.1 Pro Preview's on 4. 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-8-vs-gemini-3-1-pro-preview" title="Claude Opus 4.8 vs Gemini 3.1 Pro Preview, 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-8-vs-gemini-3-1-pro-preview">LLMBenchmark.ai, Claude Opus 4.8 vs Gemini 3.1 Pro Preview</a></p>