Enter opens the highlighted result. Esc closes.

Claude Fable 5 vs Gemma 4 31B

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

Claude Fable 5Anthropic
Coding
82.1
Overall
49.6
Output $/M
$50.00
63
Gemma 4 31BGoogle
Coding
38.3
Overall
14.7
Output $/M
$0.40
2
vs boards won of 65 shared

Decision reading

Pick Claude Fable 5 for coding: it scores 82.1 on the Vibe Coding Index against 38.3 for Gemma 4 31B.

Pick Gemma 4 31B when output tokens cost 125.0x less, or when what matters is SAGE (Vals AI) or IFBench, where it leads.

Shared results
65
Claude Fable 5 only
61
Gemma 4 31B only
3
Like-for-like categories
8 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 Fable 5 82.1 from 2 benchmarks, Gemma 4 31B 38.3 from 2 benchmarks.
Widest category
Agentic work, 50.0 points apart on average over 5 shared benchmarks.
Widest single gap
LiveBench browser: Claude Fable 5 92.0% against Gemma 4 31B 4.0%, 88.0 points apart on a 0 to 100 scale.
Output price
Claude Fable 5 $50.00 against Gemma 4 31B $0.40 per million output tokens, 125.0x apart.
Context window
Claude Fable 5 takes 1M 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 Fable 5BarsGemma 4 31BTies
Coding110
Intelligence20
Agentic work50
Reasoning90
Math30
Knowledge60
Web design10
General262
All shared boards632
CodingLike-for-likeFour of these boards feed the Vibe Coding Index110
Coding benchmarks for Claude Fable 5 and Gemma 4 31B
BenchmarkClaude Fable 5Gemma 4 31BLeader
LiveBench coding98.3%49.0%Claude Fable 5
LMArena WebDev16241367Claude Fable 5
AA Coding Index76.543.4Claude Fable 5
LiveCodeBench (Vals AI)89.8%Not measuredOnly Claude Fable 5 measured
SWE-bench Verified (Vals AI)95.0%Not measuredOnly Claude Fable 5 measured
Terminal-Bench 4 (Vals AI)41.4%Not measuredOnly Claude Fable 5 measured
Vibe Code Bench (Vals AI)90.3%Not measuredOnly Claude Fable 5 measured
Code migration (Vals AI)55.1%Not measuredOnly Claude Fable 5 measured
ProgramBench (Vals AI)2.0%Not measuredOnly Claude Fable 5 measured
Terminal-Bench 2.1 (Vals AI)80.5%Not measuredOnly Claude Fable 5 measured
SciCode61.0%45.5%Claude Fable 5
Terminal-Bench Hard (Artificial Analysis run)62.9%36.4%Claude Fable 5
FrontierCode53.5%Not measuredOnly Claude Fable 5 measured
FrontierSWE47.0%Not measuredOnly Claude Fable 5 measured
GSO-Bench78.4%Not measuredOnly Claude Fable 5 measured
WeirdML91.9%52.3%Claude Fable 5
MirrorCode63.9%Not measuredOnly Claude Fable 5 measured
ALE-Bench2041.3925.5Claude Fable 5
LMArena Text: coding15181459Claude Fable 5
LMArena Text: software and IT15131463Claude Fable 5
LMArena WebDev: React16311359Claude Fable 5
LMArena WebDev: HTML16511380Claude Fable 5
LMArena WebDev: from an image1623Not measuredOnly Claude Fable 5 measured
Neither model has a result on the other 15 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index20
Intelligence benchmarks for Claude Fable 5 and Gemma 4 31B
BenchmarkClaude Fable 5Gemma 4 31BLeader
AA Intelligence Index49.614.7Claude Fable 5
Epoch Capabilities Index163.4143.0Claude Fable 5
Agentic workLike-for-likePublic boards, shown as published, kept out of the index50
Agentic work benchmarks for Claude Fable 5 and Gemma 4 31B
BenchmarkClaude Fable 5Gemma 4 31BLeader
AA Agentic Index50.74.2Claude Fable 5
Design Arena: agents building web apps1261Not measuredOnly Claude Fable 5 measured
Design Arena: agents building full-stack apps1280Not measuredOnly Claude Fable 5 measured
Design Arena: agents building mobile apps1264Not measuredOnly Claude Fable 5 measured
Design Arena: agents building Android apps1289Not measuredOnly Claude Fable 5 measured
Design Arena: agents building Godot games1292Not measuredOnly Claude Fable 5 measured
Design Arena: agents building games1285Not measuredOnly Claude Fable 5 measured
Design Arena: HTML slides1277Not measuredOnly Claude Fable 5 measured
Design Arena: PowerPoint slides1295Not measuredOnly Claude Fable 5 measured
LiveBench research86.9%44.4%Claude Fable 5
LiveBench browser92.0%4.0%Claude Fable 5
LiveBench long agentic53.2%13.3%Claude Fable 5
Finance Agent (Vals AI)56.3%Not measuredOnly Claude Fable 5 measured
Tax Agent Bench (Vals AI)38.3%Not measuredOnly Claude Fable 5 measured
Legal Research Bench (Vals AI)49.5%Not measuredOnly Claude Fable 5 measured
Excel Modeling Benchmark (Vals AI)73.7%Not measuredOnly Claude Fable 5 measured
Terminal-Bench-Science (Vals AI)15.7%Not measuredOnly Claude Fable 5 measured
τ²-Bench Telecom98.5%65.5%Claude Fable 5
APEX-Agents63.6%Not measuredOnly Claude Fable 5 measured
Remote Labor Index16.1%Not measuredOnly Claude Fable 5 measured
PostTrainBench41.8%Not measuredOnly Claude Fable 5 measured
Vending-Bench 2$5,680Not measuredOnly Claude Fable 5 measured
LMArena Search1229Not measuredOnly Claude Fable 5 measured
Neither model has a result on the other 16 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index90
Reasoning benchmarks for Claude Fable 5 and Gemma 4 31B
BenchmarkClaude Fable 5Gemma 4 31BLeader
GPQA Diamond93.2%Not measuredOnly Claude Fable 5 measured
LiveBench reasoning89.7%68.3%Claude Fable 5
MMMU Pro (Vals AI)89.3%Not measuredOnly Claude Fable 5 measured
GPQA Diamond (Artificial Analysis run)92.6%85.7%Claude Fable 5
Humanity's Last Exam (Artificial Analysis run)55.5%23.6%Claude Fable 5
GPQA Diamond (Epoch AI run)85.9%75.8%Claude Fable 5
ARC-AGI98.5%Not measuredOnly Claude Fable 5 measured
ARC-AGI-289.2%Not measuredOnly Claude Fable 5 measured
SimpleBench81.9%Not measuredOnly Claude Fable 5 measured
Chess puzzles47.0%Not measuredOnly Claude Fable 5 measured
Mystery game puzzles52.0%Not measuredOnly Claude Fable 5 measured
EBR-bench39.5%Not measuredOnly Claude Fable 5 measured
LMArena Text: hard prompts15071448Claude Fable 5
LMArena Text: expert15341464Claude Fable 5
LMArena Text: hard prompts in English15091456Claude Fable 5
LMArena Vision: diagrams13571283Claude Fable 5
LMArena Vision: homework13611310Claude Fable 5
Neither model has a result on the other 4 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index30
Math benchmarks for Claude Fable 5 and Gemma 4 31B
BenchmarkClaude Fable 5Gemma 4 31BLeader
OTIS Mock AIME100.0%73.3%Claude Fable 5
FrontierMath, tiers 1 to 387.0%Not measuredOnly Claude Fable 5 measured
FrontierMath, tier 490.2%Not measuredOnly Claude Fable 5 measured
ProofBench95.0%Not measuredOnly Claude Fable 5 measured
LMArena Text: math15161463Claude Fable 5
LMArena Text: mathematical work15151465Claude Fable 5
Neither model has a result on the other 7 boards here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index60
Knowledge benchmarks for Claude Fable 5 and Gemma 4 31B
BenchmarkClaude Fable 5Gemma 4 31BLeader
MMLU Pro91.5%Not measuredOnly Claude Fable 5 measured
LegalBench (Vals AI)88.6%Not measuredOnly Claude Fable 5 measured
CaseLaw (Vals AI)Not measured52.6%Only Gemma 4 31B measured
CorpFin (Vals AI)71.8%Not measuredOnly Claude Fable 5 measured
TaxEval (Vals AI)76.9%Not measuredOnly Claude Fable 5 measured
MortgageTax (Vals AI)68.9%61.4%Claude Fable 5
MedCode (Vals AI)56.1%Not measuredOnly Claude Fable 5 measured
SimpleQA Verified70.7%10.4%Claude Fable 5
LMArena Text: science15061457Claude Fable 5
LMArena Text: medicine and healthcare14801451Claude Fable 5
LMArena Text: legal and government14981438Claude Fable 5
LMArena Text: business and finance14801430Claude Fable 5
Neither model has a result on the other 5 boards here
Web designLike-for-likePublic boards, shown as published, kept out of the index10
Web design benchmarks for Claude Fable 5 and Gemma 4 31B
BenchmarkClaude Fable 5Gemma 4 31BLeader
Design Arena: websites1296Not measuredOnly Claude Fable 5 measured
Design Arena: UI components1318Not measuredOnly Claude Fable 5 measured
Design Arena: game dev1336Not measuredOnly Claude Fable 5 measured
Design Arena: data viz1304Not measuredOnly Claude Fable 5 measured
Design Arena: 3D1319Not measuredOnly Claude Fable 5 measured
Design Arena: all code categories1310Not measuredOnly Claude Fable 5 measured
Design Arena: SVG1302Not measuredOnly Claude Fable 5 measured
Design Arena: ASCII art1328Not measuredOnly Claude Fable 5 measured
LiveBench design84.7%58.4%Claude Fable 5
GeneralLike-for-likePublic boards, shown as published, kept out of the index262
General benchmarks for Claude Fable 5 and Gemma 4 31B
BenchmarkClaude Fable 5Gemma 4 31BLeader
LiveBench data analysis80.5%53.3%Claude Fable 5
Public Benefits Bench (Vals AI)70.4%Not measuredOnly Claude Fable 5 measured
SAGE (Vals AI)51.9%55.0%Gemma 4 31B
MedScribe (Vals AI)88.5%Not measuredOnly Claude Fable 5 measured
Vals Multimodal Index74.2%Not measuredOnly Claude Fable 5 measured
IFBench63.5%75.6%Gemma 4 31B
Long context reasoning (AA-LCR)82.3%69.7%Claude Fable 5
DTBench98.4%82.7%Claude Fable 5
LMCA61.2%39.3%Claude Fable 5
Surface Evolver Bench95.0%30.6%Claude Fable 5
Furniture assembly35.8%Not measuredOnly Claude Fable 5 measured
LMArena Text14911443Claude Fable 5
LMArena Text: instruction following15021433Claude Fable 5
LMArena Text: creative writing14941417Claude Fable 5
LMArena Vision13251276Claude Fable 5
LMArena Text: English14981451Claude Fable 5
LMArena Text: non-English14821430Claude Fable 5
LMArena Text: Chinese15431475Claude Fable 5
LMArena Text: German1486Not measuredOnly Claude Fable 5 measured
LMArena Text: Japanese1504Not measuredOnly Claude Fable 5 measured
LMArena Text: Korean1487Not measuredOnly Claude Fable 5 measured
LMArena Text: French15051436Claude Fable 5
LMArena Text: Spanish14981442Claude Fable 5
LMArena Text: Russian15031460Claude Fable 5
LMArena Text: Polish14941433Claude Fable 5
LMArena Text: multi-turn15041452Claude Fable 5
LMArena Text: longer queries15101446Claude Fable 5
LMArena Text: writing and language15011432Claude Fable 5
LMArena Text: entertainment and media14821405Claude Fable 5
LMArena Vision: English13231271Claude Fable 5
LMArena Vision: Chinese13731326Claude Fable 5
LMArena Vision: reading text13371282Claude Fable 5
LMArena Vision: humor13411280Claude Fable 5
LMArena Vision: captioningNot measured1218Only Gemma 4 31B measured
LMArena Vision: recognizing thingsNot measured1226Only Gemma 4 31B measured
LMArena Vision: creative writing13381285Claude Fable 5
LMArena Document14961425Claude Fable 5
Neither model has a result on the other 9 boards here
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
Image generation benchmarks for Claude Fable 5 and Gemma 4 31B
BenchmarkClaude Fable 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 Fable 5$0.035Fits in one request
Gemma 4 31B$0.0004Fits in one request

Gemma 4 31B costs less

Repository review

50K input + 3K output tokens

Claude Fable 5$0.650Fits in one request
Gemma 4 31B$0.011Fits in one request

Gemma 4 31B costs less

Agent loop

200K input + 10K output tokens

Claude Fable 5$2.50Fits in one request
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 Fable 5 and Gemma 4 31B
SpecificationAnthropic Claude Fable 5Google Gemma 4 31B
MakerAnthropicGoogle
WeightsNo public weights listedOpen weights
ReleasedJune 9, 2026April 2, 2026
Context window1M262K
Input $/Mtok$10.00$0.20
Output $/Mtok$50.00$0.40
Coding index82.138.3
Independent measurements behind it22
Cost per solved task$2.16Not computable
SourceOpenRouter listingOpenRouter listing

Questions

Is Claude Fable 5 better than Gemma 4 31B for coding?

Pick Claude Fable 5 for coding: it scores 82.1 on the Vibe Coding Index against 38.3 for Gemma 4 31B. Pick Gemma 4 31B when output tokens cost 125.0x less, or when what matters is SAGE (Vals AI) or IFBench, where it leads.

Which is cheaper, Claude Fable 5 or Gemma 4 31B?

Claude Fable 5 costs $10.00 per million input tokens and $50.00 per million output tokens; Gemma 4 31B costs $0.20 and $0.40. Cost per solved task is known for Claude Fable 5 only.

Which has the bigger context window, Claude Fable 5 or Gemma 4 31B?

Claude Fable 5, with 1M tokens against 262K.

How many benchmarks is the Claude Fable 5 vs Gemma 4 31B comparison based on?

65 benchmarks have a result for both models as of October 21, 2026. Claude Fable 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-fable-5-vs-gemma-4-31b-it" title="Claude Fable 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-fable-5-vs-gemma-4-31b-it">LLMBenchmark.ai, Claude Fable 5 vs Gemma 4 31B</a></p>