Last refreshed 2026-06-16. Next refresh: weekly.
Why use GLM-5.2 on OpenRouter?
OpenRouter offers GLM-5.2 with pay-as-you-go pricing at $1.40/1M input tokens. OpenRouter is a multi-provider LLM aggregator offering unified API access to 300+ models from all major labs and emerging providers, with automatic failover for reliability.
Setup recipe
Docs fallbackUse the provider REST API or SDKCreate a provider API keymodel: z-ai/glm-5.2z-ai/glm-5.2Request example
z-ai/glm-5.2.Gotchas
- Use provider model ID "z-ai/glm-5.2", not the LLMReference slug "glm-5.2".
Pricing
| Type | Price (per 1M) |
|---|---|
| Input tokens | $1.40 |
| Output tokens | $4.40 |
Capabilities
About GLM-5.2
GLM-5.2 is Z.ai's coding-first successor to GLM-5.1 in the GLM-5 family, released June 13 2026. 753B parameters (40B active) in IndexShare MoE architecture; the IndexShare innovation reuses the same attention indexer across every four sparse layers, cutting per-token FLOPs by 2.9x at 1M context length. Trained on 28.5T tokens. Supports a 1M-token context window via the glm-5.2[1m] model ID, with 131,072-token maximum output and High/Max thinking-effort levels designed for extended agentic coding sessions. MIT license; open weights available on Hugging Face (zai-org/GLM-5.2 and zai-org/GLM-5.2-FP8). Self-reported HF card benchmarks: SWE-bench Pro 62.1, Terminal-Bench 2.1 82.7, MCP-Atlas 76.8, Tool-Decathlon 48.2, GPQA Diamond 91.2, AIME 2026 99.2, HLE 40.5. Available to GLM Coding Plan subscribers (Lite/Pro/Max/Team) directly, and via OpenRouter token API ($1.40/$4.40 per 1M tokens).
FAQ
What does GLM-5.2 cost on OpenRouter?
On OpenRouter, GLM-5.2 costs $1.40 per 1M input tokens and $4.40 per 1M output tokens.
What is the context window for GLM-5.2 on OpenRouter?
GLM-5.2 supports a 1m token context window on OpenRouter.
What API model ID do I use for GLM-5.2 on OpenRouter?
Use the model ID z-ai/glm-5.2 when calling OpenRouter's API.
Who created GLM-5.2?
GLM-5.2 was created by Zhipu AI as part of the GLM-5 model family.
Is GLM-5.2 open source?
GLM-5.2 is open source under MIT according to the seed data.