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.

ChatZhipu205k tokens$0.654 / $2.0929 · 1M

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 key

Frequently 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