Compare / head-to-head
Gemma 4 31BvsGLM-5.1
GLM-5.1 leads 3 of 3 shared benchmarks. Gemma 4 31B has the larger context window (256K tokens).
Benchmarks from cited public sources; pricing from official pages; status from official provider feeds.
Shared benchmarks
0 – 3
GLM-5.1 leads
Cheaper per token
—
list price, input + output
Larger context
Gemma 4 31B
256K tokens
Provider uptime (30d)
100% · —
Google · Z.ai
Gemma 4 31B
Google · released 2026-04-02
textvision
- Context
- 256K
- Max out
- —
- Input /1M
- —
- Output /1M
- —
- Cached /1M
- —
- Scores
- 6 · 5 core
Quality
Benchmark matrix
3 shared · 3 only Gemma 4 31B · 4 only GLM-5.1| Benchmark | Gemma 4 31B | GLM-5.1 | Δ | Edge |
|---|---|---|---|---|
| Reported by both · 3 | ||||
| GPQA Diamond | 84.3% ↗ | 89.9% ↗epoch | -5.6 pt | GLM-5.1 |
| AIME 2026 | 89.2% ↗ | 95.8% ↗matharena ⚠ | -6.6 pt | GLM-5.1 |
| LMArena Elo | 1441.7 ↗ | 1462.4 ↗ | -20.7 | GLM-5.1 |
| Only Gemma 4 31B reports · 3 | ||||
| MMLU-Pro | 85.2% ↗ | not reported | — | — |
| Humanity's Last Exam (no tools) | 19.5% ↗ | not reported | — | — |
| LiveCodeBench v6 | 80% ↗ | not reported | — | — |
| Only GLM-5.1 reports · 4 | ||||
| FrontierMath Tiers 1-3 v2 (Epoch AI run) | not reported | 36.8% ↗epoch | — | — |
| OTIS Mock AIME 2024-2025 (Epoch AI run) | not reported | 93.3% ↗epoch | — | — |
| SimpleQA Verified | not reported | 34% ↗epoch | — | — |
| SWE-bench Verified (Epoch AI run) | not reported | 74.2% ↗epoch | — | — |
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 Gemma 4 31B minus GLM-5.1 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 | Gemma 4 31B | GLM-5.1 | Edge |
|---|---|---|---|
| Context window | 256K tokens | 200K tokens | Gemma 4 31B |
| Max output | — | 131K tokens | — |
| Input price / 1M | — | $1.4 ↗ | — |
| Output price / 1M | — | $4.4 ↗ | — |
| Cached input / 1M | — | $0.26 ↗ | — |
| Input + output / 1M Lower is cheaper. List prices; batch, tool and regional fees excluded. | — | $5.8 | — |
| Modalities | text · vision | text | Gemma 4 31B |
| Released | 2026-04-02 | 2026-04-07 | — |
| Cited benchmark scores | 6 | 7 | — |
Reliability
Provider status
Last 60 days · refreshed daily on this page · live on /statusMore matchups
Gemma 4 31B vs …
Models sharing the most benchmarksMore matchups
GLM-5.1 vs …
Models sharing the most benchmarksBuilt by Respan
Which one wins on your data?
Public benchmarks are a starting point. Run Gemma 4 31B and GLM-5.1 on your own prompts with Respan evals, or route to either through one gateway key with automatic failover.