{ "id": "zai", "activation": { "onStartup": false }, "enabledByDefault": true, "providers": ["zai"], "providerEndpoints": [ { "endpointClass": "zai-native", "hosts": ["api.z.ai"] } ], "providerRequest": { "providers": { "zai": { "family": "zai" } } }, "setup": { "providers": [ { "id": "zai", "authMethods": ["api-key"], "envVars": ["ZAI_API_KEY", "Z_AI_API_KEY"] } ] }, "modelCatalog": { "providers": { "zai": { "baseUrl": "https://api.z.ai/api/paas/v4", "api": "openai-completions", "defaultModel": "glm-5.2", "models": [ { "id": "glm-5.2", "name": "GLM-5.2", "reasoning": true, "input": ["text"], "contextWindow": 1000000, "maxTokens": 131072, "cost": { "input": 1.4, "output": 4.4, "cacheRead": 0.26, "cacheWrite": 0 }, "compat": { "codeMode": "preferred" } }, { "id": "glm-5-turbo", "name": "GLM-5-Turbo", "reasoning": true, "input": ["text"], "contextWindow": 200000, "maxTokens": 131072, "cost": { "input": 1.2, "output": 4, "cacheRead": 0.24, "cacheWrite": 0 } }, { "id": "glm-5v-turbo", "name": "GLM-5V-Turbo", "reasoning": true, "input": ["text", "image"], "contextWindow": 200000, "maxTokens": 131072, "cost": { "input": 1.2, "output": 4, "cacheRead": 0.24, "cacheWrite": 0 } }, { "id": "glm-5.1", "name": "GLM-5.1", "status": "deprecated", "replacedBy": "glm-5.2", "reasoning": true, "input": ["text"], "contextWindow": 200000, "maxTokens": 131072, "cost": { "input": 1.4, "output": 4.4, "cacheRead": 0.26, "cacheWrite": 0 }, "compat": { "codeMode": "preferred" } } ] } }, "aliases": { "z.ai": { "provider": "zai" }, "z-ai": { "provider": "zai" } }, "discovery": { "zai": "refreshable" } }, "modelPricing": { "providers": { "zai": { "openRouter": { "provider": "z-ai" }, "liteLLM": { "provider": "zai" } } } }, "providerAuthChoices": [ { "provider": "zai", "method": "api-key", "choiceId": "zai-api-key", "appGuidedSecret": true, "choiceLabel": "Z.AI API key", "groupId": "zai", "groupLabel": "Z.AI", "groupHint": "GLM Coding Plan / Global / CN", "optionKey": "zaiApiKey", "cliFlag": "--zai-api-key", "cliOption": "--zai-api-key ", "cliDescription": "Z.AI API key" }, { "provider": "zai", "method": "coding-global", "choiceId": "zai-coding-global", "appGuidedSecret": true, "choiceLabel": "Coding-Plan-Global", "choiceHint": "GLM Coding Plan Global (api.z.ai)", "groupId": "zai", "groupLabel": "Z.AI", "groupHint": "GLM Coding Plan / Global / CN", "optionKey": "zaiApiKey", "cliFlag": "--zai-api-key", "cliOption": "--zai-api-key ", "cliDescription": "Z.AI API key" }, { "provider": "zai", "method": "coding-cn", "choiceId": "zai-coding-cn", "appGuidedSecret": true, "choiceLabel": "Coding-Plan-CN", "choiceHint": "GLM Coding Plan CN (open.bigmodel.cn)", "groupId": "zai", "groupLabel": "Z.AI", "groupHint": "GLM Coding Plan / Global / CN", "optionKey": "zaiApiKey", "cliFlag": "--zai-api-key", "cliOption": "--zai-api-key ", "cliDescription": "Z.AI API key" }, { "provider": "zai", "method": "global", "choiceId": "zai-global", "appGuidedSecret": true, "choiceLabel": "Global", "choiceHint": "Z.AI Global (api.z.ai)", "groupId": "zai", "groupLabel": "Z.AI", "groupHint": "GLM Coding Plan / Global / CN", "optionKey": "zaiApiKey", "cliFlag": "--zai-api-key", "cliOption": "--zai-api-key ", "cliDescription": "Z.AI API key" }, { "provider": "zai", "method": "cn", "choiceId": "zai-cn", "appGuidedSecret": true, "choiceLabel": "CN", "choiceHint": "Z.AI CN (open.bigmodel.cn)", "groupId": "zai", "groupLabel": "Z.AI", "groupHint": "GLM Coding Plan / Global / CN", "optionKey": "zaiApiKey", "cliFlag": "--zai-api-key", "cliOption": "--zai-api-key ", "cliDescription": "Z.AI API key" } ], "contracts": { "mediaUnderstandingProviders": ["zai"], "usageProviders": ["zai"] }, "mediaUnderstandingProviderMetadata": { "zai": { "capabilities": ["image"], "defaultModels": { "image": "glm-4.6v" }, "autoPriority": { "image": 60 } } }, "configSchema": { "type": "object", "additionalProperties": false, "properties": {} } }