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 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.
Coding
Vibe Coding Index, six public coding benchmarks
Step 5 Preview
Step 5 Preview scores 53.3 against 22.0.
2 and 4 benchmarks behind the scores
Intelligence
AA Intelligence Index
No call
Only Gemma 4 31B has a AA Intelligence Index result, 4.0.
Directional only
General
Vals Index
No call
Only Step 5 Preview has a Vals Index result, 53.1%.
Directional only
Long documents
Listed context window
No call
Both take 262K tokens.
Listed by OpenRouter
Everyday cost
1K input + 500 output tokens
Gemma 4 31B
Gemma 4 31B $0.0003, Step 5 Preview $0.0024 per turn.
List prices
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.
| Category | Gemma 4 31B | Bars | Step 5 Preview | Ties |
|---|---|---|---|---|
| Coding | 0 | 10 | ||
| Agentic work | 0 | 3 | ||
| Reasoning | 1 | 8 | ||
| Math | 0 | 2 | ||
| Knowledge | 1 | 4 | ||
| Web design | 0 | 1 | ||
| General | 9 | 14 | ||
| All shared boards | 11 | 42 |
CodingLike-for-likeSix of these boards feed the Vibe Coding Index010
| Benchmark | Gemma 4 31B | Step 5 Preview | Leader |
|---|---|---|---|
| LiveBench coding | 20.3% | 67.6% | Step 5 Preview |
| LMArena WebDev | 1371 | 1572 | Step 5 Preview |
| Terminal-Bench 4 (Vals AI) | Not measured | 31.8% | Only Step 5 Preview measured |
| Vibe Code Bench (Vals AI) | Not measured | 56.4% | Only Step 5 Preview measured |
| Code migration (Vals AI) | Not measured | 39.0% | Only Step 5 Preview measured |
| IOI (Vals AI) | Not measured | 38.1% | Only Step 5 Preview measured |
| SWE-bench Multimodal (Vals AI) | Not measured | 40.8% | Only Step 5 Preview measured |
| SciCode | 45.5% | 58.9% | Step 5 Preview |
| Terminal-Bench Hard (Artificial Analysis run) | 36.4% | Not measured | Only Gemma 4 31B measured |
| Terminal-Bench 4.0 (Artificial Analysis run) | 0.0% | 33.3% | Step 5 Preview |
| FrontierCode 2.0 | 0.0% | 11.6% | Step 5 Preview |
| WeirdML | 52.3% | Not measured | Only Gemma 4 31B measured |
| ALE-Bench | 925.5 | Not measured | Only Gemma 4 31B measured |
| LMArena Text: coding | 1459 | 1481 | Step 5 Preview |
| LMArena Text: software and IT | 1463 | 1471 | Step 5 Preview |
| LMArena WebDev: React | 1363 | 1588 | Step 5 Preview |
| LMArena WebDev: HTML | 1380 | 1547 | Step 5 Preview |
| LMArena WebDev: from an image | Not measured | 1550 | Only Step 5 Preview measured |
| SciCode | 8.9% | Not measured | Only Gemma 4 31B measured |
| GameBench 2 | 34.9 | 53.2 | Step 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
| Benchmark | Gemma 4 31B | Step 5 Preview | Leader |
|---|---|---|---|
| AA Intelligence Index | 4.0 | Not measured | Only Gemma 4 31B measured |
| Epoch Capabilities Index | 144.1 | Not measured | Only Gemma 4 31B measured |
Agentic workLike-for-likePublic boards, shown as published, kept out of the index03
| Benchmark | Gemma 4 31B | Step 5 Preview | Leader |
|---|---|---|---|
| LiveBench research | 38.1% | 75.5% | Step 5 Preview |
| LiveBench browser | 0.0% | 24.8% | Step 5 Preview |
| LiveBench long agentic | 8.5% | 19.4% | Step 5 Preview |
| SREBench (Vals AI) | Not measured | 0.4% | Only Step 5 Preview measured |
| Finance Agent (Vals AI) | Not measured | 50.7% | Only Step 5 Preview measured |
| Tax Agent Bench (Vals AI) | Not measured | 27.3% | Only Step 5 Preview measured |
| Legal Research Bench (Vals AI) | Not measured | 40.4% | Only Step 5 Preview measured |
| Harvey's Legal Agent Benchmark (Vals AI) | Not measured | 12.9% | Only Step 5 Preview measured |
| Excel Modeling Benchmark (Vals AI) | Not measured | 57.1% | Only Step 5 Preview measured |
| BioMysteryBench (Vals AI) | Not measured | 67.4% | Only Step 5 Preview measured |
| Terminal-Bench-Science (Vals AI) | Not measured | 5.7% | Only Step 5 Preview measured |
| Vals Science Index | Not measured | 30.5% | Only Step 5 Preview measured |
| τ²-Bench Telecom | 65.5% | Not measured | Only 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
| Benchmark | Gemma 4 31B | Step 5 Preview | Leader |
|---|---|---|---|
| LiveBench reasoning | 68.3% | 83.8% | Step 5 Preview |
| MysteryMechanism (Vals AI) | Not measured | 18.5% | Only Step 5 Preview measured |
| GPQA Diamond (Artificial Analysis run) | 85.7% | Not measured | Only 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 measured | Only Gemma 4 31B measured |
| LMArena Text: hard prompts | 1448 | 1464 | Step 5 Preview |
| LMArena Text: expert | 1465 | 1479 | Step 5 Preview |
| LMArena Text: hard prompts in English | 1456 | 1464 | Step 5 Preview |
| LMArena Vision: diagrams | 1287 | 1300 | Step 5 Preview |
| LMArena Vision: homework | 1310 | 1276 | Gemma 4 31B |
| Kagi LLM Benchmark | 63.5% | Not measured | Only 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
| Benchmark | Gemma 4 31B | Step 5 Preview | Leader |
|---|---|---|---|
| OTIS Mock AIME | 73.3% | Not measured | Only Gemma 4 31B measured |
| ProofBench | Not measured | 42.0% | Only Step 5 Preview measured |
| LMArena Text: math | 1463 | 1467 | Step 5 Preview |
| LMArena Text: mathematical work | 1464 | 1467 | Step 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
| Benchmark | Gemma 4 31B | Step 5 Preview | Leader |
|---|---|---|---|
| CaseLaw (Vals AI) | 52.6% | Not measured | Only Gemma 4 31B measured |
| MortgageTax (Vals AI) | 61.4% | Not measured | Only Gemma 4 31B measured |
| AA-Omniscience | -48.5 | 16.4 | Step 5 Preview |
| SimpleQA Verified | 10.4% | Not measured | Only Gemma 4 31B measured |
| LMArena Text: science | 1456 | 1463 | Step 5 Preview |
| LMArena Text: medicine and healthcare | 1450 | 1444 | Gemma 4 31B |
| LMArena Text: legal and government | 1438 | 1441 | Step 5 Preview |
| LMArena Text: business and finance | 1431 | 1446 | Step 5 Preview |
| FACTS Benchmark Suite | 50.1% | Not measured | Only 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
| Benchmark | Gemma 4 31B | Step 5 Preview | Leader |
|---|---|---|---|
| LiveBench design | 56.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
| Benchmark | Gemma 4 31B | Step 5 Preview | Leader |
|---|---|---|---|
| Vals Index | Not measured | 53.1% | Only Step 5 Preview measured |
| LiveBench data analysis | 53.3% | 63.5% | Step 5 Preview |
| Public Benefits Bench (Vals AI) | Not measured | 58.1% | Only Step 5 Preview measured |
| SAGE (Vals AI) | 82.8% | Not measured | Only Gemma 4 31B measured |
| IFBench | 75.6% | Not measured | Only Gemma 4 31B measured |
| Long context reasoning (AA-LCR) | 69.7% | 88.3% | Step 5 Preview |
| GDPval-AA | 630 | 1593 | Step 5 Preview |
| DTBench | 82.7% | Not measured | Only Gemma 4 31B measured |
| LMCA | 39.3% | Not measured | Only Gemma 4 31B measured |
| Surface Evolver Bench | 30.6% | Not measured | Only Gemma 4 31B measured |
| LMArena Text | 1443 | 1444 | Step 5 Preview |
| LMArena Text: instruction following | 1434 | 1446 | Step 5 Preview |
| LMArena Text: creative writing | 1415 | 1417 | Step 5 Preview |
| LMArena Vision | 1279 | 1264 | Gemma 4 31B |
| LMArena Text: English | 1451 | 1456 | Step 5 Preview |
| LMArena Text: non-English | 1431 | 1430 | Gemma 4 31B |
| LMArena Text: Chinese | 1476 | 1495 | Step 5 Preview |
| LMArena Text: German | Not measured | 1450 | Only Step 5 Preview measured |
| LMArena Text: Japanese | Not measured | 1396 | Only Step 5 Preview measured |
| LMArena Text: Korean | Not measured | 1401 | Only Step 5 Preview measured |
| LMArena Text: French | 1435 | 1445 | Step 5 Preview |
| LMArena Text: Spanish | 1444 | 1445 | Step 5 Preview |
| LMArena Text: Russian | 1461 | 1434 | Gemma 4 31B |
| LMArena Text: Polish | 1431 | 1405 | Gemma 4 31B |
| LMArena Text: multi-turn | 1452 | 1440 | Gemma 4 31B |
| LMArena Text: longer queries | 1445 | 1455 | Step 5 Preview |
| LMArena Text: writing and language | 1431 | 1432 | Step 5 Preview |
| LMArena Text: entertainment and media | 1405 | 1414 | Step 5 Preview |
| LMArena Vision: English | 1273 | 1275 | Step 5 Preview |
| LMArena Vision: Chinese | 1328 | 1323 | Gemma 4 31B |
| LMArena Vision: reading text | 1285 | 1278 | Gemma 4 31B |
| LMArena Vision: humor | 1279 | 1210 | Gemma 4 31B |
| LMArena Vision: captioning | 1209 | Not measured | Only Gemma 4 31B measured |
| LMArena Vision: recognizing things | 1228 | Not measured | Only Gemma 4 31B measured |
| LMArena Vision: creative writing | 1287 | 1248 | Gemma 4 31B |
| LMArena Document | 1435 | Not measured | Only Gemma 4 31B measured |
| EQ-Bench 4 | 1110 | Not measured | Only 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
| Benchmark | Gemma 4 31B | Step 5 Preview | Leader |
|---|---|---|---|
| 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 costs less
Repository review
50K input + 3K output tokens
Gemma 4 31B costs less
Agent loop
200K input + 10K output tokens
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.
| Specification | Google Gemma 4 31B | StepFun Step 5 Preview |
|---|---|---|
| Maker | StepFun | |
| Weights | Open weights | Open weights |
| Released | April 2, 2026 | October 8, 2026 |
| Context window | 262K | 262K |
| Input $/Mtok | $0.1375 | $1.00 |
| Output $/Mtok | $0.35 | $2.70 |
| Coding index | 22.0 | 53.3 |
| Independent measurements behind it | 2 | 4 |
| Cost per solved task | Not computable | Not computable |
| Source | OpenRouter listing | OpenRouter 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.