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 13%SWE-bench Verified
- Top 19%Vending-Bench 2
- Top 19%GPQA Diamond
- Top 19%CritPt
- Released
- Jun 16 2026
- Context window
- 1M 944K out
- Input / 1M tokens
- $0.034 from Free
- Output / 1M tokens
- $7.00 from Free
Where to run it
100 providers compared
Free to try on UnoRouter, SenseNova (China), AIHubMix — free endpoints are often limited-time and rate-limited. Included in SCNet Token Plan, Alibaba Token Plan, Z.AI Coding Plan, Alibaba Token Plan (China), OpenCode Go. Cheapest: DeepInfra at $0.45 / $1.44 per 1M input / output tokens — 86% less than the priciest option.
| Provider | Input | Output | Cache read | Context | Max output | Uptime | vs. best |
|---|---|---|---|---|---|---|---|
| UnoRouterfree · may be limited-time | Free | Free | — | 1M | 131K | — | Free |
| SenseNova (China)free · may be limited-time | Free | Free | Free | 1M | 131K | — | Free |
| AIHubMixfree · may be limited-time | Free | Free | — | 1M | 131K | — | Free |
| SCNet Token Plansubscription plan | Plan | Plan | Plan | 1M | 131K | — | Plan |
| Alibaba Token Plansubscription plan | Plan | Plan | Plan | 1M | 131K | — | Plan |
| Z.AI Coding Plansubscription plan | Plan | Plan | Plan | 1M | 131K | — | Plan |
| Alibaba Token Plan (China)subscription plan | Plan | Plan | Plan | 1M | 131K | — | Plan |
| OpenCode Gosubscription plan | Plan | Plan | Plan | 1M | 131K | — | Plan |
| DeepInfraFP4 | $0.45 | $1.44 | $0.084 | 1M | 164K | 97.8%24h | Cheapest |
| Boundless | $0.34 | $2.30 | $0.17 | 1M | 131K | — | +19% |
| SCX.ai | $0.55 | $1.78 | $0.11 | 1M | 131K | — | +23% |
| DeepInfraFP4 | $0.56 | $1.80 | $0.10 | 1M | 164K | 100%24h | +25% |
| Standard Compute | $0.56 | $1.80 | $0.10 | 1M | 50K | — | +25% |
| engy | $0.68 | $1.50 | $0.18 | 262K | 33K | — | +27% |
| StreamLakeFP8 | $0.61 | $1.93 | $0.11 | 1.02M | 128K | 100%24h | +35% |
| DevPass (LLM Gateway) | $0.60 | $2.12 | $0.15 | 1M | 131K | — | +41% |
| NovitaFP8 | $0.65 | $2.04 | $0.12 | 1M | 131K | 100%24h | +43% |
| CoreWeaveFP4 | $0.62 | $2.42 | $0.14 | 1M | 944K | 99.7%24h | +53% |
| Kenari | $0.29 | $3.43 | $0.053 | 1M | 131K | — | +54% |
| 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.62 | $2.52 | $0.14 | 1M | 944K | 99.8%24h | +57% |
| routing.run | $0.80 | $2.40 | — | 200K | 32K | — | +72% |
| Vercel AI Gateway | $0.80 | $2.55 | $0.16 | 1M | 128K | — | +77% |
| Requesty | $0.80 | $2.55 | $0.16 | 1M | 131K | — | +77% |
| MorphFP8 | $0.23 | $4.40 | $0.058 | 1M | 944K | 99.1%24h | +83% |
| Relace | $0.40 | $4.00 | $0.08 | 1M | 131K | 100%24h | +86% |
| Vultr | $0.75 | $3.00 | — | 1M | 131K | — | +88% |
| Lilac | $0.90 | $3.00 | $0.27 | 524K | 524K | — | +104% |
| AtlasCloudFP8 | $0.94 | $2.95 | $0.17 | 1M | 131K | 100%24h | +107% |
| AlibabaFP8 | $0.97 | $3.04 | $0.19 | 1M | 131K | 98.4%24h | +113% |
| Cortecs | $0.90 | $3.24 | $0.19 | 1M | 1M | — | +113% |
| Merge Gateway | $1.05 | $3.30 | $0.20 | 1M | 131K | — | +131% |
| PhalaFP8 | $1.26 | $3.00 | $0.22 | 1M | 131K | 0%24h | +143% |
| Alibabaus-east-1 · FP8 | $1.12 | $3.52 | $0.22 | 1M | 131K | 94.7%24h | +147% |
| ai& | $1.00 | $4.00 | $0.30 | 1M | 131K | — | +151% |
| Waferus · FP4 | $0.034 | $7.00 | $0.033 | 1M | 944K | 100%24h | +155% |
| Alibaba (China) | $1.10 | $3.85 | $0.28 | 1M | 128K | — | +156% |
| AIHubMix | $1.13 | $3.94 | $0.28 | 1M | 131K | — | +163% |
| DInference | $1.25 | $3.89 | — | 1M | 128K | — | +174% |
| Chutes | $1.25 | $3.95 | $0.13 | 1M | 66K | — | +176% |
| Volcengine Ark | $1.19 | $4.16 | $0.30 | 1M | 131K | — | +177% |
| Zhipu AI | $1.20 | $4.18 | $0.30 | 1M | 131K | — | +178% |
| SiliconFlow (China) | $1.20 | $4.18 | $0.30 | 1.05M | 262K | — | +179% |
| Vivgrid | $1.20 | $4.20 | $0.30 | 1M | 128K | — | +180% |
| Ambient | $1.20 | $4.20 | $0.26 | 203K | 203K | — | +180% |
| CrossModel | $1.20 | $4.40 | $0.30 | 1M | 128K | — | +187% |
| WaferFP4 | $0.19 | $8.00 | $0.18 | 1M | 944K | 99.9%24h | +207% |
| Cloudflare | $0.19 | $8.00 | $0.19 | 262K | 236K | 99.9%24h | +207% |
| BaseTenus · FP8 | $1.40 | $4.40 | $0.14 | 1M | 262K | 100%24h | +208% |
| BaiduFP8 | $1.40 | $4.40 | $0.26 | 1M | 131K | 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% |
| Friendli | $1.40 | $4.40 | $0.26 | 1M | 944K | 100%24h | +208% |
| Z.AIFP8 | $1.40 | $4.40 | $0.26 | 1M | 131K | 100%24h | +208% |
| Together | $1.40 | $4.40 | $0.26 | 1.05M | 944K | 99.6%24h | +208% |
| Mistralzdr · NVFP4 | $1.40 | $4.40 | $0.14 | 1M | 131K | 97.9%24h | +208% |
| ParasailFP4 | $1.40 | $4.40 | $0.26 | 262K | 236K | 96.4%24h | +208% |
| NebiusFP4 | $1.40 | $4.40 | $0.14 | 1M | 944K | 94.7%24h | +208% |
| NanoGPT | $1.40 | $4.40 | $0.70 | 1M | 131K | — | +208% |
| Venice AI | $1.40 | $4.40 | $0.26 | 1M | 131K | — | +208% |
| Kilo Gateway | $1.40 | $4.40 | $0.26 | 1M | 944K | — | +208% |
| LLM Gateway | $1.40 | $4.40 | $0.26 | 1M | 131K | — | +208% |
| HPC-AI | $1.40 | $4.40 | $0.26 | 1M | 131K | — | +208% |
| TokenGo | $1.40 | $4.40 | $0.26 | 1M | 131K | — | +208% |
| Nebius Token Factory | $1.40 | $4.40 | $1.40 | 1M | 1M | — | +208% |
| Databricks | $1.40 | $4.40 | $0.26 | 1M | 131K | — | +208% |
| Arcee | $1.40 | $4.40 | $0.26 | 262K | 131K | — | +208% |
| Together AI | $1.40 | $4.40 | $0.26 | 1.05M | 164K | — | +208% |
| 302.AI | $1.40 | $4.40 | $0.26 | 1M | 131K | — | +208% |
| Jalapeno Cloud | $1.40 | $4.40 | $0.26 | 1M | 131K | — | +208% |
| ZenMux | $1.40 | $4.40 | $0.26 | 1M | 128K | — | +208% |
| Synthetic | $1.40 | $4.40 | $1.40 | 524K | 66K | — | +208% |
| Novita AI | $1.40 | $4.40 | $0.26 | 1M | 131K | — | +208% |
| ClinePass | $1.40 | $4.40 | $0.26 | 1M | 131K | — | +208% |
| Vertex | $1.40 | $4.40 | $0.14 | 1M | 64K | — | +208% |
| Neon | $1.40 | $4.40 | $0.26 | 1M | 66K | — | +208% |
| Crusoe | $1.40 | $4.40 | $0.26 | 1M | 131K | — | +208% |
| Abacus | $1.40 | $4.40 | $0.26 | 1M | 131K | — | +208% |
| Tempr Gateway | $1.40 | $4.40 | $0.14 | 1M | 131K | — | +208% |
| Hugging Face | $1.40 | $4.40 | — | 262K | 131K | — | +208% |
| Ollama Cloud | $1.40 | $4.40 | $0.26 | 976K | 131K | — | +208% |
| Cloudflare Workers AI | $1.40 | $4.40 | $0.26 | 262K | 256K | — | +208% |
| Ofox | $1.40 | $4.40 | $0.26 | 1M | 131K | — | +208% |
| Impossibl | $1.40 | $4.40 | $0.14 | 1M | 131K | — | +208% |
| OrcaRouter | $1.40 | $4.40 | $0.26 | 1M | 131K | — | +208% |
| OpenCode | $1.40 | $4.40 | $0.26 | 1M | 131K | — | +208% |
| EmpirioLabs AI | $1.40 | $4.40 | $1.40 | 1M | 131K | — | +208% |
| Eden AI | $1.40 | $4.40 | $0.26 | 1M | 131K | — | +208% |
| Neuralwatt | $1.45 | $4.50 | $0.14 | 1.05M | 1.05M | — | +217% |
| TensorX | $1.50 | $4.50 | $0.38 | 1M | 131K | — | +223% |
| Charm Hyper | $1.52 | $4.79 | $0.15 | 1M | 33K | — | +236% |
| Mistraleu | $1.54 | $4.84 | $0.15 | 1M | 128K | 100%24h | +239% |
| Berget.AI | $1.54 | $4.84 | — | 524K | 33K | — | +239% |
| Prime Inference | $1.54 | $4.84 | — | 1M | 944K | — | +239% |
| above.dev | $1.54 | $4.84 | $0.15 | 1M | 131K | — | +239% |
| UnoRouter | $1.60 | $5.03 | — | 1M | 131K | — | +252% |
| evroc | $1.44 | $5.75 | — | 524K | 131K | — | +261% |
| GreenPT | $1.74 | $5.16 | $0.45 | 1M | 131K | — | +272% |
| Opper | $1.63 | $5.81 | — | 1M | 131K | — | +283% |
| AI/ML API | $1.82 | $5.72 | $0.34 | 1M | 131K | — | +301% |
| Decartfast · FP4 | $1.20 | $8.00 | $0.48 | 1M | 944K | 100%24h | +316% |
| Scaleway | $2.02 | $6.17 | — | 256K | 16K | — | +338% |
| BaseTenus/fast · FP8 | $2.10 | $6.60 | $0.21 | 1M | 262K | 99.9%24h | +362% |
| BaseTenfast · FP8 | $2.10 | $6.60 | $0.21 | 1M | 262K | 99.9%24h | +362% |
| Pioneer | $2.10 | $6.60 | $0.21 | 1M | 128K | — | +362% |
| Regolo AI | $2.31 | $6.00 | — | 96K | 96K | — | +363% |
| Alibabafast · FP8 | $2.31 | $7.26 | $0.46 | 1M | 131K | 90.7%24h | +409% |
| Baidufast · FP4 | $2.25 | $7.88 | $0.56 | 1M | 131K | 100%24h | +424% |
| CommandCode | $3.00 | $10.25 | $0.50 | 1M | 131K | — | +590% |
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 32 | 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 102 | 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% | #51of 79 | Gemini 4 Argon76.0% |
| WebDev ArenaDesign & visual · People vote on which model builds the better website (Elo) | 1593 | #22of 90 | Claude Opus 5.51820 |
| GPQA DiamondReasoning & knowledge · PhD-level biology, chemistry and physics questions | 91.9% | #23of 122 | Gemini 4 Argon96.4% |
| ARC-AGI-2Reasoning & knowledge · Few-shot abstract reasoning on grid puzzles | 22.8% | #44of 75 | GPT-6 Astra95.0% |
| ARC-AGI-1Reasoning & knowledge · Pattern induction from input–output examples | 77.0% | #44of 75 | Gemini 4 Argon98.5% |
| SimpleBenchReasoning & knowledge · Common-sense trick questions about space, time and people | 58.8% | #24of 58 | Claude Fable 581.9% |
| CritPtReasoning & knowledge · Open-ended, research-level physics problems | 20.9% | #20of 111 | GPT-5.6 Sol32.3% |
| Chess PuzzlesReasoning & knowledge · Find the single best move in 100 new puzzles | 22.0% | #55of 83 | GPT-6 Astra76.0% |
| LMCAReasoning & knowledge · Judge the quality of conceptual arguments like experts | 45.8% | #36of 123 | Claude Sonnet 5.568.3% |
| FrontierMathMaths · Expert-written problems, undergrad to early research (tiers 1–3) | 59.2% | #39of 87 | GPT-6.1 Sol93.7% |
| FrontierMath Tier 4Maths · Exceptionally hard research-level problems | 29.3% | #31of 64 | 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 120 | 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.034 / $7.00 per 1M input / output tokens
- Providers
- 100
- Input types
- text
- Reasoning
- Yes
- Tool calling
- Yes
- Open weights
- Yes
- Free tier
- No
Release date and prices from OpenRouter's catalog; providers from OpenRouter and models.dev. Buying directly from a provider can cost a little differently. Speed, latency and uptime are measured on OpenRouter only; 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.