GLM 5
GLM-5 is Z.ai’s flagship open-source foundation model engineered for complex systems design and long-horizon agent workflows. Built for expert developers, it delivers production-grade performance on large-scale programming tasks, rivaling leading closed-source models. With advanced agentic planning, deep backend reasoning, and iterative self-correction, GLM-5 moves beyond code generation to full-system construction and autonomous execution.
z-ai/glm-5
- Context
- 205k tokens
- Completion cap
- 128,000
- Tools
- Yes
- JSON
- Yes
- Released
- 2026-02-11
Call it from Geek Hub
Same OpenAI SDK. Change the base URL and the model id.
curl https://api.geekhub.mx/v1/chat/completions \
-H "Authorization: Bearer $GEEKHUB_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "z-ai/glm-5",
"messages": [{"role": "user", "content": "Hola"}]
}'Get an API keyFrequently asked questions
- What is GLM 5?
- GLM-5 is Z.ai’s flagship open-source foundation model engineered for complex systems design and long-horizon agent workflows. Built for expert developers, it delivers production-grade performance on large-scale programming tasks, rivaling leading closed-source models. With advanced agentic planning, deep backend reasoning, and iterative self-correction, GLM-5 moves beyond code generation to full-system construction and autonomous execution. GLM 5 runs on the Geek Hub API (OpenAI-compatible). Model id: z-ai/glm-5.
- Is GLM 5 free?
- No. Input is $0.654 per 1M tokens and output is $2.0929 per 1M tokens on Geek Hub (markup included).
- What is the context length of GLM 5?
- GLM 5 has a 205k tokens context window. It supports up to 128,000 completion tokens.
- Does GLM 5 support tool calling and structured outputs?
- GLM 5 accepts tools and tool_choice for function calling. It also supports structured outputs via a JSON schema in response_format.
- When was GLM 5 released?
- GLM 5 was released on 2026-02-11.
More models from Zhipu
- GLM 4.5GLM-4.5 is our latest flagship foundation model, purpose-built for agent-based applications. It leverages a Mixture-of-Experts (MoE) architecture and supports a context length of u
- GLM 4.5 AirGLM-4.5-Air is the lightweight variant of our latest flagship model family, also purpose-built for agent-centric applications. Like GLM-4.5, it adopts the Mixture-of-Experts (MoE)
- GLM 4.5VGLM-4.5V is a vision-language foundation model for multimodal agent applications. Built on a Mixture-of-Experts (MoE) architecture with 106B parameters and 12B activated parameters
- GLM 4.6Compared with GLM-4.5, this generation brings several key improvements: Longer context window: The context window has been expanded from 128K to 200K tokens, enabling the model to
- GLM 4.6VGLM-4.6V is a large multimodal model designed for high-fidelity visual understanding and long-context reasoning across images, documents, and mixed media. It supports up to 128K to
- GLM 4.7GLM-4.7 is Z.ai’s latest flagship model, featuring upgrades in two key areas: enhanced programming capabilities and more stable multi-step reasoning/execution. It demonstrates sign