Enter opens the highlighted result. Esc closes.

Gemma 4 31B vs Step 5 Preview

Step 5 Preview leads Gemma 4 31B on coding, 53.3 to 22.0 on the Vibe Coding Index, and Gemma 4 31B costs 7.7x less per output token ($0.35 vs $2.70 per million). Updated December 6, 2026; 53 benchmarks have a result for both.

Gemma 4 31BGoogle
Coding
22.0
Overall
35.6
Output $/M
$0.35
11
Step 5 PreviewStepFun
Coding
53.3
Overall
57.2
Output $/M
$2.70
42
vs boards won of 53 shared

Gemma 4 31B or Step 5 Preview: which to pick

Pick Step 5 Preview for coding: it scores 53.3 on the Vibe Coding Index against 22.0 for Gemma 4 31B.

Pick Gemma 4 31B for output tokens 7.7x cheaper ($0.35 vs $2.70 per million) and work measured by LMArena Vision: homework or LMArena Text: medicine and healthcare, where it leads.

Shared results
53
Gemma 4 31B only
24
Step 5 Preview only
22
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
Gemma 4 31B 22.0 from 2 benchmarks, Step 5 Preview 53.3 from 4 benchmarks.
Widest category
Agentic work, 24.4 points apart on average over 3 shared benchmarks.
Widest single gap
GDPval-AA: Gemma 4 31B 630 against Step 5 Preview 1593, 66.1 points apart on a 0 to 100 scale.
Output price
Gemma 4 31B $0.35 against Step 5 Preview $2.70 per million output tokens, 7.7x apart.
Context window
Both take 262K tokens.

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
CategoryGemma 4 31BBarsStep 5 PreviewTies
Coding010
Agentic work03
Reasoning18
Math02
Knowledge14
Web design01
General914
All shared boards1142
CodingLike-for-likeSix of these boards feed the Vibe Coding Index010
Coding benchmarks for Gemma 4 31B and Step 5 Preview
BenchmarkGemma 4 31BStep 5 PreviewLeader
LiveBench coding20.3%67.6%Step 5 Preview
LMArena WebDev13711572Step 5 Preview
Terminal-Bench 4 (Vals AI)Not measured31.8%Only Step 5 Preview measured
Vibe Code Bench (Vals AI)Not measured56.4%Only Step 5 Preview measured
Code migration (Vals AI)Not measured39.0%Only Step 5 Preview measured
IOI (Vals AI)Not measured38.1%Only Step 5 Preview measured
SWE-bench Multimodal (Vals AI)Not measured40.8%Only Step 5 Preview measured
SciCode45.5%58.9%Step 5 Preview
Terminal-Bench Hard (Artificial Analysis run)36.4%Not measuredOnly Gemma 4 31B measured
Terminal-Bench 4.0 (Artificial Analysis run)0.0%33.3%Step 5 Preview
FrontierCode 2.00.0%11.6%Step 5 Preview
WeirdML52.3%Not measuredOnly Gemma 4 31B measured
ALE-Bench925.5Not measuredOnly Gemma 4 31B measured
LMArena Text: coding14591481Step 5 Preview
LMArena Text: software and IT14631471Step 5 Preview
LMArena WebDev: React13631588Step 5 Preview
LMArena WebDev: HTML13801547Step 5 Preview
LMArena WebDev: from an imageNot measured1550Only Step 5 Preview measured
SciCode8.9%Not measuredOnly Gemma 4 31B measured
GameBench 234.953.2Step 5 Preview
Neither model has a result on the other 32 boards here
IntelligenceDirectional onlyPublic boards, shown as published, kept out of the index2 boards, none shared
Intelligence benchmarks for Gemma 4 31B and Step 5 Preview
BenchmarkGemma 4 31BStep 5 PreviewLeader
AA Intelligence Index4.0Not measuredOnly Gemma 4 31B measured
Epoch Capabilities Index144.1Not measuredOnly Gemma 4 31B measured
Agentic workLike-for-likePublic boards, shown as published, kept out of the index03
Agentic work benchmarks for Gemma 4 31B and Step 5 Preview
BenchmarkGemma 4 31BStep 5 PreviewLeader
LiveBench research38.1%75.5%Step 5 Preview
LiveBench browser0.0%24.8%Step 5 Preview
LiveBench long agentic8.5%19.4%Step 5 Preview
SREBench (Vals AI)Not measured0.4%Only Step 5 Preview measured
Finance Agent (Vals AI)Not measured50.7%Only Step 5 Preview measured
Tax Agent Bench (Vals AI)Not measured27.3%Only Step 5 Preview measured
Legal Research Bench (Vals AI)Not measured40.4%Only Step 5 Preview measured
Harvey's Legal Agent Benchmark (Vals AI)Not measured12.9%Only Step 5 Preview measured
Excel Modeling Benchmark (Vals AI)Not measured57.1%Only Step 5 Preview measured
BioMysteryBench (Vals AI)Not measured67.4%Only Step 5 Preview measured
Terminal-Bench-Science (Vals AI)Not measured5.7%Only Step 5 Preview measured
Vals Science IndexNot measured30.5%Only Step 5 Preview measured
τ²-Bench Telecom65.5%Not measuredOnly Gemma 4 31B measured
Neither model has a result on the other 31 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index18
Reasoning benchmarks for Gemma 4 31B and Step 5 Preview
BenchmarkGemma 4 31BStep 5 PreviewLeader
LiveBench reasoning68.3%83.8%Step 5 Preview
MysteryMechanism (Vals AI)Not measured18.5%Only Step 5 Preview measured
GPQA Diamond (Artificial Analysis run)85.7%Not measuredOnly Gemma 4 31B measured
Humanity's Last Exam (Artificial Analysis run)23.6%46.5%Step 5 Preview
HLE-Diamond (Artificial Analysis run)7.2%24.3%Step 5 Preview
CritPt v2, hard subset (Artificial Analysis run)4.0%32.5%Step 5 Preview
GPQA Diamond (Epoch AI run)75.8%Not measuredOnly Gemma 4 31B measured
LMArena Text: hard prompts14481464Step 5 Preview
LMArena Text: expert14651479Step 5 Preview
LMArena Text: hard prompts in English14561464Step 5 Preview
LMArena Vision: diagrams12871300Step 5 Preview
LMArena Vision: homework13101276Gemma 4 31B
Kagi LLM Benchmark63.5%Not measuredOnly Gemma 4 31B measured
Neither model has a result on the other 13 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index02
Math benchmarks for Gemma 4 31B and Step 5 Preview
BenchmarkGemma 4 31BStep 5 PreviewLeader
OTIS Mock AIME73.3%Not measuredOnly Gemma 4 31B measured
ProofBenchNot measured42.0%Only Step 5 Preview measured
LMArena Text: math14631467Step 5 Preview
LMArena Text: mathematical work14641467Step 5 Preview
Neither model has a result on the other 10 boards here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index14
Knowledge benchmarks for Gemma 4 31B and Step 5 Preview
BenchmarkGemma 4 31BStep 5 PreviewLeader
CaseLaw (Vals AI)52.6%Not measuredOnly Gemma 4 31B measured
MortgageTax (Vals AI)61.4%Not measuredOnly Gemma 4 31B measured
AA-Omniscience-48.516.4Step 5 Preview
SimpleQA Verified10.4%Not measuredOnly Gemma 4 31B measured
LMArena Text: science14561463Step 5 Preview
LMArena Text: medicine and healthcare14501444Gemma 4 31B
LMArena Text: legal and government14381441Step 5 Preview
LMArena Text: business and finance14311446Step 5 Preview
FACTS Benchmark Suite50.1%Not measuredOnly Gemma 4 31B measured
Neither model has a result on the other 12 boards here
Web designLike-for-likePublic boards, shown as published, kept out of the index01
Web design benchmarks for Gemma 4 31B and Step 5 Preview
BenchmarkGemma 4 31BStep 5 PreviewLeader
LiveBench design56.5%70.8%Step 5 Preview
Neither model has a result on the other 8 boards here
GeneralLike-for-likePublic boards, shown as published, kept out of the index914
General benchmarks for Gemma 4 31B and Step 5 Preview
BenchmarkGemma 4 31BStep 5 PreviewLeader
Vals IndexNot measured53.1%Only Step 5 Preview measured
LiveBench data analysis53.3%63.5%Step 5 Preview
Public Benefits Bench (Vals AI)Not measured58.1%Only Step 5 Preview measured
SAGE (Vals AI)82.8%Not measuredOnly Gemma 4 31B measured
IFBench75.6%Not measuredOnly Gemma 4 31B measured
Long context reasoning (AA-LCR)69.7%88.3%Step 5 Preview
GDPval-AA6301593Step 5 Preview
DTBench82.7%Not measuredOnly Gemma 4 31B measured
LMCA39.3%Not measuredOnly Gemma 4 31B measured
Surface Evolver Bench30.6%Not measuredOnly Gemma 4 31B measured
LMArena Text14431444Step 5 Preview
LMArena Text: instruction following14341446Step 5 Preview
LMArena Text: creative writing14151417Step 5 Preview
LMArena Vision12791264Gemma 4 31B
LMArena Text: English14511456Step 5 Preview
LMArena Text: non-English14311430Gemma 4 31B
LMArena Text: Chinese14761495Step 5 Preview
LMArena Text: GermanNot measured1450Only Step 5 Preview measured
LMArena Text: JapaneseNot measured1396Only Step 5 Preview measured
LMArena Text: KoreanNot measured1401Only Step 5 Preview measured
LMArena Text: French14351445Step 5 Preview
LMArena Text: Spanish14441445Step 5 Preview
LMArena Text: Russian14611434Gemma 4 31B
LMArena Text: Polish14311405Gemma 4 31B
LMArena Text: multi-turn14521440Gemma 4 31B
LMArena Text: longer queries14451455Step 5 Preview
LMArena Text: writing and language14311432Step 5 Preview
LMArena Text: entertainment and media14051414Step 5 Preview
LMArena Vision: English12731275Step 5 Preview
LMArena Vision: Chinese13281323Gemma 4 31B
LMArena Vision: reading text12851278Gemma 4 31B
LMArena Vision: humor12791210Gemma 4 31B
LMArena Vision: captioning1209Not measuredOnly Gemma 4 31B measured
LMArena Vision: recognizing things1228Not measuredOnly Gemma 4 31B measured
LMArena Vision: creative writing12871248Gemma 4 31B
LMArena Document1435Not measuredOnly Gemma 4 31B measured
EQ-Bench 41110Not measuredOnly Gemma 4 31B measured
Neither model has a result on the other 12 boards here
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
Image generation benchmarks for Gemma 4 31B and Step 5 Preview
BenchmarkGemma 4 31BStep 5 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

Gemma 4 31B$0.0003Fits in one request
Step 5 Preview$0.0024Fits in one request

Gemma 4 31B costs less

Repository review

50K input + 3K output tokens

Gemma 4 31B$0.0079Fits in one request
Step 5 Preview$0.058Fits in one request

Gemma 4 31B costs less

Agent loop

200K input + 10K output tokens

Gemma 4 31B$0.031Fits in one request
Step 5 Preview$0.227Fits 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 Gemma 4 31B and Step 5 Preview
SpecificationGoogle Gemma 4 31BStepFun Step 5 Preview
MakerGoogleStepFun
WeightsOpen weightsOpen weights
ReleasedApril 2, 2026October 8, 2026
Context window262K262K
Input $/Mtok$0.1375$1.00
Output $/Mtok$0.35$2.70
Coding index22.053.3
Independent measurements behind it24
Cost per solved taskNot computableNot computable
SourceOpenRouter listingOpenRouter listing

Questions

Is Gemma 4 31B better than Step 5 Preview for coding?

Pick Step 5 Preview for coding: it scores 53.3 on the Vibe Coding Index against 22.0 for Gemma 4 31B. Pick Gemma 4 31B for output tokens 7.7x cheaper ($0.35 vs $2.70 per million) and work measured by LMArena Vision: homework or LMArena Text: medicine and healthcare, where it leads.

Which is cheaper, Gemma 4 31B or Step 5 Preview?

Gemma 4 31B costs $0.1375 per million input tokens and $0.35 per million output tokens; Step 5 Preview costs $1.00 and $2.70. Cost per solved task is known for neither of them.

Which has the bigger context window, Gemma 4 31B or Step 5 Preview?

Neither: both take 262K tokens.

How many benchmarks is the Gemma 4 31B vs Step 5 Preview comparison based on?

53 benchmarks have a result for both models as of December 6, 2026. Gemma 4 31B's coding index rests on 2 independent benchmarks and Step 5 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/gemma-4-31b-it-vs-stepfun-step-5-preview" title="Gemma 4 31B vs Step 5 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/gemma-4-31b-it-vs-stepfun-step-5-preview">LLMBenchmark.ai, Gemma 4 31B vs Step 5 Preview</a></p>