LLMBenchmark.ai

Enter opens the highlighted result. Esc closes.

Gemma 4 31B vs Step 5 Preview

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

Gemma 4 31BGoogle
Coding
38.3
Overall
14.7
Output $/M
$0.40
16
Step 5 PreviewStepFun
Coding
71.4
Overall
43.7
Output $/M
$2.70
27
vs boards won of 43 shared

Decision reading

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

Pick Gemma 4 31B when output tokens cost 6.8x less, or when what matters is LMArena Text: hard prompts in English or LMArena Vision: homework, where it leads.

Shared results
43
Gemma 4 31B only
25
Step 5 Preview only
18
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
Gemma 4 31B 38.3 from 2 benchmarks, Step 5 Preview 71.4 from 2 benchmarks.
Widest category
Intelligence, 29.0 points apart on average over 1 shared benchmark.
Widest single gap
LMArena WebDev: React: Gemma 4 31B 1359 against Step 5 Preview 1583, 37.3 points apart on a 0 to 100 scale.
Output price
Gemma 4 31B $0.40 against Step 5 Preview $2.70 per million output tokens, 6.8x apart.
Context window
Gemma 4 31B takes 262K tokens, Step 5 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
CategoryGemma 4 31BBarsStep 5 PreviewTies
Coding07
Intelligence01
Agentic work03
Reasoning25
Math20
Knowledge31
Web design01
General99
All shared boards1627
CodingLike-for-likeFour of these boards feed the Vibe Coding Index07
Coding benchmarks for Gemma 4 31B and Step 5 Preview
BenchmarkGemma 4 31BStep 5 PreviewLeader
LiveBench coding49.0%85.6%Step 5 Preview
LMArena WebDev13671567Step 5 Preview
AA Coding Index43.4Not measuredOnly Gemma 4 31B measured
Terminal-Bench 4 (Vals AI)Not measured31.8%Only Step 5 Preview measured
Vibe Code Bench (Vals AI)Not measured70.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
WeirdML52.3%Not measuredOnly Gemma 4 31B measured
ALE-Bench925.5Not measuredOnly Gemma 4 31B measured
LMArena Text: coding14591485Step 5 Preview
LMArena Text: software and IT14631473Step 5 Preview
LMArena WebDev: React13591583Step 5 Preview
LMArena WebDev: HTML13801556Step 5 Preview
LMArena WebDev: from an imageNot measured1550Only Step 5 Preview measured
Neither model has a result on the other 21 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index01
Intelligence benchmarks for Gemma 4 31B and Step 5 Preview
BenchmarkGemma 4 31BStep 5 PreviewLeader
AA Intelligence Index14.743.7Step 5 Preview
Epoch Capabilities Index143.0Not 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
AA Agentic Index4.2Not measuredOnly Gemma 4 31B measured
LiveBench research44.4%72.8%Step 5 Preview
LiveBench browser4.0%24.0%Step 5 Preview
LiveBench long agentic13.3%27.5%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
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 measured2.9%Only Step 5 Preview measured
Vals Science IndexNot measured29.6%Only Step 5 Preview measured
τ²-Bench Telecom65.5%Not measuredOnly Gemma 4 31B measured
Neither model has a result on the other 26 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index25
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
GPQA Diamond (Epoch AI run)75.8%Not measuredOnly Gemma 4 31B measured
LMArena Text: hard prompts14481461Step 5 Preview
LMArena Text: expert14641485Step 5 Preview
LMArena Text: hard prompts in English14561454Gemma 4 31B
LMArena Vision: diagrams12831308Step 5 Preview
LMArena Vision: homework13101265Gemma 4 31B
Neither model has a result on the other 11 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index20
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: math14631458Gemma 4 31B
LMArena Text: mathematical work14651460Gemma 4 31B
Neither model has a result on the other 9 boards here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index31
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
SimpleQA Verified10.4%Not measuredOnly Gemma 4 31B measured
LMArena Text: science14571454Gemma 4 31B
LMArena Text: medicine and healthcare14511439Gemma 4 31B
LMArena Text: legal and government14381437Gemma 4 31B
LMArena Text: business and finance14301435Step 5 Preview
Neither model has a result on the other 10 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 design58.4%76.9%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 index99
General benchmarks for Gemma 4 31B and Step 5 Preview
BenchmarkGemma 4 31BStep 5 PreviewLeader
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)55.0%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
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 Text14431440Gemma 4 31B
LMArena Text: instruction following14331438Step 5 Preview
LMArena Text: creative writing14171409Gemma 4 31B
LMArena Vision12761265Gemma 4 31B
LMArena Text: English14511447Gemma 4 31B
LMArena Text: non-English14301428Gemma 4 31B
LMArena Text: Chinese14751500Step 5 Preview
LMArena Text: JapaneseNot measured1383Only Step 5 Preview measured
LMArena Text: French14361438Step 5 Preview
LMArena Text: Spanish14421441Gemma 4 31B
LMArena Text: Russian14601433Gemma 4 31B
LMArena Text: Polish1433Not measuredOnly Gemma 4 31B measured
LMArena Text: multi-turn14521437Gemma 4 31B
LMArena Text: longer queries14461449Step 5 Preview
LMArena Text: writing and language14321425Gemma 4 31B
LMArena Text: entertainment and media14051412Step 5 Preview
LMArena Vision: English12711290Step 5 Preview
LMArena Vision: Chinese1326Not measuredOnly Gemma 4 31B measured
LMArena Vision: reading text12821282Step 5 Preview
LMArena Vision: humor1280Not measuredOnly Gemma 4 31B measured
LMArena Vision: captioning1218Not measuredOnly Gemma 4 31B measured
LMArena Vision: recognizing things1226Not measuredOnly Gemma 4 31B measured
LMArena Vision: creative writing1285Not measuredOnly Gemma 4 31B measured
LMArena Document1425Not measuredOnly Gemma 4 31B measured
Neither model has a result on the other 14 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.0004Fits 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.011Fits 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.044Fits 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 window262K1.05M
Input $/Mtok$0.20$1.00
Output $/Mtok$0.40$2.70
Coding index38.371.4
Independent measurements behind it22
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 71.4 on the Vibe Coding Index against 38.3 for Gemma 4 31B. Pick Gemma 4 31B when output tokens cost 6.8x less, or when what matters is LMArena Text: hard prompts in English or LMArena Vision: homework, where it leads.

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

Gemma 4 31B costs $0.20 per million input tokens and $0.40 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?

Step 5 Preview, with 1.05M tokens against 262K.

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

43 benchmarks have a result for both models as of October 21, 2026. Gemma 4 31B's coding index rests on 2 independent benchmarks and Step 5 Preview'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/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>