GLM 5.2 vs Grok 4.5
GLM 5.2 leads Grok 4.5 on coding, 61.1 to 58.6 on the Vibe Coding Index, and GLM 5.2 costs 1.4x less per output token ($4.40 vs $6.00 per million). Updated October 22, 2026; 93 benchmarks have a result for both.
GLM 5.2 or Grok 4.5: which to pick
Pick GLM 5.2 for coding: it scores 61.1 on the Vibe Coding Index against 58.6 for Grok 4.5, though on 4 benchmarks against 6.
Pick Grok 4.5 for a lower cost per solved task ($0.62 against $0.86) and work measured by AA Coding Index or LiveCodeBench (Vals AI), where it leads.
- Shared results
- 93
- GLM 5.2 only
- 5
- Grok 4.5 only
- 30
- 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 58.6.
4 and 6 benchmarks behind the scores
Intelligence
AA Intelligence Index
Grok 4.5
Grok 4.5 leads, 38.8 against 33.7.
Same board, both measured
Agentic work
AA Agentic Index
Grok 4.5
Grok 4.5 leads, 41.2 against 38.4.
Same board, both measured
Reasoning
GPQA Diamond
Grok 4.5
Grok 4.5 leads, 92.9% against 85.6%.
Same board, both measured
Knowledge
MMLU Pro
Grok 4.5
Grok 4.5 leads, 89.2% against 86.7%.
Same board, both measured
Web design
Design Arena: websites
GLM 5.2
GLM 5.2 leads, 1285 against 1281.
Same board, both measured
Long documents
Listed context window
GLM 5.2
GLM 5.2 takes 1.05M tokens against 500K.
Listed by OpenRouter
Everyday cost
1K input + 500 output tokens
GLM 5.2
GLM 5.2 $0.0036, Grok 4.5 $0.0050 per turn.
List prices
Cost per solved task
One SWE-bench Verified task, solved
Grok 4.5
GLM 5.2 $0.86, Grok 4.5 $0.62.
Published attempt cost and pass rate
At a glance
- Coding index
- GLM 5.2 61.1 from 4 benchmarks, Grok 4.5 58.6 from 6 benchmarks.
- Widest category
- Reasoning, 9.1 points apart on average over 12 shared benchmarks.
- Widest single gap
- ARC-AGI-2: GLM 5.2 22.8% against Grok 4.5 52.6%, 29.9 points apart on a 0 to 100 scale.
- Output price
- GLM 5.2 $4.40 against Grok 4.5 $6.00 per million output tokens, 1.4x apart.
- Context window
- GLM 5.2 takes 1.05M tokens, Grok 4.5 500K.
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 | Grok 4.5 | Ties |
|---|---|---|---|---|
| Coding | 7 | 9 | 1 tie | |
| Intelligence | 0 | 2 | ||
| Agentic work | 5 | 11 | ||
| Reasoning | 3 | 9 | ||
| Math | 5 | 1 | ||
| Knowledge | 5 | 5 | ||
| Web design | 6 | 2 | ||
| General | 18 | 4 | ||
| All shared boards | 49 | 43 | 1 tie |
CodingLike-for-likeSix of these boards feed the Vibe Coding Index79
| Benchmark | GLM 5.2 | Grok 4.5 | Leader |
|---|---|---|---|
| LiveBench coding | Not measured | 94.3% | Only Grok 4.5 measured |
| LMArena WebDev | 1604 | 1553 | GLM 5.2 |
| AA Coding Index | 68.8 | 72.4 | Grok 4.5 |
| LiveCodeBench (Vals AI) | 69.5% | 87.3% | Grok 4.5 |
| SWE-bench Verified (Vals AI) | 82.8% | 86.6% | Grok 4.5 |
| Terminal-Bench 4 (Vals AI) | Not measured | 8.6% | Only Grok 4.5 measured |
| Vibe Code Bench (Vals AI) | 64.0% | 69.0% | Grok 4.5 |
| Code migration (Vals AI) | 37.9% | 36.6% | GLM 5.2 |
| ProgramBench (Vals AI) | 0.5% | 0.0% | GLM 5.2 |
| IOI (Vals AI) | Not measured | 40.6% | Only Grok 4.5 measured |
| Terminal-Bench 2.1 (Vals AI) | 67.8% | 67.8% | Tie |
| SkillsBench (Vals AI) | 45.1% | 66.0% | Grok 4.5 |
| CyberBench (Vals AI) | Not measured | 71.0% | Only Grok 4.5 measured |
| SciCode | 51.2% | 55.0% | Grok 4.5 |
| Terminal-Bench Hard (Artificial Analysis run) | 50.8% | Not measured | Only GLM 5.2 measured |
| FrontierCode | 24.5% | 42.4% | Grok 4.5 |
| WeirdML | 70.1% | 46.4% | GLM 5.2 |
| ALE-Bench | 1047.0 | 1309.3 | Grok 4.5 |
| LMArena Text: coding | 1487 | 1474 | GLM 5.2 |
| LMArena Text: software and IT | 1486 | 1471 | GLM 5.2 |
| LMArena WebDev: React | 1617 | 1556 | GLM 5.2 |
| LMArena WebDev: HTML | 1565 | 1567 | Grok 4.5 |
| LMArena WebDev: from an image | Not measured | 1562 | Only Grok 4.5 measured |
| SciCode | Not measured | 6.5% | Only Grok 4.5 measured |
| Neither model has a result on the other 15 boards here | |||
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index02
| Benchmark | GLM 5.2 | Grok 4.5 | Leader |
|---|---|---|---|
| AA Intelligence Index | 33.7 | 38.8 | Grok 4.5 |
| Epoch Capabilities Index | 151.9 | 154.1 | Grok 4.5 |
Agentic workLike-for-likePublic boards, shown as published, kept out of the index511
| Benchmark | GLM 5.2 | Grok 4.5 | Leader |
|---|---|---|---|
| AA Agentic Index | 38.4 | 41.2 | Grok 4.5 |
| Design Arena: agents building web apps | 1222 | 1218 | GLM 5.2 |
| Design Arena: agents building full-stack apps | 1241 | 1249 | Grok 4.5 |
| Design Arena: agents building mobile apps | 1159 | 1220 | Grok 4.5 |
| Design Arena: agents building Android apps | 1178 | 1236 | Grok 4.5 |
| Design Arena: agents building Godot games | 1142 | 1229 | Grok 4.5 |
| Design Arena: agents building games | 1206 | 1236 | Grok 4.5 |
| Design Arena: HTML slides | 1125 | 1205 | Grok 4.5 |
| Design Arena: PowerPoint slides | 1170 | 1230 | Grok 4.5 |
| LiveBench research | Not measured | 85.9% | Only Grok 4.5 measured |
| LiveBench browser | Not measured | 44.0% | Only Grok 4.5 measured |
| LiveBench long agentic | Not measured | 27.9% | Only Grok 4.5 measured |
| SREBench (Vals AI) | 0.0% | 0.8% | Grok 4.5 |
| Finance Agent (Vals AI) | 49.7% | 48.4% | GLM 5.2 |
| Tax Agent Bench (Vals AI) | Not measured | 24.9% | Only Grok 4.5 measured |
| Legal Research Bench (Vals AI) | 31.3% | 38.0% | Grok 4.5 |
| Excel Modeling Benchmark (Vals AI) | 61.5% | 52.9% | GLM 5.2 |
| Time Horizon Index (Vals AI) | Not measured | 6.3% | Only Grok 4.5 measured |
| τ²-Bench Telecom | 99.1% | Not measured | Only GLM 5.2 measured |
| APEX-Agents | 45.2% | 56.2% | Grok 4.5 |
| PostTrainBench | 31.7% | 23.4% | GLM 5.2 |
| Vending-Bench 2 | $8,314 | $3,887 | GLM 5.2 |
| LMArena Search | Not measured | 1216 | Only Grok 4.5 measured |
| Neither model has a result on the other 18 boards here | |||
ReasoningLike-for-likePublic boards, shown as published, kept out of the index39
| Benchmark | GLM 5.2 | Grok 4.5 | Leader |
|---|---|---|---|
| GPQA Diamond | 85.6% | 92.9% | Grok 4.5 |
| LiveBench reasoning | Not measured | 87.2% | Only Grok 4.5 measured |
| MMMU Pro (Vals AI) | Not measured | 61.8% | Only Grok 4.5 measured |
| GPQA Diamond (Artificial Analysis run) | 89.5% | 93.1% | Grok 4.5 |
| Humanity's Last Exam (Artificial Analysis run) | 41.1% | 42.7% | Grok 4.5 |
| GPQA Diamond (Epoch AI run) | 91.9% | 93.4% | Grok 4.5 |
| ARC-AGI | 77.0% | 87.2% | Grok 4.5 |
| ARC-AGI-2 | 22.8% | 52.6% | Grok 4.5 |
| SimpleBench | 58.8% | 70.0% | Grok 4.5 |
| Chess puzzles | 22.0% | 35.0% | Grok 4.5 |
| Mystery game puzzles | 19.0% | Not measured | Only GLM 5.2 measured |
| EBR-bench | 9.5% | Not measured | Only GLM 5.2 measured |
| LMArena Text: hard prompts | 1481 | 1462 | GLM 5.2 |
| LMArena Text: expert | 1487 | 1465 | GLM 5.2 |
| LMArena Text: hard prompts in English | 1481 | 1464 | GLM 5.2 |
| LMArena Vision: diagrams | Not measured | 1304 | Only Grok 4.5 measured |
| LMArena Vision: homework | Not measured | 1295 | Only Grok 4.5 measured |
| Kagi LLM Benchmark | 62.6% | 83.5% | Grok 4.5 |
| Neither model has a result on the other 4 boards here | |||
MathLike-for-likePublic boards, shown as published, kept out of the index51
| Benchmark | GLM 5.2 | Grok 4.5 | Leader |
|---|---|---|---|
| OTIS Mock AIME | 86.4% | 97.8% | Grok 4.5 |
| FrontierMath, tiers 1 to 3 | 59.2% | 57.2% | GLM 5.2 |
| FrontierMath, tier 4 | 29.3% | 24.4% | GLM 5.2 |
| ProofBench | 35.0% | 31.0% | GLM 5.2 |
| LMArena Text: math | 1483 | 1460 | GLM 5.2 |
| LMArena Text: mathematical work | 1489 | 1482 | GLM 5.2 |
| Neither model has a result on the other 7 boards here | |||
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index55
| Benchmark | GLM 5.2 | Grok 4.5 | Leader |
|---|---|---|---|
| MMLU Pro | 86.7% | 89.2% | Grok 4.5 |
| LegalBench (Vals AI) | 84.1% | 86.0% | Grok 4.5 |
| CorpFin (Vals AI) | 66.1% | 67.4% | Grok 4.5 |
| TaxEval (Vals AI) | 73.3% | 71.7% | GLM 5.2 |
| MortgageTax (Vals AI) | Not measured | 61.8% | Only Grok 4.5 measured |
| MedCode (Vals AI) | 40.8% | 43.3% | Grok 4.5 |
| SimpleQA Verified | 34.2% | 48.3% | Grok 4.5 |
| LMArena Text: science | 1489 | 1464 | GLM 5.2 |
| LMArena Text: medicine and healthcare | 1475 | 1440 | GLM 5.2 |
| LMArena Text: legal and government | 1486 | 1463 | GLM 5.2 |
| LMArena Text: business and finance | 1451 | 1441 | GLM 5.2 |
| FACTS Benchmark Suite | Not measured | 50.2% | Only Grok 4.5 measured |
| Neither model has a result on the other 6 boards here | |||
Web designLike-for-likePublic boards, shown as published, kept out of the index62
| Benchmark | GLM 5.2 | Grok 4.5 | Leader |
|---|---|---|---|
| Design Arena: websites | 1285 | 1281 | GLM 5.2 |
| Design Arena: UI components | 1294 | 1280 | GLM 5.2 |
| Design Arena: game dev | 1268 | 1264 | GLM 5.2 |
| Design Arena: data viz | 1285 | 1266 | GLM 5.2 |
| Design Arena: 3D | 1287 | 1257 | GLM 5.2 |
| Design Arena: all code categories | 1287 | 1275 | GLM 5.2 |
| Design Arena: SVG | 1213 | 1215 | Grok 4.5 |
| Design Arena: ASCII art | 1191 | 1256 | Grok 4.5 |
| LiveBench design | Not measured | 78.1% | Only Grok 4.5 measured |
GeneralLike-for-likePublic boards, shown as published, kept out of the index184
| Benchmark | GLM 5.2 | Grok 4.5 | Leader |
|---|---|---|---|
| LiveBench data analysis | Not measured | 73.0% | Only Grok 4.5 measured |
| SAGE (Vals AI) | Not measured | 35.0% | Only Grok 4.5 measured |
| MedScribe (Vals AI) | 83.5% | 86.9% | Grok 4.5 |
| Vals Multimodal Index | Not measured | 63.4% | Only Grok 4.5 measured |
| IFBench | 73.3% | Not measured | Only GLM 5.2 measured |
| Long context reasoning (AA-LCR) | 78.3% | 79.3% | Grok 4.5 |
| DTBench | 93.6% | 96.5% | Grok 4.5 |
| LMCA | 45.8% | 45.2% | GLM 5.2 |
| Surface Evolver Bench | 55.6% | 74.4% | Grok 4.5 |
| Furniture assembly | Not measured | 22.5% | Only Grok 4.5 measured |
| LMArena Text | 1470 | 1448 | GLM 5.2 |
| LMArena Text: instruction following | 1466 | 1445 | GLM 5.2 |
| LMArena Text: creative writing | 1463 | 1442 | GLM 5.2 |
| LMArena Vision | Not measured | 1287 | Only Grok 4.5 measured |
| LMArena Text: English | 1475 | 1453 | GLM 5.2 |
| LMArena Text: non-English | 1459 | 1440 | GLM 5.2 |
| LMArena Text: Chinese | 1522 | 1495 | GLM 5.2 |
| LMArena Text: German | 1470 | 1448 | GLM 5.2 |
| LMArena Text: Japanese | 1450 | 1430 | GLM 5.2 |
| LMArena Text: Korean | 1440 | 1406 | GLM 5.2 |
| LMArena Text: French | 1479 | 1457 | GLM 5.2 |
| LMArena Text: Spanish | 1478 | 1451 | GLM 5.2 |
| LMArena Text: Russian | 1468 | 1449 | GLM 5.2 |
| LMArena Text: Polish | 1456 | 1432 | GLM 5.2 |
| LMArena Text: multi-turn | 1469 | 1456 | GLM 5.2 |
| LMArena Text: longer queries | 1480 | 1462 | GLM 5.2 |
| LMArena Text: writing and language | 1463 | 1445 | GLM 5.2 |
| LMArena Text: entertainment and media | 1450 | 1434 | GLM 5.2 |
| LMArena Vision: English | Not measured | 1285 | Only Grok 4.5 measured |
| LMArena Vision: Chinese | Not measured | 1345 | Only Grok 4.5 measured |
| LMArena Vision: reading text | Not measured | 1293 | Only Grok 4.5 measured |
| LMArena Vision: humor | Not measured | 1276 | Only Grok 4.5 measured |
| LMArena Vision: creative writing | Not measured | 1293 | Only Grok 4.5 measured |
| LMArena Document | Not measured | 1452 | Only Grok 4.5 measured |
| Neither model has a result on the other 12 boards here | |||
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
| Benchmark | GLM 5.2 | Grok 4.5 | 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.2 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 | SpaceXAI Grok 4.5 |
|---|---|---|
| Maker | Z.ai | xAI |
| Weights | Open weights | No public weights listed |
| Released | June 16, 2026 | July 8, 2026 |
| Context window | 1.05M | 500K |
| Input $/Mtok | $1.40 | $2.00 |
| Output $/Mtok | $4.40 | $6.00 |
| Coding index | 61.1 | 58.6 |
| Independent measurements behind it | 4 | 6 |
| Cost per solved task | $0.86 | $0.62 |
| Source | OpenRouter listing | OpenRouter listing |
Questions
Is GLM 5.2 better than Grok 4.5 for coding?
Pick GLM 5.2 for coding: it scores 61.1 on the Vibe Coding Index against 58.6 for Grok 4.5, though on 4 benchmarks against 6. Pick Grok 4.5 for a lower cost per solved task ($0.62 against $0.86) and work measured by AA Coding Index or LiveCodeBench (Vals AI), where it leads.
Which is cheaper, GLM 5.2 or Grok 4.5?
GLM 5.2 costs $1.40 per million input tokens and $4.40 per million output tokens; Grok 4.5 costs $2.00 and $6.00. Per solved SWE-bench Verified task, GLM 5.2 costs $0.86 and Grok 4.5 $0.62.
Which has the bigger context window, GLM 5.2 or Grok 4.5?
GLM 5.2, with 1.05M tokens against 500K.
How many benchmarks is the GLM 5.2 vs Grok 4.5 comparison based on?
93 benchmarks have a result for both models as of October 22, 2026. GLM 5.2's coding index rests on 4 independent benchmarks and Grok 4.5's on 6. Where only one model has a result, the page says so instead of naming a winner.