GLM 5 vs GPT-5.4 Nano
GPT-5.4 Nano leads GLM 5 on coding, 44.8 to 41.7 on the Vibe Coding Index, and GPT-5.4 Nano costs 2.6x less per output token ($1.25 vs $3.20 per million). Updated October 21, 2026; 53 benchmarks have a result for both.
GLM 5 or GPT-5.4 Nano: which to pick
Pick GPT-5.4 Nano for coding: it scores 44.8 on the Vibe Coding Index against 41.7 for GLM 5, though on 2 benchmarks against 3.
Pick GLM 5 for work measured by SWE-bench Verified (Vals AI) or Terminal-Bench Hard (Artificial Analysis run), where it leads.
- Shared results
- 53
- GLM 5 only
- 23
- GPT-5.4 Nano only
- 32
- 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.
Coding
Vibe Coding Index, six public coding benchmarks
GPT-5.4 Nano
GPT-5.4 Nano scores 44.8 against 41.7.
3 and 2 benchmarks behind the scores
Intelligence
AA Intelligence Index
GLM 5
GLM 5 leads, 27.9 against 20.7.
Same board, both measured
Agentic work
AA Agentic Index
No call
Only GPT-5.4 Nano has a AA Agentic Index result, 16.0.
Directional only
Reasoning
GPQA Diamond
GLM 5
GLM 5 leads, 83.3% against 77.5%.
Same board, both measured
Math
AIME
GLM 5
GLM 5 leads, 91.7% against 88.8%.
Same board, both measured
Knowledge
MMLU Pro
GLM 5
GLM 5 leads, 86.0% against 77.2%.
Same board, both measured
Web design
Design Arena: websites
No call
Only GLM 5 has a Design Arena: websites result, 1247.
Directional only
Long documents
Listed context window
GPT-5.4 Nano
GPT-5.4 Nano takes 400K tokens against 205K.
Listed by OpenRouter
Everyday cost
1K input + 500 output tokens
GPT-5.4 Nano
GLM 5 $0.0026, GPT-5.4 Nano $0.0008 per turn.
List prices
Cost per solved task
One SWE-bench Verified task, solved
GPT-5.4 Nano
GLM 5 $0.63, GPT-5.4 Nano $0.14.
Published attempt cost and pass rate
At a glance
- Coding index
- GLM 5 41.7 from 3 benchmarks, GPT-5.4 Nano 44.8 from 2 benchmarks.
- Widest category
- Agentic work, 22.2 points apart on average over 1 shared benchmark.
- Widest single gap
- Kagi LLM Benchmark: GLM 5 75.0% against GPT-5.4 Nano 39.7%, 35.3 points apart on a 0 to 100 scale.
- Output price
- GLM 5 $3.20 against GPT-5.4 Nano $1.25 per million output tokens, 2.6x apart.
- Context window
- GLM 5 takes 205K tokens, GPT-5.4 Nano 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 | Bars | GPT-5.4 Nano | Ties |
|---|---|---|---|---|
| Coding | 4 | 4 | ||
| Intelligence | 1 | 1 | ||
| Agentic work | 1 | 0 | ||
| Reasoning | 8 | 2 | ||
| Math | 3 | 1 | ||
| Knowledge | 9 | 0 | ||
| General | 17 | 2 | ||
| All shared boards | 43 | 10 |
CodingLike-for-likeSix of these boards feed the Vibe Coding Index44
| Benchmark | GLM 5 | GPT-5.4 Nano | Leader |
|---|---|---|---|
| SWE-bench Verified | 72.8% | Not measured | Only GLM 5 measured |
| SWE-bench Multilingual | 69.7% | Not measured | Only GLM 5 measured |
| LMArena WebDev | 1435 | Not measured | Only GLM 5 measured |
| AA Coding Index | Not measured | 56.1 | Only GPT-5.4 Nano measured |
| LiveCodeBench (Vals AI) | 81.9% | 84.0% | GPT-5.4 Nano |
| SWE-bench Verified (Vals AI) | 71.4% | 69.8% | GLM 5 |
| Vibe Code Bench (Vals AI) | 23.4% | 26.1% | GPT-5.4 Nano |
| Code migration (Vals AI) | Not measured | 14.5% | Only GPT-5.4 Nano measured |
| Terminal-Bench 2.1 (Vals AI) | Not measured | 41.6% | Only GPT-5.4 Nano measured |
| SciCode | Not measured | 47.2% | Only GPT-5.4 Nano measured |
| Terminal-Bench Hard (Artificial Analysis run) | 43.2% | 42.4% | GLM 5 |
| Terminal-Bench | 52.4% | Not measured | Only GLM 5 measured |
| WeirdML | 48.2% | 49.2% | GPT-5.4 Nano |
| ALE-Bench | 765.6 | 1004.5 | GPT-5.4 Nano |
| LMArena Text: coding | 1461 | 1404 | GLM 5 |
| LMArena Text: software and IT | 1460 | 1402 | GLM 5 |
| LMArena WebDev: React | 1424 | Not measured | Only GLM 5 measured |
| LMArena WebDev: HTML | 1450 | Not measured | Only GLM 5 measured |
| Neither model has a result on the other 21 boards here | |||
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index11
| Benchmark | GLM 5 | GPT-5.4 Nano | Leader |
|---|---|---|---|
| AA Intelligence Index | 27.9 | 20.7 | GLM 5 |
| Epoch Capabilities Index | 145.8 | 146.0 | GPT-5.4 Nano |
Agentic workLike-for-likePublic boards, shown as published, kept out of the index10
| Benchmark | GLM 5 | GPT-5.4 Nano | Leader |
|---|---|---|---|
| AA Agentic Index | Not measured | 16.0 | Only GPT-5.4 Nano measured |
| Design Arena: agents building full-stack apps | 1123 | Not measured | Only GLM 5 measured |
| Design Arena: agents building mobile apps | 1136 | Not measured | Only GLM 5 measured |
| Design Arena: agents building Android apps | 1146 | Not measured | Only GLM 5 measured |
| Design Arena: agents building Godot games | 1144 | Not measured | Only GLM 5 measured |
| Design Arena: HTML slides | 1148 | Not measured | Only GLM 5 measured |
| Finance Agent (Vals AI) | Not measured | 38.2% | Only GPT-5.4 Nano measured |
| Tax Agent Bench (Vals AI) | Not measured | 5.0% | Only GPT-5.4 Nano measured |
| Legal Research Bench (Vals AI) | Not measured | 6.3% | Only GPT-5.4 Nano measured |
| Excel Modeling Benchmark (Vals AI) | Not measured | 44.8% | Only GPT-5.4 Nano measured |
| τ²-Bench Telecom | 98.2% | 76.0% | GLM 5 |
| Vending-Bench 2 | $4,432 | Not measured | Only GLM 5 measured |
| Neither model has a result on the other 29 boards here | |||
ReasoningLike-for-likePublic boards, shown as published, kept out of the index82
| Benchmark | GLM 5 | GPT-5.4 Nano | Leader |
|---|---|---|---|
| GPQA Diamond | 83.3% | 77.5% | GLM 5 |
| MMMU Pro (Vals AI) | Not measured | 73.6% | Only GPT-5.4 Nano measured |
| GPQA Diamond (Artificial Analysis run) | 82.0% | 81.7% | GLM 5 |
| Humanity's Last Exam (Artificial Analysis run) | 29.3% | 28.3% | GLM 5 |
| GPQA Diamond (Epoch AI run) | 87.8% | 78.5% | GLM 5 |
| ARC-AGI | 44.7% | 51.5% | GPT-5.4 Nano |
| ARC-AGI-2 | 4.9% | 5.7% | GPT-5.4 Nano |
| SimpleBench | 53.2% | Not measured | Only GLM 5 measured |
| Chess puzzles | Not measured | 45.0% | Only GPT-5.4 Nano measured |
| Mystery game puzzles | Not measured | 9.0% | Only GPT-5.4 Nano measured |
| LMArena Text: hard prompts | 1452 | 1381 | GLM 5 |
| LMArena Text: expert | 1454 | 1396 | GLM 5 |
| LMArena Text: hard prompts in English | 1460 | 1387 | GLM 5 |
| LMArena Vision: diagrams | Not measured | 1210 | Only GPT-5.4 Nano measured |
| LMArena Vision: homework | Not measured | 1225 | Only GPT-5.4 Nano measured |
| Kagi LLM Benchmark | 75.0% | 39.7% | GLM 5 |
| Neither model has a result on the other 6 boards here | |||
MathLike-for-likePublic boards, shown as published, kept out of the index31
| Benchmark | GLM 5 | GPT-5.4 Nano | Leader |
|---|---|---|---|
| AIME | 91.7% | 88.8% | GLM 5 |
| OTIS Mock AIME | 80.0% | 87.8% | GPT-5.4 Nano |
| FrontierMath, tiers 1 to 3 | Not measured | 44.9% | Only GPT-5.4 Nano measured |
| FrontierMath, tier 4 | Not measured | 12.2% | Only GPT-5.4 Nano measured |
| ProofBench | Not measured | 5.0% | Only GPT-5.4 Nano measured |
| LMArena Text: math | 1440 | 1405 | GLM 5 |
| LMArena Text: mathematical work | 1451 | 1409 | GLM 5 |
| Neither model has a result on the other 6 boards here | |||
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index90
| Benchmark | GLM 5 | GPT-5.4 Nano | Leader |
|---|---|---|---|
| MMLU Pro | 86.0% | 77.2% | GLM 5 |
| LegalBench (Vals AI) | 84.1% | 77.9% | GLM 5 |
| CaseLaw (Vals AI) | 52.5% | 51.9% | GLM 5 |
| CorpFin (Vals AI) | 62.9% | 61.2% | GLM 5 |
| TaxEval (Vals AI) | 70.0% | 67.4% | GLM 5 |
| MortgageTax (Vals AI) | Not measured | 59.1% | Only GPT-5.4 Nano measured |
| MedQA (Vals AI) | 94.3% | Not measured | Only GLM 5 measured |
| MedCode (Vals AI) | Not measured | 41.0% | Only GPT-5.4 Nano measured |
| SimpleQA Verified | Not measured | 11.7% | Only GPT-5.4 Nano measured |
| LMArena Text: science | 1460 | 1374 | GLM 5 |
| LMArena Text: medicine and healthcare | 1455 | 1369 | GLM 5 |
| LMArena Text: legal and government | 1453 | 1368 | GLM 5 |
| LMArena Text: business and finance | 1430 | 1366 | GLM 5 |
| 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 | GPT-5.4 Nano | Leader |
|---|---|---|---|
| Design Arena: websites | 1247 | Not measured | Only GLM 5 measured |
| Design Arena: UI components | 1230 | Not measured | Only GLM 5 measured |
| Design Arena: game dev | 1234 | Not measured | Only GLM 5 measured |
| Design Arena: data viz | 1228 | Not measured | Only GLM 5 measured |
| Design Arena: 3D | 1229 | Not measured | Only GLM 5 measured |
| Design Arena: all code categories | 1246 | Not measured | Only GLM 5 measured |
| Design Arena: SVG | 1168 | Not measured | Only GLM 5 measured |
| Design Arena: ASCII art | 1147 | Not measured | Only GLM 5 measured |
| Neither model has a result on the other 1 board here | |||
GeneralLike-for-likePublic boards, shown as published, kept out of the index172
| Benchmark | GLM 5 | GPT-5.4 Nano | Leader |
|---|---|---|---|
| SAGE (Vals AI) | Not measured | 38.1% | Only GPT-5.4 Nano measured |
| MedScribe (Vals AI) | Not measured | 77.1% | Only GPT-5.4 Nano measured |
| Vals Multimodal Index | Not measured | 47.6% | Only GPT-5.4 Nano measured |
| IFBench | 72.3% | 75.9% | GPT-5.4 Nano |
| Long context reasoning (AA-LCR) | 75.7% | 76.7% | GPT-5.4 Nano |
| DTBench | Not measured | 80.3% | Only GPT-5.4 Nano measured |
| LMCA | Not measured | 36.9% | Only GPT-5.4 Nano measured |
| CL-bench | 18.7% | Not measured | Only GLM 5 measured |
| LMArena Text | 1446 | 1372 | GLM 5 |
| LMArena Text: instruction following | 1428 | 1362 | GLM 5 |
| LMArena Text: creative writing | 1438 | 1315 | GLM 5 |
| LMArena Vision | Not measured | 1196 | Only GPT-5.4 Nano measured |
| LMArena Text: English | 1458 | 1381 | GLM 5 |
| LMArena Text: non-English | 1430 | 1359 | GLM 5 |
| LMArena Text: Chinese | 1511 | 1391 | GLM 5 |
| LMArena Text: German | 1447 | 1368 | GLM 5 |
| LMArena Text: Japanese | 1416 | 1343 | GLM 5 |
| LMArena Text: Korean | 1423 | 1321 | GLM 5 |
| LMArena Text: French | 1456 | 1395 | GLM 5 |
| LMArena Text: Spanish | 1454 | 1371 | GLM 5 |
| LMArena Text: Russian | 1436 | 1363 | GLM 5 |
| LMArena Text: Polish | 1434 | 1366 | GLM 5 |
| LMArena Text: multi-turn | 1456 | 1382 | GLM 5 |
| LMArena Text: longer queries | 1446 | 1365 | GLM 5 |
| LMArena Text: writing and language | 1437 | 1338 | GLM 5 |
| LMArena Text: entertainment and media | 1426 | 1325 | GLM 5 |
| LMArena Vision: English | Not measured | 1202 | Only GPT-5.4 Nano measured |
| LMArena Vision: Chinese | Not measured | 1232 | Only GPT-5.4 Nano measured |
| LMArena Vision: reading text | Not measured | 1204 | Only GPT-5.4 Nano measured |
| LMArena Vision: humor | Not measured | 1161 | Only GPT-5.4 Nano measured |
| LMArena Vision: recognizing things | Not measured | 1141 | Only GPT-5.4 Nano measured |
| LMArena Vision: creative writing | Not measured | 1159 | Only GPT-5.4 Nano 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 | GPT-5.4 Nano | 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 Nano costs less
Repository review
50K input + 3K output tokens
GPT-5.4 Nano costs less
Agent loop
200K input + 10K output tokens
GPT-5.4 Nano 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 | OpenAI GPT-5.4 Nano |
|---|---|---|
| Maker | Z.ai | OpenAI |
| Weights | Open weights | No public weights listed |
| Released | February 11, 2026 | March 17, 2026 |
| Context window | 205K | 400K |
| Input $/Mtok | $1.00 | $0.20 |
| Output $/Mtok | $3.20 | $1.25 |
| Coding index | 41.7 | 44.8 |
| Independent measurements behind it | 3 | 2 |
| Cost per solved task | $0.63 | $0.14 |
| Source | OpenRouter listing | OpenRouter listing |
Questions
Is GLM 5 better than GPT-5.4 Nano for coding?
Pick GPT-5.4 Nano for coding: it scores 44.8 on the Vibe Coding Index against 41.7 for GLM 5, though on 2 benchmarks against 3. Pick GLM 5 for work measured by SWE-bench Verified (Vals AI) or Terminal-Bench Hard (Artificial Analysis run), where it leads.
Which is cheaper, GLM 5 or GPT-5.4 Nano?
GLM 5 costs $1.00 per million input tokens and $3.20 per million output tokens; GPT-5.4 Nano costs $0.20 and $1.25. Per solved SWE-bench Verified task, GLM 5 costs $0.63 and GPT-5.4 Nano $0.14.
Which has the bigger context window, GLM 5 or GPT-5.4 Nano?
GPT-5.4 Nano, with 400K tokens against 205K.
How many benchmarks is the GLM 5 vs GPT-5.4 Nano comparison based on?
53 benchmarks have a result for both models as of October 21, 2026. GLM 5's coding index rests on 3 independent benchmarks and GPT-5.4 Nano's on 2. Where only one model has a result, the page says so instead of naming a winner.