GLM 4.6

Compared 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 handle more complex agentic tasks. Superior coding performance: The model achieves higher scores on code benchmarks and demonstrates better real-world performance in applications such as Claude Code、Cline、Roo Code and Kilo Code, including improvements in generating visually polished front-end pages. Advanced reasoning: GLM-4.6 shows a clear improvement in reasoning performance and supports tool use during inference, leading to stronger overall capability. More capable agents: GLM-4.6 exhibits stronger performance in tool using and search-based agents, and integrates more effectively within agent frameworks. Refined writing: Better aligns with human preferences in style and readability, and performs more naturally in role-playing scenarios.

ChatZhipu205k tokens$0.545 / $2.1801 · 1M

z-ai/glm-4.6

Context
205k tokens
Completion cap
131,072
Tools
Yes
JSON
Yes
Released
2025-09-30

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-4.6",
    "messages": [{"role": "user", "content": "Hola"}]
  }'
Get an API key

Frequently asked questions

What is GLM 4.6?
Compared 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 handle more complex agentic tasks. Superior coding performance: The model achieves higher scores on code benchmarks and demonstrates better real-world performance in applications such as Claude Code、Cline、Roo Code and Kilo Code, including improvements in generating visually polished front-end pages. Advanced reasoning: GLM-4.6 shows a clear improvement in reasoning performance and supports tool use during inference, leading to stronger overall capability. More capable agents: GLM-4.6 exhibits stronger performance in tool using and search-based agents, and integrates more effectively within agent frameworks. Refined writing: Better aligns with human preferences in style and readability, and performs more naturally in role-playing scenarios. GLM 4.6 runs on the Geek Hub API (OpenAI-compatible). Model id: z-ai/glm-4.6.
Is GLM 4.6 free?
No. Input is $0.545 per 1M tokens and output is $2.1801 per 1M tokens on Geek Hub (markup included).
What is the context length of GLM 4.6?
GLM 4.6 has a 205k tokens context window. It supports up to 131,072 completion tokens.
Does GLM 4.6 support tool calling and structured outputs?
GLM 4.6 accepts tools and tool_choice for function calling. It also supports structured outputs via a JSON schema in response_format.
When was GLM 4.6 released?
GLM 4.6 was released on 2025-09-30.

More models from Zhipu