Enter opens the highlighted result. Esc closes.

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 HydrogenGoogle
Coding
77.9
Overall
77.1
Output $/M
$7.50
32
GLM 5Z.ai
Coding
41.6
Overall
57.9
Output $/M
$3.20
0
vs boards won of 32 shared

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.

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.

Boards won, where both have a result
CategoryGemini 4 HydrogenBarsGLM 5Ties
Coding60
Reasoning30
Math20
Knowledge40
Web design40
General130
All shared boards320
CodingLike-for-likeSix of these boards feed the Vibe Coding Index60
Coding benchmarks for Gemini 4 Hydrogen and GLM 5
BenchmarkGemini 4 HydrogenGLM 5Leader
SWE-bench VerifiedNot measured72.8%Only GLM 5 measured
SWE-bench MultilingualNot measured69.7%Only GLM 5 measured
LiveBench coding78.5%Not measuredOnly Gemini 4 Hydrogen measured
LMArena WebDev17041435Gemini 4 Hydrogen
LiveCodeBench (Vals AI)Not measured81.9%Only GLM 5 measured
SWE-bench Verified (Vals AI)Not measured71.4%Only GLM 5 measured
Terminal-Bench 4 (Vals AI)54.0%Not measuredOnly Gemini 4 Hydrogen measured
Vibe Code Bench (Vals AI)87.8%23.4%Gemini 4 Hydrogen
Terminal-Bench Hard (Artificial Analysis run)Not measured43.2%Only GLM 5 measured
Terminal-Bench 4.0 (Artificial Analysis run)54.0%Not measuredOnly Gemini 4 Hydrogen measured
FrontierCode 2.039.0%Not measuredOnly Gemini 4 Hydrogen measured
Terminal-BenchNot measured52.4%Only GLM 5 measured
WeirdMLNot measured48.2%Only GLM 5 measured
ALE-BenchNot measured765.6Only GLM 5 measured
LMArena Text: coding15161462Gemini 4 Hydrogen
LMArena Text: software and IT15131460Gemini 4 Hydrogen
LMArena WebDev: React17241423Gemini 4 Hydrogen
LMArena WebDev: HTML17431449Gemini 4 Hydrogen
SWE Atlas: Codebase QnANot measured20.5%Only GLM 5 measured
SWE Atlas: RefactoringNot measured24.2%Only GLM 5 measured
SWE Atlas: Test WritingNot measured28.7%Only GLM 5 measured
Terminal-Bench 2.0Not measured52.4%Only GLM 5 measured
CursorBench 4.057.8%Not measuredOnly 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
Intelligence benchmarks for Gemini 4 Hydrogen and GLM 5
BenchmarkGemini 4 HydrogenGLM 5Leader
Epoch Capabilities IndexNot measured146.5Only 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
Agentic work benchmarks for Gemini 4 Hydrogen and GLM 5
BenchmarkGemini 4 HydrogenGLM 5Leader
Design Arena: agents building full-stack appsNot measured1097Only GLM 5 measured
Design Arena: agents building mobile appsNot measured1128Only GLM 5 measured
Design Arena: agents building Android appsNot measured1136Only GLM 5 measured
Design Arena: agents building Godot gamesNot measured1144Only GLM 5 measured
Design Arena: HTML slidesNot measured1043Only GLM 5 measured
LiveBench research86.8%Not measuredOnly Gemini 4 Hydrogen measured
LiveBench browser77.1%Not measuredOnly Gemini 4 Hydrogen measured
LiveBench long agentic61.8%Not measuredOnly Gemini 4 Hydrogen measured
Tax Agent Bench (Vals AI)52.3%Not measuredOnly Gemini 4 Hydrogen measured
Legal Research Bench (Vals AI)53.8%Not measuredOnly Gemini 4 Hydrogen measured
Harvey's Legal Agent Benchmark (Vals AI)11.3%Not measuredOnly Gemini 4 Hydrogen measured
τ²-Bench TelecomNot measured98.2%Only GLM 5 measured
Vending-Bench 2Not measured$4,432Only 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
Reasoning benchmarks for Gemini 4 Hydrogen and GLM 5
BenchmarkGemini 4 HydrogenGLM 5Leader
GPQA DiamondNot measured83.3%Only GLM 5 measured
LiveBench reasoning88.6%Not measuredOnly Gemini 4 Hydrogen measured
GPQA Diamond (Artificial Analysis run)Not measured82.0%Only GLM 5 measured
Humanity's Last Exam (Artificial Analysis run)Not measured29.3%Only GLM 5 measured
HLE-Diamond (Artificial Analysis run)58.8%Not measuredOnly Gemini 4 Hydrogen measured
CritPt v2, hard subset (Artificial Analysis run)66.0%Not measuredOnly Gemini 4 Hydrogen measured
GPQA Diamond (Epoch AI run)Not measured87.8%Only GLM 5 measured
ARC-AGINot measured44.7%Only GLM 5 measured
ARC-AGI-2Not measured4.9%Only GLM 5 measured
SimpleBenchNot measured53.2%Only GLM 5 measured
LMArena Text: hard prompts15201452Gemini 4 Hydrogen
LMArena Text: expert15581455Gemini 4 Hydrogen
LMArena Text: hard prompts in English15141460Gemini 4 Hydrogen
Kagi LLM BenchmarkNot measured75.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
Math benchmarks for Gemini 4 Hydrogen and GLM 5
BenchmarkGemini 4 HydrogenGLM 5Leader
AIMENot measured91.7%Only GLM 5 measured
OTIS Mock AIMENot measured80.0%Only GLM 5 measured
LMArena Text: math15071439Gemini 4 Hydrogen
LMArena Text: mathematical work15341450Gemini 4 Hydrogen
MathArenaNot measured19.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
Knowledge benchmarks for Gemini 4 Hydrogen and GLM 5
BenchmarkGemini 4 HydrogenGLM 5Leader
MMLU ProNot measured86.0%Only GLM 5 measured
LegalBench (Vals AI)Not measured84.1%Only GLM 5 measured
CaseLaw (Vals AI)Not measured52.5%Only GLM 5 measured
CorpFin (Vals AI)Not measured62.9%Only GLM 5 measured
TaxEval (Vals AI)Not measured70.0%Only GLM 5 measured
MedQA (Vals AI)Not measured94.3%Only GLM 5 measured
AA-Omniscience46.3Not measuredOnly Gemini 4 Hydrogen measured
LMArena Text: science15191460Gemini 4 Hydrogen
LMArena Text: medicine and healthcare14881454Gemini 4 Hydrogen
LMArena Text: legal and government15321454Gemini 4 Hydrogen
LMArena Text: business and finance14861431Gemini 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
Web design benchmarks for Gemini 4 Hydrogen and GLM 5
BenchmarkGemini 4 HydrogenGLM 5Leader
Design Arena: websites13201239Gemini 4 Hydrogen
Design Arena: UI componentsNot measured1221Only GLM 5 measured
Design Arena: game dev13691223Gemini 4 Hydrogen
Design Arena: data vizNot measured1225Only GLM 5 measured
Design Arena: 3D14151208Gemini 4 Hydrogen
Design Arena: all code categories13331236Gemini 4 Hydrogen
Design Arena: SVGNot measured1157Only GLM 5 measured
Design Arena: ASCII artNot measured1142Only GLM 5 measured
LiveBench design77.3%Not measuredOnly Gemini 4 Hydrogen measured
GeneralLike-for-likePublic boards, shown as published, kept out of the index130
General benchmarks for Gemini 4 Hydrogen and GLM 5
BenchmarkGemini 4 HydrogenGLM 5Leader
Vals Index68.5%Not measuredOnly Gemini 4 Hydrogen measured
LiveBench data analysis83.2%Not measuredOnly Gemini 4 Hydrogen measured
IFBenchNot measured72.3%Only GLM 5 measured
Long context reasoning (AA-LCR)Not measured75.7%Only GLM 5 measured
CL-benchNot measured18.7%Only GLM 5 measured
LMArena Text15021446Gemini 4 Hydrogen
LMArena Text: instruction following15191428Gemini 4 Hydrogen
LMArena Text: creative writing15091437Gemini 4 Hydrogen
LMArena Text: English14991457Gemini 4 Hydrogen
LMArena Text: non-English14951431Gemini 4 Hydrogen
LMArena Text: Chinese16311512Gemini 4 Hydrogen
LMArena Text: GermanNot measured1447Only GLM 5 measured
LMArena Text: JapaneseNot measured1414Only GLM 5 measured
LMArena Text: KoreanNot measured1419Only GLM 5 measured
LMArena Text: French15121457Gemini 4 Hydrogen
LMArena Text: Spanish14941454Gemini 4 Hydrogen
LMArena Text: Russian14921437Gemini 4 Hydrogen
LMArena Text: PolishNot measured1433Only GLM 5 measured
LMArena Text: multi-turn14851456Gemini 4 Hydrogen
LMArena Text: longer queries15241446Gemini 4 Hydrogen
LMArena Text: writing and language15001436Gemini 4 Hydrogen
LMArena Text: entertainment and media15031426Gemini 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
Image generation benchmarks for Gemini 4 Hydrogen and GLM 5
BenchmarkGemini 4 HydrogenGLM 5Leader
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

Gemini 4 Hydrogen$0.0053Fits in one request
GLM 5$0.0026Fits in one request

GLM 5 costs less

Repository review

50K input + 3K output tokens

Gemini 4 Hydrogen$0.098Fits in one request
GLM 5$0.060Fits in one request

GLM 5 costs less

Agent loop

200K input + 10K output tokens

Gemini 4 Hydrogen$0.375Fits in one request
GLM 5$0.232Exceeds the context window

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.

Specifications of Gemini 4 Hydrogen and GLM 5
SpecificationGoogle Gemini 4 HydrogenZ.ai GLM 5
MakerGoogleZ.ai
WeightsNo public weights listedOpen weights
ReleasedNovember 12, 2026February 11, 2026
Context window1.05M205K
Input $/Mtok$1.50$1.00
Output $/Mtok$7.50$3.20
Coding index77.941.6
Independent measurements behind it43
Cost per solved taskNot computable$0.63
SourceOpenRouter listingOpenRouter 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.

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/gemini-4-hydrogen-vs-glm-5" title="Gemini 4 Hydrogen vs GLM 5, 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/gemini-4-hydrogen-vs-glm-5">LLMBenchmark.ai, Gemini 4 Hydrogen vs GLM 5</a></p>