Enter opens the highlighted result. Esc closes.

Claude Fable 5.2 vs Gemma 4 31B

Claude Fable 5.2 leads Gemma 4 31B on coding, 87.8 to 21.9 on the Vibe Coding Index, and Gemma 4 31B costs 100.0x less per output token ($0.40 vs $40.00 per million). Updated November 14, 2026; 28 benchmarks have a result for both.

Claude Fable 5.2Anthropic
Coding
87.8
Overall
91.7
Output $/M
$40.00
28
Gemma 4 31BGoogle
Coding
21.9
Overall
35.7
Output $/M
$0.40
0
vs boards won of 28 shared

Claude Fable 5.2 or Gemma 4 31B: which to pick

Pick Claude Fable 5.2 for coding: it scores 87.8 on the Vibe Coding Index against 21.9 for Gemma 4 31B.

Pick Gemma 4 31B for output tokens 100.0x cheaper ($0.40 vs $40.00 per million).

Shared results
28
Claude Fable 5.2 only
40
Gemma 4 31B only
51
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 Fable 5.2 87.8 from 4 benchmarks, Gemma 4 31B 21.9 from 2 benchmarks.
Widest category
Agentic work, 72.6 points apart on average over 3 shared benchmarks.
Widest single gap
LiveBench browser: Claude Fable 5.2 86.9% against Gemma 4 31B 0.0%, 86.9 points apart on a 0 to 100 scale.
Output price
Claude Fable 5.2 $40.00 against Gemma 4 31B $0.40 per million output tokens, 100.0x apart.
Context window
Claude Fable 5.2 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 5.2BarsGemma 4 31BTies
Coding90
Intelligence20
Agentic work30
Reasoning50
Math10
Knowledge20
Web design10
General50
All shared boards280
CodingLike-for-likeSix of these boards feed the Vibe Coding Index90
Coding benchmarks for Claude Fable 5.2 and Gemma 4 31B
BenchmarkClaude Fable 5.2Gemma 4 31BLeader
LiveBench coding79.2%20.3%Claude Fable 5.2
LMArena WebDev18381370Claude Fable 5.2
AA Coding IndexNot measured43.4Only Gemma 4 31B measured
Terminal-Bench 4 (Vals AI)65.2%Not measuredOnly Claude Fable 5.2 measured
Vibe Code Bench (Vals AI)93.8%Not measuredOnly Claude Fable 5.2 measured
ProgramBench (Vals AI)19.0%Not measuredOnly Claude Fable 5.2 measured
SWE-bench Multimodal (Vals AI)62.3%Not measuredOnly Claude Fable 5.2 measured
SciCode67.7%45.5%Claude Fable 5.2
Terminal-Bench Hard (Artificial Analysis run)Not measured36.4%Only Gemma 4 31B measured
Terminal-Bench 4.0 (Artificial Analysis run)61.6%0.0%Claude Fable 5.2
FrontierCode 2.049.1%0.0%Claude Fable 5.2
FrontierSWE69.9%Not measuredOnly Claude Fable 5.2 measured
WeirdMLNot measured52.3%Only Gemma 4 31B measured
ALE-Bench2509.8925.5Claude Fable 5.2
LMArena Text: codingNot measured1459Only Gemma 4 31B measured
LMArena Text: software and ITNot measured1463Only Gemma 4 31B measured
LMArena WebDev: React19151362Claude Fable 5.2
LMArena WebDev: HTML17381380Claude Fable 5.2
SciCodeNot measured8.9%Only Gemma 4 31B measured
GameBench 299.135.1Claude Fable 5.2
CursorBench 4.060.0%Not measuredOnly Claude Fable 5.2 measured
Neither model has a result on the other 31 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index20
Intelligence benchmarks for Claude Fable 5.2 and Gemma 4 31B
BenchmarkClaude Fable 5.2Gemma 4 31BLeader
AA Intelligence Index64.64.4Claude Fable 5.2
Epoch Capabilities Index173.4144.3Claude Fable 5.2
Agentic workLike-for-likePublic boards, shown as published, kept out of the index30
Agentic work benchmarks for Claude Fable 5.2 and Gemma 4 31B
BenchmarkClaude Fable 5.2Gemma 4 31BLeader
AA Agentic IndexNot measured4.2Only Gemma 4 31B measured
Design Arena: agents building full-stack apps1402Not measuredOnly Claude Fable 5.2 measured
Design Arena: agents building mobile apps1325Not measuredOnly Claude Fable 5.2 measured
Design Arena: spreadsheets1434Not measuredOnly Claude Fable 5.2 measured
LiveBench research94.5%38.1%Claude Fable 5.2
LiveBench browser86.9%0.0%Claude Fable 5.2
LiveBench long agentic82.9%8.5%Claude Fable 5.2
Tax Agent Bench (Vals AI)32.1%Not measuredOnly Claude Fable 5.2 measured
Legal Research Bench (Vals AI)46.1%Not measuredOnly Claude Fable 5.2 measured
Harvey's Legal Agent Benchmark (Vals AI)5.0%Not measuredOnly Claude Fable 5.2 measured
BioMysteryBench (Vals AI)83.7%Not measuredOnly Claude Fable 5.2 measured
Terminal-Bench-Science (Vals AI)55.7%Not measuredOnly Claude Fable 5.2 measured
Vals Science Index63.7%Not measuredOnly Claude Fable 5.2 measured
τ²-Bench TelecomNot measured65.5%Only Gemma 4 31B measured
APEX-Agents80.1%Not measuredOnly Claude Fable 5.2 measured
Remote Labor Index41.3%Not measuredOnly Claude Fable 5.2 measured
SpireClimb15.5%Not measuredOnly Claude Fable 5.2 measured
Neither model has a result on the other 27 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index50
Reasoning benchmarks for Claude Fable 5.2 and Gemma 4 31B
BenchmarkClaude Fable 5.2Gemma 4 31BLeader
LiveBench reasoning88.8%68.3%Claude Fable 5.2
MysteryMechanism (Vals AI)51.8%Not measuredOnly Claude Fable 5.2 measured
GPQA Diamond (Artificial Analysis run)Not measured85.7%Only Gemma 4 31B measured
Humanity's Last Exam (Artificial Analysis run)74.3%23.6%Claude Fable 5.2
HLE-Diamond (Artificial Analysis run)80.2%7.2%Claude Fable 5.2
CritPt v2, hard subset (Artificial Analysis run)76.5%4.0%Claude Fable 5.2
GPQA Diamond (Epoch AI run)93.9%75.8%Claude Fable 5.2
ARC-AGI98.5%Not measuredOnly Claude Fable 5.2 measured
ARC-AGI-293.8%Not measuredOnly Claude Fable 5.2 measured
SimpleBench94.9%Not measuredOnly Claude Fable 5.2 measured
Chess puzzles79.0%Not measuredOnly Claude Fable 5.2 measured
Mystery game puzzles90.0%Not measuredOnly Claude Fable 5.2 measured
EBR-bench90.5%Not measuredOnly Claude Fable 5.2 measured
LMArena Text: hard promptsNot measured1447Only Gemma 4 31B measured
LMArena Text: expertNot measured1465Only Gemma 4 31B measured
LMArena Text: hard prompts in EnglishNot measured1456Only Gemma 4 31B measured
LMArena Vision: diagramsNot measured1286Only Gemma 4 31B measured
LMArena Vision: homeworkNot measured1310Only Gemma 4 31B measured
Kagi LLM BenchmarkNot measured63.5%Only Gemma 4 31B measured
Humanity's Last Exam (Scale run)72.4%Not measuredOnly Claude Fable 5.2 measured
GoBench2566Not measuredOnly Claude Fable 5.2 measured
Neither model has a result on the other 5 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index10
Math benchmarks for Claude Fable 5.2 and Gemma 4 31B
BenchmarkClaude Fable 5.2Gemma 4 31BLeader
OTIS Mock AIME99.7%73.3%Claude Fable 5.2
FrontierMath, tiers 1 to 395.1%Not measuredOnly Claude Fable 5.2 measured
FrontierMath, tier 4100.0%Not measuredOnly Claude Fable 5.2 measured
ProofBench100.0%Not measuredOnly Claude Fable 5.2 measured
LMArena Text: mathNot measured1462Only Gemma 4 31B measured
LMArena Text: mathematical workNot measured1464Only Gemma 4 31B measured
MathArena82.8%Not measuredOnly Claude Fable 5.2 measured
Neither model has a result on the other 7 boards here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index20
Knowledge benchmarks for Claude Fable 5.2 and Gemma 4 31B
BenchmarkClaude Fable 5.2Gemma 4 31BLeader
CaseLaw (Vals AI)Not measured52.6%Only Gemma 4 31B measured
MortgageTax (Vals AI)Not measured61.4%Only Gemma 4 31B measured
AA-Omniscience66.8-48.5Claude Fable 5.2
SimpleQA Verified94.0%10.4%Claude Fable 5.2
LMArena Text: scienceNot measured1456Only Gemma 4 31B measured
LMArena Text: medicine and healthcareNot measured1450Only Gemma 4 31B measured
LMArena Text: legal and governmentNot measured1438Only Gemma 4 31B measured
LMArena Text: business and financeNot measured1431Only Gemma 4 31B measured
FACTS Benchmark SuiteNot measured50.1%Only Gemma 4 31B measured
PRBench Finance47.1%Not measuredOnly Claude Fable 5.2 measured
PRBench Legal49.0%Not measuredOnly Claude Fable 5.2 measured
Neither model has a result on the other 10 boards here
Web designLike-for-likePublic boards, shown as published, kept out of the index10
Web design benchmarks for Claude Fable 5.2 and Gemma 4 31B
BenchmarkClaude Fable 5.2Gemma 4 31BLeader
Design Arena: websites1351Not measuredOnly Claude Fable 5.2 measured
Design Arena: UI components1371Not measuredOnly Claude Fable 5.2 measured
Design Arena: game dev1396Not measuredOnly Claude Fable 5.2 measured
Design Arena: 3D1517Not measuredOnly Claude Fable 5.2 measured
Design Arena: all code categories1373Not measuredOnly Claude Fable 5.2 measured
LiveBench design85.1%56.5%Claude Fable 5.2
Neither model has a result on the other 3 boards here
GeneralLike-for-likePublic boards, shown as published, kept out of the index50
General benchmarks for Claude Fable 5.2 and Gemma 4 31B
BenchmarkClaude Fable 5.2Gemma 4 31BLeader
Vals Index71.3%Not measuredOnly Claude Fable 5.2 measured
LiveBench data analysis81.5%53.3%Claude Fable 5.2
SAGE (Vals AI)Not measured82.8%Only Gemma 4 31B measured
IFBenchNot measured75.6%Only Gemma 4 31B measured
Long context reasoning (AA-LCR)83.3%69.7%Claude Fable 5.2
GDPval-AA1831627Claude Fable 5.2
DTBench99.2%82.7%Claude Fable 5.2
LMCA70.6%39.3%Claude Fable 5.2
Surface Evolver BenchNot measured30.6%Only Gemma 4 31B measured
Furniture assembly90.0%Not measuredOnly Claude Fable 5.2 measured
LMArena TextNot measured1443Only Gemma 4 31B measured
LMArena Text: instruction followingNot measured1433Only Gemma 4 31B measured
LMArena Text: creative writingNot measured1415Only Gemma 4 31B measured
LMArena VisionNot measured1279Only Gemma 4 31B measured
LMArena Text: EnglishNot measured1451Only Gemma 4 31B measured
LMArena Text: non-EnglishNot measured1430Only Gemma 4 31B measured
LMArena Text: ChineseNot measured1476Only Gemma 4 31B measured
LMArena Text: FrenchNot measured1434Only Gemma 4 31B measured
LMArena Text: SpanishNot measured1444Only Gemma 4 31B measured
LMArena Text: RussianNot measured1460Only Gemma 4 31B measured
LMArena Text: PolishNot measured1431Only Gemma 4 31B measured
LMArena Text: multi-turnNot measured1452Only Gemma 4 31B measured
LMArena Text: longer queriesNot measured1445Only Gemma 4 31B measured
LMArena Text: writing and languageNot measured1431Only Gemma 4 31B measured
LMArena Text: entertainment and mediaNot measured1405Only Gemma 4 31B measured
LMArena Vision: EnglishNot measured1272Only Gemma 4 31B measured
LMArena Vision: ChineseNot measured1327Only Gemma 4 31B measured
LMArena Vision: reading textNot measured1285Only Gemma 4 31B measured
LMArena Vision: humorNot measured1280Only Gemma 4 31B measured
LMArena Vision: captioningNot measured1209Only Gemma 4 31B measured
LMArena Vision: recognizing thingsNot measured1227Only Gemma 4 31B measured
LMArena Vision: creative writingNot measured1286Only Gemma 4 31B measured
LMArena DocumentNot measured1434Only Gemma 4 31B measured
EQ-Bench 4Not measured1110Only Gemma 4 31B measured
Neither model has a result on the other 15 boards here
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
Image generation benchmarks for Claude Fable 5.2 and Gemma 4 31B
BenchmarkClaude Fable 5.2Gemma 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.2$0.028Fits in one request
Gemma 4 31B$0.0003Fits in one request

Gemma 4 31B costs less

Repository review

50K input + 3K output tokens

Claude Fable 5.2$0.520Fits in one request
Gemma 4 31B$0.0082Fits in one request

Gemma 4 31B costs less

Agent loop

200K input + 10K output tokens

Claude Fable 5.2$2.00Fits in one request
Gemma 4 31B$0.032Fits 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.2 and Gemma 4 31B
SpecificationAnthropic Claude Fable 5.2Google Gemma 4 31B
MakerAnthropicGoogle
WeightsNo public weights listedOpen weights
ReleasedNovember 9, 2026April 2, 2026
Context window1M262K
Input $/Mtok$8.00$0.14
Output $/Mtok$40.00$0.40
Coding index87.821.9
Independent measurements behind it42
Cost per solved taskNot computableNot computable
SourceOpenRouter listingOpenRouter listing

Questions

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

Pick Claude Fable 5.2 for coding: it scores 87.8 on the Vibe Coding Index against 21.9 for Gemma 4 31B. Pick Gemma 4 31B for output tokens 100.0x cheaper ($0.40 vs $40.00 per million).

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

Claude Fable 5.2 costs $8.00 per million input tokens and $40.00 per million output tokens; Gemma 4 31B costs $0.14 and $0.40. Cost per solved task is known for neither of them.

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

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

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

28 benchmarks have a result for both models as of November 14, 2026. Claude Fable 5.2's coding index rests on 4 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-2-vs-gemma-4-31b-it" title="Claude Fable 5.2 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-2-vs-gemma-4-31b-it">LLMBenchmark.ai, Claude Fable 5.2 vs Gemma 4 31B</a></p>