GLM-5.2
z-ai/glm-5.2
- Released
- Jun 16, 2026
- Context window
- 1.05M
- Max output
- 944K
- In / out per 1M
- $0.0341 / $7
- Inputs
- Text
Model guide · June 2026
z-ai/glm-5.2
GLM-5.2 is not available in our chat. The closest models you can try here for free are GLM-5.3 Flash and GLM-5.3.
§ 01Datasheet
| OpenRouter ID | z-ai/glm-5.2 |
|---|---|
| Developer | Z.ai |
| Released | Jun 16, 2026 |
| Context window | 1,048,576 tokens |
| Max output | 943,718 tokens |
| Input price | $0.0341 per 1M tokens |
| Output price | $7 per 1M tokens |
| Inputs | Text |
| Open weights | zai-org/GLM-5.2 |
| Parameters | Not published |
| Licence | MIT |
| Free chat here | Guide only |
Source: OpenRouter model list and the official Hugging Face model cards.
§ 02Overview
GLM-5.2 was listed on OpenRouter on 16 June 2026 with a context window of 1,048,576 tokens and a maximum output of 943,718 tokens. Z.ai calls it a substantial leap in long-horizon capability over GLM-5.1 and says that, for the first time in the family, the capability holds on a "solid 1M-token context" that stably sustains long work.
A million tokens is roughly a large codebase, several long reports or hours of transcripts in one request. The practical benefit is that an agent can keep the whole project in view instead of summarising and forgetting.
Long context is expensive to serve, so GLM-5.2 changes the architecture. Z.ai proposes IndexShare, which reuses the same indexer across every four sparse-attention layers; the model card says this reduces per-token FLOPs by 2.9× at a one-million-token context length.
GLM-5.2 also improves its multi-token prediction (MTP) layer for speculative decoding, increasing the acceptance length by up to 20% according to Z.ai. Higher acceptance means more tokens are confirmed per step, which speeds up generation.
GLM-5.2 adds multiple thinking effort levels so you can balance quality against latency. A quick lookup does not need the same reasoning budget as a tricky refactor. On OpenRouter the model accepts the reasoning and reasoning_effort parameters.
Prices on OpenRouter are unusual: about $0.034 per million input tokens and $7 per million output tokens. Reading huge inputs is cheap, while long answers cost more — worth keeping in mind for agent workloads that produce a lot of output.
§ 03Strengths
Built to stay stable on very long inputs, which matters for project-level coding and research.
IndexShare cuts per-token compute by 2.9× at 1M tokens, according to Z.ai.
Choose a lighter or heavier reasoning budget per request.
Download zai-org/GLM-5.2 and run or fine-tune it under a permissive licence.
§ 04How to try
GLM-5.3 shares GLM-5.2's base model and runs in our chat. Start there to feel the family's long-context behaviour.
Use OpenRouter with the reasoning parameter to pick an effort level.
Serve zai-org/GLM-5.2 from Hugging Face with a framework that supports its architecture.
§ 05Family
Every model page uses the same datasheet, so you can compare them at a glance.
| Model | Released | Context window | In / out per 1M | Free chat here |
|---|---|---|---|---|
| GLM-5 | Feb 11, 2026 | 205K | $1 / $3.20 | — |
| GLM-5-Turbo | Mar 15, 2026 | 203K | $1.20 / $4 | — |
| GLM-5V-Turbo | Apr 1, 2026 | 203K | $1.20 / $4 | — |
| GLM-5.1 | Apr 7, 2026 | 205K | $1.40 / $4.40 | — |
| GLM-5.2 | Jun 16, 2026 | 1.05M | $0.0341 / $7 | — |
| GLM-5.3 | Aug 18, 2026 | 1.05M | $0.079 / $1.40 | In our chat |
| GLM-5.3 Flash | Aug 26, 2026 | 1.05M | $0.0052 / $0.1985 | In our chat |
| GLM-5.3 FlashX | Sep 18, 2026 | 1.05M | $0.37 / $1.25 | — |
| GLM-5.3 Prime | Sep 23, 2026 | 1M | $2.80 / $8.80 | — |
§ 06FAQ
OpenRouter lists 1,048,576 tokens of context, with up to 943,718 output tokens per request.
It is an attention technique proposed by Z.ai in which one indexer is reused across every four sparse-attention layers. Z.ai reports a 2.9× reduction in per-token FLOPs at a 1M context.
Its weights are public on Hugging Face as zai-org/GLM-5.2 under the MIT licence.
GLM-5.3 is built on the same base model and Z.ai says it is much better at complex coding, so it is usually the better choice. GLM-5.2 keeps the permissive MIT licence, while GLM-5.3 uses a custom licence.
§ 07Related
Try it now
No account, no card, no install. Type a question and watch GLM-5.3 Flash answer in seconds — switch to GLM-5.3 for the hardest problems.