GLM 5.1 vs GLM 5.2
GLM 5.2 leads GLM 5.1 on coding, 61.1 to 49.2 on the Vibe Coding Index, at about the same output price ($4.40 vs $4.40 per million). Updated October 21, 2026; 84 benchmarks have a result for both.
GLM 5.1 or GLM 5.2: which to pick
Pick GLM 5.2 for coding: it scores 61.1 on the Vibe Coding Index against 49.2 for GLM 5.1.
Pick GLM 5.1 for a lower cost per solved task ($0.60 against $0.86) and work measured by LiveCodeBench (Vals AI) or Design Arena: agents building mobile apps, where it leads.
- Shared results
- 84
- GLM 5.1 only
- 5
- GLM 5.2 only
- 14
- Like-for-like categories
- 8 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.2
GLM 5.2 scores 61.1 against 49.2.
3 and 4 benchmarks behind the scores
Intelligence
AA Intelligence Index
GLM 5.2
GLM 5.2 leads, 33.7 against 26.1.
Same board, both measured
Agentic work
AA Agentic Index
GLM 5.2
GLM 5.2 leads, 38.4 against 23.9.
Same board, both measured
Reasoning
GPQA Diamond
GLM 5.2
GLM 5.2 leads, 85.6% against 84.5%.
Same board, both measured
Math
AIME
No call
Only GLM 5.1 has a AIME result, 91.9%.
Directional only
Knowledge
MMLU Pro
GLM 5.1
GLM 5.1 leads, 86.9% against 86.7%.
Same board, both measured
Web design
Design Arena: websites
GLM 5.1
GLM 5.1 leads, 1290 against 1285.
Same board, both measured
Long documents
Listed context window
GLM 5.2
GLM 5.2 takes 1.05M tokens against 205K.
Listed by OpenRouter
Everyday cost
1K input + 500 output tokens
No call
GLM 5.1 $0.0036, GLM 5.2 $0.0036 per turn.
List prices
Cost per solved task
One SWE-bench Verified task, solved
GLM 5.1
GLM 5.1 $0.60, GLM 5.2 $0.86.
Published attempt cost and pass rate
At a glance
- Coding index
- GLM 5.1 49.2 from 3 benchmarks, GLM 5.2 61.1 from 4 benchmarks.
- Widest category
- Coding, 10.0 points apart on average over 16 shared benchmarks.
- Widest single gap
- Vibe Code Bench (Vals AI): GLM 5.1 31.5% against GLM 5.2 64.0%, 32.5 points apart on a 0 to 100 scale.
- Output price
- Both cost $4.40 per million output tokens.
- Context window
- GLM 5.1 takes 205K tokens, GLM 5.2 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.1 | Bars | GLM 5.2 | Ties |
|---|---|---|---|---|
| Coding | 1 | 15 | ||
| Intelligence | 0 | 2 | ||
| Agentic work | 2 | 12 | ||
| Reasoning | 1 | 8 | ||
| Math | 1 | 4 | ||
| Knowledge | 4 | 6 | ||
| Web design | 4 | 4 | ||
| General | 3 | 17 | ||
| All shared boards | 16 | 68 |
CodingLike-for-likeSix of these boards feed the Vibe Coding Index115
| Benchmark | GLM 5.1 | GLM 5.2 | Leader |
|---|---|---|---|
| LMArena WebDev | 1508 | 1604 | GLM 5.2 |
| AA Coding Index | 55.8 | 68.8 | GLM 5.2 |
| LiveCodeBench (Vals AI) | 81.4% | 69.5% | GLM 5.1 |
| SWE-bench Verified (Vals AI) | 76.4% | 82.8% | GLM 5.2 |
| Vibe Code Bench (Vals AI) | 31.5% | 64.0% | GLM 5.2 |
| Code migration (Vals AI) | 25.8% | 37.9% | GLM 5.2 |
| ProgramBench (Vals AI) | 0.0% | 0.5% | GLM 5.2 |
| Terminal-Bench 2.1 (Vals AI) | 56.9% | 67.8% | GLM 5.2 |
| SkillsBench (Vals AI) | Not measured | 45.1% | Only GLM 5.2 measured |
| SciCode | 44.8% | 51.2% | GLM 5.2 |
| Terminal-Bench Hard (Artificial Analysis run) | 43.2% | 50.8% | GLM 5.2 |
| FrontierCode | Not measured | 24.5% | Only GLM 5.2 measured |
| WeirdML | 57.1% | 70.1% | GLM 5.2 |
| ALE-Bench | 887.1 | 1047.0 | GLM 5.2 |
| LMArena Text: coding | 1485 | 1487 | GLM 5.2 |
| LMArena Text: software and IT | 1484 | 1486 | GLM 5.2 |
| LMArena WebDev: React | 1505 | 1617 | GLM 5.2 |
| LMArena WebDev: HTML | 1508 | 1565 | GLM 5.2 |
| Neither model has a result on the other 21 boards here | |||
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index02
| Benchmark | GLM 5.1 | GLM 5.2 | Leader |
|---|---|---|---|
| AA Intelligence Index | 26.1 | 33.7 | GLM 5.2 |
| Epoch Capabilities Index | 149.8 | 151.9 | GLM 5.2 |
Agentic workLike-for-likePublic boards, shown as published, kept out of the index212
| Benchmark | GLM 5.1 | GLM 5.2 | Leader |
|---|---|---|---|
| AA Agentic Index | 23.9 | 38.4 | GLM 5.2 |
| Design Arena: agents building web apps | 1175 | 1222 | GLM 5.2 |
| Design Arena: agents building full-stack apps | 1167 | 1241 | GLM 5.2 |
| Design Arena: agents building mobile apps | 1162 | 1160 | GLM 5.1 |
| Design Arena: agents building Android apps | 1180 | 1178 | GLM 5.1 |
| Design Arena: agents building Godot games | 1053 | 1142 | GLM 5.2 |
| Design Arena: agents building games | 1164 | 1206 | GLM 5.2 |
| Design Arena: HTML slides | 1170 | 1175 | GLM 5.2 |
| Design Arena: PowerPoint slides | 1188 | 1195 | GLM 5.2 |
| Design Arena: spreadsheets | 1315 | Not measured | Only GLM 5.1 measured |
| SREBench (Vals AI) | Not measured | 0.0% | Only GLM 5.2 measured |
| Finance Agent (Vals AI) | 44.8% | 49.7% | GLM 5.2 |
| Legal Research Bench (Vals AI) | 27.9% | 31.3% | GLM 5.2 |
| Excel Modeling Benchmark (Vals AI) | Not measured | 61.5% | Only GLM 5.2 measured |
| τ²-Bench Telecom | 97.7% | 99.1% | GLM 5.2 |
| APEX-Agents | 40.9% | 45.2% | GLM 5.2 |
| PostTrainBench | Not measured | 31.7% | Only GLM 5.2 measured |
| Vending-Bench 2 | $5,634 | $8,314 | GLM 5.2 |
| Neither model has a result on the other 23 boards here | |||
ReasoningLike-for-likePublic boards, shown as published, kept out of the index18
| Benchmark | GLM 5.1 | GLM 5.2 | Leader |
|---|---|---|---|
| GPQA Diamond | 84.5% | 85.6% | GLM 5.2 |
| GPQA Diamond (Artificial Analysis run) | 86.8% | 89.5% | GLM 5.2 |
| Humanity's Last Exam (Artificial Analysis run) | 30.1% | 41.1% | GLM 5.2 |
| GPQA Diamond (Epoch AI run) | 89.9% | 91.9% | GLM 5.2 |
| ARC-AGI | Not measured | 77.0% | Only GLM 5.2 measured |
| ARC-AGI-2 | Not measured | 22.8% | Only GLM 5.2 measured |
| SimpleBench | 55.1% | 58.8% | GLM 5.2 |
| Chess puzzles | 20.0% | 22.0% | GLM 5.2 |
| Mystery game puzzles | Not measured | 19.0% | Only GLM 5.2 measured |
| EBR-bench | Not measured | 9.5% | Only GLM 5.2 measured |
| LMArena Text: hard prompts | 1473 | 1481 | GLM 5.2 |
| LMArena Text: expert | 1478 | 1487 | GLM 5.2 |
| LMArena Text: hard prompts in English | 1482 | 1481 | GLM 5.1 |
| Kagi LLM Benchmark | Not measured | 62.6% | Only GLM 5.2 measured |
| Neither model has a result on the other 8 boards here | |||
MathLike-for-likePublic boards, shown as published, kept out of the index14
| Benchmark | GLM 5.1 | GLM 5.2 | Leader |
|---|---|---|---|
| AIME | 91.9% | Not measured | Only GLM 5.1 measured |
| OTIS Mock AIME | 93.3% | 86.4% | GLM 5.1 |
| FrontierMath, tiers 1 to 3 | 36.8% | 59.2% | GLM 5.2 |
| FrontierMath, tier 4 | Not measured | 29.3% | Only GLM 5.2 measured |
| ProofBench | 22.2% | 35.0% | GLM 5.2 |
| LMArena Text: math | 1473 | 1483 | GLM 5.2 |
| LMArena Text: mathematical work | 1470 | 1489 | 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 index46
| Benchmark | GLM 5.1 | GLM 5.2 | Leader |
|---|---|---|---|
| MMLU Pro | 86.9% | 86.7% | GLM 5.1 |
| LegalBench (Vals AI) | 84.4% | 84.1% | GLM 5.1 |
| CaseLaw (Vals AI) | 51.5% | Not measured | Only GLM 5.1 measured |
| CorpFin (Vals AI) | 64.5% | 66.1% | GLM 5.2 |
| TaxEval (Vals AI) | 71.2% | 73.3% | GLM 5.2 |
| MedCode (Vals AI) | 41.6% | 40.8% | GLM 5.1 |
| SimpleQA Verified | 34.0% | 34.2% | GLM 5.2 |
| LMArena Text: science | 1478 | 1489 | GLM 5.2 |
| LMArena Text: medicine and healthcare | 1474 | 1475 | GLM 5.2 |
| LMArena Text: legal and government | 1465 | 1486 | GLM 5.2 |
| LMArena Text: business and finance | 1452 | 1451 | GLM 5.1 |
| Neither model has a result on the other 7 boards here | |||
Web designLike-for-likePublic boards, shown as published, kept out of the index44
| Benchmark | GLM 5.1 | GLM 5.2 | Leader |
|---|---|---|---|
| Design Arena: websites | 1290 | 1285 | GLM 5.1 |
| Design Arena: UI components | 1292 | 1296 | GLM 5.2 |
| Design Arena: game dev | 1265 | 1268 | GLM 5.2 |
| Design Arena: data viz | 1366 | 1285 | GLM 5.1 |
| Design Arena: 3D | 1336 | 1288 | GLM 5.1 |
| Design Arena: all code categories | 1268 | 1288 | GLM 5.2 |
| Design Arena: SVG | 1218 | 1214 | GLM 5.1 |
| Design Arena: ASCII art | 1142 | 1190 | GLM 5.2 |
| Neither model has a result on the other 1 board here | |||
GeneralLike-for-likePublic boards, shown as published, kept out of the index317
| Benchmark | GLM 5.1 | GLM 5.2 | Leader |
|---|---|---|---|
| Public Benefits Bench (Vals AI) | 61.8% | Not measured | Only GLM 5.1 measured |
| MedScribe (Vals AI) | 72.3% | 83.5% | GLM 5.2 |
| IFBench | 76.3% | 73.3% | GLM 5.1 |
| Long context reasoning (AA-LCR) | 73.7% | 78.3% | GLM 5.2 |
| DTBench | Not measured | 93.6% | Only GLM 5.2 measured |
| LMCA | Not measured | 45.8% | Only GLM 5.2 measured |
| Surface Evolver Bench | Not measured | 55.6% | Only GLM 5.2 measured |
| ExploitBench | 18.1% | Not measured | Only GLM 5.1 measured |
| LMArena Text | 1463 | 1470 | GLM 5.2 |
| LMArena Text: instruction following | 1453 | 1466 | GLM 5.2 |
| LMArena Text: creative writing | 1453 | 1463 | GLM 5.2 |
| LMArena Text: English | 1476 | 1475 | GLM 5.1 |
| LMArena Text: non-English | 1448 | 1459 | GLM 5.2 |
| LMArena Text: Chinese | 1515 | 1522 | GLM 5.2 |
| LMArena Text: German | 1467 | 1470 | GLM 5.2 |
| LMArena Text: Japanese | 1435 | 1450 | GLM 5.2 |
| LMArena Text: Korean | 1424 | 1440 | GLM 5.2 |
| LMArena Text: French | 1470 | 1479 | GLM 5.2 |
| LMArena Text: Spanish | 1468 | 1478 | GLM 5.2 |
| LMArena Text: Russian | 1454 | 1468 | GLM 5.2 |
| LMArena Text: Polish | 1449 | 1456 | GLM 5.2 |
| LMArena Text: multi-turn | 1473 | 1469 | GLM 5.1 |
| LMArena Text: longer queries | 1467 | 1480 | GLM 5.2 |
| LMArena Text: writing and language | 1454 | 1463 | GLM 5.2 |
| LMArena Text: entertainment and media | 1442 | 1450 | GLM 5.2 |
| Neither model has a result on the other 21 boards here | |||
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
| Benchmark | GLM 5.1 | GLM 5.2 | 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
Same cost
Repository review
50K input + 3K output tokens
Same cost
Agent loop
200K input + 10K output tokens
Same cost
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.1 | Z.ai GLM 5.2 |
|---|---|---|
| Maker | Z.ai | Z.ai |
| Weights | Open weights | Open weights |
| Released | April 7, 2026 | June 16, 2026 |
| Context window | 205K | 1.05M |
| Input $/Mtok | $1.40 | $1.40 |
| Output $/Mtok | $4.40 | $4.40 |
| Coding index | 49.2 | 61.1 |
| Independent measurements behind it | 3 | 4 |
| Cost per solved task | $0.60 | $0.86 |
| Source | OpenRouter listing | OpenRouter listing |
Questions
Is GLM 5.1 better than GLM 5.2 for coding?
Pick GLM 5.2 for coding: it scores 61.1 on the Vibe Coding Index against 49.2 for GLM 5.1. Pick GLM 5.1 for a lower cost per solved task ($0.60 against $0.86) and work measured by LiveCodeBench (Vals AI) or Design Arena: agents building mobile apps, where it leads.
Which is cheaper, GLM 5.1 or GLM 5.2?
GLM 5.1 costs $1.40 per million input tokens and $4.40 per million output tokens; GLM 5.2 costs $1.40 and $4.40. Per solved SWE-bench Verified task, GLM 5.1 costs $0.60 and GLM 5.2 $0.86.
Which has the bigger context window, GLM 5.1 or GLM 5.2?
GLM 5.2, with 1.05M tokens against 205K.
How many benchmarks is the GLM 5.1 vs GLM 5.2 comparison based on?
84 benchmarks have a result for both models as of October 21, 2026. GLM 5.1's coding index rests on 3 independent benchmarks and GLM 5.2's on 4. Where only one model has a result, the page says so instead of naming a winner.