Z.ai: GLM 5.2
z-ai/glm-5.2
Model weightsGLM 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, and complex multi-step automation.
Reasoning efforts high and xhigh are supported; xhigh maps to max reasoning. It is particularly strong at coding and tool use across long-running tasks, able to maintain engineering context and follow standards consistently through a full development workflow, from requirements to multi-platform deployment, in a single task.
Providers
Different companies host the same model. OpenRouter routes your request to one of them based on the routing mode you pick: Balanced (price + speed), Nitro (fastest), or Floor (cheapest).
| $0.6200 | $2.4200 | $0.1400 | 0.47s | 190 tok/s | ||
| $0.0070 | $6.8000 | $0.0060 | 0.41s | 137 tok/s | ||
| $1.4000 | $4.4000 | $0.2600 | 0.33s | 211 tok/s | ||
| $0.1900 | $8.0000 | $0.1800 | 0.42s | 137 tok/s | ||
| $0.75$0.5625 | $2.40$1.8000 | $0.14$0.1050 | 1.13s | 97 tok/s | ||
| $0.6430 | $1.9780 | $0.2170 | 0.50s | 83 tok/s | ||
| $0.7000 | $2.2000 | $0.1050 | 0.59s | 99 tok/s | ||
| $0.6000 | $2.0000 | $0.1500 | 0.97s | 71 tok/s | ||
| $0.0066 | $7.9833 | $0.0066 | 0.93s | 76 tok/s | ||
| $2.1000 | $6.6000 | $0.2100 | 0.50s | 192 tok/s | ||
| $0.1900 | $8.0000 | $0.1900 | 0.92s | 88 tok/s | ||
| $1.4000 | $4.4000 | $0.2600 | 0.33s | 120 tok/s | ||
| $1.125$0.8438 | $3.60$2.7000 | $0.21$0.1575 | 0.99s | 86 tok/s | ||
50% off | $1.302$0.6510 | $4.092$2.0460 | $0.26$0.1300 | 1.22s | 64 tok/s | |
| $1.5400 | $4.8400 | $0.1540 | 0.99s | 109 tok/s | ||
Fast | $2.1000 | $6.6000 | $0.2100 | 0.34s | 189 tok/s | |
| $1.4000 | $4.4000 | $0.1400 | 1.16s | 108 tok/s | ||
| $1.4000 | $4.4000 | $0.2600 | 0.38s | 70 tok/s | ||
| $1.4000 | $4.4000 | $0.1400 | 2.54s | 67 tok/s | ||
| $1.4000 | $4.4000 | $0.1400 | 0.64s | 87 tok/s | ||
33% off | $1.40$0.9380 | $4.40$2.9480 | $0.26$0.1742 | 1.27s | 43 tok/s | |
| $1.1200 | $3.5200 | $0.2240 | 1.33s | 49 tok/s | ||
56% off | $1.40$0.6131 | $4.40$1.9270 | $0.26$0.1139 | 1.86s | 37 tok/s | |
| $1.4000 | $4.4000 | $0.2600 | 1.78s | 92 tok/s | ||
| $1.4000 | $4.4000 | $0.2600 | 1.95s | 39 tok/s | ||
| $1.4000 | $4.4000 | $0.2600 | 1.75s | 56 tok/s | ||
54% off | $1.40$0.6496 | $4.40$2.0420 | $0.26$0.1206 | 2.77s | 36 tok/s | |
| $0.9660 | $3.0360 | $0.1932 | 1.18s | 72 tok/s | ||
| $1.4000 | $4.4000 | $0.2600 | 0.66s | 129 tok/s | ||
| $1.4000 | $4.4000 | $0.1400 | 2.45s | 60 tok/s | ||
Fast | $2.3100 | $7.2600 | $0.4620 | 1.19s | 91 tok/s | |
Fast | $2.2500 | $7.8800 | $0.5600 | 1.26s | 58 tok/s | |
| $1.4000 | $4.4000 | $0.2600 | -- | -- | ||
Not used in Standard routing:Why these endpoints are not used | ||||||
| $0.60$0.4500 | $1.92$1.4400 | $0.112$0.0840 | 2.25s | 79 tok/s | ||
- Input $0.62 / Output $2.42190 tok/s96.82% uptime
- Input $0.007 / Output $6.80137 tok/s100.00% uptime
- Input $1.40 / Output $4.40211 tok/s100.00% uptime
- Input $0.19 / Output $8.00137 tok/s100.00% uptime
Input $0.5625 / Output $1.8025% off97 tok/s99.32% uptime- Input $0.643 / Output $1.97883 tok/s100.00% uptime
- Input $0.70 / Output $2.2099 tok/s99.75% uptime
- Input $0.60 / Output $2.0071 tok/s63.73% uptime
- Input $0.0066 / Output $7.983376 tok/s99.85% uptime
- Input $2.10 / Output $6.60192 tok/s100.00% uptimeFast
- Input $0.19 / Output $8.0088 tok/s100.00% uptime
- Input $1.40 / Output $4.40120 tok/s100.00% uptime
Input $0.8438 / Output $2.7086 tok/s98.84% uptimePriority+11 more label- Input $0.651 / Output $2.04650% off64 tok/s100.00% uptime
Input $1.54 / Output $4.84109 tok/s99.94% uptime- Input $2.10 / Output $6.60189 tok/s100.00% uptimeFast
Input $1.40 / Output $4.40108 tok/s100.00% uptime- Input $1.40 / Output $4.4070 tok/s99.87% uptime
- Input $1.40 / Output $4.4067 tok/s100.00% uptime
- Input $1.40 / Output $4.4087 tok/s99.59% uptime
- Input $0.938 / Output $2.94833% off43 tok/s100.00% uptime
- Input $1.12 / Output $3.5249 tok/s100.00% uptime
- Input $0.6131 / Output $1.92756% off37 tok/s100.00% uptime
- Input $1.40 / Output $4.4092 tok/s99.91% uptime
- Input $1.40 / Output $4.4039 tok/s100.00% uptime
- Input $1.40 / Output $4.4056 tok/s100.00% uptime
- Input $0.6496 / Output $2.04254% off36 tok/s100.00% uptime
- Input $0.966 / Output $3.03672 tok/s97.89% uptime
- Input $1.40 / Output $4.40129 tok/s98.88% uptime
- Input $1.40 / Output $4.4060 tok/s100.00% uptime
- Input $2.31 / Output $7.2691 tok/s97.43% uptimeFast
- Input $2.25 / Output $7.8858 tok/s100.00% uptimeFast
- Input $1.40 / Output $4.40-- tok/s99.96% uptime
- Not used in Standard routing:Why these endpoints are not used
Input $0.45 / Output $1.4479 tok/s100.00% uptimeFlex+11 more label
Pricing
The average price customers actually pay for this model, next to the prices providers post. Caching and discounts mean the price actually paid is often well below the listed one.
Weighted average
GLM 5.2 — Price history
| $0.00611 | $6.80 | 88.5% | 32.3% | ||
| $0.00659 | $7.98 | 82.7% | 2.7% | ||
| $0.18099 | $8.00 | 90.0% | 6.8% | ||
| $0.18998 | $8.00 | 66.4% | 0.4% | ||
| $0.19239 | $1.57 | 75.8% | 15.0% | ||
| $0.22617 | $1.80 | 73.6% | 3.0% | ||
| $0.23748 | $2.05 | 79.5% | 1.6% | ||
| $0.25751 | $3.04 | 91.7% | 0.4% | ||
| $0.26089 | $2.42 | 74.8% | 16.9% | ||
| $0.28345 | $4.40 | 88.6% | 1.8% | ||
| $0.32110 | $4.40 | 85.6% | 0.4% | ||
| $0.32237 | $2.05 | 62.3% | 0.6% | ||
| $0.34179 | $1.98 | 70.7% | 0.9% | ||
| $0.34462 | $2.20 | 59.7% | 0.2% | ||
| $0.36982 | $2.00 | 51.1% | 0.1% | ||
| $0.40078 | $4.40 | 87.6% | 1.6% | ||
| $0.40662 | $4.84 | 81.8% | 1.1% | ||
| $0.41161 | $4.40 | 86.7% | 1.1% | ||
| $0.44182 | $4.40 | 84.0% | 5.6% | ||
| $0.52000 | $2.70 | 47.2% | 0.4% | ||
| $0.53058 | $3.52 | 65.8% | 0.1% | ||
| $0.53259 | $4.40 | 76.1% | 0.0% | ||
| $0.59277 | $4.40 | 70.8% | 0.4% | ||
| $0.59342 | $2.95 | 45.1% | 0.0% | ||
Fast | $0.66392 | $7.26 | 89.1% | 0.6% | |
| $0.71127 | $4.40 | 60.4% | 0.2% | ||
| $0.73696 | $6.60 | 72.1% | 0.4% | ||
Fast | $0.79681 | $6.60 | 68.9% | 0.8% | |
| $0.80168 | $4.40 | 47.5% | 1.9% | ||
| $0.81648 | $4.40 | 51.2% | 1.2% | ||
| $0.83524 | $4.40 | 44.8% | 0.4% | ||
Fast | $1.09538 | $7.88 | 68.3% | 0.3% | |
| — | — | — | — | ||
Not used in Standard routing:Why these endpoints are not used | |||||
| $0.19475 | $1.44 | 69.7% | 0.6% | ||
- Effective in $0.00611 / Effective out $6.80Token share32.3%
- Effective in $0.00659 / Effective out $7.98Token share2.7%
- Effective in $0.18099 / Effective out $8.00Token share6.8%
- Effective in $0.18998 / Effective out $8.00Token share0.4%
- Effective in $0.19239 / Effective out $1.57Token share15.0%
- Effective in $0.22617 / Effective out $1.80Token share3.0%
- Effective in $0.23748 / Effective out $2.05Token share1.6%
- Effective in $0.25751 / Effective out $3.04Token share0.4%
- Effective in $0.26089 / Effective out $2.42Token share16.9%
- Effective in $0.28345 / Effective out $4.40Token share1.8%
- Effective in $0.32110 / Effective out $4.40Token share0.4%
- Effective in $0.32237 / Effective out $2.05Token share0.6%
- Effective in $0.34179 / Effective out $1.98Token share0.9%
- Effective in $0.34462 / Effective out $2.20Token share0.2%
- Effective in $0.36982 / Effective out $2.00Token share0.1%
- Effective in $0.40078 / Effective out $4.40Token share1.6%
- Effective in $0.40662 / Effective out $4.84Token share1.1%
- Effective in $0.41161 / Effective out $4.40Token share1.1%
- Effective in $0.44182 / Effective out $4.40Token share5.6%
- Effective in $0.52000 / Effective out $2.70PriorityToken share0.4%
- Effective in $0.53058 / Effective out $3.52Token share0.1%
- Effective in $0.53259 / Effective out $4.40Token share0.0%
- Effective in $0.59277 / Effective out $4.40Token share0.4%
- Effective in $0.59342 / Effective out $2.95Token share0.0%
- Effective in $0.66392 / Effective out $7.26FastToken share0.6%
- Effective in $0.71127 / Effective out $4.40Token share0.2%
- Effective in $0.73696 / Effective out $6.60FastToken share0.4%
- Effective in $0.79681 / Effective out $6.60FastToken share0.8%
- Effective in $0.80168 / Effective out $4.40Token share1.9%
- Effective in $0.81648 / Effective out $4.40Token share1.2%
- Effective in $0.83524 / Effective out $4.40Token share0.4%
- Effective in $1.09538 / Effective out $7.88FastToken share0.3%
- Effective in — / Effective out —Token share —
- Not used in Standard routing:Why these endpoints are not used
- Effective in $0.19475 / Effective out $1.44FlexToken share0.6%
Performance
Throughput is how fast the model writes (tokens per second — higher is better). Latency is total round-trip time (lower is better). TTFT is time-to-first-token — how long before you see anything appear (lower is better).
P50, best across providers
P50, best provider
Uptime
Uptime is the percentage of the past 3 days that at least one provider was responding to requests. Availability is the percentage of time that inference was successfully served. OpenRouter continuously monitors and uses the next-best provider when one returns an error.
Availability over the last 3 days
Last 72 hoursAvailability over the last 24 hours
When an error occurs in an upstream provider, we can recover by routing to another healthy provider, if your request filters allow it. You can access per-provider uptime data programmatically through the Endpoints API. Learn more about our load balancing and provider routing options.
Benchmarks
Scores on standardized evaluations and this model’s own outputs on shared benchmark prompts. Higher percentages are better — and each rank shows where this model lands among the models evaluated on that source.
| Source | Benchmark | Score |
|---|---|---|
| Artificial Analysis | GLM-5.2 (Max) Coding Index | 68.8 |
| Artificial Analysis | GLM-5.2 (Max) Agentic Index | 38.4 |
| Artificial Analysis | GLM-5.2 (Max) GPQA Diamond | 89.5% |
| Artificial Analysis | GLM-5.2 (Max) HLE | 41.1% |
| Artificial Analysis | GLM-5.2 (Max) IFBench | 73.3% |
| Artificial Analysis | GLM-5.2 (Max) τ²-Bench Telecom | 99.1% |
| Artificial Analysis | GLM-5.2 (Max) AA-LCR | 78.3% |
| Artificial Analysis | GLM-5.2 (Max) τ-Bench Banking | 34.6% |
| Artificial Analysis | GLM-5.2 (Max) GDPval-AA | 44.0% |
| Artificial Analysis | GLM-5.2 (Max) CritPt | 20.9% |
| Artificial Analysis | GLM-5.2 (Max) SciCode | 51.2% |
| Artificial Analysis | GLM-5.2 (Max) Terminal-Bench Hard | 50.8% |
| Artificial Analysis | GLM-5.2 (Max) Terminal-Bench 4.0 | 1.0% |
| Artificial Analysis | GLM-5.2 (Max) Terminal-Bench 2.1 | 77.9% |
| Artificial Analysis | GLM-5.2 (Max) AA-Omniscience Accuracy | 21.1% |
| Artificial Analysis | GLM-5.2 (Max) AA-Omniscience Non-Hallucination Rate | 74.1% |
| Artificial Analysis | GLM-5.2 (Non-reasoning) Coding Index | 46.5 |
| Artificial Analysis | GLM-5.2 (Non-reasoning) GPQA Diamond | 68.6% |
| Artificial Analysis | GLM-5.2 (Non-reasoning) HLE | 9.8% |
| Artificial Analysis | GLM-5.2 (Non-reasoning) AA-LCR | 42.3% |
| Artificial Analysis | GLM-5.2 (Non-reasoning) τ-Bench Banking | 16.7% |
| Artificial Analysis | GLM-5.2 (Non-reasoning) GDPval-AA | 37.6% |
| Artificial Analysis | GLM-5.2 (Non-reasoning) CritPt | 3.1% |
| Artificial Analysis | GLM-5.2 (Non-reasoning) Terminal-Bench 2.1 | 51.7% |
| Design Arena | GLM 5.2 Agents Arena Agenticgamedev Elo | 1153 |
| Design Arena | GLM 5.2 Agents Arena Androidnative Elo | 1170 |
| Design Arena | GLM 5.2 Agents Arena Blender3d Elo | 983 |
| Design Arena | GLM 5.2 Agents Arena Full Stack Elo | 1215 |
| Design Arena | GLM 5.2 Agents Arena Godotgamedev Elo | 1142 |
| Design Arena | GLM 5.2 Agents Arena Htmlslides Elo | 1072 |
| Design Arena | GLM 5.2 Agents Arena Mobile Apps Elo | 1154 |
| Design Arena | GLM 5.2 Agents Arena Pdf Elo | 1248 |
| Design Arena | GLM 5.2 Agents Arena Python-Pptxslides Elo | 1161 |
| Design Arena | GLM 5.2 Agents Arena Spreadsheet Elo | 1024 |
| Design Arena | GLM 5.2 Agents Arena Webapps Elo | 1201 |
| Design Arena | GLM 5.2 Models Arena 3D Elo | 1266 |
| Design Arena | GLM 5.2 Models Arena Asciiart Elo | 1177 |
| Design Arena | GLM 5.2 Models Arena Code Categories Elo | 1276 |
| Design Arena | GLM 5.2 Models Arena Data Visualization Elo | 1281 |
| Design Arena | GLM 5.2 Models Arena Game Development Elo | 1256 |
| Design Arena | GLM 5.2 Models Arena SVG Elo | 1194 |
| Design Arena | GLM 5.2 Models Arena UI Component Elo | 1286 |
| Design Arena | GLM 5.2 Models Arena Website Elo | 1277 |
| Vals AI | GLM 5.2 Code Migration | 37.9% |
| Vals AI | GLM 5.2 CorpFin v2 | 66.1% |
| Vals AI | GLM 5.2 EMB | 61.5% |
| Vals AI | GLM 5.2 Finance Agent (v2) | 49.7% |
| Vals AI | GLM 5.2 GPQA Diamond | 85.6% |
| Vals AI | GLM 5.2 Harvey's Legal Agent Benchmark v1 | 7.1% |
| Vals AI | GLM 5.2 LiveCodeBench | 69.5% |
| Vals AI | GLM 5.2 LegalBench | 84.1% |
| Vals AI | GLM 5.2 Legal Research Bench | 31.3% |
| Vals AI | GLM 5.2 MedCode | 40.8% |
| Vals AI | GLM 5.2 MedScribe | 83.5% |
| Vals AI | GLM 5.2 MMLU Pro | 86.7% |
| Vals AI | GLM 5.2 ProgramBench | 0.5% |
| Vals AI | GLM 5.2 ProofBench v1 | 35.0% |
| Vals AI | GLM 5.2 SkillsBench | 45.1% |
| Vals AI | GLM 5.2 SRE Bench | 0.0% |
| Vals AI | GLM 5.2 SWE-bench | 82.8% |
| Vals AI | GLM 5.2 TaxEval v2 | 73.3% |
| Vals AI | GLM 5.2 Terminal-Bench 2.1 | 67.8% |
| Vals AI | GLM 5.2 Vals Index | 53.1% |
| Vals AI | GLM 5.2 Vibe Code Bench v1.1 | 64.0% |
Apps
Public apps that send the most traffic to this model. Good signal for what real production workloads look like — and a hint at which use cases this model is best suited for.
Activity
Token volume and request traffic to this model over time.
API
Drop-in code to call this model. OpenRouter's API is OpenAI-compatible — most SDKs work by just swapping the base URL. The only thing that changes between models is the model slug below.
Available through EU in-region routing
Z.ai: GLM 5.2 is available through EU in-region routing. Requests sent to eu.openrouter.ai are decrypted in the EU and routed only to shared provider endpoints in Europe (the EU/EEA, the UK, and Switzerland).
- Providers in Europe
- Inceptron, Mistral
- Prices in Europe
- Inceptron: $1.40/M tokens input, $4.40/M tokens output
- Mistral: $1.54/M tokens input, $4.84/M tokens output
- Base URL
https://eu.openrouter.ai/api/v1- Plan
- Requires Business or Enterprise. Self-serve on Business: no contract, no monthly minimum. OpenRouter Business for EU in-region routing
Fails closed: if no shared provider endpoint in Europe is available, the request errors instead of leaving the region. Requests served by your own BYOK key go to your deployment’s region, which you control. In-region routing docs
Frequently asked questions
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, and complex multi-step automation. Reasoning efforts high and xhigh are supported; xhigh maps to max reasoning.
GLM 5.2 costs $0.0066/M input tokens and $7.983/M output tokens, with separate rates for Cache Read at $0.0066/M tokens.
GLM 5.2 has a 1,048,576 token context window. It supports up to 131,072 completion tokens.
Yes. GLM 5.2 accepts tools for function calling. It also supports structured outputs via a JSON schema in response_format.
GLM 5.2 is served by 24 providers on OpenRouter: Relace, Wafer, Cloudflare, DeepInfra, Ambient, StreamLake, CoreWeave, Morph and 16 more. Requests are routed to the best available provider, with automatic failover to the others, and you can pin or exclude providers with provider routing.
GLM 5.2 was released on June 16, 2026.