ModelsCompareBest forBenchmarksStatusPricingAPI
Compare / head-to-head

Gemma 4 31BvsGLM-5

GLM-5 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 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
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

BenchmarkGemma 4 31BGLM-5ΔEdge
Reported by both · 3
GPQA Diamond84.3% 87.8% epoch-3.5 ptGLM-5
AIME 202689.2% 96.7% matharena-7.5 ptGLM-5
LMArena Elo1441.7 1446.3 -4.6GLM-5
Only Gemma 4 31B reports · 3
MMLU-Pro85.2% not reported
Humanity's Last Exam (no tools)19.5% not reported
LiveCodeBench v680% not reported
Only GLM-5 reports · 5
SWE-bench Verifiednot reported77.8%
AIME 2025not reported96.7% matharena
OTIS Mock AIME 2024-2025 (Epoch AI run)not reported80% epoch
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 Gemma 4 31B 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

SpecGemma 4 31BGLM-5Edge
Context window256K tokens200K tokensGemma 4 31B
Max output131K tokens
Input price / 1M$1
Output price / 1M$3.2
Cached input / 1M$0.2
Input + output / 1M
Lower is cheaper. List prices; batch, tool and regional fees excluded.
$4.2
Modalitiestext · visiontextGemma 4 31B
Released2026-04-02
Cited benchmark scores68
Reliability

Provider status

All providers
Built by Respan
Which one wins on your data?

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