zai provider
with a Z.AI API key.
- Provider:
zai - Auth:
ZAI_API_KEY - API: Z.AI Chat Completions (Bearer auth)
Getting started
- Auto-detect endpoint
- Explicit regional endpoint
Built-in catalog
OpenClaw ships the bundledzai provider catalog in the plugin manifest, so read-only
listing can show known GLM rows without loading provider runtime:
| Model ref | Notes |
|---|---|
zai/glm-5.1 | Default model |
zai/glm-5 | |
zai/glm-5-turbo | |
zai/glm-5v-turbo | |
zai/glm-4.7 | |
zai/glm-4.7-flash | |
zai/glm-4.7-flashx | |
zai/glm-4.6 | |
zai/glm-4.6v | |
zai/glm-4.5 | |
zai/glm-4.5-air | |
zai/glm-4.5-flash | |
zai/glm-4.5v |
Advanced configuration
Forward-resolving unknown GLM-5 models
Forward-resolving unknown GLM-5 models
Unknown
glm-5* ids still forward-resolve on the bundled provider path by
synthesizing provider-owned metadata from the glm-4.7 template when the id
matches the current GLM-5 family shape.Tool-call streaming
Tool-call streaming
tool_stream is enabled by default for Z.AI tool-call streaming. To disable it:Thinking and preserved thinking
Thinking and preserved thinking
Z.AI thinking follows OpenClaw’s When enabled and thinking is on, OpenClaw sends
/think controls. With thinking off,
OpenClaw sends thinking: { type: "disabled" } to avoid responses that
spend the output budget on reasoning_content before visible text.Preserved thinking is opt-in because Z.AI requires the full historical
reasoning_content to be replayed, which increases prompt tokens. Enable it
per model:thinking: { type: "enabled", clear_thinking: false } and replays prior
reasoning_content for the same OpenAI-compatible transcript.Advanced users can still override the exact provider payload with
params.extra_body.thinking.Image understanding
Image understanding
The bundled Z.AI plugin registers image understanding.
Image understanding is auto-resolved from the configured Z.AI auth — no
additional config is needed.
| Property | Value |
|---|---|
| Model | glm-4.6v |
Auth details
Auth details
- Z.AI uses Bearer auth with your API key.
- The
zai-api-keyonboarding choice auto-detects the matching Z.AI endpoint from the key prefix. - Use the explicit regional choices (
zai-coding-global,zai-coding-cn,zai-global,zai-cn) when you want to force a specific API surface.
Related
GLM model family
Model family overview for GLM.
Model selection
Choosing providers, model refs, and failover behavior.