Enter opens the highlighted result. Esc closes.

Gemini 4 Hydrogen vs GLM 5.2

Gemini 4 Hydrogen leads GLM 5.2 on coding, 77.9 to 61.1 on the Vibe Coding Index, and GLM 5.2 costs 1.7x less per output token ($4.40 vs $7.50 per million). Updated November 14, 2026; 36 benchmarks have a result for both.

Gemini 4 HydrogenGoogle
Coding
77.9
Overall
77.1
Output $/M
$7.50
36
GLM 5.2Z.ai
Coding
61.1
Overall
65.5
Output $/M
$4.40
0
vs boards won of 36 shared

Gemini 4 Hydrogen or GLM 5.2: which to pick

Pick Gemini 4 Hydrogen for coding: it scores 77.9 on the Vibe Coding Index against 61.1 for GLM 5.2.

Pick GLM 5.2 for output tokens 1.7x cheaper ($4.40 vs $7.50 per million).

Shared results
36
Gemini 4 Hydrogen only
14
GLM 5.2 only
78
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.

At a glance

Coding index
Gemini 4 Hydrogen 77.9 from 4 benchmarks, GLM 5.2 61.1 from 4 benchmarks.
Widest category
Agentic work, 22.6 points apart on average over 1 shared benchmark.
Widest single gap
Terminal-Bench 4.0 (Artificial Analysis run): Gemini 4 Hydrogen 54.0% against GLM 5.2 1.0%, 53.0 points apart on a 0 to 100 scale.
Output price
Gemini 4 Hydrogen $7.50 against GLM 5.2 $4.40 per million output tokens, 1.7x apart.
Context window
Both take 1.05M 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.

Boards won, where both have a result
CategoryGemini 4 HydrogenBarsGLM 5.2Ties
Coding70
Agentic work10
Reasoning40
Math20
Knowledge50
Web design40
General130
All shared boards360
CodingLike-for-likeSix of these boards feed the Vibe Coding Index70
Coding benchmarks for Gemini 4 Hydrogen and GLM 5.2
BenchmarkGemini 4 HydrogenGLM 5.2Leader
LiveBench coding78.5%Not measuredOnly Gemini 4 Hydrogen measured
LMArena WebDev17041608Gemini 4 Hydrogen
AA Coding IndexNot measured68.8Only GLM 5.2 measured
LiveCodeBench (Vals AI)Not measured69.5%Only GLM 5.2 measured
SWE-bench Verified (Vals AI)Not measured82.8%Only GLM 5.2 measured
Terminal-Bench 4 (Vals AI)54.0%Not measuredOnly Gemini 4 Hydrogen measured
Vibe Code Bench (Vals AI)87.8%64.0%Gemini 4 Hydrogen
Code migration (Vals AI)Not measured37.9%Only GLM 5.2 measured
ProgramBench (Vals AI)Not measured0.5%Only GLM 5.2 measured
Terminal-Bench 2.1 (Vals AI)Not measured67.8%Only GLM 5.2 measured
SkillsBench (Vals AI)Not measured45.1%Only GLM 5.2 measured
SciCodeNot measured51.2%Only GLM 5.2 measured
Terminal-Bench Hard (Artificial Analysis run)Not measured50.8%Only GLM 5.2 measured
Terminal-Bench 4.0 (Artificial Analysis run)54.0%1.0%Gemini 4 Hydrogen
FrontierCode 2.039.0%Not measuredOnly Gemini 4 Hydrogen measured
FrontierCodeNot measured24.5%Only GLM 5.2 measured
WeirdMLNot measured70.1%Only GLM 5.2 measured
MirrorCodeNot measured36.7%Only GLM 5.2 measured
ALE-BenchNot measured1047.0Only GLM 5.2 measured
LMArena Text: coding15161488Gemini 4 Hydrogen
LMArena Text: software and IT15131487Gemini 4 Hydrogen
LMArena WebDev: React17241621Gemini 4 Hydrogen
LMArena WebDev: HTML17431567Gemini 4 Hydrogen
SWE Atlas: Codebase QnANot measured48.1%Only GLM 5.2 measured
SWE Atlas: RefactoringNot measured42.4%Only GLM 5.2 measured
SWE Atlas: Test WritingNot measured41.5%Only GLM 5.2 measured
GameBench 2Not measured49.9Only GLM 5.2 measured
Terminal-Bench 3.0Not measured4.6%Only GLM 5.2 measured
CursorBench 4.057.8%Not measuredOnly Gemini 4 Hydrogen measured
ProgramBenchNot measured0.0%Only GLM 5.2 measured
Neither model has a result on the other 22 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.2
BenchmarkGemini 4 HydrogenGLM 5.2Leader
Epoch Capabilities IndexNot measured153.0Only GLM 5.2 measured
Neither model has a result on the other 1 board here
Agentic workLike-for-likePublic boards, shown as published, kept out of the index10
Agentic work benchmarks for Gemini 4 Hydrogen and GLM 5.2
BenchmarkGemini 4 HydrogenGLM 5.2Leader
AA Agentic IndexNot measured38.4Only GLM 5.2 measured
Design Arena: agents building web appsNot measured1199Only GLM 5.2 measured
Design Arena: agents building full-stack appsNot measured1215Only GLM 5.2 measured
Design Arena: agents building mobile appsNot measured1153Only GLM 5.2 measured
Design Arena: agents building Android appsNot measured1170Only GLM 5.2 measured
Design Arena: agents building Godot gamesNot measured1142Only GLM 5.2 measured
Design Arena: agents building gamesNot measured1153Only GLM 5.2 measured
Design Arena: HTML slidesNot measured1071Only GLM 5.2 measured
Design Arena: PowerPoint slidesNot measured1161Only GLM 5.2 measured
Design Arena: spreadsheetsNot measured1011Only GLM 5.2 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
SREBench (Vals AI)Not measured0.0%Only GLM 5.2 measured
Finance Agent (Vals AI)Not measured49.7%Only GLM 5.2 measured
Tax Agent Bench (Vals AI)52.3%Not measuredOnly Gemini 4 Hydrogen measured
Legal Research Bench (Vals AI)53.8%31.3%Gemini 4 Hydrogen
Harvey's Legal Agent Benchmark (Vals AI)11.3%Not measuredOnly Gemini 4 Hydrogen measured
Excel Modeling Benchmark (Vals AI)Not measured61.5%Only GLM 5.2 measured
τ²-Bench TelecomNot measured99.1%Only GLM 5.2 measured
APEX-AgentsNot measured45.2%Only GLM 5.2 measured
PostTrainBenchNot measured30.4%Only GLM 5.2 measured
Vending-Bench 2Not measured$8,314Only GLM 5.2 measured
MCP AtlasNot measured77.8%Only GLM 5.2 measured
Toolathlon-VerifiedNot measured59.9%Only GLM 5.2 measured
τ³-BankingNot measured37.1%Only GLM 5.2 measured
Neither model has a result on the other 18 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index40
Reasoning benchmarks for Gemini 4 Hydrogen and GLM 5.2
BenchmarkGemini 4 HydrogenGLM 5.2Leader
GPQA DiamondNot measured85.6%Only GLM 5.2 measured
LiveBench reasoning88.6%Not measuredOnly Gemini 4 Hydrogen measured
GPQA Diamond (Artificial Analysis run)Not measured89.5%Only GLM 5.2 measured
Humanity's Last Exam (Artificial Analysis run)Not measured41.1%Only GLM 5.2 measured
HLE-Diamond (Artificial Analysis run)58.8%17.7%Gemini 4 Hydrogen
CritPt v2, hard subset (Artificial Analysis run)66.0%Not measuredOnly Gemini 4 Hydrogen measured
GPQA Diamond (Epoch AI run)Not measured91.9%Only GLM 5.2 measured
ARC-AGINot measured77.0%Only GLM 5.2 measured
ARC-AGI-2Not measured22.8%Only GLM 5.2 measured
SimpleBenchNot measured58.8%Only GLM 5.2 measured
Chess puzzlesNot measured22.0%Only GLM 5.2 measured
Mystery game puzzlesNot measured19.0%Only GLM 5.2 measured
EBR-benchNot measured9.5%Only GLM 5.2 measured
LMArena Text: hard prompts15201480Gemini 4 Hydrogen
LMArena Text: expert15581488Gemini 4 Hydrogen
LMArena Text: hard prompts in English15141481Gemini 4 Hydrogen
Kagi LLM BenchmarkNot measured62.6%Only GLM 5.2 measured
Neither model has a result on the other 9 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index20
Math benchmarks for Gemini 4 Hydrogen and GLM 5.2
BenchmarkGemini 4 HydrogenGLM 5.2Leader
OTIS Mock AIMENot measured86.4%Only GLM 5.2 measured
FrontierMath, tiers 1 to 3Not measured59.2%Only GLM 5.2 measured
FrontierMath, tier 4Not measured29.3%Only GLM 5.2 measured
ProofBenchNot measured35.0%Only GLM 5.2 measured
LMArena Text: math15071483Gemini 4 Hydrogen
LMArena Text: mathematical work15341489Gemini 4 Hydrogen
MathArenaNot measured21.7%Only GLM 5.2 measured
Neither model has a result on the other 7 boards here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index50
Knowledge benchmarks for Gemini 4 Hydrogen and GLM 5.2
BenchmarkGemini 4 HydrogenGLM 5.2Leader
MMLU ProNot measured86.7%Only GLM 5.2 measured
LegalBench (Vals AI)Not measured84.1%Only GLM 5.2 measured
CorpFin (Vals AI)Not measured66.1%Only GLM 5.2 measured
TaxEval (Vals AI)Not measured73.3%Only GLM 5.2 measured
MedCode (Vals AI)Not measured40.8%Only GLM 5.2 measured
AA-Omniscience46.30.6Gemini 4 Hydrogen
SimpleQA VerifiedNot measured34.2%Only GLM 5.2 measured
LMArena Text: science15191488Gemini 4 Hydrogen
LMArena Text: medicine and healthcare14881475Gemini 4 Hydrogen
LMArena Text: legal and government15321489Gemini 4 Hydrogen
LMArena Text: business and finance14861450Gemini 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.2
BenchmarkGemini 4 HydrogenGLM 5.2Leader
Design Arena: websites13201277Gemini 4 Hydrogen
Design Arena: UI componentsNot measured1286Only GLM 5.2 measured
Design Arena: game dev13691256Gemini 4 Hydrogen
Design Arena: data vizNot measured1282Only GLM 5.2 measured
Design Arena: 3D14151266Gemini 4 Hydrogen
Design Arena: all code categories13331277Gemini 4 Hydrogen
Design Arena: SVGNot measured1195Only GLM 5.2 measured
Design Arena: ASCII artNot measured1185Only GLM 5.2 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.2
BenchmarkGemini 4 HydrogenGLM 5.2Leader
Vals Index68.5%Not measuredOnly Gemini 4 Hydrogen measured
LiveBench data analysis83.2%Not measuredOnly Gemini 4 Hydrogen measured
MedScribe (Vals AI)Not measured83.5%Only GLM 5.2 measured
IFBenchNot measured73.3%Only GLM 5.2 measured
Long context reasoning (AA-LCR)Not measured78.3%Only GLM 5.2 measured
GDPval-AANot measured1380Only GLM 5.2 measured
DTBenchNot measured93.6%Only GLM 5.2 measured
LMCANot measured45.8%Only GLM 5.2 measured
Surface Evolver BenchNot measured55.6%Only GLM 5.2 measured
LMArena Text15021469Gemini 4 Hydrogen
LMArena Text: instruction following15191467Gemini 4 Hydrogen
LMArena Text: creative writing15091459Gemini 4 Hydrogen
LMArena Text: English14991475Gemini 4 Hydrogen
LMArena Text: non-English14951458Gemini 4 Hydrogen
LMArena Text: Chinese16311522Gemini 4 Hydrogen
LMArena Text: GermanNot measured1467Only GLM 5.2 measured
LMArena Text: JapaneseNot measured1451Only GLM 5.2 measured
LMArena Text: KoreanNot measured1428Only GLM 5.2 measured
LMArena Text: French15121476Gemini 4 Hydrogen
LMArena Text: Spanish14941483Gemini 4 Hydrogen
LMArena Text: Russian14921466Gemini 4 Hydrogen
LMArena Text: PolishNot measured1460Only GLM 5.2 measured
LMArena Text: multi-turn14851469Gemini 4 Hydrogen
LMArena Text: longer queries15241479Gemini 4 Hydrogen
LMArena Text: writing and language15001461Gemini 4 Hydrogen
LMArena Text: entertainment and media15031448Gemini 4 Hydrogen
EQ-Bench 4Not measured1208Only GLM 5.2 measured
Neither model has a result on the other 22 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.2
BenchmarkGemini 4 HydrogenGLM 5.2Leader
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.2$0.0036Fits in one request

GLM 5.2 costs less

Repository review

50K input + 3K output tokens

Gemini 4 Hydrogen$0.098Fits in one request
GLM 5.2$0.083Fits in one request

GLM 5.2 costs less

Agent loop

200K input + 10K output tokens

Gemini 4 Hydrogen$0.375Fits in one request
GLM 5.2$0.324Fits in one request

GLM 5.2 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.2
SpecificationGoogle Gemini 4 HydrogenZ.ai GLM 5.2
MakerGoogleZ.ai
WeightsNo public weights listedOpen weights
ReleasedNovember 12, 2026June 16, 2026
Context window1.05M1.05M
Input $/Mtok$1.50$1.40
Output $/Mtok$7.50$4.40
Coding index77.961.1
Independent measurements behind it44
Cost per solved taskNot computable$0.86
SourceOpenRouter listingOpenRouter listing

Questions

Is Gemini 4 Hydrogen better than GLM 5.2 for coding?

Pick Gemini 4 Hydrogen for coding: it scores 77.9 on the Vibe Coding Index against 61.1 for GLM 5.2. Pick GLM 5.2 for output tokens 1.7x cheaper ($4.40 vs $7.50 per million).

Which is cheaper, Gemini 4 Hydrogen or GLM 5.2?

Gemini 4 Hydrogen costs $1.50 per million input tokens and $7.50 per million output tokens; GLM 5.2 costs $1.40 and $4.40. Cost per solved task is known for GLM 5.2 only.

Which has the bigger context window, Gemini 4 Hydrogen or GLM 5.2?

Neither: both take 1.05M tokens.

How many benchmarks is the Gemini 4 Hydrogen vs GLM 5.2 comparison based on?

36 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.2's on 4. 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-2" title="Gemini 4 Hydrogen vs GLM 5.2, 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-2">LLMBenchmark.ai, Gemini 4 Hydrogen vs GLM 5.2</a></p>