GLM 5 was released February 12, 2026 as Z.ai's GLM-5 generation model, introducing multiple thinking modes and enhanced long-range planning. It builds on the GLM-4.x family, with added focus on agentic coding, autonomous tool use, and complex multi-step workflows.
The multiple thinking modes let you control how the model approaches problems. Different modes optimize for different task profiles: quick direct responses, structured reasoning, or deep deliberation with extended chain-of-thought. This flexibility is valuable in agentic architectures where different pipeline steps have different reasoning requirements, all served by a single model.
GLM 5 demonstrates improved long-range planning and memory, enabling it to maintain coherence across extended interactions and complex task sequences. Z.ai highlights structured extraction from documents like contracts and financial reports, and agentic coding workflows where the model autonomously plans, writes, tests, and iterates on code. Through AI Gateway, GLM 5 is available with unified API access, built-in observability, and intelligent provider routing.