Z.AI
Adapter key zai. Built-in base URL and the thinking toggle.
{ "publicModel": "glm", "adapterKey": "zai", "upstreamModel": "glm-4.7-flash", "credentials": { "apiKey": "..." } }- Credentials:
apiKeyonly. NobaseUrlneeded — defaults tohttps://api.z.ai/api/paas/v4. - Default transport: Chat Completions.
- Reasoning:
openai_body, with a top-levelthinking: { type: "enabled" | "disabled" }toggle — the same mechanism across every GLM model in the catalog, whether it exposes a full effort ladder or just an on/off switch (levels: ["none", "high"]). See Reasoning. - Catalog:
src/adapters/zai/catalog.json.
What to read next
- Reasoning — the
openai_body/thinkingtoggle in detail. - Creating deployments — the full request shape.