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.62s | 136 tok/s | ||
| $0.0070 | $6.8000 | $0.0060 | 0.44s | 104 tok/s | ||
87% off | $1.40$0.1890 | $4.40$0.5940 | $0.26$0.0351 | 1.06s | 61 tok/s | |
| $1.4000 | $4.4000 | $0.2600 | 0.34s | 143 tok/s | ||
| $0.1900 | $8.0000 | $0.1800 | 0.47s | 105 tok/s | ||
| $1.5400 | $4.8400 | $0.1540 | 0.74s | 186 tok/s | ||
| $0.6430 | $1.9780 | $0.2170 | 0.56s | 71 tok/s | ||
80% off | $1.40$0.2800 | $4.40$0.8800 | $0.26$0.0520 | 1.25s | 54 tok/s | |
| $0.7000 | $2.2000 | $0.1050 | 0.60s | 101 tok/s | ||
| $0.1900 | $8.0000 | $0.1900 | 0.90s | 94 tok/s | ||
| $0.0066 | $7.9833 | $0.0066 | 1.21s | 82 tok/s | ||
50% off | $1.302$0.6510 | $4.092$2.0460 | $0.26$0.1300 | 1.24s | 66 tok/s | |
| $1.4000 | $4.4000 | $0.2600 | 0.63s | 138 tok/s | ||
| $1.4000 | $4.4000 | $0.1400 | 1.77s | 85 tok/s | ||
| $1.4000 | $4.4000 | $0.2600 | 0.33s | 85 tok/s | ||
| $1.4000 | $4.4000 | $0.1400 | 1.23s | 91 tok/s | ||
| $1.4000 | $4.4000 | $0.2600 | 0.69s | 102 tok/s | ||
| $0.75$0.5625 | $2.40$1.8000 | $0.14$0.1050 | 0.88s | 52 tok/s | ||
| $0.9660 | $3.0360 | $0.1932 | 1.18s | 68 tok/s | ||
| $1.4000 | $4.4000 | $0.2600 | 0.99s | 78 tok/s | ||
| $1.1200 | $3.5200 | $0.2240 | 1.20s | 61 tok/s | ||
Fast | $2.1000 | $6.6000 | $0.2100 | 0.31s | 229 tok/s | |
33% off | $1.40$0.9380 | $4.40$2.9480 | $0.26$0.1742 | 1.40s | 53 tok/s | |
| $1.4000 | $4.4000 | $0.1400 | 0.66s | 82 tok/s | ||
| $1.4000 | $4.4000 | $0.1400 | 1.87s | 45 tok/s | ||
| $1.4000 | $4.4000 | $0.2600 | 2.94s | 59 tok/s | ||
Fast | $2.2500 | $7.8800 | $0.5600 | 0.70s | 99 tok/s | |
Fast | $2.3100 | $7.2600 | $0.4620 | 1.21s | 118 tok/s | |
54% off | $1.40$0.6496 | $4.40$2.0420 | $0.26$0.1206 | 1.98s | 88 tok/s | |
| $2.1000 | $6.6000 | $0.2100 | 0.38s | 137 tok/s | ||
| $1.4000 | $4.4000 | $0.2600 | 2.71s | 46 tok/s | ||
| $0.6000 | $2.0000 | $0.1500 | 43.40s | 58 tok/s | ||
Not used in Standard routing:Why these endpoints are not used | ||||||
| $0.60$0.4500 | $1.92$1.4400 | $0.112$0.0840 | 1.99s | 59 tok/s | ||
- Input $0.62 / Output $2.42136 tok/s99.89% uptime
- Input $0.007 / Output $6.80104 tok/s100.00% uptime
- Input $0.189 / Output $0.59487% off61 tok/s99.93% uptime
- Input $1.40 / Output $4.40143 tok/s99.89% uptime
- Input $0.19 / Output $8.00105 tok/s100.00% uptime
Input $1.54 / Output $4.84186 tok/s99.59% uptime- Input $0.643 / Output $1.97871 tok/s99.82% uptime
- Input $0.28 / Output $0.8880% off54 tok/s100.00% uptime
- Input $0.70 / Output $2.20101 tok/s99.68% uptime
- Input $0.19 / Output $8.0094 tok/s100.00% uptime
- Input $0.0066 / Output $7.983382 tok/s99.92% uptime
- Input $0.651 / Output $2.04650% off66 tok/s99.97% uptime
- Input $1.40 / Output $4.40138 tok/s98.73% uptime
- Input $1.40 / Output $4.4085 tok/s100.00% uptime
- Input $1.40 / Output $4.4085 tok/s99.64% uptime
Input $1.40 / Output $4.4091 tok/s99.66% uptime- Input $1.40 / Output $4.40102 tok/s100.00% uptime
Input $0.5625 / Output $1.8025% off52 tok/s99.49% uptime- Input $0.966 / Output $3.03668 tok/s98.26% uptime
- Input $1.40 / Output $4.4078 tok/s100.00% uptime
- Input $1.12 / Output $3.5261 tok/s100.00% uptime
- Input $2.10 / Output $6.60229 tok/s99.80% uptimeFast
- Input $0.938 / Output $2.94833% off53 tok/s99.47% uptime
- Input $1.40 / Output $4.4082 tok/s90.30% uptime
- Input $1.40 / Output $4.4045 tok/s100.00% uptime
- Input $1.40 / Output $4.4059 tok/s97.72% uptime
- Input $2.25 / Output $7.8899 tok/s100.00% uptimeFast
- Input $2.31 / Output $7.26118 tok/s100.00% uptimeFast
- Input $0.6496 / Output $2.04254% off88 tok/s99.97% uptime
- Input $2.10 / Output $6.60137 tok/s99.89% uptimeFast
- Input $1.40 / Output $4.4046 tok/s100.00% uptime
- Input $0.60 / Output $2.0058 tok/s77.53% uptime
- Not used in Standard routing:Why these endpoints are not used
Input $0.45 / Output $1.4459 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.00613 | $6.800 | 86.4% | 20.6% | ||
| $0.00659 | $7.983 | 81.7% | 2.8% | ||
| $0.07716 | $0.879 | 89.0% | 6.4% | ||
| $0.08284 | $0.593 | 69.0% | 9.5% | ||
| $0.18096 | $8.000 | 90.3% | 7.4% | ||
| $0.18997 | $8.000 | 70.8% | 0.4% | ||
| $0.21441 | $2.200 | 81.6% | 0.5% | ||
| $0.22179 | $2.048 | 82.4% | 1.5% | ||
| $0.26316 | $2.420 | 74.3% | 21.3% | ||
| $0.27448 | $2.043 | 71.2% | 3.5% | ||
| $0.29809 | $1.809 | 58.0% | 2.1% | ||
| $0.30786 | $3.036 | 85.2% | 0.2% | ||
| $0.33735 | $2.947 | 78.6% | 0.0% | ||
| $0.33763 | $1.922 | 69.3% | 0.6% | ||
| $0.39053 | $4.399 | 80.1% | 0.3% | ||
| $0.40662 | $4.840 | 81.8% | 1.0% | ||
| $0.43139 | $4.399 | 85.0% | 4.9% | ||
| $0.45730 | $4.399 | 82.7% | 2.0% | ||
| $0.48603 | $4.400 | 72.5% | 1.8% | ||
Fast | $0.51483 | $7.260 | 97.1% | 4.0% | |
| $0.51839 | $4.399 | 77.3% | 0.7% | ||
| $0.55988 | $3.519 | 62.5% | 0.1% | ||
| $0.57288 | $4.400 | 72.6% | 2.2% | ||
Fast | $0.60614 | $6.600 | 79.0% | 0.4% | |
| $0.61751 | $4.399 | 62.1% | 0.8% | ||
| $0.63394 | $4.400 | 67.2% | 0.4% | ||
| $0.75563 | $6.600 | 71.1% | 0.5% | ||
| $0.82874 | $4.399 | 50.1% | 0.0% | ||
| $0.83053 | $4.400 | 50.0% | 1.9% | ||
| $0.84625 | $4.399 | 43.9% | 1.7% | ||
Fast | $1.40814 | $7.879 | 49.8% | 0.1% | |
| $0.51136 | $2.000 | 19.7% | 0.1% | ||
Not used in Standard routing:Why these endpoints are not used | |||||
| $0.26083 | $1.439 | 51.7% | 0.1% | ||
- Effective in $0.00613 / Effective out $6.800Token share20.6%
- Effective in $0.00659 / Effective out $7.983Token share2.8%
- Effective in $0.07716 / Effective out $0.879Token share6.4%
- Effective in $0.08284 / Effective out $0.593Token share9.5%
- Effective in $0.18096 / Effective out $8.000Token share7.4%
- Effective in $0.18997 / Effective out $8.000Token share0.4%
- Effective in $0.21441 / Effective out $2.200Token share0.5%
- Effective in $0.22179 / Effective out $2.048Token share1.5%
- Effective in $0.26316 / Effective out $2.420Token share21.3%
- Effective in $0.27448 / Effective out $2.043Token share3.5%
- Effective in $0.29809 / Effective out $1.809Token share2.1%
- Effective in $0.30786 / Effective out $3.036Token share0.2%
- Effective in $0.33735 / Effective out $2.947Token share0.0%
- Effective in $0.33763 / Effective out $1.922Token share0.6%
- Effective in $0.39053 / Effective out $4.399Token share0.3%
- Effective in $0.40662 / Effective out $4.840Token share1.0%
- Effective in $0.43139 / Effective out $4.399Token share4.9%
- Effective in $0.45730 / Effective out $4.399Token share2.0%
- Effective in $0.48603 / Effective out $4.400Token share1.8%
- Effective in $0.51483 / Effective out $7.260FastToken share4.0%
- Effective in $0.51839 / Effective out $4.399Token share0.7%
- Effective in $0.55988 / Effective out $3.519Token share0.1%
- Effective in $0.57288 / Effective out $4.400Token share2.2%
- Effective in $0.60614 / Effective out $6.600FastToken share0.4%
- Effective in $0.61751 / Effective out $4.399Token share0.8%
- Effective in $0.63394 / Effective out $4.400Token share0.4%
- Effective in $0.75563 / Effective out $6.600FastToken share0.5%
- Effective in $0.82874 / Effective out $4.399Token share0.0%
- Effective in $0.83053 / Effective out $4.400Token share1.9%
- Effective in $0.84625 / Effective out $4.399Token share1.7%
- Effective in $1.40814 / Effective out $7.879FastToken share0.1%
- Effective in $0.51136 / Effective out $2.000Token share0.1%
- Not used in Standard routing:Why these endpoints are not used
- Effective in $0.26083 / Effective out $1.439FlexToken share0.1%
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 | 1213 |
| Design Arena | GLM 5.2 Agents Arena Godotgamedev Elo | 1142 |
| Design Arena | GLM 5.2 Agents Arena Htmlslides Elo | 1071 |
| Design Arena | GLM 5.2 Agents Arena Mobile Apps Elo | 1153 |
| Design Arena | GLM 5.2 Agents Arena Pdf Elo | 1242 |
| Design Arena | GLM 5.2 Agents Arena Python-Pptxslides Elo | 1161 |
| Design Arena | GLM 5.2 Agents Arena Spreadsheet Elo | 1011 |
| Design Arena | GLM 5.2 Agents Arena Webapps Elo | 1200 |
| Design Arena | GLM 5.2 Models Arena 3D Elo | 1266 |
| Design Arena | GLM 5.2 Models Arena Asciiart Elo | 1185 |
| Design Arena | GLM 5.2 Models Arena Code Categories Elo | 1277 |
| Design Arena | GLM 5.2 Models Arena Data Visualization Elo | 1282 |
| Design Arena | GLM 5.2 Models Arena Game Development Elo | 1256 |
| Design Arena | GLM 5.2 Models Arena SVG Elo | 1195 |
| 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, Baidu Qianfan (fp8), Cloudflare, StreamLake, DeepInfra, Ambient, CoreWeave 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.