GLM 4.7 vs Grok 4.5
Updated October 21, 2026. 66 benchmarks have a result for both. Coding is ranked on the Vibe Coding Index; every other board is shown as published.
Decision reading
Pick Grok 4.5 for coding: it scores 75.5 on the Vibe Coding Index against 33.6 for GLM 4.7.
Pick GLM 4.7 when output tokens cost 3.0x less, or when a solved task costs $0.29 against $0.62.
- Shared results
- 66
- GLM 4.7 only
- 14
- Grok 4.5 only
- 54
- Like-for-like categories
- 8 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
Grok 4.5
Grok 4.5 scores 75.5 against 33.6.
1 and 2 benchmarks behind the scores
Intelligence
AA Intelligence Index
Grok 4.5
Grok 4.5 leads, 38.8 against 22.2.
Same board, both measured
Agentic work
AA Agentic Index
No call
Only Grok 4.5 has a AA Agentic Index result, 41.2.
Directional only
Reasoning
GPQA Diamond
Grok 4.5
Grok 4.5 leads, 92.9% against 80.0%.
Same board, both measured
Math
AIME
No call
Only GLM 4.7 has a AIME result, 93.3%.
Directional only
Knowledge
MMLU Pro
Grok 4.5
Grok 4.5 leads, 89.2% against 82.7%.
Same board, both measured
Web design
Design Arena: websites
Grok 4.5
Grok 4.5 leads, 1281 against 1226.
Same board, both measured
Long documents
Listed context window
Grok 4.5
Grok 4.5 takes 500K tokens against 205K.
Listed by OpenRouter
Everyday cost
1K input + 500 output tokens
GLM 4.7
GLM 4.7 $0.0015, Grok 4.5 $0.0050 per turn.
List prices
Cost per solved task
One SWE-bench Verified task, solved
GLM 4.7
GLM 4.7 $0.29, Grok 4.5 $0.62.
Published attempt cost and pass rate
At a glance
- Coding index
- GLM 4.7 33.6 from 1 benchmark, Grok 4.5 75.5 from 2 benchmarks.
- Widest category
- Agentic work, 17.1 points apart on average over 5 shared benchmarks.
- Widest single gap
- ALE-Bench: GLM 4.7 399.5 against Grok 4.5 1309.3, 30.3 points apart on a 0 to 100 scale.
- Output price
- GLM 4.7 $1.98 against Grok 4.5 $6.00 per million output tokens, 3.0x apart.
- Context window
- GLM 4.7 takes 205K 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 4.7 | Bars | Grok 4.5 | Ties |
|---|---|---|---|---|
| Coding | 0 | 9 | ||
| Intelligence | 0 | 2 | ||
| Agentic work | 0 | 5 | ||
| Reasoning | 0 | 9 | ||
| Math | 0 | 4 | ||
| Knowledge | 1 | 9 | ||
| Web design | 0 | 8 | ||
| General | 3 | 16 | ||
| All shared boards | 4 | 62 |
CodingLike-for-likeFour of these boards feed the Vibe Coding Index09
| Benchmark | GLM 4.7 | Grok 4.5 | Leader |
|---|---|---|---|
| LiveBench coding | Not measured | 94.3% | Only Grok 4.5 measured |
| LMArena WebDev | 1435 | 1553 | Grok 4.5 |
| AA Coding Index | 45.3 | 72.4 | Grok 4.5 |
| LiveCodeBench (Vals AI) | 82.2% | 87.3% | Grok 4.5 |
| SWE-bench Verified (Vals AI) | 69.4% | 86.6% | Grok 4.5 |
| Terminal-Bench 4 (Vals AI) | Not measured | 8.6% | Only Grok 4.5 measured |
| Vibe Code Bench (Vals AI) | Not measured | 69.0% | Only Grok 4.5 measured |
| Code migration (Vals AI) | Not measured | 36.6% | Only Grok 4.5 measured |
| ProgramBench (Vals AI) | Not measured | 0.0% | Only Grok 4.5 measured |
| IOI (Vals AI) | Not measured | 40.6% | Only Grok 4.5 measured |
| Terminal-Bench 2.1 (Vals AI) | Not measured | 67.8% | Only Grok 4.5 measured |
| SkillsBench (Vals AI) | Not measured | 66.0% | Only Grok 4.5 measured |
| CyberBench (Vals AI) | Not measured | 71.0% | Only Grok 4.5 measured |
| LiveCodeBench (Artificial Analysis run) | 89.4% | Not measured | Only GLM 4.7 measured |
| SciCode | Not measured | 55.0% | Only Grok 4.5 measured |
| Terminal-Bench Hard (Artificial Analysis run) | 31.8% | Not measured | Only GLM 4.7 measured |
| Terminal-Bench | 33.4% | Not measured | Only GLM 4.7 measured |
| FrontierCode | Not measured | 42.4% | Only Grok 4.5 measured |
| WeirdML | Not measured | 46.4% | Only Grok 4.5 measured |
| ALE-Bench | 399.5 | 1309.3 | Grok 4.5 |
| LMArena Text: coding | 1454 | 1474 | Grok 4.5 |
| LMArena Text: software and IT | 1453 | 1471 | Grok 4.5 |
| LMArena WebDev: React | 1420 | 1556 | Grok 4.5 |
| LMArena WebDev: HTML | 1447 | 1567 | Grok 4.5 |
| LMArena WebDev: from an image | Not measured | 1562 | Only Grok 4.5 measured |
| Neither model has a result on the other 13 boards here | |||
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index02
| Benchmark | GLM 4.7 | Grok 4.5 | Leader |
|---|---|---|---|
| AA Intelligence Index | 22.2 | 38.8 | Grok 4.5 |
| Epoch Capabilities Index | 143.6 | 154.1 | Grok 4.5 |
Agentic workLike-for-likePublic boards, shown as published, kept out of the index05
| Benchmark | GLM 4.7 | Grok 4.5 | Leader |
|---|---|---|---|
| AA Agentic Index | Not measured | 41.2 | Only Grok 4.5 measured |
| Design Arena: agents building web apps | Not measured | 1217 | Only Grok 4.5 measured |
| Design Arena: agents building full-stack apps | 1050 | 1249 | Grok 4.5 |
| Design Arena: agents building mobile apps | 1105 | 1221 | Grok 4.5 |
| Design Arena: agents building Android apps | 1118 | 1242 | Grok 4.5 |
| Design Arena: agents building Godot games | 1058 | 1229 | Grok 4.5 |
| Design Arena: agents building games | Not measured | 1235 | Only Grok 4.5 measured |
| Design Arena: HTML slides | Not measured | 1204 | Only Grok 4.5 measured |
| Design Arena: PowerPoint slides | Not measured | 1232 | Only Grok 4.5 measured |
| 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) | Not measured | 0.8% | Only Grok 4.5 measured |
| Finance Agent (Vals AI) | Not measured | 48.4% | Only Grok 4.5 measured |
| Tax Agent Bench (Vals AI) | Not measured | 24.9% | Only Grok 4.5 measured |
| Legal Research Bench (Vals AI) | Not measured | 38.0% | Only Grok 4.5 measured |
| Excel Modeling Benchmark (Vals AI) | Not measured | 52.9% | Only Grok 4.5 measured |
| Time Horizon Index (Vals AI) | Not measured | 6.3% | Only Grok 4.5 measured |
| τ²-Bench Telecom | 95.9% | Not measured | Only GLM 4.7 measured |
| APEX-Agents | Not measured | 56.2% | Only Grok 4.5 measured |
| PostTrainBench | Not measured | 23.4% | Only Grok 4.5 measured |
| Vending-Bench 2 | $2,377 | $3,887 | Grok 4.5 |
| LMArena Search | Not measured | 1216 | Only Grok 4.5 measured |
| Neither model has a result on the other 16 boards here | |||
ReasoningLike-for-likePublic boards, shown as published, kept out of the index09
| Benchmark | GLM 4.7 | Grok 4.5 | Leader |
|---|---|---|---|
| GPQA Diamond | 80.0% | 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) | 85.9% | 93.1% | Grok 4.5 |
| Humanity's Last Exam (Artificial Analysis run) | 27.4% | 42.7% | Grok 4.5 |
| GPQA Diamond (Epoch AI run) | 83.3% | 93.4% | Grok 4.5 |
| ARC-AGI | Not measured | 87.2% | Only Grok 4.5 measured |
| ARC-AGI-2 | Not measured | 52.6% | Only Grok 4.5 measured |
| SimpleBench | 47.7% | 70.0% | Grok 4.5 |
| Chess puzzles | 21.0% | 35.0% | Grok 4.5 |
| LMArena Text: hard prompts | 1443 | 1462 | Grok 4.5 |
| LMArena Text: expert | 1424 | 1465 | Grok 4.5 |
| LMArena Text: hard prompts in English | 1452 | 1464 | Grok 4.5 |
| LMArena Vision: diagrams | Not measured | 1304 | Only Grok 4.5 measured |
| LMArena Vision: homework | Not measured | 1295 | Only Grok 4.5 measured |
| Neither model has a result on the other 6 boards here | |||
MathLike-for-likePublic boards, shown as published, kept out of the index04
| Benchmark | GLM 4.7 | Grok 4.5 | Leader |
|---|---|---|---|
| AIME | 93.3% | Not measured | Only GLM 4.7 measured |
| MGSM (Vals AI) | 88.2% | Not measured | Only GLM 4.7 measured |
| AA Math Index | 95.0 | Not measured | Only GLM 4.7 measured |
| AIME 2025 (Artificial Analysis run) | 95.0% | Not measured | Only GLM 4.7 measured |
| OTIS Mock AIME | 83.3% | 97.8% | Grok 4.5 |
| FrontierMath, tiers 1 to 3 | Not measured | 57.2% | Only Grok 4.5 measured |
| FrontierMath, tier 4 | Not measured | 24.4% | Only Grok 4.5 measured |
| ProofBench | 6.0% | 31.0% | Grok 4.5 |
| LMArena Text: math | 1424 | 1460 | Grok 4.5 |
| LMArena Text: mathematical work | 1411 | 1482 | Grok 4.5 |
| Neither model has a result on the other 3 boards here | |||
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index19
| Benchmark | GLM 4.7 | Grok 4.5 | Leader |
|---|---|---|---|
| MMLU Pro | 82.7% | 89.2% | Grok 4.5 |
| LegalBench (Vals AI) | 83.4% | 86.0% | Grok 4.5 |
| CaseLaw (Vals AI) | 54.9% | Not measured | Only GLM 4.7 measured |
| CorpFin (Vals AI) | 46.4% | 67.4% | Grok 4.5 |
| TaxEval (Vals AI) | 68.8% | 71.7% | Grok 4.5 |
| MortgageTax (Vals AI) | Not measured | 61.8% | Only Grok 4.5 measured |
| MedQA (Vals AI) | 93.7% | Not measured | Only GLM 4.7 measured |
| MedCode (Vals AI) | 32.8% | 43.3% | Grok 4.5 |
| MMLU Pro (Artificial Analysis run) | 85.6% | Not measured | Only GLM 4.7 measured |
| SimpleQA Verified | 32.2% | 48.3% | Grok 4.5 |
| LMArena Text: science | 1457 | 1464 | Grok 4.5 |
| LMArena Text: medicine and healthcare | 1469 | 1440 | GLM 4.7 |
| LMArena Text: legal and government | 1444 | 1463 | Grok 4.5 |
| LMArena Text: business and finance | 1429 | 1441 | Grok 4.5 |
| Neither model has a result on the other 3 boards here | |||
Web designLike-for-likePublic boards, shown as published, kept out of the index08
| Benchmark | GLM 4.7 | Grok 4.5 | Leader |
|---|---|---|---|
| Design Arena: websites | 1226 | 1281 | Grok 4.5 |
| Design Arena: UI components | 1199 | 1279 | Grok 4.5 |
| Design Arena: game dev | 1189 | 1263 | Grok 4.5 |
| Design Arena: data viz | 1195 | 1267 | Grok 4.5 |
| Design Arena: 3D | 1191 | 1257 | Grok 4.5 |
| Design Arena: all code categories | 1217 | 1276 | Grok 4.5 |
| Design Arena: SVG | 1142 | 1215 | Grok 4.5 |
| Design Arena: ASCII art | 1165 | 1257 | 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 index316
| Benchmark | GLM 4.7 | 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) | 68.6% | 86.9% | Grok 4.5 |
| Vals Multimodal Index | Not measured | 63.4% | Only Grok 4.5 measured |
| IFBench | 67.9% | Not measured | Only GLM 4.7 measured |
| Long context reasoning (AA-LCR) | 71.0% | 79.3% | Grok 4.5 |
| DTBench | Not measured | 96.5% | Only Grok 4.5 measured |
| LMCA | Not measured | 45.2% | Only Grok 4.5 measured |
| CL-bench | 15.9% | Not measured | Only GLM 4.7 measured |
| Surface Evolver Bench | Not measured | 74.4% | Only Grok 4.5 measured |
| Furniture assembly | Not measured | 22.5% | Only Grok 4.5 measured |
| CL-bench Life | 10.9% | Not measured | Only GLM 4.7 measured |
| LMArena Text | 1435 | 1448 | Grok 4.5 |
| LMArena Text: instruction following | 1412 | 1445 | Grok 4.5 |
| LMArena Text: creative writing | 1401 | 1442 | Grok 4.5 |
| LMArena Vision | Not measured | 1287 | Only Grok 4.5 measured |
| LMArena Text: English | 1453 | 1453 | GLM 4.7 |
| LMArena Text: non-English | 1417 | 1440 | Grok 4.5 |
| LMArena Text: Chinese | 1495 | 1495 | Grok 4.5 |
| LMArena Text: German | 1426 | 1448 | Grok 4.5 |
| LMArena Text: Japanese | 1439 | 1430 | GLM 4.7 |
| LMArena Text: Korean | 1399 | 1406 | Grok 4.5 |
| LMArena Text: French | 1432 | 1457 | Grok 4.5 |
| LMArena Text: Spanish | 1434 | 1451 | Grok 4.5 |
| LMArena Text: Russian | 1423 | 1449 | Grok 4.5 |
| LMArena Text: Polish | 1435 | 1432 | GLM 4.7 |
| LMArena Text: multi-turn | 1446 | 1456 | Grok 4.5 |
| LMArena Text: longer queries | 1432 | 1462 | Grok 4.5 |
| LMArena Text: writing and language | 1411 | 1445 | Grok 4.5 |
| LMArena Text: entertainment and media | 1400 | 1434 | Grok 4.5 |
| 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 10 boards here | |||
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
| Benchmark | GLM 4.7 | 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 4.7 costs less
Repository review
50K input + 3K output tokens
GLM 4.7 costs less
Agent loop
200K input + 10K output tokens
GLM 4.7 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 4.7 | SpaceXAI Grok 4.5 |
|---|---|---|
| Maker | Z.ai | xAI |
| Weights | Open weights | No public weights listed |
| Released | December 22, 2025 | July 8, 2026 |
| Context window | 205K | 500K |
| Input $/Mtok | $0.54 | $2.00 |
| Output $/Mtok | $1.98 | $6.00 |
| Coding index | 33.6 | 75.5 |
| Independent measurements behind it | 1 | 2 |
| Cost per solved task | $0.29 | $0.62 |
| Source | OpenRouter listing | OpenRouter listing |
Questions
Is GLM 4.7 better than Grok 4.5 for coding?
Pick Grok 4.5 for coding: it scores 75.5 on the Vibe Coding Index against 33.6 for GLM 4.7. Pick GLM 4.7 when output tokens cost 3.0x less, or when a solved task costs $0.29 against $0.62.
Which is cheaper, GLM 4.7 or Grok 4.5?
GLM 4.7 costs $0.54 per million input tokens and $1.98 per million output tokens; Grok 4.5 costs $2.00 and $6.00. Per solved SWE-bench Verified task, GLM 4.7 costs $0.29 and Grok 4.5 $0.62.
Which has the bigger context window, GLM 4.7 or Grok 4.5?
Grok 4.5, with 500K tokens against 205K.
How many benchmarks is the GLM 4.7 vs Grok 4.5 comparison based on?
66 benchmarks have a result for both models as of October 21, 2026. GLM 4.7's coding index rests on 1 independent benchmark and Grok 4.5's on 2. Where only one model has a result, the page says so instead of naming a winner.