{ "providers": { "zai": { "baseUrl": "https://api.z.ai/api/coding/paas/v4", "api": "openai-completions", "apiKey": "ZAI_API_KEY", "models": [ { "id": "glm-5.1", "name": "GLM-5.1", "reasoning": true, "input": ["text"], "contextWindow": 204800, "maxTokens": 131072, "cost": { "input": 1.0, "output": 3.2, "cacheRead": 0.2, "cacheWrite": 0 } }, { "id": "glm-4.7", "name": "GLM-4.7", "reasoning": true, "input": ["text"], "contextWindow": 131072, "maxTokens": 65536, "cost": { "input": 0.6, "output": 2.2, "cacheRead": 0.1, "cacheWrite": 0 } }, { "id": "glm-4.7-flash", "name": "GLM-4.7-Flash", "reasoning": false, "input": ["text"], "contextWindow": 131072, "maxTokens": 16384, "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 } } ] } } }