Compare / head-to-head
Claude Sonnet 4vsGLM-4.7-Flash
Claude Sonnet 4 leads 2 of 2 shared benchmarks. Both offer a 200K-token context window.
Benchmarks from cited public sources; pricing from official pages; status from official provider feeds.
Shared benchmarks
2 – 0
Claude Sonnet 4 leads
Cheaper per token
GLM-4.7-Flash
list price, input + output
Larger context
Tie
both 200K tokens
Provider uptime (30d)
100% · —
Anthropic · Z.ai
Claude Sonnet 4
Anthropic · released 2025-05-22
textvision
GLM-4.7-Flash
Z.ai
text
Quality
Benchmark matrix
2 shared · 2 only Claude Sonnet 4 · 1 only GLM-4.7-Flash| Benchmark | Claude Sonnet 4 | GLM-4.7-Flash | Δ | Edge |
|---|---|---|---|---|
| Reported by both · 2 | ||||
| GPQA Diamond | 79.2% ↗epoch | 60.5% ↗epoch | +18.7 pt | Claude Sonnet 4 |
| OTIS Mock AIME 2024-2025 (Epoch AI run) | 71.1% ↗epoch | 58.3% ↗epoch | +12.8 pt | Claude Sonnet 4 |
| Only Claude Sonnet 4 reports · 2 | ||||
| SWE-bench Verified | 72.7% ↗ | not reported | — | — |
| AIME 2024 (no extended thinking) | 33.1% ↗ | not reported | — | — |
| Only GLM-4.7-Flash reports · 1 | ||||
| LMArena Elo | not reported | 1352.2 ↗ | — | — |
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 Claude Sonnet 4 minus GLM-4.7-Flash 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 | Claude Sonnet 4 | GLM-4.7-Flash | Edge |
|---|---|---|---|
| Context window | 200K tokens | 200K tokens | Tie |
| Max output | 64K tokens | 131K tokens | GLM-4.7-Flash |
| Input price / 1M | $3 ↗ | $0 ↗ | GLM-4.7-Flash |
| Output price / 1M | $15 ↗ | $0 ↗ | GLM-4.7-Flash |
| Cached input / 1M | $0.3 ↗ | $0 ↗ | GLM-4.7-Flash |
| Input + output / 1M Lower is cheaper. List prices; batch, tool and regional fees excluded. | $18 | $0 | GLM-4.7-Flash |
| Modalities | text · vision | text | Claude Sonnet 4 |
| Released | 2025-05-22 | — | — |
| Cited benchmark scores | 4 | 3 | — |
Reliability
Provider status
Last 60 days · refreshed daily on this page · live on /statusMore matchups
Claude Sonnet 4 vs …
Models sharing the most benchmarksMore matchups
GLM-4.7-Flash vs …
Models sharing the most benchmarksBuilt by Respan
Which one wins on your data?
Public benchmarks are a starting point. Run Claude Sonnet 4 and GLM-4.7-Flash on your own prompts with Respan evals, or route to either through one gateway key with automatic failover.