Currently listed through these providers:
Model details
GLM-5.2
GLM-5.2 is positioned as Z.ai's flagship model for long-horizon tasks, marking a substantial step up from its predecessor GLM-5.1 and, for the first time in the line, offering a solid one-million-token context that stays usable across long, messy coding-agent trajectories rather than merely accepting more tokens. To make that long context affordable, the release introduces the IndexShare sparse-attention design, which reuses a shared indexer across every four sparse attention layers and cuts per-token compute by roughly 2.9× at the million-token length, alongside an improved multi-token prediction layer that extends speculative-decoding acceptance length by up to 20 percent for faster inference.
Beyond raw context, GLM-5.2 layers in stronger coding capability exposed through multiple thinking-effort levels so developers can trade latency against performance, and it ships an integrated post-training stack comprising IndexShare, the SAO reinforcement-learning framework for long-horizon tasks, and the slime framework for large-scale asynchronous training, all running on accumulated long-horizon task environments. The model's identity as the base for the subsequent GLM-5.3 release, where every reported gain came purely from scaling that post-training stack, underscores how GLM-5.2 was engineered as a foundation for sustained agent work and complex code generation rather than as a single-turn chat model.
Quick Info
Powered by- Provider
- Eden AI
- Model key
- zai/glm-5.2
- Release date
- Jun 13, 2026
- Last updated
- Jun 13, 2026
- Input modalities
- Output modalities
- Capabilities
Cost
- Input token cost
- $1.40
- Output token cost
- $4.40
Limits
- Output tokens
- 131,072 tokens
- Context window
- 1,048,576 tokens