Enter opens the highlighted result. Esc closes.

Claude Opus 4.5 vs Gemma 4 31B

Updated October 21, 2026. 46 benchmarks have a result for both. Coding is ranked on the Vibe Coding Index; every other board is shown as published.

Claude Opus 4.5Anthropic
Coding
66.8
Overall
29.1
Output $/M
$25.00
40
Gemma 4 31BGoogle
Coding
38.3
Overall
14.7
Output $/M
$0.40
6
vs boards won of 46 shared

Decision reading

Pick Claude Opus 4.5 for coding: it scores 66.8 on the Vibe Coding Index against 38.3 for Gemma 4 31B.

Pick Gemma 4 31B when output tokens cost 62.5x less, or when the context window is larger, 262K against 200K tokens.

Shared results
46
Claude Opus 4.5 only
59
Gemma 4 31B only
22
Like-for-like categories
7 of 9

Shared results can support a head-to-head reading. Results only one model has describe coverage, not superiority.

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.5 66.8 from 2 benchmarks, Gemma 4 31B 38.3 from 2 benchmarks.
Widest category
Agentic work, 24.0 points apart on average over 1 shared benchmark.
Widest single gap
SimpleQA Verified: Claude Opus 4.5 45.7% against Gemma 4 31B 10.4%, 35.3 points apart on a 0 to 100 scale.
Output price
Claude Opus 4.5 $25.00 against Gemma 4 31B $0.40 per million output tokens, 62.5x apart.
Context window
Claude Opus 4.5 takes 200K tokens, Gemma 4 31B 262K.

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.5BarsGemma 4 31BTies
Coding70
Intelligence20
Agentic work10
Reasoning60
Math30
Knowledge52
General164
All shared boards406
CodingLike-for-likeFour of these boards feed the Vibe Coding Index70
Coding benchmarks for Claude Opus 4.5 and Gemma 4 31B
BenchmarkClaude Opus 4.5Gemma 4 31BLeader
SWE-bench Verified79.2%Not measuredOnly Claude Opus 4.5 measured
SWE-bench (full test set)52.6%Not measuredOnly Claude Opus 4.5 measured
SWE-bench Multilingual70.7%Not measuredOnly Claude Opus 4.5 measured
LiveBench codingNot measured49.0%Only Gemma 4 31B measured
LMArena WebDev14941367Claude Opus 4.5
AA Coding IndexNot measured43.4Only Gemma 4 31B measured
LiveCodeBench (Vals AI)83.7%Not measuredOnly Claude Opus 4.5 measured
SWE-bench Verified (Vals AI)76.4%Not measuredOnly Claude Opus 4.5 measured
Vibe Code Bench (Vals AI)20.6%Not measuredOnly Claude Opus 4.5 measured
LiveCodeBench (Artificial Analysis run)87.1%Not measuredOnly Claude Opus 4.5 measured
SciCodeNot measured45.5%Only Gemma 4 31B measured
Terminal-Bench Hard (Artificial Analysis run)47.0%36.4%Claude Opus 4.5
Terminal-Bench63.1%Not measuredOnly Claude Opus 4.5 measured
GSO-Bench26.5%Not measuredOnly Claude Opus 4.5 measured
WeirdML63.7%52.3%Claude Opus 4.5
Cybench82.0%Not measuredOnly Claude Opus 4.5 measured
ALE-BenchNot measured925.5Only Gemma 4 31B measured
LMArena Text: coding15031459Claude Opus 4.5
LMArena Text: software and IT14831463Claude Opus 4.5
LMArena WebDev: React14781359Claude Opus 4.5
LMArena WebDev: HTML15101380Claude Opus 4.5
Neither model has a result on the other 17 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index20
Intelligence benchmarks for Claude Opus 4.5 and Gemma 4 31B
BenchmarkClaude Opus 4.5Gemma 4 31BLeader
AA Intelligence Index29.114.7Claude Opus 4.5
Epoch Capabilities Index150.1143.0Claude Opus 4.5
Agentic workLike-for-likePublic boards, shown as published, kept out of the index10
Agentic work benchmarks for Claude Opus 4.5 and Gemma 4 31B
BenchmarkClaude Opus 4.5Gemma 4 31BLeader
AA Agentic IndexNot measured4.2Only Gemma 4 31B measured
Design Arena: agents building web apps1159Not measuredOnly Claude Opus 4.5 measured
Design Arena: agents building full-stack apps1156Not measuredOnly Claude Opus 4.5 measured
Design Arena: agents building mobile apps1189Not measuredOnly Claude Opus 4.5 measured
Design Arena: agents building Android apps1181Not measuredOnly Claude Opus 4.5 measured
LiveBench researchNot measured44.4%Only Gemma 4 31B measured
LiveBench browserNot measured4.0%Only Gemma 4 31B measured
LiveBench long agenticNot measured13.3%Only Gemma 4 31B measured
τ²-Bench Telecom89.5%65.5%Claude Opus 4.5
METR time horizons75.0%Not measuredOnly Claude Opus 4.5 measured
Remote Labor Index3.8%Not measuredOnly Claude Opus 4.5 measured
GDPval45.5%Not measuredOnly Claude Opus 4.5 measured
BALROG43.5%Not measuredOnly Claude Opus 4.5 measured
DeepResearch Bench54.8%Not measuredOnly Claude Opus 4.5 measured
OSWorld66.3%Not measuredOnly Claude Opus 4.5 measured
Vending-Bench 2$4,967Not measuredOnly Claude Opus 4.5 measured
Neither model has a result on the other 23 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index60
Reasoning benchmarks for Claude Opus 4.5 and Gemma 4 31B
BenchmarkClaude Opus 4.5Gemma 4 31BLeader
GPQA Diamond85.9%Not measuredOnly Claude Opus 4.5 measured
LiveBench reasoningNot measured68.3%Only Gemma 4 31B measured
MMMU Pro (Vals AI)83.0%Not measuredOnly Claude Opus 4.5 measured
GPQA Diamond (Artificial Analysis run)86.6%85.7%Claude Opus 4.5
Humanity's Last Exam (Artificial Analysis run)30.1%23.6%Claude Opus 4.5
GPQA Diamond (Epoch AI run)86.0%75.8%Claude Opus 4.5
ARC-AGI80.0%Not measuredOnly Claude Opus 4.5 measured
ARC-AGI-237.6%Not measuredOnly Claude Opus 4.5 measured
SimpleBench62.0%Not measuredOnly Claude Opus 4.5 measured
Chess puzzles14.0%Not measuredOnly Claude Opus 4.5 measured
Mystery game puzzles22.0%Not measuredOnly Claude Opus 4.5 measured
EBR-bench14.3%Not measuredOnly Claude Opus 4.5 measured
VPCT40.0%Not measuredOnly Claude Opus 4.5 measured
LMArena Text: hard prompts14761448Claude Opus 4.5
LMArena Text: expert14871464Claude Opus 4.5
LMArena Text: hard prompts in English14821456Claude Opus 4.5
LMArena Vision: diagramsNot measured1283Only Gemma 4 31B measured
LMArena Vision: homeworkNot measured1310Only Gemma 4 31B measured
Neither model has a result on the other 3 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index30
Math benchmarks for Claude Opus 4.5 and Gemma 4 31B
BenchmarkClaude Opus 4.5Gemma 4 31BLeader
AIME95.4%Not measuredOnly Claude Opus 4.5 measured
MGSM (Vals AI)95.2%Not measuredOnly Claude Opus 4.5 measured
AA Math Index91.3Not measuredOnly Claude Opus 4.5 measured
AIME 2025 (Artificial Analysis run)91.3%Not measuredOnly Claude Opus 4.5 measured
OTIS Mock AIME86.1%73.3%Claude Opus 4.5
FrontierMath, tiers 1 to 334.4%Not measuredOnly Claude Opus 4.5 measured
FrontierMath, tier 44.9%Not measuredOnly Claude Opus 4.5 measured
ProofBench36.0%Not measuredOnly Claude Opus 4.5 measured
LMArena Text: math14631463Claude Opus 4.5
LMArena Text: mathematical work14681465Claude Opus 4.5
Neither model has a result on the other 3 boards here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index52
Knowledge benchmarks for Claude Opus 4.5 and Gemma 4 31B
BenchmarkClaude Opus 4.5Gemma 4 31BLeader
MMLU Pro87.3%Not measuredOnly Claude Opus 4.5 measured
LegalBench (Vals AI)84.6%Not measuredOnly Claude Opus 4.5 measured
CaseLaw (Vals AI)62.6%52.6%Claude Opus 4.5
CorpFin (Vals AI)65.1%Not measuredOnly Claude Opus 4.5 measured
TaxEval (Vals AI)74.9%Not measuredOnly Claude Opus 4.5 measured
MortgageTax (Vals AI)68.7%61.4%Claude Opus 4.5
MedQA (Vals AI)95.9%Not measuredOnly Claude Opus 4.5 measured
MedCode (Vals AI)49.2%Not measuredOnly Claude Opus 4.5 measured
MMLU Pro (Artificial Analysis run)89.5%Not measuredOnly Claude Opus 4.5 measured
SimpleQA Verified45.7%10.4%Claude Opus 4.5
GeoBench75.0%Not measuredOnly Claude Opus 4.5 measured
LMArena Text: science14541457Gemma 4 31B
LMArena Text: medicine and healthcare14441451Gemma 4 31B
LMArena Text: legal and government14591438Claude Opus 4.5
LMArena Text: business and finance14481430Claude Opus 4.5
Neither model has a result on the other 2 boards here
Web designDirectional onlyPublic boards, shown as published, kept out of the index9 boards, none shared
Web design benchmarks for Claude Opus 4.5 and Gemma 4 31B
BenchmarkClaude Opus 4.5Gemma 4 31BLeader
Design Arena: websites1247Not measuredOnly Claude Opus 4.5 measured
Design Arena: UI components1238Not measuredOnly Claude Opus 4.5 measured
Design Arena: game dev1229Not measuredOnly Claude Opus 4.5 measured
Design Arena: data viz1243Not measuredOnly Claude Opus 4.5 measured
Design Arena: 3D1214Not measuredOnly Claude Opus 4.5 measured
Design Arena: all code categories1242Not measuredOnly Claude Opus 4.5 measured
Design Arena: SVG1180Not measuredOnly Claude Opus 4.5 measured
Design Arena: ASCII art1190Not measuredOnly Claude Opus 4.5 measured
LiveBench designNot measured58.4%Only Gemma 4 31B measured
GeneralLike-for-likePublic boards, shown as published, kept out of the index164
General benchmarks for Claude Opus 4.5 and Gemma 4 31B
BenchmarkClaude Opus 4.5Gemma 4 31BLeader
LiveBench data analysisNot measured53.3%Only Gemma 4 31B measured
SAGE (Vals AI)52.1%55.0%Gemma 4 31B
MedScribe (Vals AI)85.3%Not measuredOnly Claude Opus 4.5 measured
IFBench58.0%75.6%Gemma 4 31B
Long context reasoning (AA-LCR)77.3%69.7%Claude Opus 4.5
DTBench89.9%82.7%Claude Opus 4.5
LMCA44.5%39.3%Claude Opus 4.5
CL-bench21.1%Not measuredOnly Claude Opus 4.5 measured
Surface Evolver BenchNot measured30.6%Only Gemma 4 31B measured
Furniture assembly28.3%Not measuredOnly Claude Opus 4.5 measured
LMArena Text14511443Claude Opus 4.5
LMArena Text: instruction following14781433Claude Opus 4.5
LMArena Text: creative writing14451417Claude Opus 4.5
LMArena VisionNot measured1276Only Gemma 4 31B measured
LMArena Text: English14611451Claude Opus 4.5
LMArena Text: non-English14381430Claude Opus 4.5
LMArena Text: Chinese14701475Gemma 4 31B
LMArena Text: German1449Not measuredOnly Claude Opus 4.5 measured
LMArena Text: Japanese1417Not measuredOnly Claude Opus 4.5 measured
LMArena Text: Korean1424Not measuredOnly Claude Opus 4.5 measured
LMArena Text: French14711436Claude Opus 4.5
LMArena Text: Spanish14571442Claude Opus 4.5
LMArena Text: Russian14471460Gemma 4 31B
LMArena Text: Polish14391433Claude Opus 4.5
LMArena Text: multi-turn14661452Claude Opus 4.5
LMArena Text: longer queries14791446Claude Opus 4.5
LMArena Text: writing and language14521432Claude Opus 4.5
LMArena Text: entertainment and media14341405Claude Opus 4.5
LMArena Vision: EnglishNot measured1271Only Gemma 4 31B measured
LMArena Vision: ChineseNot measured1326Only Gemma 4 31B measured
LMArena Vision: reading textNot measured1282Only Gemma 4 31B measured
LMArena Vision: humorNot measured1280Only Gemma 4 31B measured
LMArena Vision: captioningNot measured1218Only Gemma 4 31B measured
LMArena Vision: recognizing thingsNot measured1226Only Gemma 4 31B measured
LMArena Vision: creative writingNot measured1285Only Gemma 4 31B measured
LMArena Document14621425Claude Opus 4.5
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
Image generation benchmarks for Claude Opus 4.5 and Gemma 4 31B
BenchmarkClaude Opus 4.5Gemma 4 31BLeader
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.5$0.018Fits in one request
Gemma 4 31B$0.0004Fits in one request

Gemma 4 31B costs less

Repository review

50K input + 3K output tokens

Claude Opus 4.5$0.325Fits in one request
Gemma 4 31B$0.011Fits in one request

Gemma 4 31B costs less

Agent loop

200K input + 10K output tokens

Claude Opus 4.5$1.25Exceeds the context window
Gemma 4 31B$0.044Fits in one request

Gemma 4 31B 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.5 and Gemma 4 31B
SpecificationAnthropic Claude Opus 4.5Google Gemma 4 31B
MakerAnthropicGoogle
WeightsNo public weights listedOpen weights
ReleasedNovember 24, 2025April 2, 2026
Context window200K262K
Input $/Mtok$5.00$0.20
Output $/Mtok$25.00$0.40
Coding index66.838.3
Independent measurements behind it22
Cost per solved task$1.37Not computable
SourceOpenRouter listingOpenRouter listing

Questions

Is Claude Opus 4.5 better than Gemma 4 31B for coding?

Pick Claude Opus 4.5 for coding: it scores 66.8 on the Vibe Coding Index against 38.3 for Gemma 4 31B. Pick Gemma 4 31B when output tokens cost 62.5x less, or when the context window is larger, 262K against 200K tokens.

Which is cheaper, Claude Opus 4.5 or Gemma 4 31B?

Claude Opus 4.5 costs $5.00 per million input tokens and $25.00 per million output tokens; Gemma 4 31B costs $0.20 and $0.40. Cost per solved task is known for Claude Opus 4.5 only.

Which has the bigger context window, Claude Opus 4.5 or Gemma 4 31B?

Gemma 4 31B, with 262K tokens against 200K.

How many benchmarks is the Claude Opus 4.5 vs Gemma 4 31B comparison based on?

46 benchmarks have a result for both models as of October 21, 2026. Claude Opus 4.5's coding index rests on 2 independent benchmarks and Gemma 4 31B's on 2. 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-5-vs-gemma-4-31b-it" title="Claude Opus 4.5 vs Gemma 4 31B, 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-5-vs-gemma-4-31b-it">LLMBenchmark.ai, Claude Opus 4.5 vs Gemma 4 31B</a></p>