GLM 5.4 vs Hy4 flash
GLM 5.4 leads Hy4 flash on coding, 72.7 to 44.5 on the Vibe Coding Index, and Hy4 flash costs 15.7x less per output token ($0.281 vs $4.40 per million). Updated December 3, 2026; no benchmark has tested both models yet.
- Coding
- 72.7
- Overall
- No data
- Output $/M
- $4.40
- Coding
- 44.5
- Overall
- No data
- Output $/M
- $0.281
GLM 5.4 or Hy4 flash: which to pick
GLM 5.4 scores 72.7 and Hy4 flash 44.5 on the Vibe Coding Index, but no coding benchmark measured both, so the gap is directional, not a ranking.
Pick Hy4 flash for output tokens 15.7x cheaper ($0.281 vs $4.40 per million).
No benchmark has tested both yet. GLM 5.4 has results on LiveBench coding, LMArena WebDev and LMArena WebDev: React; Hy4 flash on Terminal-Bench 4 (Vals AI), Vibe Code Bench (Vals AI) and GameBench 2. Compare them on price and context instead.
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
No call
72.7 against 44.5, from different benchmarks with none in common.
Directional only
Web design
Design Arena: websites
No call
Only Hy4 flash has a Design Arena: websites result, 1270.
Directional only
General
Vals Index
No call
Only Hy4 flash has a Vals Index result, 49.2%.
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 flash
GLM 5.4 $0.0036, Hy4 flash $0.0002 per turn.
List prices
At a glance
- Coding index
- GLM 5.4 72.7 from 2 benchmarks, Hy4 flash 44.5 from 2 benchmarks.
- Widest category
- None yet: no category has been tested on both models.
- Widest single gap
- None yet: no benchmark has tested both models.
- Output price
- GLM 5.4 $4.40 against Hy4 flash $0.281 per million output tokens, 15.7x apart.
- Context window
- Both take 1.05M tokens.
Benchmark by benchmark
Every board either model has a result on, a category to a fold; bars are each result on a 0 to 100 scale. Only one model is measured on each, so no row names a leader.
CodingDirectional onlySix of these boards feed the Vibe Coding Index7 boards measured
| Benchmark | GLM 5.4 | Hy4 flash | Leader |
|---|---|---|---|
| LiveBench coding | 74.5% | Not measured | Only GLM 5.4 measured |
| LMArena WebDev | 1690 | Not measured | Only GLM 5.4 measured |
| Terminal-Bench 4 (Vals AI) | Not measured | 15.2% | Only Hy4 flash measured |
| Vibe Code Bench (Vals AI) | Not measured | 74.8% | Only Hy4 flash measured |
| LMArena WebDev: React | 1739 | Not measured | Only GLM 5.4 measured |
| LMArena WebDev: HTML | 1675 | Not measured | Only GLM 5.4 measured |
| GameBench 2 | Not measured | 50.6 | Only Hy4 flash measured |
| Neither model has a result on the other 45 boards here | |||
Agentic workDirectional onlyPublic boards, shown as published, kept out of the index6 boards measured
| Benchmark | GLM 5.4 | Hy4 flash | 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 | 23.3% | Only Hy4 flash measured |
| Legal Research Bench (Vals AI) | Not measured | 38.5% | Only Hy4 flash measured |
| Harvey's Legal Agent Benchmark (Vals AI) | Not measured | 5.4% | Only Hy4 flash measured |
| Neither model has a result on the other 38 boards here | |||
ReasoningDirectional onlyPublic boards, shown as published, kept out of the index1 board measured
| Benchmark | GLM 5.4 | Hy4 flash | Leader |
|---|---|---|---|
| LiveBench reasoning | 85.2% | Not measured | Only GLM 5.4 measured |
| Neither model has a result on the other 25 boards here | |||
Web designDirectional onlyPublic boards, shown as published, kept out of the index6 boards measured
| Benchmark | GLM 5.4 | Hy4 flash | Leader |
|---|---|---|---|
| Design Arena: websites | Not measured | 1270 | Only Hy4 flash measured |
| Design Arena: UI components | Not measured | 1223 | Only Hy4 flash measured |
| Design Arena: game dev | Not measured | 1189 | Only Hy4 flash measured |
| Design Arena: 3D | Not measured | 1222 | Only Hy4 flash measured |
| Design Arena: all code categories | Not measured | 1275 | Only Hy4 flash measured |
| LiveBench design | 74.2% | Not measured | Only GLM 5.4 measured |
| Neither model has a result on the other 3 boards here | |||
GeneralDirectional onlyPublic boards, shown as published, kept out of the index2 boards measured
| Benchmark | GLM 5.4 | Hy4 flash | Leader |
|---|---|---|---|
| Vals Index | Not measured | 49.2% | Only Hy4 flash measured |
| LiveBench data analysis | 72.2% | Not measured | Only GLM 5.4 measured |
| Neither model has a result on the other 47 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 flash costs less
Repository review
50K input + 3K output tokens
Hy4 flash costs less
Agent loop
200K input + 10K output tokens
Hy4 flash 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 flash |
|---|---|---|
| Maker | Z.ai | Tencent |
| Weights | Open weights | Open weights |
| Released | December 2, 2026 | November 16, 2026 |
| Context window | 1.05M | 1.05M |
| Input $/Mtok | $1.40 | $0.07 |
| Output $/Mtok | $4.40 | $0.281 |
| Coding index | 72.7 | 44.5 |
| Independent measurements behind it | 2 | 2 |
| Cost per solved task | Not computable | Not computable |
| Source | OpenRouter listing | OpenRouter listing |
Questions
Is GLM 5.4 better than Hy4 flash for coding?
GLM 5.4 scores 72.7 and Hy4 flash 44.5 on the Vibe Coding Index, but no coding benchmark measured both, so the gap is directional, not a ranking. Pick Hy4 flash for output tokens 15.7x cheaper ($0.281 vs $4.40 per million).
Which is cheaper, GLM 5.4 or Hy4 flash?
GLM 5.4 costs $1.40 per million input tokens and $4.40 per million output tokens; Hy4 flash costs $0.07 and $0.281. Cost per solved task is known for neither of them.
Which has the bigger context window, GLM 5.4 or Hy4 flash?
Neither: both take 1.05M tokens.
Has any benchmark tested both GLM 5.4 and Hy4 flash?
No benchmark has tested both yet. GLM 5.4 has results on LiveBench coding, LMArena WebDev and LMArena WebDev: React; Hy4 flash on Terminal-Bench 4 (Vals AI), Vibe Code Bench (Vals AI) and GameBench 2. Compare them on price and context instead. Data as of December 3, 2026.