Z.ai · Released Jun 16, 2026
GLM 5.2
GLM 5.2 is a large-scale reasoning model from Z.ai. It supports text input and output with a 1M-token context window, and is suited for long-horizon agent workflows, project-level software engineering,...
- Top 16%SWE-bench Verified
- Top 19%Vending-Bench 2
- Top 21%CritPt
- Top 23%GPQA Diamond
- Released
- Jun 16 2026
- Context window
- 1M 944K out
- Input / 1M tokens
- $0.62 from $0.034
- Output / 1M tokens
- $2.42 from $1.44
Where to run it
25 providers compared
Cheapest: DeepInfra at $0.45 / $1.44 per 1M input / output tokens — 83% less than the priciest option.
| Provider | Input | Output | Cache read | Context | Max output | Uptime | vs. best |
|---|---|---|---|---|---|---|---|
| DeepInfraFP4 | $0.45 | $1.44 | $0.084 | 1M | 164K | 97.9%24h | Cheapest |
| DeepInfraFP4 | $0.56 | $1.80 | $0.10 | 1M | 164K | 99.9%24h | +25% |
| StreamLakeFP8 | $0.61 | $1.93 | $0.11 | 1.02M | 128K | 93.8%24h | +35% |
| NovitaFP8 | $0.65 | $2.04 | $0.12 | 1M | 131K | 99.9%24h | +43% |
| CoreWeaveFP4 | $0.62 | $2.42 | $0.14 | 1M | 944K | 100%24h | +53% |
| SiliconFlowFP8 | $0.70 | $2.20 | $0.13 | 1M | 262K | 100%24h | +54% |
| DigitalOcean | $0.70 | $2.20 | $0.10 | 1M | 131K | 99.9%24h | +54% |
| InceptronFP4 | $0.69 | $2.52 | $0.14 | 1M | 944K | 99.4%24h | +65% |
| MorphFP8 | $0.18 | $4.40 | $0.045 | 1M | 944K | 98.3%24h | +77% |
| Relace | $0.40 | $4.00 | $0.08 | 1M | 131K | 100%24h | +86% |
| AtlasCloudFP8 | $0.94 | $2.95 | $0.17 | 1M | 131K | 100%24h | +107% |
| AlibabaFP8 | $0.97 | $3.04 | $0.19 | 1M | 131K | 100%24h | +113% |
| PhalaFP8 | $1.26 | $3.00 | $0.22 | 1M | 131K | 0%24h | +143% |
| Alibabaus-east-1 · FP8 | $1.12 | $3.52 | $0.22 | 1M | 131K | 100%24h | +147% |
| Waferus · FP4 | $0.034 | $7.00 | $0.033 | 1M | 944K | 100%24h | +155% |
| WaferFP4 | $0.19 | $8.00 | $0.18 | 1M | 944K | 100%24h | +207% |
| Cloudflare | $0.19 | $8.00 | $0.19 | 262K | 236K | 100%24h | +207% |
| NebiusFP4 | $1.40 | $4.40 | — | 1M | 944K | 100%24h | +208% |
| BaseTenFP8 | $1.40 | $4.40 | $0.14 | 1M | 262K | 100%24h | +208% |
| VeniceFP8 | $1.40 | $4.40 | $0.26 | 1M | 131K | 100%24h | +208% |
| GMICloudFP8 | $1.40 | $4.40 | $0.26 | 1M | 944K | 100%24h | +208% |
| Together | $1.40 | $4.40 | $0.26 | 1.05M | 944K | 99.9%24h | +208% |
| ParasailFP4 | $1.40 | $4.40 | $0.26 | 262K | 236K | 99.9%24h | +208% |
| BaseTenus · FP8 | $1.40 | $4.40 | $0.14 | 1M | 262K | 99.7%24h | +208% |
| Z.AIFP8 | $1.40 | $4.40 | $0.26 | 1M | 131K | 99.7%24h | +208% |
| Friendli | $1.40 | $4.40 | $0.26 | 1M | 944K | 99.4%24h | +208% |
| Mistralzdr · NVFP4 | $1.40 | $4.40 | $0.14 | 1M | 131K | 99.2%24h | +208% |
| BaiduFP8 | $1.40 | $4.40 | $0.26 | 1M | 131K | 99.2%24h | +208% |
| Mistraleu | $1.54 | $4.84 | $0.15 | 1M | 128K | 100%24h | +239% |
| BaseTenfast · FP8 | $2.10 | $6.60 | $0.21 | 1M | 262K | 99.5%24h | +362% |
| BaseTenus/fast · FP8 | $2.10 | $6.60 | $0.21 | 1M | 262K | 99.1%24h | +362% |
| Alibabafast · FP8 | $2.31 | $7.26 | $0.46 | 1M | 131K | 98%24h | +409% |
| Baidufast · FP4 | $2.25 | $7.88 | $0.56 | 1M | 131K | 100%24h | +424% |
| Decartfast · FP4 | $2.50 | $9.00 | $0.54 | 1M | 944K | 100%24h | +491% |
Value
Price vs. performance
GLM 5.2 Other Z.ai Other labs Value frontier · GPQA Diamond vs. input price per 1M tokens (log scale) · Drag to pan, pinch or Ctrl + scroll to zoom, double-click to zoom in.
Benchmarks
21 benchmark scores
| Benchmark | Score | Rank | Leader |
|---|---|---|---|
| DeepSWESoftware engineering · Original long-horizon tasks across active open-source repos | 43.8% | #22of 26 | GPT-6 Astra74.1% |
| FrontierCodeSoftware engineering · Mergeable fixes for hard open-source issues | 24.5% | #36of 41 | Claude Opus 5.554.6% |
| SWE-bench VerifiedSoftware engineering · Real GitHub issues fixed in Python repos | 78.7% | #4of 26 | Claude Opus 4.783.5% |
| GBAEvalSoftware engineering · Build a Game Boy Advance emulator from scratch | 0.0% | #21of 23 | Claude Opus 579.6% |
| SciCodeSoftware engineering · Research-coding problems from the natural sciences | 51.2% | #43of 93 | Claude Opus 5.566.9% |
| APEX-AgentsAgents & computer use · Long professional tasks in banking, consulting and law | 45.2% | #35of 51 | Gemini 4 Argon82.4% |
| Vending-Bench 2Agents & computer use · Run a simulated vending business for a year (final balance) | $8,314 | #11of 61 | GPT-6 Astra$15,515 |
| PostTrainBenchAgents & computer use · Post-train small models under a fixed compute budget | 31.7% | #6of 11 | Claude Fable 541.8% |
| SimpleQA VerifiedWriting & content · Factual accuracy on 1,000 short questions | 34.2% | #49of 66 | Gemini 4 Argon76.0% |
| WebDev ArenaDesign & visual · People vote on which model builds the better website (Elo) | 1593 | #22of 88 | Claude Opus 5.51820 |
| GPQA DiamondReasoning & knowledge · PhD-level biology, chemistry and physics questions | 91.9% | #21of 92 | Gemini 4 Argon96.4% |
| ARC-AGI-2Reasoning & knowledge · Few-shot abstract reasoning on grid puzzles | 22.8% | #44of 63 | GPT-6 Astra95.0% |
| ARC-AGI-1Reasoning & knowledge · Pattern induction from input–output examples | 77.0% | #44of 63 | Gemini 4 Argon98.5% |
| SimpleBenchReasoning & knowledge · Common-sense trick questions about space, time and people | 58.8% | #24of 43 | Claude Fable 581.9% |
| CritPtReasoning & knowledge · Open-ended, research-level physics problems | 20.9% | #20of 96 | GPT-5.6 Sol32.3% |
| Chess PuzzlesReasoning & knowledge · Find the single best move in 100 new puzzles | 22.0% | #54of 70 | GPT-6 Astra76.0% |
| LMCAReasoning & knowledge · Judge the quality of conceptual arguments like experts | 45.8% | #36of 96 | Claude Sonnet 5.568.3% |
| FrontierMathMaths · Expert-written problems, undergrad to early research (tiers 1–3) | 59.2% | #39of 72 | GPT-6.1 Sol93.7% |
| FrontierMath Tier 4Maths · Exceptionally hard research-level problems | 29.3% | #29of 62 | GPT-6.1 Sol100.0% |
| ProofBenchMaths · Graduate maths proofs verified in Lean 4 | 35.0% | #43of 70 | Claude Sonnet 5.5100.0% |
| OTIS Mock AIMEMaths · Competition-style problems harder than MATH Level 5 | 86.4% | #61of 90 | Gemini 4 Argon100.0% |
Specs
Details
- Model ID
z-ai/glm-5.2- Developer
- Z.ai
- Release date
- Jun 16, 2026 ·
- Context window
- 1,048,576 tokens
- Max output
- 943,718 tokens
- API price
- $0.62 / $2.42 per 1M input / output tokens
- Providers
- 25
- Input types
- text
- Reasoning
- Yes
- Tool calling
- Yes
- Open weights
- Yes
- Free tier
- No
Release date, prices and providers from OpenRouter's catalog; buying directly from a provider can cost a little differently. Uptime is the share of OpenRouter requests each provider served over the last day. Benchmark scores are the best result per benchmark from Epoch AI, licensed CC BY 4.0. Rank counts every model tracked here with a score.