Last refreshed 2026-11-18. Next refresh: weekly.
Why use GLM-5.2 on FlexAI?
FlexAI offers GLM-5.2 with pay-as-you-go pricing at $0.60/1M input tokens. FlexAI operates Token Factory, an OpenAI-compatible inference API for open models, plus dedicated GPU endpoints, fine-tuning, training, and private-cloud AI Factory deployments.
Compare GLM-5.2 across 3 providers to find the best fit for your use caseSetup recipe
Docs fallbackUse the provider REST API or SDKCreate a provider API keymodel: GLM-5.2GLM-5.2Request example
GLM-5.2.Gotchas
- Use provider model ID "GLM-5.2", not the LLMReference slug "glm-5.2".
Compare GLM-5.2 Across Providers
| Provider | Input (per 1M) | Output (per 1M) |
|---|---|---|
| OpenRouter | $1.40 | $4.40 |
| Z.ai | $1.40 | $4.40 |
| FlexAI | $0.60 | $2.00 |
Pricing
| Type | Price (per 1M) |
|---|---|
| Input tokens | $0.60 |
| Output tokens | $2.00 |
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).