Z.AI
Z.AI is the API platform for GLM models. It provides REST APIs for GLM and uses API keys for authentication. Create your API key in the Z.AI console. Velaclaw uses thezai 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
Best for: most users. Velaclaw detects the matching Z.AI endpoint from the key and applies the correct base URL automatically.
1
Run onboarding
2
Set a default model
3
Verify the model is available
Bundled GLM catalog
Velaclaw currently seeds the bundledzai provider with:
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: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.
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.