Z.AI
Z.AI ist die API-Plattform für GLM-Modelle. Sie bietet REST-APIs für GLM und nutzt API-Keys zur Authentifizierung. Erstelle deinen API-Key in der Z.AI-Konsole. OpenClaw verwendet den zai Provider mit einem Z.AI API-Key.
CLI-Setup
openclaw onboard --auth-choice zai-api-key
# oder nicht-interaktiv
openclaw onboard --zai-api-key "$ZAI_API_KEY"
Config-Snippet
{
env: { ZAI_API_KEY: "sk-..." },
agents: { defaults: { model: { primary: "zai/glm-4.7" } } },
}
Hinweise
- GLM-Modelle sind als
zai/<model>verfügbar (Beispiel:zai/glm-4.7). - Siehe /providers/glm für eine Übersicht der Modellfamilie.
- Z.AI nutzt Bearer-Authentifizierung mit deinem API-Key.