GLM 5.4 vs GPT-5.4
GLM 5.4 leads GPT-5.4 on coding, 72.7 to 64.3 on the Vibe Coding Index, and GLM 5.4 costs 3.4x less per output token ($4.40 vs $15.00 per million). Updated December 3, 2026; 3 benchmarks have a result for both.
GLM 5.4 or GPT-5.4: which to pick
Pick GLM 5.4 for coding: it scores 72.7 on the Vibe Coding Index against 64.3 for GPT-5.4, though on 2 benchmarks against 3.
Pick GPT-5.4 for a larger context window (1.05M against 1.05M tokens).
- Shared results
- 3
- GLM 5.4 only
- 7
- GPT-5.4 only
- 117
- 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 64.3.
2 and 3 benchmarks behind the scores
Reasoning
GPQA Diamond
No call
Only GPT-5.4 has a GPQA Diamond result, 91.7%.
Directional only
Math
AIME
No call
Only GPT-5.4 has a AIME result, 96.7%.
Directional only
Knowledge
MMLU Pro
No call
Only GPT-5.4 has a MMLU Pro result, 87.5%.
Directional only
Web design
Design Arena: websites
No call
Only GPT-5.4 has a Design Arena: websites result, 1239.
Directional only
Long documents
Listed context window
GPT-5.4
GPT-5.4 takes 1.05M tokens against 1.05M.
Listed by OpenRouter
Everyday cost
1K input + 500 output tokens
GLM 5.4
GLM 5.4 $0.0036, GPT-5.4 $0.010 per turn.
List prices
Cost per solved task
One SWE-bench Verified task, solved
No call
Only GPT-5.4 has the number, $1.02.
Directional only
At a glance
- Coding index
- GLM 5.4 72.7 from 2 benchmarks, GPT-5.4 64.3 from 3 benchmarks.
- Widest category
- Coding, 25.9 points apart on average over 3 shared benchmarks.
- Widest single gap
- LMArena WebDev: GLM 5.4 1690 against GPT-5.4 1462, 32.6 points apart on a 0 to 100 scale.
- Output price
- GLM 5.4 $4.40 against GPT-5.4 $15.00 per million output tokens, 3.4x apart.
- Context window
- GLM 5.4 takes 1.05M tokens, GPT-5.4 1.05M.
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 | GPT-5.4 | Ties |
|---|---|---|---|---|
| Coding | 3 | 0 | ||
| All shared boards | 3 | 0 |
CodingLike-for-likeSix of these boards feed the Vibe Coding Index30
| Benchmark | GLM 5.4 | GPT-5.4 | Leader |
|---|---|---|---|
| LiveBench coding | 74.5% | Not measured | Only GLM 5.4 measured |
| LMArena WebDev | 1690 | 1462 | GLM 5.4 |
| LiveCodeBench (Vals AI) | Not measured | 84.1% | Only GPT-5.4 measured |
| SWE-bench Verified (Vals AI) | Not measured | 78.2% | Only GPT-5.4 measured |
| Vibe Code Bench (Vals AI) | Not measured | 67.4% | Only GPT-5.4 measured |
| Code migration (Vals AI) | Not measured | 35.0% | Only GPT-5.4 measured |
| ProgramBench (Vals AI) | Not measured | 0.5% | Only GPT-5.4 measured |
| SkillsBench (Vals AI) | Not measured | 51.7% | Only GPT-5.4 measured |
| Terminal-Bench Hard (Artificial Analysis run) | Not measured | 57.6% | Only GPT-5.4 measured |
| Terminal-Bench | Not measured | 81.8% | Only GPT-5.4 measured |
| GSO-Bench | Not measured | 31.4% | Only GPT-5.4 measured |
| WeirdML | Not measured | 77.7% | Only GPT-5.4 measured |
| MirrorCode | Not measured | 23.3% | Only GPT-5.4 measured |
| ALE-Bench | Not measured | 1607.0 | Only GPT-5.4 measured |
| LMArena Text: coding | Not measured | 1497 | Only GPT-5.4 measured |
| LMArena Text: software and IT | Not measured | 1491 | Only GPT-5.4 measured |
| LMArena WebDev: React | 1739 | 1451 | GLM 5.4 |
| LMArena WebDev: HTML | 1675 | 1479 | GLM 5.4 |
| LMArena WebDev: from an image | Not measured | 1441 | Only GPT-5.4 measured |
| SWE Atlas: Codebase QnA | Not measured | 40.8% | Only GPT-5.4 measured |
| SWE Atlas: Refactoring | Not measured | 44.3% | Only GPT-5.4 measured |
| SWE Atlas: Test Writing | Not measured | 44.4% | Only GPT-5.4 measured |
| GameBench 2 | Not measured | 62.2 | Only GPT-5.4 measured |
| ProgramBench | Not measured | 0.0% | Only GPT-5.4 measured |
| Neither model has a result on the other 28 boards here | |||
IntelligenceDirectional onlyPublic boards, shown as published, kept out of the index1 board, none shared
| Benchmark | GLM 5.4 | GPT-5.4 | Leader |
|---|---|---|---|
| Epoch Capabilities Index | Not measured | 157.8 | Only GPT-5.4 measured |
| Neither model has a result on the other 1 board here | |||
Agentic workDirectional onlyPublic boards, shown as published, kept out of the index17 boards, none shared
| Benchmark | GLM 5.4 | GPT-5.4 | Leader |
|---|---|---|---|
| Design Arena: agents building web apps | Not measured | 1024 | Only GPT-5.4 measured |
| Design Arena: agents building full-stack apps | Not measured | 1063 | Only GPT-5.4 measured |
| Design Arena: agents building mobile apps | Not measured | 1077 | Only GPT-5.4 measured |
| Design Arena: agents building Android apps | Not measured | 1004 | Only GPT-5.4 measured |
| Design Arena: agents building Godot games | Not measured | 1135 | Only GPT-5.4 measured |
| 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 |
| τ²-Bench Telecom | Not measured | 87.1% | Only GPT-5.4 measured |
| APEX-Agents | Not measured | 52.4% | Only GPT-5.4 measured |
| METR time horizons | Not measured | 74.3% | Only GPT-5.4 measured |
| DeepResearch Bench | Not measured | 35.1% | Only GPT-5.4 measured |
| PostTrainBench | Not measured | 17.8% | Only GPT-5.4 measured |
| Vending-Bench 2 | Not measured | $6,144 | Only GPT-5.4 measured |
| LMArena Search | Not measured | 1198 | Only GPT-5.4 measured |
| MCP Atlas | Not measured | 70.6% | Only GPT-5.4 measured |
| τ³-Banking | Not measured | 39.4% | Only GPT-5.4 measured |
| Neither model has a result on the other 27 boards here | |||
ReasoningDirectional onlyPublic boards, shown as published, kept out of the index17 boards, none shared
| Benchmark | GLM 5.4 | GPT-5.4 | Leader |
|---|---|---|---|
| GPQA Diamond | Not measured | 91.7% | Only GPT-5.4 measured |
| LiveBench reasoning | 85.2% | Not measured | Only GLM 5.4 measured |
| MMMU Pro (Vals AI) | Not measured | 87.5% | Only GPT-5.4 measured |
| GPQA Diamond (Artificial Analysis run) | Not measured | 92.0% | Only GPT-5.4 measured |
| Humanity's Last Exam (Artificial Analysis run) | Not measured | 43.7% | Only GPT-5.4 measured |
| GPQA Diamond (Epoch AI run) | Not measured | 93.3% | Only GPT-5.4 measured |
| ARC-AGI | Not measured | 93.7% | Only GPT-5.4 measured |
| ARC-AGI-2 | Not measured | 74.0% | Only GPT-5.4 measured |
| Chess puzzles | Not measured | 48.0% | Only GPT-5.4 measured |
| Mystery game puzzles | Not measured | 37.0% | Only GPT-5.4 measured |
| EBR-bench | Not measured | 25.4% | Only GPT-5.4 measured |
| LMArena Text: hard prompts | Not measured | 1485 | Only GPT-5.4 measured |
| LMArena Text: expert | Not measured | 1507 | Only GPT-5.4 measured |
| LMArena Text: hard prompts in English | Not measured | 1479 | Only GPT-5.4 measured |
| LMArena Vision: diagrams | Not measured | 1325 | Only GPT-5.4 measured |
| LMArena Vision: homework | Not measured | 1336 | Only GPT-5.4 measured |
| Kagi LLM Benchmark | Not measured | 63.8% | Only GPT-5.4 measured |
| Neither model has a result on the other 9 boards here | |||
MathDirectional onlyPublic boards, shown as published, kept out of the index8 boards, none shared
| Benchmark | GLM 5.4 | GPT-5.4 | Leader |
|---|---|---|---|
| AIME | Not measured | 96.7% | Only GPT-5.4 measured |
| OTIS Mock AIME | Not measured | 97.8% | Only GPT-5.4 measured |
| FrontierMath, tiers 1 to 3 | Not measured | 78.6% | Only GPT-5.4 measured |
| FrontierMath, tier 4 | Not measured | 49.0% | Only GPT-5.4 measured |
| ProofBench | Not measured | 56.0% | Only GPT-5.4 measured |
| LMArena Text: math | Not measured | 1487 | Only GPT-5.4 measured |
| LMArena Text: mathematical work | Not measured | 1496 | Only GPT-5.4 measured |
| MathArena | Not measured | 34.2% | Only GPT-5.4 measured |
| Neither model has a result on the other 6 boards here | |||
KnowledgeDirectional onlyPublic boards, shown as published, kept out of the index15 boards, none shared
| Benchmark | GLM 5.4 | GPT-5.4 | Leader |
|---|---|---|---|
| MMLU Pro | Not measured | 87.5% | Only GPT-5.4 measured |
| LegalBench (Vals AI) | Not measured | 86.0% | Only GPT-5.4 measured |
| CaseLaw (Vals AI) | Not measured | 63.8% | Only GPT-5.4 measured |
| CorpFin (Vals AI) | Not measured | 65.3% | Only GPT-5.4 measured |
| TaxEval (Vals AI) | Not measured | 74.0% | Only GPT-5.4 measured |
| MortgageTax (Vals AI) | Not measured | 68.3% | Only GPT-5.4 measured |
| MedQA (Vals AI) | Not measured | 96.1% | Only GPT-5.4 measured |
| MedCode (Vals AI) | Not measured | 41.3% | Only GPT-5.4 measured |
| SimpleQA Verified | Not measured | 45.1% | Only GPT-5.4 measured |
| LMArena Text: science | Not measured | 1478 | Only GPT-5.4 measured |
| LMArena Text: medicine and healthcare | Not measured | 1458 | Only GPT-5.4 measured |
| LMArena Text: legal and government | Not measured | 1485 | Only GPT-5.4 measured |
| LMArena Text: business and finance | Not measured | 1475 | Only GPT-5.4 measured |
| PRBench Finance | Not measured | 45.6% | Only GPT-5.4 measured |
| PRBench Legal | Not measured | 45.6% | Only GPT-5.4 measured |
| Neither model has a result on the other 6 boards here | |||
Web designDirectional onlyPublic boards, shown as published, kept out of the index9 boards, none shared
| Benchmark | GLM 5.4 | GPT-5.4 | Leader |
|---|---|---|---|
| Design Arena: websites | Not measured | 1239 | Only GPT-5.4 measured |
| Design Arena: UI components | Not measured | 1197 | Only GPT-5.4 measured |
| Design Arena: game dev | Not measured | 1162 | Only GPT-5.4 measured |
| Design Arena: data viz | Not measured | 1188 | Only GPT-5.4 measured |
| Design Arena: 3D | Not measured | 1013 | Only GPT-5.4 measured |
| Design Arena: all code categories | Not measured | 1221 | Only GPT-5.4 measured |
| Design Arena: SVG | Not measured | 1183 | Only GPT-5.4 measured |
| Design Arena: ASCII art | Not measured | 1167 | Only GPT-5.4 measured |
| LiveBench design | 74.2% | Not measured | Only GLM 5.4 measured |
GeneralDirectional onlyPublic boards, shown as published, kept out of the index36 boards, none shared
| Benchmark | GLM 5.4 | GPT-5.4 | Leader |
|---|---|---|---|
| LiveBench data analysis | 72.2% | Not measured | Only GLM 5.4 measured |
| MedScribe (Vals AI) | Not measured | 77.5% | Only GPT-5.4 measured |
| IFBench | Not measured | 73.9% | Only GPT-5.4 measured |
| Long context reasoning (AA-LCR) | Not measured | 82.0% | Only GPT-5.4 measured |
| GDPval-AA | Not measured | 1255 | Only GPT-5.4 measured |
| DTBench | Not measured | 94.4% | Only GPT-5.4 measured |
| LMCA | Not measured | 52.0% | Only GPT-5.4 measured |
| CL-bench | Not measured | 27.9% | Only GPT-5.4 measured |
| Furniture assembly | Not measured | 37.5% | Only GPT-5.4 measured |
| CL-bench Life | Not measured | 21.7% | Only GPT-5.4 measured |
| LMArena Text | Not measured | 1469 | Only GPT-5.4 measured |
| LMArena Text: instruction following | Not measured | 1469 | Only GPT-5.4 measured |
| LMArena Text: creative writing | Not measured | 1437 | Only GPT-5.4 measured |
| LMArena Vision | Not measured | 1301 | Only GPT-5.4 measured |
| LMArena Text: English | Not measured | 1467 | Only GPT-5.4 measured |
| LMArena Text: non-English | Not measured | 1464 | Only GPT-5.4 measured |
| LMArena Text: Chinese | Not measured | 1517 | Only GPT-5.4 measured |
| LMArena Text: German | Not measured | 1473 | Only GPT-5.4 measured |
| LMArena Text: Japanese | Not measured | 1484 | Only GPT-5.4 measured |
| LMArena Text: Korean | Not measured | 1449 | Only GPT-5.4 measured |
| LMArena Text: French | Not measured | 1493 | Only GPT-5.4 measured |
| LMArena Text: Spanish | Not measured | 1453 | Only GPT-5.4 measured |
| LMArena Text: Russian | Not measured | 1481 | Only GPT-5.4 measured |
| LMArena Text: Polish | Not measured | 1472 | Only GPT-5.4 measured |
| LMArena Text: multi-turn | Not measured | 1482 | Only GPT-5.4 measured |
| LMArena Text: longer queries | Not measured | 1473 | Only GPT-5.4 measured |
| LMArena Text: writing and language | Not measured | 1457 | Only GPT-5.4 measured |
| LMArena Text: entertainment and media | Not measured | 1437 | Only GPT-5.4 measured |
| LMArena Vision: English | Not measured | 1298 | Only GPT-5.4 measured |
| LMArena Vision: Chinese | Not measured | 1356 | Only GPT-5.4 measured |
| LMArena Vision: reading text | Not measured | 1310 | Only GPT-5.4 measured |
| LMArena Vision: humor | Not measured | 1284 | Only GPT-5.4 measured |
| LMArena Vision: recognizing things | Not measured | 1246 | Only GPT-5.4 measured |
| LMArena Vision: creative writing | Not measured | 1286 | Only GPT-5.4 measured |
| LMArena Document | Not measured | 1472 | Only GPT-5.4 measured |
| EQ-Bench 4 | Not measured | 1258 | Only GPT-5.4 measured |
| Neither model has a result on the other 13 boards here | |||
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
| Benchmark | GLM 5.4 | GPT-5.4 | 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.4 costs less
Repository review
50K input + 3K output tokens
GLM 5.4 costs less
Agent loop
200K input + 10K output tokens
GLM 5.4 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 | OpenAI GPT-5.4 |
|---|---|---|
| Maker | Z.ai | OpenAI |
| Weights | Open weights | No public weights listed |
| Released | December 2, 2026 | March 5, 2026 |
| Context window | 1.05M | 1.05M |
| Input $/Mtok | $1.40 | $2.50 |
| Output $/Mtok | $4.40 | $15.00 |
| Coding index | 72.7 | 64.3 |
| Independent measurements behind it | 2 | 3 |
| Cost per solved task | Not computable | $1.02 |
| Source | OpenRouter listing | OpenRouter listing |
Questions
Is GLM 5.4 better than GPT-5.4 for coding?
Pick GLM 5.4 for coding: it scores 72.7 on the Vibe Coding Index against 64.3 for GPT-5.4, though on 2 benchmarks against 3. Pick GPT-5.4 for a larger context window (1.05M against 1.05M tokens).
Which is cheaper, GLM 5.4 or GPT-5.4?
GLM 5.4 costs $1.40 per million input tokens and $4.40 per million output tokens; GPT-5.4 costs $2.50 and $15.00. Cost per solved task is known for GPT-5.4 only.
Which has the bigger context window, GLM 5.4 or GPT-5.4?
GPT-5.4, with 1.05M tokens against 1.05M.
How many benchmarks is the GLM 5.4 vs GPT-5.4 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 GPT-5.4's on 3. Where only one model has a result, the page says so instead of naming a winner.