GLM 5.4 vs Hy4
GLM 5.4 leads Hy4 on coding, 72.7 to 65.2 on the Vibe Coding Index, and Hy4 costs 3.5x less per output token ($1.2505 vs $4.40 per million). Updated December 3, 2026; 3 benchmarks have a result for both.
GLM 5.4 or Hy4: which to pick
Pick GLM 5.4 for coding: it scores 72.7 on the Vibe Coding Index against 65.2 for Hy4, though on 2 benchmarks against 3.
Pick Hy4 for output tokens 3.5x cheaper ($1.2505 vs $4.40 per million).
- Shared results
- 3
- GLM 5.4 only
- 7
- Hy4 only
- 21
- Like-for-like categories
- 1 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
GLM 5.4
GLM 5.4 scores 72.7 against 65.2.
2 and 3 benchmarks behind the scores
Intelligence
AA Intelligence Index
No call
Only Hy4 has a AA Intelligence Index result, 35.0.
Directional only
Web design
Design Arena: websites
No call
Only Hy4 has a Design Arena: websites result, 1303.
Directional only
General
Vals Index
No call
Only Hy4 has a Vals Index result, 57.9%.
Directional only
Long documents
Listed context window
No call
Both take 1.05M tokens.
Listed by OpenRouter
Everyday cost
1K input + 500 output tokens
Hy4
GLM 5.4 $0.0036, Hy4 $0.0010 per turn.
List prices
At a glance
- Coding index
- GLM 5.4 72.7 from 2 benchmarks, Hy4 65.2 from 3 benchmarks.
- Widest category
- Coding, 1.6 points apart on average over 3 shared benchmarks.
- Widest single gap
- LMArena WebDev: GLM 5.4 1690 against Hy4 1657, 4.7 points apart on a 0 to 100 scale.
- Output price
- GLM 5.4 $4.40 against Hy4 $1.2505 per million output tokens, 3.5x 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.
| Category | GLM 5.4 | Bars | Hy4 | Ties |
|---|---|---|---|---|
| Coding | 3 | 0 | ||
| All shared boards | 3 | 0 |
CodingLike-for-likeSix of these boards feed the Vibe Coding Index30
| Benchmark | GLM 5.4 | Hy4 | Leader |
|---|---|---|---|
| LiveBench coding | 74.5% | Not measured | Only GLM 5.4 measured |
| LMArena WebDev | 1690 | 1657 | GLM 5.4 |
| Terminal-Bench 4 (Vals AI) | Not measured | 39.4% | Only Hy4 measured |
| Vibe Code Bench (Vals AI) | Not measured | 81.0% | Only Hy4 measured |
| Terminal-Bench 4.0 (Artificial Analysis run) | Not measured | 37.4% | Only Hy4 measured |
| FrontierCode 2.0 | Not measured | 31.2% | Only Hy4 measured |
| LMArena WebDev: React | 1739 | 1668 | GLM 5.4 |
| LMArena WebDev: HTML | 1675 | 1665 | GLM 5.4 |
| LMArena WebDev: from an image | Not measured | 1621 | Only Hy4 measured |
| GameBench 2 | Not measured | 48.5 | Only Hy4 measured |
| Terminal-Bench 4.0 | Not measured | 39.1% | Only Hy4 measured |
| Neither model has a result on the other 41 boards here | |||
IntelligenceDirectional onlyPublic boards, shown as published, kept out of the index1 board, none shared
| Benchmark | GLM 5.4 | Hy4 | Leader |
|---|---|---|---|
| AA Intelligence Index | Not measured | 35.0 | Only Hy4 measured |
| Neither model has a result on the other 1 board here | |||
Agentic workDirectional onlyPublic boards, shown as published, kept out of the index6 boards, none shared
| Benchmark | GLM 5.4 | Hy4 | Leader |
|---|---|---|---|
| LiveBench research | 86.0% | Not measured | Only GLM 5.4 measured |
| LiveBench browser | 64.5% | Not measured | Only GLM 5.4 measured |
| LiveBench long agentic | 41.3% | Not measured | Only GLM 5.4 measured |
| Tax Agent Bench (Vals AI) | Not measured | 34.4% | Only Hy4 measured |
| Legal Research Bench (Vals AI) | Not measured | 41.4% | Only Hy4 measured |
| Harvey's Legal Agent Benchmark (Vals AI) | Not measured | 12.5% | Only Hy4 measured |
| Neither model has a result on the other 38 boards here | |||
ReasoningDirectional onlyPublic boards, shown as published, kept out of the index3 boards, none shared
| Benchmark | GLM 5.4 | Hy4 | Leader |
|---|---|---|---|
| LiveBench reasoning | 85.2% | Not measured | Only GLM 5.4 measured |
| HLE-Diamond (Artificial Analysis run) | Not measured | 32.7% | Only Hy4 measured |
| CritPt v2, hard subset (Artificial Analysis run) | Not measured | 39.0% | Only Hy4 measured |
| Neither model has a result on the other 23 boards here | |||
MathNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
| Benchmark | GLM 5.4 | Hy4 | Leader |
|---|---|---|---|
| Neither model has a result on 14 boards here | |||
KnowledgeDirectional onlyPublic boards, shown as published, kept out of the index1 board, none shared
| Benchmark | GLM 5.4 | Hy4 | Leader |
|---|---|---|---|
| AA-Omniscience | Not measured | 5.4 | Only Hy4 measured |
| Neither model has a result on the other 20 boards here | |||
Web designDirectional onlyPublic boards, shown as published, kept out of the index7 boards, none shared
| Benchmark | GLM 5.4 | Hy4 | Leader |
|---|---|---|---|
| Design Arena: websites | Not measured | 1303 | Only Hy4 measured |
| Design Arena: UI components | Not measured | 1211 | Only Hy4 measured |
| Design Arena: game dev | Not measured | 1246 | Only Hy4 measured |
| Design Arena: data viz | Not measured | 1222 | Only Hy4 measured |
| Design Arena: 3D | Not measured | 1248 | Only Hy4 measured |
| Design Arena: all code categories | Not measured | 1312 | Only Hy4 measured |
| LiveBench design | 74.2% | Not measured | Only GLM 5.4 measured |
| Neither model has a result on the other 2 boards here | |||
GeneralDirectional onlyPublic boards, shown as published, kept out of the index2 boards, none shared
| Benchmark | GLM 5.4 | Hy4 | Leader |
|---|---|---|---|
| Vals Index | Not measured | 57.9% | Only Hy4 measured |
| LiveBench data analysis | 72.2% | Not measured | Only GLM 5.4 measured |
| Neither model has a result on the other 47 boards here | |||
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
| Benchmark | GLM 5.4 | Hy4 | 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
Hy4 costs less
Repository review
50K input + 3K output tokens
Hy4 costs less
Agent loop
200K input + 10K output tokens
Hy4 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 | Z.ai GLM 5.4 | Tencent Hy4 |
|---|---|---|
| Maker | Z.ai | Tencent |
| Weights | Open weights | Open weights |
| Released | December 2, 2026 | November 4, 2026 |
| Context window | 1.05M | 1.05M |
| Input $/Mtok | $1.40 | $0.417 |
| Output $/Mtok | $4.40 | $1.2505 |
| Coding index | 72.7 | 65.2 |
| Independent measurements behind it | 2 | 3 |
| Cost per solved task | Not computable | Not computable |
| Source | OpenRouter listing | OpenRouter listing |
Questions
Is GLM 5.4 better than Hy4 for coding?
Pick GLM 5.4 for coding: it scores 72.7 on the Vibe Coding Index against 65.2 for Hy4, though on 2 benchmarks against 3. Pick Hy4 for output tokens 3.5x cheaper ($1.2505 vs $4.40 per million).
Which is cheaper, GLM 5.4 or Hy4?
GLM 5.4 costs $1.40 per million input tokens and $4.40 per million output tokens; Hy4 costs $0.417 and $1.2505. Cost per solved task is known for neither of them.
Which has the bigger context window, GLM 5.4 or Hy4?
Neither: both take 1.05M tokens.
How many benchmarks is the GLM 5.4 vs Hy4 comparison based on?
3 benchmarks have a result for both models as of December 3, 2026. GLM 5.4's coding index rests on 2 independent benchmarks and Hy4's on 3. Where only one model has a result, the page says so instead of naming a winner.