GLM-5.2
GLM-5.2, Z.ai’s June 2026 flagship, built for long-horizon tasks
Price per 1M tokens
- Input
- $0.15
- Output
- $0.24
- Cached input
- $0.028
Limits and features
- Context window
- 1M tokens
- Max output
- 66K tokens
- Image input
- No
- Reasoning
- Yes
Live, from our checks
- Availability now
- 100.0 %
- 30-day uptime
- 99.58 %
- First token
- —
- Output speed
- —
What it is
GLM-5.2 is the model Z.ai (formerly Zhipu AI) released as its flagship in June 2026, with open weights on Hugging Face under the MIT license. Its model card introduces it as Z.ai’s flagship for long-horizon tasks and a substantial leap in that area over GLM-5.1. Z.ai’s documentation adds that subscribers of its coding plan could use it before the official release, and press coverage at launch described it as designed for long-running software engineering across large codebases. GLM-5.3 has since succeeded it as Z.ai’s flagship.
What to know before calling it
- Several thinking effort levels, which Z.ai says balance performance against latency. Today our model list marks it as a reasoning model.
- Text in, text out, per Z.ai’s documentation; our model list shows no image input for it today.
- Function calling, structured JSON output and streamed responses, per Z.ai’s docs.
- A long context window that Z.ai says holds steady through long-horizon work.
- The uses Z.ai describes: taking over a whole codebase, long refactors run end to end, a debugging loop on mobile devices, and turning a paper and its data into a runnable project.
GLM-5.2 or GLM-5.3
GLM-5.3 keeps this model’s base and adds more post-training; by Z.ai’s own measures it scores higher in coding, terminal tasks and security work. GLM-5.3 Flash, on a new base, is the model of that line Z.ai pitches on low cost. GLM-5.2 can still suit code and prompts already tuned to it; compare the prices and speed in the table below before choosing.
The versions built to refuse less, GLM-5.3 Uncensored and GLM-5.3 Abliterated, start from GLM-5.3, not from this model.
Access and payment
Use glm-5.2 as the model id with an OpenAI or Anthropic SDK pointed at our base URL (docs); credit is bought in crypto, with no KYC (Pricing).
Refusals
GLM-5.2 applies Z.ai’s usage policies and refuses what they rule out; we serve it unchanged. Readers who need fewer refusals can start with which uncensored model to pick.
Call it
The same first request in the three formats the API speaks. Put your key in $UNALIGNED_KEY.
curl https://api.unaligned.pw/v1/chat \
-H "Authorization: Bearer $UNALIGNED_KEY" \
-d '{"model": "glm-5.2", "prompt": "Hello"}'Compare
Models close to this one, at live prices. USD per 1M tokens.
| Model | Context | Input | Output | Cached | Output speed |
|---|---|---|---|---|---|
| GLM-5.2 This model glm-5.2 | 1M | $0.15 | $0.24 | $0.028 | — |
| GLM-5.3 Uncensored Uncensored glm-5.3-uncensored | 1M | $0.15 | $0.24 | $0.017 | 103 tokens/s |
| GLM-5.3 Flash Uncensored Uncensored glm-5.3-flash-uncensored | 1M | $0.088 | $0.14 | $0.005 | 67 tokens/s |
| GLM-5.3 Abliterated Uncensored glm-5.3-abliterated | 1M | $2.00 | $3.20 | $0.413 | 200 tokens/s |
| GLM-5.3 glm-5.3 | 1M | $0.125 | $0.20 | $0.017 | 98 tokens/s |
| GLM-5.3 Flash glm-5.3-flash | 1M | $0.063 | $0.10 | $0.004 | 112 tokens/s |
Questions
Should I use GLM-5.2 or GLM-5.3?
Z.ai made GLM-5.3 from the same base model with more post-training and reports it ahead of GLM-5.2 on its coding, terminal and security benchmarks. Keep GLM-5.2 if your prompts are tuned to it, and compare prices in the table on this page.
Are GLM-5.2’s weights open?
Its weights are on Hugging Face under the MIT license, according to Z.ai’s model card. Here you call it through our API instead of hosting it.