Gemini 4 Hydrogen vs Gemma 4 31B
Gemini 4 Hydrogen leads Gemma 4 31B on coding, 77.9 to 21.9 on the Vibe Coding Index, and Gemma 4 31B costs 18.8x less per output token ($0.40 vs $7.50 per million). Updated November 14, 2026; 39 benchmarks have a result for both.
Gemini 4 Hydrogen or Gemma 4 31B: which to pick
Pick Gemini 4 Hydrogen for coding: it scores 77.9 on the Vibe Coding Index against 21.9 for Gemma 4 31B.
Pick Gemma 4 31B for output tokens 18.8x cheaper ($0.40 vs $7.50 per million).
- Shared results
- 39
- Gemini 4 Hydrogen only
- 11
- Gemma 4 31B only
- 40
- 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
Gemini 4 Hydrogen
Gemini 4 Hydrogen scores 77.9 against 21.9.
4 and 2 benchmarks behind the scores
Intelligence
AA Intelligence Index
No call
Only Gemma 4 31B has a AA Intelligence Index result, 4.4.
Directional only
Agentic work
AA Agentic Index
No call
Only Gemma 4 31B has a AA Agentic Index result, 4.2.
Directional only
Web design
Design Arena: websites
No call
Only Gemini 4 Hydrogen has a Design Arena: websites result, 1320.
Directional only
General
Vals Index
No call
Only Gemini 4 Hydrogen has a Vals Index result, 68.5%.
Directional only
Long documents
Listed context window
Gemini 4 Hydrogen
Gemini 4 Hydrogen takes 1.05M tokens against 262K.
Listed by OpenRouter
Everyday cost
1K input + 500 output tokens
Gemma 4 31B
Gemini 4 Hydrogen $0.0053, Gemma 4 31B $0.0003 per turn.
List prices
At a glance
- Coding index
- Gemini 4 Hydrogen 77.9 from 4 benchmarks, Gemma 4 31B 21.9 from 2 benchmarks.
- Widest category
- Agentic work, 59.7 points apart on average over 3 shared benchmarks.
- Widest single gap
- LiveBench browser: Gemini 4 Hydrogen 77.1% against Gemma 4 31B 0.0%, 77.1 points apart on a 0 to 100 scale.
- Output price
- Gemini 4 Hydrogen $7.50 against Gemma 4 31B $0.40 per million output tokens, 18.8x apart.
- Context window
- Gemini 4 Hydrogen takes 1.05M 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.
| Category | Gemini 4 Hydrogen | Bars | Gemma 4 31B | Ties |
|---|---|---|---|---|
| Coding | 8 | 0 | ||
| Agentic work | 3 | 0 | ||
| Reasoning | 6 | 0 | ||
| Math | 2 | 0 | ||
| Knowledge | 5 | 0 | ||
| Web design | 1 | 0 | ||
| General | 14 | 0 | ||
| All shared boards | 39 | 0 |
CodingLike-for-likeSix of these boards feed the Vibe Coding Index80
| Benchmark | Gemini 4 Hydrogen | Gemma 4 31B | Leader |
|---|---|---|---|
| LiveBench coding | 78.5% | 20.3% | Gemini 4 Hydrogen |
| LMArena WebDev | 1704 | 1370 | Gemini 4 Hydrogen |
| AA Coding Index | Not measured | 43.4 | Only Gemma 4 31B measured |
| Terminal-Bench 4 (Vals AI) | 54.0% | Not measured | Only Gemini 4 Hydrogen measured |
| Vibe Code Bench (Vals AI) | 87.8% | Not measured | Only Gemini 4 Hydrogen measured |
| SciCode | Not measured | 45.5% | Only Gemma 4 31B measured |
| Terminal-Bench Hard (Artificial Analysis run) | Not measured | 36.4% | Only Gemma 4 31B measured |
| Terminal-Bench 4.0 (Artificial Analysis run) | 54.0% | 0.0% | Gemini 4 Hydrogen |
| FrontierCode 2.0 | 39.0% | 0.0% | Gemini 4 Hydrogen |
| WeirdML | Not measured | 52.3% | Only Gemma 4 31B measured |
| ALE-Bench | Not measured | 925.5 | Only Gemma 4 31B measured |
| LMArena Text: coding | 1516 | 1459 | Gemini 4 Hydrogen |
| LMArena Text: software and IT | 1513 | 1463 | Gemini 4 Hydrogen |
| LMArena WebDev: React | 1724 | 1362 | Gemini 4 Hydrogen |
| LMArena WebDev: HTML | 1743 | 1380 | Gemini 4 Hydrogen |
| SciCode | Not measured | 8.9% | Only Gemma 4 31B measured |
| GameBench 2 | Not measured | 35.1 | Only Gemma 4 31B measured |
| CursorBench 4.0 | 57.8% | Not measured | Only Gemini 4 Hydrogen measured |
| Neither model has a result on the other 34 boards here | |||
IntelligenceDirectional onlyPublic boards, shown as published, kept out of the index2 boards, none shared
| Benchmark | Gemini 4 Hydrogen | Gemma 4 31B | Leader |
|---|---|---|---|
| AA Intelligence Index | Not measured | 4.4 | Only Gemma 4 31B measured |
| Epoch Capabilities Index | Not measured | 144.3 | Only Gemma 4 31B measured |
Agentic workLike-for-likePublic boards, shown as published, kept out of the index30
| Benchmark | Gemini 4 Hydrogen | Gemma 4 31B | Leader |
|---|---|---|---|
| AA Agentic Index | Not measured | 4.2 | Only Gemma 4 31B measured |
| LiveBench research | 86.8% | 38.1% | Gemini 4 Hydrogen |
| LiveBench browser | 77.1% | 0.0% | Gemini 4 Hydrogen |
| LiveBench long agentic | 61.8% | 8.5% | Gemini 4 Hydrogen |
| Tax Agent Bench (Vals AI) | 52.3% | Not measured | Only Gemini 4 Hydrogen measured |
| Legal Research Bench (Vals AI) | 53.8% | Not measured | Only Gemini 4 Hydrogen measured |
| Harvey's Legal Agent Benchmark (Vals AI) | 11.3% | Not measured | Only Gemini 4 Hydrogen measured |
| τ²-Bench Telecom | Not measured | 65.5% | Only Gemma 4 31B measured |
| Neither model has a result on the other 36 boards here | |||
ReasoningLike-for-likePublic boards, shown as published, kept out of the index60
| Benchmark | Gemini 4 Hydrogen | Gemma 4 31B | Leader |
|---|---|---|---|
| LiveBench reasoning | 88.6% | 68.3% | Gemini 4 Hydrogen |
| GPQA Diamond (Artificial Analysis run) | Not measured | 85.7% | Only Gemma 4 31B measured |
| Humanity's Last Exam (Artificial Analysis run) | Not measured | 23.6% | Only Gemma 4 31B measured |
| HLE-Diamond (Artificial Analysis run) | 58.8% | 7.2% | Gemini 4 Hydrogen |
| CritPt v2, hard subset (Artificial Analysis run) | 66.0% | 4.0% | Gemini 4 Hydrogen |
| GPQA Diamond (Epoch AI run) | Not measured | 75.8% | Only Gemma 4 31B measured |
| LMArena Text: hard prompts | 1520 | 1447 | Gemini 4 Hydrogen |
| LMArena Text: expert | 1558 | 1465 | Gemini 4 Hydrogen |
| LMArena Text: hard prompts in English | 1514 | 1456 | Gemini 4 Hydrogen |
| LMArena Vision: diagrams | Not measured | 1286 | Only Gemma 4 31B measured |
| LMArena Vision: homework | Not measured | 1310 | Only Gemma 4 31B measured |
| Kagi LLM Benchmark | Not measured | 63.5% | Only Gemma 4 31B measured |
| Neither model has a result on the other 14 boards here | |||
MathLike-for-likePublic boards, shown as published, kept out of the index20
| Benchmark | Gemini 4 Hydrogen | Gemma 4 31B | Leader |
|---|---|---|---|
| OTIS Mock AIME | Not measured | 73.3% | Only Gemma 4 31B measured |
| LMArena Text: math | 1507 | 1462 | Gemini 4 Hydrogen |
| LMArena Text: mathematical work | 1534 | 1464 | Gemini 4 Hydrogen |
| Neither model has a result on the other 11 boards here | |||
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index50
| Benchmark | Gemini 4 Hydrogen | Gemma 4 31B | Leader |
|---|---|---|---|
| CaseLaw (Vals AI) | Not measured | 52.6% | Only Gemma 4 31B measured |
| MortgageTax (Vals AI) | Not measured | 61.4% | Only Gemma 4 31B measured |
| AA-Omniscience | 46.3 | -48.5 | Gemini 4 Hydrogen |
| SimpleQA Verified | Not measured | 10.4% | Only Gemma 4 31B measured |
| LMArena Text: science | 1519 | 1456 | Gemini 4 Hydrogen |
| LMArena Text: medicine and healthcare | 1488 | 1450 | Gemini 4 Hydrogen |
| LMArena Text: legal and government | 1532 | 1438 | Gemini 4 Hydrogen |
| LMArena Text: business and finance | 1486 | 1431 | Gemini 4 Hydrogen |
| FACTS Benchmark Suite | Not measured | 50.1% | 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 index10
| Benchmark | Gemini 4 Hydrogen | Gemma 4 31B | Leader |
|---|---|---|---|
| Design Arena: websites | 1320 | Not measured | Only Gemini 4 Hydrogen measured |
| Design Arena: game dev | 1369 | Not measured | Only Gemini 4 Hydrogen measured |
| Design Arena: 3D | 1415 | Not measured | Only Gemini 4 Hydrogen measured |
| Design Arena: all code categories | 1333 | Not measured | Only Gemini 4 Hydrogen measured |
| LiveBench design | 77.3% | 56.5% | Gemini 4 Hydrogen |
| Neither model has a result on the other 4 boards here | |||
GeneralLike-for-likePublic boards, shown as published, kept out of the index140
| Benchmark | Gemini 4 Hydrogen | Gemma 4 31B | Leader |
|---|---|---|---|
| Vals Index | 68.5% | Not measured | Only Gemini 4 Hydrogen measured |
| LiveBench data analysis | 83.2% | 53.3% | Gemini 4 Hydrogen |
| SAGE (Vals AI) | Not measured | 82.8% | Only Gemma 4 31B measured |
| IFBench | Not measured | 75.6% | Only Gemma 4 31B measured |
| Long context reasoning (AA-LCR) | Not measured | 69.7% | Only Gemma 4 31B measured |
| GDPval-AA | Not measured | 627 | Only Gemma 4 31B measured |
| DTBench | Not measured | 82.7% | Only Gemma 4 31B measured |
| LMCA | Not measured | 39.3% | Only Gemma 4 31B measured |
| Surface Evolver Bench | Not measured | 30.6% | Only Gemma 4 31B measured |
| LMArena Text | 1502 | 1443 | Gemini 4 Hydrogen |
| LMArena Text: instruction following | 1519 | 1433 | Gemini 4 Hydrogen |
| LMArena Text: creative writing | 1509 | 1415 | Gemini 4 Hydrogen |
| LMArena Vision | Not measured | 1279 | Only Gemma 4 31B measured |
| LMArena Text: English | 1499 | 1451 | Gemini 4 Hydrogen |
| LMArena Text: non-English | 1495 | 1430 | Gemini 4 Hydrogen |
| LMArena Text: Chinese | 1631 | 1476 | Gemini 4 Hydrogen |
| LMArena Text: French | 1512 | 1434 | Gemini 4 Hydrogen |
| LMArena Text: Spanish | 1494 | 1444 | Gemini 4 Hydrogen |
| LMArena Text: Russian | 1492 | 1460 | Gemini 4 Hydrogen |
| LMArena Text: Polish | Not measured | 1431 | Only Gemma 4 31B measured |
| LMArena Text: multi-turn | 1485 | 1452 | Gemini 4 Hydrogen |
| LMArena Text: longer queries | 1524 | 1445 | Gemini 4 Hydrogen |
| LMArena Text: writing and language | 1500 | 1431 | Gemini 4 Hydrogen |
| LMArena Text: entertainment and media | 1503 | 1405 | Gemini 4 Hydrogen |
| LMArena Vision: English | Not measured | 1272 | Only Gemma 4 31B measured |
| LMArena Vision: Chinese | Not measured | 1327 | Only Gemma 4 31B measured |
| LMArena Vision: reading text | Not measured | 1285 | Only Gemma 4 31B measured |
| LMArena Vision: humor | Not measured | 1280 | Only Gemma 4 31B measured |
| LMArena Vision: captioning | Not measured | 1209 | Only Gemma 4 31B measured |
| LMArena Vision: recognizing things | Not measured | 1227 | Only Gemma 4 31B measured |
| LMArena Vision: creative writing | Not measured | 1286 | Only Gemma 4 31B measured |
| LMArena Document | Not measured | 1434 | Only Gemma 4 31B measured |
| EQ-Bench 4 | Not measured | 1110 | Only Gemma 4 31B measured |
| Neither model has a result on the other 16 boards here | |||
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
| Benchmark | Gemini 4 Hydrogen | Gemma 4 31B | 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 Gemini 4 Hydrogen | Google Gemma 4 31B |
|---|---|---|
| Maker | ||
| Weights | No public weights listed | Open weights |
| Released | November 12, 2026 | April 2, 2026 |
| Context window | 1.05M | 262K |
| Input $/Mtok | $1.50 | $0.14 |
| Output $/Mtok | $7.50 | $0.40 |
| Coding index | 77.9 | 21.9 |
| Independent measurements behind it | 4 | 2 |
| Cost per solved task | Not computable | Not computable |
| Source | OpenRouter listing | OpenRouter listing |
Questions
Is Gemini 4 Hydrogen better than Gemma 4 31B for coding?
Pick Gemini 4 Hydrogen for coding: it scores 77.9 on the Vibe Coding Index against 21.9 for Gemma 4 31B. Pick Gemma 4 31B for output tokens 18.8x cheaper ($0.40 vs $7.50 per million).
Which is cheaper, Gemini 4 Hydrogen or Gemma 4 31B?
Gemini 4 Hydrogen costs $1.50 per million input tokens and $7.50 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, Gemini 4 Hydrogen or Gemma 4 31B?
Gemini 4 Hydrogen, with 1.05M tokens against 262K.
How many benchmarks is the Gemini 4 Hydrogen vs Gemma 4 31B comparison based on?
39 benchmarks have a result for both models as of November 14, 2026. Gemini 4 Hydrogen'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.