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.0066 | $7.9833 | $0.0066 | 0.77s | 92 tok/s | ||
| $0.0070 | $6.8000 | $0.0060 | 0.41s | 104 tok/s | ||
87% off | $1.40$0.1890 | $4.40$0.5940 | $0.26$0.0351 | 1.23s | 57 tok/s | |
| $0.1900 | $8.0000 | $0.1800 | 0.48s | 99 tok/s | ||
| $0.1900 | $8.0000 | $0.1900 | 0.92s | 93 tok/s | ||
80% off | $1.40$0.2800 | $4.40$0.8800 | $0.26$0.0520 | 1.49s | 50 tok/s | |
| $0.75$0.5625 | $2.40$1.8000 | $0.14$0.1050 | 0.93s | 49 tok/s | ||
| $0.6000 | $2.0000 | $0.1500 | 0.86s | 61 tok/s | ||
| $0.6200 | $2.4200 | $0.1400 | 0.59s | 127 tok/s | ||
54% off | $1.40$0.6496 | $4.40$2.0420 | $0.26$0.1206 | 1.85s | 83 tok/s | |
50% off | $1.302$0.6510 | $4.092$2.0460 | $0.26$0.1300 | 1.08s | 72 tok/s | |
| $0.6940 | $2.1360 | $0.2340 | 0.63s | 54 tok/s | ||
| $0.7000 | $2.2000 | $0.1050 | 0.64s | 86 tok/s | ||
33% off | $1.40$0.9380 | $4.40$2.9480 | $0.26$0.1742 | 1.28s | 50 tok/s | |
| $1.1200 | $3.5200 | $0.2240 | 1.07s | 54 tok/s | ||
| $1.4000 | $4.4000 | $0.1400 | 1.00s | 84 tok/s | ||
| $1.4000 | $4.4000 | $0.1400 | 1.88s | 85 tok/s | ||
| $1.4000 | $4.4000 | $0.2600 | 0.64s | 92 tok/s | ||
| $1.4000 | $4.4000 | $0.2600 | 0.34s | 137 tok/s | ||
| $1.4000 | $4.4000 | $0.1400 | 2.85s | 46 tok/s | ||
| $1.4000 | $4.4000 | $0.2600 | 2.01s | 86 tok/s | ||
| $1.4000 | $4.4000 | $0.2600 | 1.80s | 34 tok/s | ||
| $1.4000 | $4.4000 | $0.2600 | 0.87s | 78 tok/s | ||
| $1.4000 | $4.4000 | $0.2600 | 0.46s | 95 tok/s | ||
| $1.4000 | $4.4000 | $0.2600 | 2.16s | 40 tok/s | ||
| $1.5400 | $4.8400 | $0.1540 | 0.71s | 139 tok/s | ||
| $2.1000 | $6.6000 | $0.2100 | 0.37s | 183 tok/s | ||
Fast | $2.1000 | $6.6000 | $0.2100 | 0.38s | 121 tok/s | |
Fast | $2.2500 | $7.8800 | $0.5600 | 0.88s | 79 tok/s | |
Fast | $2.3100 | $7.2600 | $0.4620 | 1.50s | 103 tok/s | |
| $0.9660 | $3.0360 | $0.1932 | 1.12s | 70 tok/s | ||
| $1.4000 | $4.4000 | $0.1400 | 5.98s | 18 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 | 2.01s | 49 tok/s | ||
- Input $0.0066 / Output $7.983392 tok/s99.71% uptime
- Input $0.007 / Output $6.80104 tok/s100.00% uptime
- Input $0.189 / Output $0.59487% off57 tok/s100.00% uptime
- Input $0.19 / Output $8.0099 tok/s100.00% uptime
- Input $0.19 / Output $8.0093 tok/s100.00% uptime
- Input $0.28 / Output $0.8880% off50 tok/s100.00% uptime
Input $0.5625 / Output $1.8025% off49 tok/s99.50% uptime- Input $0.60 / Output $2.0061 tok/s86.15% uptime
- Input $0.62 / Output $2.42127 tok/s99.34% uptime
- Input $0.6496 / Output $2.04254% off83 tok/s99.97% uptime
- Input $0.651 / Output $2.04650% off72 tok/s99.95% uptime
- Input $0.694 / Output $2.13654 tok/s99.81% uptime
- Input $0.70 / Output $2.2086 tok/s99.55% uptime
- Input $0.938 / Output $2.94833% off50 tok/s99.06% uptime
- Input $1.12 / Output $3.5254 tok/s100.00% uptime
Input $1.40 / Output $4.4084 tok/s99.49% uptime- Input $1.40 / Output $4.4085 tok/s99.62% uptime
- Input $1.40 / Output $4.4092 tok/s100.00% uptime
- Input $1.40 / Output $4.40137 tok/s99.76% uptime
- Input $1.40 / Output $4.4046 tok/s98.92% uptime
- Input $1.40 / Output $4.4086 tok/s99.83% uptime
- Input $1.40 / Output $4.4034 tok/s99.15% uptime
- Input $1.40 / Output $4.4078 tok/s98.16% uptime
- Input $1.40 / Output $4.4095 tok/s99.26% uptime
- Input $1.40 / Output $4.4040 tok/s100.00% uptime
Input $1.54 / Output $4.84139 tok/s99.40% uptime- Input $2.10 / Output $6.60183 tok/s99.09% uptimeFast
- Input $2.10 / Output $6.60121 tok/s99.05% uptimeFast
- Input $2.25 / Output $7.8879 tok/s100.00% uptimeFast
- Input $2.31 / Output $7.26103 tok/s94.42% uptimeFast
- Input $0.966 / Output $3.03670 tok/s97.10% uptime
- Input $1.40 / Output $4.4018 tok/s85.90% uptime
- Not used in Standard routing:Why these endpoints are not used
Input $0.45 / Output $1.4449 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.00616 | $6.800 | 83.3% | 15.7% | ||
| $0.00659 | $7.983 | 80.4% | 5.1% | ||
| $0.07992 | $0.615 | 72.6% | 3.3% | ||
| $0.16029 | $1.553 | 84.1% | 14.9% | ||
| $0.18141 | $8.000 | 85.8% | 5.5% | ||
| $0.18998 | $8.000 | 73.0% | 0.8% | ||
| $0.21869 | $2.200 | 80.9% | 0.4% | ||
| $0.22736 | $2.048 | 80.3% | 1.4% | ||
| $0.22766 | $2.114 | 81.9% | 2.0% | ||
| $0.28228 | $2.419 | 70.4% | 20.4% | ||
| $0.29187 | $3.036 | 87.2% | 0.5% | ||
| $0.29291 | $1.954 | 80.9% | 1.9% | ||
| $0.29575 | $1.805 | 59.0% | 1.9% | ||
| $0.34438 | $4.400 | 83.8% | 1.1% | ||
| $0.35598 | $2.000 | 54.2% | 0.3% | ||
| $0.38758 | $3.519 | 81.7% | 0.4% | ||
| $0.41427 | $4.399 | 86.5% | 10.9% | ||
| $0.42911 | $4.399 | 85.2% | 1.7% | ||
| $0.46673 | $4.839 | 77.4% | 1.7% | ||
| $0.49051 | $2.947 | 58.6% | 0.1% | ||
| $0.52267 | $4.400 | 77.0% | 0.6% | ||
| $0.52870 | $4.399 | 69.1% | 0.3% | ||
Fast | $0.53852 | $7.260 | 95.9% | 1.8% | |
| $0.55733 | $4.399 | 73.9% | 0.1% | ||
| $0.59099 | $4.399 | 71.0% | 0.7% | ||
| $0.59449 | $4.399 | 70.7% | 0.6% | ||
| $0.76448 | $4.399 | 50.4% | 1.2% | ||
| $0.84350 | $4.400 | 48.8% | 2.4% | ||
Fast | $0.98540 | $6.600 | 59.0% | 0.6% | |
| $1.01606 | $6.600 | 57.3% | 0.8% | ||
Fast | $1.23174 | $7.879 | 60.2% | 0.1% | |
| $0.82491 | $4.399 | 45.6% | 1.0% | ||
Not used in Standard routing:Why these endpoints are not used | |||||
| $0.26939 | $1.439 | 49.3% | 0.0% | ||
- Effective in $0.00616 / Effective out $6.800Token share15.7%
- Effective in $0.00659 / Effective out $7.983Token share5.1%
- Effective in $0.07992 / Effective out $0.615Token share3.3%
- Effective in $0.16029 / Effective out $1.553Token share14.9%
- Effective in $0.18141 / Effective out $8.000Token share5.5%
- Effective in $0.18998 / Effective out $8.000Token share0.8%
- Effective in $0.21869 / Effective out $2.200Token share0.4%
- Effective in $0.22736 / Effective out $2.048Token share1.4%
- Effective in $0.22766 / Effective out $2.114Token share2.0%
- Effective in $0.28228 / Effective out $2.419Token share20.4%
- Effective in $0.29187 / Effective out $3.036Token share0.5%
- Effective in $0.29291 / Effective out $1.954Token share1.9%
- Effective in $0.29575 / Effective out $1.805Token share1.9%
- Effective in $0.34438 / Effective out $4.400Token share1.1%
- Effective in $0.35598 / Effective out $2.000Token share0.3%
- Effective in $0.38758 / Effective out $3.519Token share0.4%
- Effective in $0.41427 / Effective out $4.399Token share10.9%
- Effective in $0.42911 / Effective out $4.399Token share1.7%
- Effective in $0.46673 / Effective out $4.839Token share1.7%
- Effective in $0.49051 / Effective out $2.947Token share0.1%
- Effective in $0.52267 / Effective out $4.400Token share0.6%
- Effective in $0.52870 / Effective out $4.399Token share0.3%
- Effective in $0.53852 / Effective out $7.260FastToken share1.8%
- Effective in $0.55733 / Effective out $4.399Token share0.1%
- Effective in $0.59099 / Effective out $4.399Token share0.7%
- Effective in $0.59449 / Effective out $4.399Token share0.6%
- Effective in $0.76448 / Effective out $4.399Token share1.2%
- Effective in $0.84350 / Effective out $4.400Token share2.4%
- Effective in $0.98540 / Effective out $6.600FastToken share0.6%
- Effective in $1.01606 / Effective out $6.600FastToken share0.8%
- Effective in $1.23174 / Effective out $7.879FastToken share0.1%
- Effective in $0.82491 / Effective out $4.399Token share1.0%
- Not used in Standard routing:Why these endpoints are not used
- Effective in $0.26939 / Effective out $1.439FlexToken share0.0%
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 (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% |
| 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.1% |
| 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% |
| Design Arena | GLM 5.2 Agents Arena Agenticgamedev Elo | 1158 |
| Design Arena | GLM 5.2 Agents Arena Androidnative Elo | 1169 |
| Design Arena | GLM 5.2 Agents Arena Blender3d Elo | 983 |
| Design Arena | GLM 5.2 Agents Arena Full Stack Elo | 1219 |
| Design Arena | GLM 5.2 Agents Arena Godotgamedev Elo | 1142 |
| Design Arena | GLM 5.2 Agents Arena Htmlslides Elo | 1068 |
| Design Arena | GLM 5.2 Agents Arena Mobile Apps Elo | 1155 |
| Design Arena | GLM 5.2 Agents Arena Pdf Elo | 1243 |
| Design Arena | GLM 5.2 Agents Arena Python-Pptxslides Elo | 1157 |
| Design Arena | GLM 5.2 Agents Arena Spreadsheet Elo | 1081 |
| Design Arena | GLM 5.2 Agents Arena Webapps Elo | 1200 |
| Design Arena | GLM 5.2 Models Arena 3D Elo | 1265 |
| Design Arena | GLM 5.2 Models Arena Asciiart Elo | 1186 |
| Design Arena | GLM 5.2 Models Arena Code Categories Elo | 1276 |
| Design Arena | GLM 5.2 Models Arena Data Visualization Elo | 1283 |
| Design Arena | GLM 5.2 Models Arena Game Development Elo | 1256 |
| Design Arena | GLM 5.2 Models Arena SVG Elo | 1197 |
| Design Arena | GLM 5.2 Models Arena UI Component Elo | 1287 |
| 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.