GLM 4.5

GLM-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 up to 128k tokens. GLM-4.5 delivers significantly enhanced capabilities in reasoning, code generation, and agent alignment. It supports a hybrid inference mode with two options, a "thinking mode" designed for complex reasoning and tool use, and a "non-thinking mode" optimized for instant responses. Users can control the reasoning behaviour with the `reasoning` `enabled` boolean. Learn more in our docs

ChatZhipu131k tokens$0.654 / $2.3981 · 1M

z-ai/glm-4.5

Context
131k tokens
Completion cap
98,304
Tools
Yes
JSON
Yes
Released
2025-07-25

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

Frequently asked questions

What is GLM 4.5?
GLM-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 up to 128k tokens. GLM-4.5 delivers significantly enhanced capabilities in reasoning, code generation, and agent alignment. It supports a hybrid inference mode with two options, a "thinking mode" designed for complex reasoning and tool use, and a "non-thinking mode" optimized for instant responses. Users can control the reasoning behaviour with the `reasoning` `enabled` boolean. Learn more in our docs GLM 4.5 runs on the Geek Hub API (OpenAI-compatible). Model id: z-ai/glm-4.5.
Is GLM 4.5 free?
No. Input is $0.654 per 1M tokens and output is $2.3981 per 1M tokens on Geek Hub (markup included).
What is the context length of GLM 4.5?
GLM 4.5 has a 131k tokens context window. It supports up to 98,304 completion tokens.
Does GLM 4.5 support tool calling and structured outputs?
GLM 4.5 accepts tools and tool_choice for function calling. It also supports structured outputs via a JSON schema in response_format.
When was GLM 4.5 released?
GLM 4.5 was released on 2025-07-25.

More models from Zhipu