model · Zhipu AI (Z.ai)
GLM-5.2
GLM-5.2 is Zhipu AI's (Z.ai) flagship open-weight model and, as of mid-2026, the strongest open model for coding and long-horizon agentic work — within a few points of Claude Opus on agent benchmarks, at roughly a sixth of the price. It is a large mixture-of-experts model (~753B total parameters, ~40B active per token) with a 1M-token context and a reasoning mode, released under the permissive MIT licence. The weights are genuinely downloadable, but at ~1.5 TB it is cluster-scale, so most people use it via the Z.ai API or OpenRouter. A smaller GLM-4.7-Flash (~31B) is the self-hostable option.
What it can help with
- code generation
- agentic reasoning
- open-weight model
- mixture of experts
- large context window
- self-hostable option
- api access