Compare / head-to-head
GLM-5.2vs
Grok 4.7
Grok 4.7 leads 1 of 1 shared benchmark. GLM-5.2 is 1.4x cheaper per token. GLM-5.2 has the larger context window (1M tokens).
Benchmarks from cited public sources; pricing from official pages; status from official provider feeds.
Shared benchmarks
0 – 1
Grok 4.7 leads
Cheaper per token
GLM-5.2
1.4x cheaper, input + output
Larger context
GLM-5.2
1M tokens
Providers
2 providers
Z.ai · xAI
GLM-5.2
Z.ai · released 2026-06-24
text
Quality
Benchmark matrix
1 shared · 24 only GLM-5.2 · 6 only Grok 4.7| Benchmark | GLM-5.2 | Grok 4.7 | Δ | Edge |
|---|---|---|---|---|
| Reported by both · 1 | ||||
| DeepSWE v1.1 | 46.2% ↗ | 71% ↗ | -24.8 pt | Grok 4.7 |
| Only GLM-5.2 reports · 24 | ||||
| GPQA Diamond | 91.9% ↗epoch | not reported | — | — |
| AIME 2026 | 90% ↗matharena ⚠ | not reported | — | — |
| Agents' Last Exam (ALE-CLI) | 23.8% ↗ | not reported | — | — |
| AutomationBench v1.0.6 | 26.2% ↗ | not reported | — | — |
| CyberGym | 77.2% ↗ | not reported | — | — |
| ExploitBench | 24.4% ↗ | not reported | — | — |
| ExploitGym 2h | 29 ↗ | not reported | — | — |
| ExploitGym 6h | 39 ↗ | not reported | — | — |
| FrontierMath Tier 4 v2 (Epoch AI run) | 29.3% ↗epoch | not reported | — | — |
| FrontierMath Tiers 1-3 v2 (Epoch AI run) | 59.2% ↗epoch | not reported | — | — |
| FrontierSWE | 67.5% ↗ | not reported | — | — |
| GDPval-AA v2 | 1508 ↗ | not reported | — | — |
| HLE (with tools) | 54.7% ↗ | not reported | — | — |
| NL2Repo | 48.9% ↗ | not reported | — | — |
| OTIS Mock AIME 2024-2025 (Epoch AI run) | 86.4% ↗epoch | not reported | — | — |
| PostTrainBench | 31.7% ↗ | not reported | — | — |
| ProgramBench (Almost Solved) | 9.5% ↗ | not reported | — | — |
| SimpleQA Verified | 34.2% ↗epoch | not reported | — | — |
| SWE-Bench Pro | 62.1% ↗ | not reported | — | — |
| SWE-bench Verified (Epoch AI run) | 78.7% ↗epoch | not reported | — | — |
| SWE-Marathon v1.1 | 19.4% ↗ | not reported | — | — |
| Terminal-Bench 2.1 | 81% ↗ | not reported | — | — |
| Terminal-Bench 3.0 | 4.6% ↗ | not reported | — | — |
| Toolathlon Verified | 59.9% ↗ | not reported | — | — |
| Only Grok 4.7 reports · 6 | ||||
| AA Briefcase v1.1 | not reported | 1657 ↗ | — | — |
| CursorBench 4.0 | not reported | 46.3% ↗ | — | — |
| EEBench | not reported | 64% ↗ | — | — |
| Harvey Legal Agent Benchmark | not reported | 19.6% ↗ | — | — |
| HealthBench Professional | not reported | 56.7% ↗ | — | — |
| Terminal-Bench 4.0 | not reported | 38% ↗ | — | — |
Scores tagged "epoch" or "matharena" are independent runs, used only where the lab has not published its own; ⚠ marks rows MathArena flags as released after the competition. Higher is better on every row. Δ is GLM-5.2 minus Grok 4.7 in the benchmark's own unit. "Not reported" means the lab has not published that figure; it is not a zero. ↗ opens the source.
Specs & pricing
Side by side
Official pricing pages and model cards| Spec | GLM-5.2 | Grok 4.7 | Edge |
|---|---|---|---|
| Context window | 1M tokens | 500K tokens | GLM-5.2 |
| Max output | 131K tokens | — | — |
| Input price / 1M | $1.4 ↗ | $2 ↗ | GLM-5.2 |
| Output price / 1M | $4.4 ↗ | $6 ↗ | GLM-5.2 |
| Cached input / 1M | $0.26 ↗ | $0.5 ↗ | GLM-5.2 |
| Input + output / 1M Lower is cheaper. List prices; batch, tool and regional fees excluded. | $5.8 | $8 | GLM-5.2 |
| Modalities | text | text · vision | Grok 4.7 |
| Released | 2026-06-24 | 2026-09-21 | — |
| Cited benchmark scores | 26 | 7 | — |
Reliability
Provider status
Live from /statusMore matchups
GLM-5.2 vs …
Models sharing the most benchmarksMore matchups
Grok 4.7 vs …
Models sharing the most benchmarksBuilt by Respan
Which one wins on your data?
Public benchmarks are a starting point. Run GLM-5.2 and Grok 4.7 on your own prompts with Respan evals, or route to either through one gateway key with automatic failover.