GLM 5.2 vs GPT-5.4 Mini
Updated October 21, 2026. 70 benchmarks have a result for both. Coding is ranked on the Vibe Coding Index; every other board is shown as published.
Decision reading
Pick GLM 5.2 for coding: it scores 57.7 on the Vibe Coding Index against 28.2 for GPT-5.4 Mini.
Pick GPT-5.4 Mini when output tokens cost 1.6x less, or when a solved task costs $0.70 against $0.86.
- Shared results
- 70
- GLM 5.2 only
- 27
- GPT-5.4 Mini only
- 18
- Like-for-like categories
- 7 of 9
Shared results can support a head-to-head reading. Results only one model has describe coverage, not superiority.
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, four public coding benchmarks
GLM 5.2
GLM 5.2 scores 57.7 against 28.2.
One benchmark behind each score
Intelligence
AA Intelligence Index
GLM 5.2
GLM 5.2 leads, 33.7 against 24.1.
Same board, both measured
Agentic work
AA Agentic Index
GLM 5.2
GLM 5.2 leads, 38.4 against 17.9.
Same board, both measured
Reasoning
GPQA Diamond
GLM 5.2
GLM 5.2 leads, 85.6% against 83.1%.
Same board, both measured
Math
AIME
No call
Only GPT-5.4 Mini has a AIME result, 95.6%.
Directional only
Knowledge
MMLU Pro
GLM 5.2
GLM 5.2 leads, 86.7% against 84.5%.
Same board, both measured
Web design
Design Arena: websites
No call
Only GLM 5.2 has a Design Arena: websites result, 1285.
Directional only
Long documents
Listed context window
GLM 5.2
GLM 5.2 takes 1.05M tokens against 400K.
Listed by OpenRouter
Everyday cost
1K input + 500 output tokens
GPT-5.4 Mini
GLM 5.2 $0.0035, GPT-5.4 Mini $0.0030 per turn.
List prices
Cost per solved task
One SWE-bench Verified task, solved
GPT-5.4 Mini
GLM 5.2 $0.86, GPT-5.4 Mini $0.70.
Published attempt cost and pass rate
At a glance
- Coding index
- GLM 5.2 57.7 from 1 benchmark, GPT-5.4 Mini 28.2 from 1 benchmark.
- Widest category
- Agentic work, 15.1 points apart on average over 5 shared benchmarks.
- Widest single gap
- LMArena WebDev: React: GLM 5.2 1617 against GPT-5.4 Mini 1386, 35.6 points apart on a 0 to 100 scale.
- Output price
- GLM 5.2 $7.00 against GPT-5.4 Mini $4.50 per million output tokens, 1.6x apart.
- Context window
- GLM 5.2 takes 1.05M tokens, GPT-5.4 Mini 400K.
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.2 | Bars | GPT-5.4 Mini | Ties |
|---|---|---|---|---|
| Coding | 12 | 5 | ||
| Intelligence | 2 | 0 | ||
| Agentic work | 5 | 0 | ||
| Reasoning | 10 | 1 | ||
| Math | 5 | 1 | ||
| Knowledge | 8 | 0 | ||
| General | 21 | 0 | ||
| All shared boards | 63 | 7 |
CodingLike-for-likeFour of these boards feed the Vibe Coding Index125
| Benchmark | GLM 5.2 | GPT-5.4 Mini | Leader |
|---|---|---|---|
| LMArena WebDev | 1604 | 1397 | GLM 5.2 |
| AA Coding Index | 68.8 | 56.1 | GLM 5.2 |
| LiveCodeBench (Vals AI) | 69.5% | 81.5% | GPT-5.4 Mini |
| SWE-bench Verified (Vals AI) | 82.8% | 73.0% | GLM 5.2 |
| Terminal-Bench 4 (Vals AI) | Not measured | 2.5% | Only GPT-5.4 Mini measured |
| Vibe Code Bench (Vals AI) | 64.0% | 48.0% | GLM 5.2 |
| Code migration (Vals AI) | 37.9% | 12.9% | GLM 5.2 |
| ProgramBench (Vals AI) | 0.5% | 0.0% | GLM 5.2 |
| Terminal-Bench 2.1 (Vals AI) | 67.8% | 54.7% | GLM 5.2 |
| SkillsBench (Vals AI) | 45.1% | Not measured | Only GLM 5.2 measured |
| SciCode | 51.2% | 52.1% | GPT-5.4 Mini |
| Terminal-Bench Hard (Artificial Analysis run) | 50.8% | 52.3% | GPT-5.4 Mini |
| FrontierCode | 24.5% | 27.0% | GPT-5.4 Mini |
| WeirdML | 70.1% | 60.3% | GLM 5.2 |
| ALE-Bench | 1047.0 | 1188.6 | GPT-5.4 Mini |
| LMArena Text: coding | 1487 | 1438 | GLM 5.2 |
| LMArena Text: software and IT | 1486 | 1436 | GLM 5.2 |
| LMArena WebDev: React | 1617 | 1386 | GLM 5.2 |
| LMArena WebDev: HTML | 1565 | 1419 | GLM 5.2 |
| Neither model has a result on the other 19 boards here | |||
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index20
| Benchmark | GLM 5.2 | GPT-5.4 Mini | Leader |
|---|---|---|---|
| AA Intelligence Index | 33.7 | 24.1 | GLM 5.2 |
| Epoch Capabilities Index | 151.9 | 148.7 | GLM 5.2 |
Agentic workLike-for-likePublic boards, shown as published, kept out of the index50
| Benchmark | GLM 5.2 | GPT-5.4 Mini | Leader |
|---|---|---|---|
| AA Agentic Index | 38.4 | 17.9 | GLM 5.2 |
| Design Arena: agents building web apps | 1222 | Not measured | Only GLM 5.2 measured |
| Design Arena: agents building full-stack apps | 1241 | Not measured | Only GLM 5.2 measured |
| Design Arena: agents building mobile apps | 1160 | Not measured | Only GLM 5.2 measured |
| Design Arena: agents building Android apps | 1184 | Not measured | Only GLM 5.2 measured |
| Design Arena: agents building Godot games | 1142 | Not measured | Only GLM 5.2 measured |
| Design Arena: agents building games | 1206 | Not measured | Only GLM 5.2 measured |
| Design Arena: HTML slides | 1175 | Not measured | Only GLM 5.2 measured |
| Design Arena: PowerPoint slides | 1195 | Not measured | Only GLM 5.2 measured |
| SREBench (Vals AI) | 0.0% | Not measured | Only GLM 5.2 measured |
| Finance Agent (Vals AI) | 49.7% | 45.4% | GLM 5.2 |
| Tax Agent Bench (Vals AI) | Not measured | 8.8% | Only GPT-5.4 Mini measured |
| Legal Research Bench (Vals AI) | 31.3% | 12.5% | GLM 5.2 |
| Excel Modeling Benchmark (Vals AI) | 61.5% | 45.4% | GLM 5.2 |
| τ²-Bench Telecom | 99.1% | 83.3% | GLM 5.2 |
| APEX-Agents | 45.2% | Not measured | Only GLM 5.2 measured |
| DeepResearch Bench | Not measured | 36.3% | Only GPT-5.4 Mini measured |
| PostTrainBench | 31.7% | Not measured | Only GLM 5.2 measured |
| Vending-Bench 2 | $8,314 | Not measured | Only GLM 5.2 measured |
| Neither model has a result on the other 20 boards here | |||
ReasoningLike-for-likePublic boards, shown as published, kept out of the index101
| Benchmark | GLM 5.2 | GPT-5.4 Mini | Leader |
|---|---|---|---|
| GPQA Diamond | 85.6% | 83.1% | GLM 5.2 |
| MMMU Pro (Vals AI) | Not measured | 79.3% | Only GPT-5.4 Mini measured |
| GPQA Diamond (Artificial Analysis run) | 89.5% | 87.5% | GLM 5.2 |
| Humanity's Last Exam (Artificial Analysis run) | 41.1% | 28.1% | GLM 5.2 |
| GPQA Diamond (Epoch AI run) | 91.9% | 86.9% | GLM 5.2 |
| ARC-AGI | 77.0% | 63.7% | GLM 5.2 |
| ARC-AGI-2 | 22.8% | 18.9% | GLM 5.2 |
| SimpleBench | 58.8% | Not measured | Only GLM 5.2 measured |
| Chess puzzles | 22.0% | 23.0% | GPT-5.4 Mini |
| Mystery game puzzles | 19.0% | 11.0% | GLM 5.2 |
| EBR-bench | 9.5% | Not measured | Only GLM 5.2 measured |
| LMArena Text: hard prompts | 1481 | 1424 | GLM 5.2 |
| LMArena Text: expert | 1487 | 1435 | GLM 5.2 |
| LMArena Text: hard prompts in English | 1481 | 1420 | GLM 5.2 |
| LMArena Vision: diagrams | Not measured | 1266 | Only GPT-5.4 Mini measured |
| LMArena Vision: homework | Not measured | 1285 | Only GPT-5.4 Mini measured |
| Neither model has a result on the other 5 boards here | |||
MathLike-for-likePublic boards, shown as published, kept out of the index51
| Benchmark | GLM 5.2 | GPT-5.4 Mini | Leader |
|---|---|---|---|
| AIME | Not measured | 95.6% | Only GPT-5.4 Mini measured |
| OTIS Mock AIME | 86.4% | 88.9% | GPT-5.4 Mini |
| FrontierMath, tiers 1 to 3 | 59.2% | 51.2% | GLM 5.2 |
| FrontierMath, tier 4 | 29.3% | 9.8% | GLM 5.2 |
| ProofBench | 35.0% | 21.0% | GLM 5.2 |
| LMArena Text: math | 1483 | 1418 | GLM 5.2 |
| LMArena Text: mathematical work | 1489 | 1429 | GLM 5.2 |
| Neither model has a result on the other 6 boards here | |||
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index80
| Benchmark | GLM 5.2 | GPT-5.4 Mini | Leader |
|---|---|---|---|
| MMLU Pro | 86.7% | 84.5% | GLM 5.2 |
| LegalBench (Vals AI) | 84.1% | Not measured | Only GLM 5.2 measured |
| CaseLaw (Vals AI) | Not measured | 51.7% | Only GPT-5.4 Mini measured |
| CorpFin (Vals AI) | 66.1% | 60.9% | GLM 5.2 |
| TaxEval (Vals AI) | 73.3% | 71.2% | GLM 5.2 |
| MortgageTax (Vals AI) | Not measured | 63.5% | Only GPT-5.4 Mini measured |
| MedCode (Vals AI) | 40.8% | Not measured | Only GLM 5.2 measured |
| SimpleQA Verified | 34.2% | 29.4% | GLM 5.2 |
| LMArena Text: science | 1489 | 1417 | GLM 5.2 |
| LMArena Text: medicine and healthcare | 1475 | 1395 | GLM 5.2 |
| LMArena Text: legal and government | 1486 | 1414 | GLM 5.2 |
| LMArena Text: business and finance | 1451 | 1418 | GLM 5.2 |
| Neither model has a result on the other 5 boards here | |||
Web designDirectional onlyPublic boards, shown as published, kept out of the index8 boards, none shared
| Benchmark | GLM 5.2 | GPT-5.4 Mini | Leader |
|---|---|---|---|
| Design Arena: websites | 1285 | Not measured | Only GLM 5.2 measured |
| Design Arena: UI components | 1296 | Not measured | Only GLM 5.2 measured |
| Design Arena: game dev | 1268 | Not measured | Only GLM 5.2 measured |
| Design Arena: data viz | 1285 | Not measured | Only GLM 5.2 measured |
| Design Arena: 3D | 1288 | Not measured | Only GLM 5.2 measured |
| Design Arena: all code categories | 1288 | Not measured | Only GLM 5.2 measured |
| Design Arena: SVG | 1214 | Not measured | Only GLM 5.2 measured |
| Design Arena: ASCII art | 1190 | Not measured | Only GLM 5.2 measured |
| Neither model has a result on the other 1 board here | |||
GeneralLike-for-likePublic boards, shown as published, kept out of the index210
| Benchmark | GLM 5.2 | GPT-5.4 Mini | Leader |
|---|---|---|---|
| SAGE (Vals AI) | Not measured | 50.8% | Only GPT-5.4 Mini measured |
| MedScribe (Vals AI) | 83.5% | Not measured | Only GLM 5.2 measured |
| Vals Multimodal Index | Not measured | 54.2% | Only GPT-5.4 Mini measured |
| IFBench | 73.3% | 73.3% | GLM 5.2 |
| Long context reasoning (AA-LCR) | 78.3% | 77.0% | GLM 5.2 |
| DTBench | 93.6% | 80.0% | GLM 5.2 |
| LMCA | 45.8% | 40.8% | GLM 5.2 |
| Surface Evolver Bench | 55.6% | Not measured | Only GLM 5.2 measured |
| LMArena Text | 1470 | 1412 | GLM 5.2 |
| LMArena Text: instruction following | 1466 | 1405 | GLM 5.2 |
| LMArena Text: creative writing | 1463 | 1370 | GLM 5.2 |
| LMArena Vision | Not measured | 1245 | Only GPT-5.4 Mini measured |
| LMArena Text: English | 1475 | 1412 | GLM 5.2 |
| LMArena Text: non-English | 1459 | 1405 | GLM 5.2 |
| LMArena Text: Chinese | 1522 | 1446 | GLM 5.2 |
| LMArena Text: German | 1470 | 1408 | GLM 5.2 |
| LMArena Text: Japanese | 1450 | 1375 | GLM 5.2 |
| LMArena Text: Korean | 1440 | 1370 | GLM 5.2 |
| LMArena Text: French | 1479 | 1441 | GLM 5.2 |
| LMArena Text: Spanish | 1478 | 1405 | GLM 5.2 |
| LMArena Text: Russian | 1468 | 1417 | GLM 5.2 |
| LMArena Text: Polish | 1456 | 1415 | GLM 5.2 |
| LMArena Text: multi-turn | 1469 | 1429 | GLM 5.2 |
| LMArena Text: longer queries | 1480 | 1408 | GLM 5.2 |
| LMArena Text: writing and language | 1463 | 1393 | GLM 5.2 |
| LMArena Text: entertainment and media | 1450 | 1373 | GLM 5.2 |
| LMArena Vision: English | Not measured | 1244 | Only GPT-5.4 Mini measured |
| LMArena Vision: Chinese | Not measured | 1286 | Only GPT-5.4 Mini measured |
| LMArena Vision: reading text | Not measured | 1253 | Only GPT-5.4 Mini measured |
| LMArena Vision: humor | Not measured | 1235 | Only GPT-5.4 Mini measured |
| LMArena Vision: recognizing things | Not measured | 1218 | Only GPT-5.4 Mini measured |
| LMArena Vision: creative writing | Not measured | 1222 | Only GPT-5.4 Mini measured |
| Neither model has a result on the other 14 boards here | |||
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
| Benchmark | GLM 5.2 | GPT-5.4 Mini | 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
GPT-5.4 Mini costs less
Repository review
50K input + 3K output tokens
GLM 5.2 costs less
Agent loop
200K input + 10K output tokens
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.
| Specification | Z.ai GLM 5.2 | OpenAI GPT-5.4 Mini |
|---|---|---|
| Maker | Z.ai | OpenAI |
| Weights | Open weights | No public weights listed |
| Released | June 16, 2026 | March 17, 2026 |
| Context window | 1.05M | 400K |
| Input $/Mtok | $0.0341 | $0.75 |
| Output $/Mtok | $7.00 | $4.50 |
| Coding index | 57.7 | 28.2 |
| Independent measurements behind it | 1 | 1 |
| Cost per solved task | $0.86 | $0.70 |
| Source | OpenRouter listing | OpenRouter listing |
Questions
Is GLM 5.2 better than GPT-5.4 Mini for coding?
Pick GLM 5.2 for coding: it scores 57.7 on the Vibe Coding Index against 28.2 for GPT-5.4 Mini. Pick GPT-5.4 Mini when output tokens cost 1.6x less, or when a solved task costs $0.70 against $0.86.
Which is cheaper, GLM 5.2 or GPT-5.4 Mini?
GLM 5.2 costs $0.0341 per million input tokens and $7.00 per million output tokens; GPT-5.4 Mini costs $0.75 and $4.50. Per solved SWE-bench Verified task, GLM 5.2 costs $0.86 and GPT-5.4 Mini $0.70.
Which has the bigger context window, GLM 5.2 or GPT-5.4 Mini?
GLM 5.2, with 1.05M tokens against 400K.
How many benchmarks is the GLM 5.2 vs GPT-5.4 Mini comparison based on?
70 benchmarks have a result for both models as of October 21, 2026. GLM 5.2's coding index rests on 1 independent benchmark and GPT-5.4 Mini's on 1. Where only one model has a result, the page says so instead of naming a winner.