Compare / head-to-head
Gemini 3.1 Pro PreviewvsGLM-5.2
Gemini 3.1 Pro Preview leads 5 of 7 shared benchmarks. GLM-5.2 is 2.4x cheaper per token. Gemini 3.1 Pro Preview has the larger context window (1.0M tokens).
Benchmarks from cited public sources; pricing from official pages; status from official provider feeds.
Shared benchmarks
5 – 2
Gemini 3.1 Pro Preview leads
Cheaper per token
GLM-5.2
2.4x cheaper, input + output
Larger context
Gemini 3.1 Pro Preview
1.0M tokens
Provider uptime (30d)
100% · —
Google · Z.ai
Gemini 3.1 Pro Preview
Google · released 2026-02-19
textvisionaudio
Quality
Benchmark matrix
7 shared · 2 only Gemini 3.1 Pro Preview · 18 only GLM-5.2| Benchmark | Gemini 3.1 Pro Preview | GLM-5.2 | Δ | Edge |
|---|---|---|---|---|
| Reported by both · 7 | ||||
| GPQA Diamond | 94.3% ↗ | 91.9% ↗epoch | +2.4 pt | Gemini 3.1 Pro Preview |
| AIME 2026 | 98.3% ↗matharena ⚠ | 90% ↗matharena ⚠ | +8.3 pt | Gemini 3.1 Pro Preview |
| FrontierMath Tier 4 v2 (Epoch AI run) | 26.8% ↗epoch | 29.3% ↗epoch | -2.5 pt | GLM-5.2 |
| FrontierMath Tiers 1-3 v2 (Epoch AI run) | 59.6% ↗epoch | 59.2% ↗epoch | +0.4 pt | Gemini 3.1 Pro Preview |
| OTIS Mock AIME 2024-2025 (Epoch AI run) | 95.6% ↗epoch | 86.4% ↗epoch | +9.2 pt | Gemini 3.1 Pro Preview |
| SimpleQA Verified | 73.5% ↗epoch | 34.2% ↗epoch | +39.3 pt | Gemini 3.1 Pro Preview |
| SWE-Bench Pro | 54.2% ↗ | 62.1% ↗ | -7.9 pt | GLM-5.2 |
| Only Gemini 3.1 Pro Preview reports · 2 | ||||
| LMArena Elo | 1480.1 ↗ | not reported | — | — |
| ARC-AGI-2 | 77.1% ↗ | not reported | — | — |
| Only GLM-5.2 reports · 18 | ||||
| Agents' Last Exam (ALE-CLI) | not reported | 23.8% ↗ | — | — |
| AutomationBench v1.0.6 | not reported | 26.2% ↗ | — | — |
| CyberGym | not reported | 77.2% ↗ | — | — |
| DeepSWE v1.1 | not reported | 46.2% ↗ | — | — |
| ExploitBench | not reported | 24.4% ↗ | — | — |
| ExploitGym 2h | not reported | 29 ↗ | — | — |
| ExploitGym 6h | not reported | 39 ↗ | — | — |
| FrontierSWE | not reported | 67.5% ↗ | — | — |
| GDPval-AA v2 | not reported | 1508 ↗ | — | — |
| HLE (with tools) | not reported | 54.7% ↗ | — | — |
| NL2Repo | not reported | 48.9% ↗ | — | — |
| PostTrainBench | not reported | 31.7% ↗ | — | — |
| ProgramBench (Almost Solved) | not reported | 9.5% ↗ | — | — |
| SWE-bench Verified (Epoch AI run) | not reported | 78.7% ↗epoch | — | — |
| SWE-Marathon v1.1 | not reported | 19.4% ↗ | — | — |
| Terminal-Bench 2.1 | not reported | 81% ↗ | — | — |
| Terminal-Bench 3.0 | not reported | 4.6% ↗ | — | — |
| Toolathlon Verified | not reported | 59.9% ↗ | — | — |
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 Gemini 3.1 Pro Preview minus GLM-5.2 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 | Gemini 3.1 Pro Preview | GLM-5.2 | Edge |
|---|---|---|---|
| Context window | 1.0M tokens | 1M tokens | Gemini 3.1 Pro Preview |
| Max output | 66K tokens | 131K tokens | GLM-5.2 |
| Input price / 1M | $2 ↗ | $1.4 ↗ | GLM-5.2 |
| Output price / 1M | $12 ↗ | $4.4 ↗ | GLM-5.2 |
| Cached input / 1M | $0.2 ↗ | $0.26 ↗ | Gemini 3.1 Pro Preview |
| Input + output / 1M Lower is cheaper. List prices; batch, tool and regional fees excluded. | $14 | $5.8 | GLM-5.2 |
| Modalities | text · vision · audio | text | Gemini 3.1 Pro Preview |
| Released | 2026-02-19 | 2026-06-24 | — |
| Cited benchmark scores | 10 | 26 | — |
Reliability
Provider status
Last 60 days · refreshed daily on this page · live on /statusMore matchups
Gemini 3.1 Pro Preview vs …
Models sharing the most benchmarksMore matchups
GLM-5.2 vs …
Models sharing the most benchmarksBuilt by Respan
Which one wins on your data?
Public benchmarks are a starting point. Run Gemini 3.1 Pro Preview and GLM-5.2 on your own prompts with Respan evals, or route to either through one gateway key with automatic failover.