Gemini 4 Hydrogen vs GLM 5
Gemini 4 Hydrogen leads GLM 5 on coding, 77.9 to 41.6 on the Vibe Coding Index, and GLM 5 costs 2.3x less per output token ($3.20 vs $7.50 per million). Updated November 14, 2026; 32 benchmarks have a result for both.
Gemini 4 Hydrogen or GLM 5: which to pick
Pick Gemini 4 Hydrogen for coding: it scores 77.9 on the Vibe Coding Index against 41.6 for GLM 5.
Pick GLM 5 for output tokens 2.3x cheaper ($3.20 vs $7.50 per million).
- Shared results
- 32
- Gemini 4 Hydrogen only
- 18
- GLM 5 only
- 48
- Like-for-like categories
- 6 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 41.6.
4 and 3 benchmarks behind the scores
Reasoning
GPQA Diamond
No call
Only GLM 5 has a GPQA Diamond result, 83.3%.
Directional only
Math
AIME
No call
Only GLM 5 has a AIME result, 91.7%.
Directional only
Knowledge
MMLU Pro
No call
Only GLM 5 has a MMLU Pro result, 86.0%.
Directional only
Web design
Design Arena: websites
Gemini 4 Hydrogen
Gemini 4 Hydrogen leads, 1320 against 1239.
Same board, both measured
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 205K.
Listed by OpenRouter
Everyday cost
1K input + 500 output tokens
GLM 5
Gemini 4 Hydrogen $0.0053, GLM 5 $0.0026 per turn.
List prices
Cost per solved task
One SWE-bench Verified task, solved
No call
Only GLM 5 has the number, $0.63.
Directional only
At a glance
- Coding index
- Gemini 4 Hydrogen 77.9 from 4 benchmarks, GLM 5 41.6 from 3 benchmarks.
- Widest category
- Coding, 29.2 points apart on average over 6 shared benchmarks.
- Widest single gap
- Vibe Code Bench (Vals AI): Gemini 4 Hydrogen 87.8% against GLM 5 23.4%, 64.4 points apart on a 0 to 100 scale.
- Output price
- Gemini 4 Hydrogen $7.50 against GLM 5 $3.20 per million output tokens, 2.3x apart.
- Context window
- Gemini 4 Hydrogen takes 1.05M tokens, GLM 5 205K.
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 | GLM 5 | Ties |
|---|---|---|---|---|
| Coding | 6 | 0 | ||
| Reasoning | 3 | 0 | ||
| Math | 2 | 0 | ||
| Knowledge | 4 | 0 | ||
| Web design | 4 | 0 | ||
| General | 13 | 0 | ||
| All shared boards | 32 | 0 |
CodingLike-for-likeSix of these boards feed the Vibe Coding Index60
| Benchmark | Gemini 4 Hydrogen | GLM 5 | Leader |
|---|---|---|---|
| SWE-bench Verified | Not measured | 72.8% | Only GLM 5 measured |
| SWE-bench Multilingual | Not measured | 69.7% | Only GLM 5 measured |
| LiveBench coding | 78.5% | Not measured | Only Gemini 4 Hydrogen measured |
| LMArena WebDev | 1704 | 1435 | Gemini 4 Hydrogen |
| LiveCodeBench (Vals AI) | Not measured | 81.9% | Only GLM 5 measured |
| SWE-bench Verified (Vals AI) | Not measured | 71.4% | Only GLM 5 measured |
| Terminal-Bench 4 (Vals AI) | 54.0% | Not measured | Only Gemini 4 Hydrogen measured |
| Vibe Code Bench (Vals AI) | 87.8% | 23.4% | Gemini 4 Hydrogen |
| Terminal-Bench Hard (Artificial Analysis run) | Not measured | 43.2% | Only GLM 5 measured |
| Terminal-Bench 4.0 (Artificial Analysis run) | 54.0% | Not measured | Only Gemini 4 Hydrogen measured |
| FrontierCode 2.0 | 39.0% | Not measured | Only Gemini 4 Hydrogen measured |
| Terminal-Bench | Not measured | 52.4% | Only GLM 5 measured |
| WeirdML | Not measured | 48.2% | Only GLM 5 measured |
| ALE-Bench | Not measured | 765.6 | Only GLM 5 measured |
| LMArena Text: coding | 1516 | 1462 | Gemini 4 Hydrogen |
| LMArena Text: software and IT | 1513 | 1460 | Gemini 4 Hydrogen |
| LMArena WebDev: React | 1724 | 1423 | Gemini 4 Hydrogen |
| LMArena WebDev: HTML | 1743 | 1449 | Gemini 4 Hydrogen |
| SWE Atlas: Codebase QnA | Not measured | 20.5% | Only GLM 5 measured |
| SWE Atlas: Refactoring | Not measured | 24.2% | Only GLM 5 measured |
| SWE Atlas: Test Writing | Not measured | 28.7% | Only GLM 5 measured |
| Terminal-Bench 2.0 | Not measured | 52.4% | Only GLM 5 measured |
| CursorBench 4.0 | 57.8% | Not measured | Only Gemini 4 Hydrogen measured |
| Neither model has a result on the other 29 boards here | |||
IntelligenceDirectional onlyPublic boards, shown as published, kept out of the index1 board, none shared
| Benchmark | Gemini 4 Hydrogen | GLM 5 | Leader |
|---|---|---|---|
| Epoch Capabilities Index | Not measured | 146.5 | Only GLM 5 measured |
| Neither model has a result on the other 1 board here | |||
Agentic workDirectional onlyPublic boards, shown as published, kept out of the index13 boards, none shared
| Benchmark | Gemini 4 Hydrogen | GLM 5 | Leader |
|---|---|---|---|
| Design Arena: agents building full-stack apps | Not measured | 1097 | Only GLM 5 measured |
| Design Arena: agents building mobile apps | Not measured | 1128 | Only GLM 5 measured |
| Design Arena: agents building Android apps | Not measured | 1136 | Only GLM 5 measured |
| Design Arena: agents building Godot games | Not measured | 1144 | Only GLM 5 measured |
| Design Arena: HTML slides | Not measured | 1043 | Only GLM 5 measured |
| LiveBench research | 86.8% | Not measured | Only Gemini 4 Hydrogen measured |
| LiveBench browser | 77.1% | Not measured | Only Gemini 4 Hydrogen measured |
| LiveBench long agentic | 61.8% | Not measured | Only Gemini 4 Hydrogen measured |
| 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 | 98.2% | Only GLM 5 measured |
| Vending-Bench 2 | Not measured | $4,432 | Only GLM 5 measured |
| Neither model has a result on the other 31 boards here | |||
ReasoningLike-for-likePublic boards, shown as published, kept out of the index30
| Benchmark | Gemini 4 Hydrogen | GLM 5 | Leader |
|---|---|---|---|
| GPQA Diamond | Not measured | 83.3% | Only GLM 5 measured |
| LiveBench reasoning | 88.6% | Not measured | Only Gemini 4 Hydrogen measured |
| GPQA Diamond (Artificial Analysis run) | Not measured | 82.0% | Only GLM 5 measured |
| Humanity's Last Exam (Artificial Analysis run) | Not measured | 29.3% | Only GLM 5 measured |
| HLE-Diamond (Artificial Analysis run) | 58.8% | Not measured | Only Gemini 4 Hydrogen measured |
| CritPt v2, hard subset (Artificial Analysis run) | 66.0% | Not measured | Only Gemini 4 Hydrogen measured |
| GPQA Diamond (Epoch AI run) | Not measured | 87.8% | Only GLM 5 measured |
| ARC-AGI | Not measured | 44.7% | Only GLM 5 measured |
| ARC-AGI-2 | Not measured | 4.9% | Only GLM 5 measured |
| SimpleBench | Not measured | 53.2% | Only GLM 5 measured |
| LMArena Text: hard prompts | 1520 | 1452 | Gemini 4 Hydrogen |
| LMArena Text: expert | 1558 | 1455 | Gemini 4 Hydrogen |
| LMArena Text: hard prompts in English | 1514 | 1460 | Gemini 4 Hydrogen |
| Kagi LLM Benchmark | Not measured | 75.0% | Only GLM 5 measured |
| Neither model has a result on the other 12 boards here | |||
MathLike-for-likePublic boards, shown as published, kept out of the index20
| Benchmark | Gemini 4 Hydrogen | GLM 5 | Leader |
|---|---|---|---|
| AIME | Not measured | 91.7% | Only GLM 5 measured |
| OTIS Mock AIME | Not measured | 80.0% | Only GLM 5 measured |
| LMArena Text: math | 1507 | 1439 | Gemini 4 Hydrogen |
| LMArena Text: mathematical work | 1534 | 1450 | Gemini 4 Hydrogen |
| MathArena | Not measured | 19.0% | Only GLM 5 measured |
| Neither model has a result on the other 9 boards here | |||
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index40
| Benchmark | Gemini 4 Hydrogen | GLM 5 | Leader |
|---|---|---|---|
| MMLU Pro | Not measured | 86.0% | Only GLM 5 measured |
| LegalBench (Vals AI) | Not measured | 84.1% | Only GLM 5 measured |
| CaseLaw (Vals AI) | Not measured | 52.5% | Only GLM 5 measured |
| CorpFin (Vals AI) | Not measured | 62.9% | Only GLM 5 measured |
| TaxEval (Vals AI) | Not measured | 70.0% | Only GLM 5 measured |
| MedQA (Vals AI) | Not measured | 94.3% | Only GLM 5 measured |
| AA-Omniscience | 46.3 | Not measured | Only Gemini 4 Hydrogen measured |
| LMArena Text: science | 1519 | 1460 | Gemini 4 Hydrogen |
| LMArena Text: medicine and healthcare | 1488 | 1454 | Gemini 4 Hydrogen |
| LMArena Text: legal and government | 1532 | 1454 | Gemini 4 Hydrogen |
| LMArena Text: business and finance | 1486 | 1431 | Gemini 4 Hydrogen |
| Neither model has a result on the other 10 boards here | |||
Web designLike-for-likePublic boards, shown as published, kept out of the index40
| Benchmark | Gemini 4 Hydrogen | GLM 5 | Leader |
|---|---|---|---|
| Design Arena: websites | 1320 | 1239 | Gemini 4 Hydrogen |
| Design Arena: UI components | Not measured | 1221 | Only GLM 5 measured |
| Design Arena: game dev | 1369 | 1223 | Gemini 4 Hydrogen |
| Design Arena: data viz | Not measured | 1225 | Only GLM 5 measured |
| Design Arena: 3D | 1415 | 1208 | Gemini 4 Hydrogen |
| Design Arena: all code categories | 1333 | 1236 | Gemini 4 Hydrogen |
| Design Arena: SVG | Not measured | 1157 | Only GLM 5 measured |
| Design Arena: ASCII art | Not measured | 1142 | Only GLM 5 measured |
| LiveBench design | 77.3% | Not measured | Only Gemini 4 Hydrogen measured |
GeneralLike-for-likePublic boards, shown as published, kept out of the index130
| Benchmark | Gemini 4 Hydrogen | GLM 5 | Leader |
|---|---|---|---|
| Vals Index | 68.5% | Not measured | Only Gemini 4 Hydrogen measured |
| LiveBench data analysis | 83.2% | Not measured | Only Gemini 4 Hydrogen measured |
| IFBench | Not measured | 72.3% | Only GLM 5 measured |
| Long context reasoning (AA-LCR) | Not measured | 75.7% | Only GLM 5 measured |
| CL-bench | Not measured | 18.7% | Only GLM 5 measured |
| LMArena Text | 1502 | 1446 | Gemini 4 Hydrogen |
| LMArena Text: instruction following | 1519 | 1428 | Gemini 4 Hydrogen |
| LMArena Text: creative writing | 1509 | 1437 | Gemini 4 Hydrogen |
| LMArena Text: English | 1499 | 1457 | Gemini 4 Hydrogen |
| LMArena Text: non-English | 1495 | 1431 | Gemini 4 Hydrogen |
| LMArena Text: Chinese | 1631 | 1512 | Gemini 4 Hydrogen |
| LMArena Text: German | Not measured | 1447 | Only GLM 5 measured |
| LMArena Text: Japanese | Not measured | 1414 | Only GLM 5 measured |
| LMArena Text: Korean | Not measured | 1419 | Only GLM 5 measured |
| LMArena Text: French | 1512 | 1457 | Gemini 4 Hydrogen |
| LMArena Text: Spanish | 1494 | 1454 | Gemini 4 Hydrogen |
| LMArena Text: Russian | 1492 | 1437 | Gemini 4 Hydrogen |
| LMArena Text: Polish | Not measured | 1433 | Only GLM 5 measured |
| LMArena Text: multi-turn | 1485 | 1456 | Gemini 4 Hydrogen |
| LMArena Text: longer queries | 1524 | 1446 | Gemini 4 Hydrogen |
| LMArena Text: writing and language | 1500 | 1436 | Gemini 4 Hydrogen |
| LMArena Text: entertainment and media | 1503 | 1426 | Gemini 4 Hydrogen |
| Neither model has a result on the other 27 boards here | |||
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
| Benchmark | Gemini 4 Hydrogen | GLM 5 | 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
GLM 5 costs less
Repository review
50K input + 3K output tokens
GLM 5 costs less
Agent loop
200K input + 10K output tokens
GLM 5 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 | Z.ai GLM 5 |
|---|---|---|
| Maker | Z.ai | |
| Weights | No public weights listed | Open weights |
| Released | November 12, 2026 | February 11, 2026 |
| Context window | 1.05M | 205K |
| Input $/Mtok | $1.50 | $1.00 |
| Output $/Mtok | $7.50 | $3.20 |
| Coding index | 77.9 | 41.6 |
| Independent measurements behind it | 4 | 3 |
| Cost per solved task | Not computable | $0.63 |
| Source | OpenRouter listing | OpenRouter listing |
Questions
Is Gemini 4 Hydrogen better than GLM 5 for coding?
Pick Gemini 4 Hydrogen for coding: it scores 77.9 on the Vibe Coding Index against 41.6 for GLM 5. Pick GLM 5 for output tokens 2.3x cheaper ($3.20 vs $7.50 per million).
Which is cheaper, Gemini 4 Hydrogen or GLM 5?
Gemini 4 Hydrogen costs $1.50 per million input tokens and $7.50 per million output tokens; GLM 5 costs $1.00 and $3.20. Cost per solved task is known for GLM 5 only.
Which has the bigger context window, Gemini 4 Hydrogen or GLM 5?
Gemini 4 Hydrogen, with 1.05M tokens against 205K.
How many benchmarks is the Gemini 4 Hydrogen vs GLM 5 comparison based on?
32 benchmarks have a result for both models as of November 14, 2026. Gemini 4 Hydrogen's coding index rests on 4 independent benchmarks and GLM 5's on 3. Where only one model has a result, the page says so instead of naming a winner.