ModelsCompareBest forBenchmarksStatusPricingAPI
Compare / head-to-head

Claude Sonnet 4vsGLM-5

GLM-5 leads 3 of 3 shared benchmarks. GLM-5 is 4.3x cheaper per token. Both offer a 200K-token context window.

Benchmarks from cited public sources; pricing from official pages; status from official provider feeds.

Shared benchmarks
0 – 3
GLM-5 leads
Cheaper per token
GLM-5
4.3x cheaper, input + output
Larger context
Tie
both 200K tokens
Provider uptime (30d)
100% · —
Anthropic · Z.ai
Claude Sonnet 4
Anthropic · released 2025-05-22
textvision
Context
200K
Max out
64K
Input /1M
$3
Output /1M
$15
Cached /1M
$0.3
Scores
4 · 4 core
GLM-5
Z.ai
text
Context
200K
Max out
131K
Input /1M
$1
Output /1M
$3.2
Cached /1M
$0.2
Scores
8 · 7 core
Quality

Benchmark matrix

BenchmarkClaude Sonnet 4GLM-5ΔEdge
Reported by both · 3
SWE-bench Verified72.7% 77.8% -5.1 ptGLM-5
GPQA Diamond79.2% epoch87.8% epoch-8.6 ptGLM-5
OTIS Mock AIME 2024-2025 (Epoch AI run)71.1% epoch80% epoch-8.9 ptGLM-5
Only Claude Sonnet 4 reports · 1
AIME 2024 (no extended thinking)33.1% not reported
Only GLM-5 reports · 5
AIME 2025not reported96.7% matharena
AIME 2026not reported96.7% matharena
LMArena Elonot reported1446.3
SWE-bench Verified (Epoch AI run)not reported72.1% epoch
Terminal-Bench 2.0not reported56.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-5 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

SpecClaude Sonnet 4GLM-5Edge
Context window200K tokens200K tokensTie
Max output64K tokens131K tokensGLM-5
Input price / 1M$3 $1 GLM-5
Output price / 1M$15 $3.2 GLM-5
Cached input / 1M$0.3 $0.2 GLM-5
Input + output / 1M
Lower is cheaper. List prices; batch, tool and regional fees excluded.
$18$4.2GLM-5
Modalitiestext · visiontextClaude Sonnet 4
Released2025-05-22
Cited benchmark scores48
Reliability

Provider status

All providers
More matchups

Claude Sonnet 4 vs …

Built by Respan
Which one wins on your data?

Public benchmarks are a starting point. Run Claude Sonnet 4 and GLM-5 on your own prompts with Respan evals, or route to either through one gateway key with automatic failover.