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. OpenClaw uses thezai provider
with a Z.AI API key.
CLI setup
Config snippet
zai-api-key lets OpenClaw detect the matching Z.AI endpoint from the key and
apply the correct base URL automatically. Use the explicit regional choices when
you want to force a specific Coding Plan or general API surface.
Bundled GLM catalog
OpenClaw currently seeds the bundledzai provider with:
glm-5.1glm-5glm-5-turboglm-5v-turboglm-4.7glm-4.7-flashglm-4.7-flashxglm-4.6glm-4.6vglm-4.5glm-4.5-airglm-4.5-flashglm-4.5v
Notes
- GLM models are available as
zai/<model>(example:zai/glm-5). - Default bundled model ref:
zai/glm-5 - Unknown
glm-5*ids still forward-resolve on the bundled provider path by synthesizing provider-owned metadata from theglm-4.7template when the id matches the current GLM-5 family shape. tool_streamis enabled by default for Z.AI tool-call streaming. Setagents.defaults.models["zai/<model>"].params.tool_streamtofalseto disable it.- See /providers/glm for the model family overview.
- Z.AI uses Bearer auth with your API key.