zai.json

 1{
 2  "name": "Z.AI",
 3  "id": "zai",
 4  "api_key": "$ZAI_API_KEY",
 5  "api_endpoint": "https://api.z.ai/api/coding/paas/v4",
 6  "type": "openai-compat",
 7  "default_large_model_id": "glm-4.7",
 8  "default_small_model_id": "glm-4.7-flash",
 9  "models": [
10    {
11      "id": "glm-4.7",
12      "name": "GLM-4.7",
13      "cost_per_1m_in": 0.42,
14      "cost_per_1m_out": 2.2,
15      "cost_per_1m_in_cached": 0.11,
16      "context_window": 204800,
17      "default_max_tokens": 102400,
18      "can_reason": true,
19      "supports_attachments": false
20    },
21    {
22      "id": "glm-4.7-flash",
23      "name": "GLM-4.7 Flash",
24      "cost_per_1m_in": 0.07,
25      "cost_per_1m_out": 0.4,
26      "cost_per_1m_in_cached": 0.01,
27      "context_window": 200000,
28      "default_max_tokens": 65550,
29      "can_reason": true,
30      "supports_attachments": false
31    },
32    {
33      "id": "glm-4.6",
34      "name": "GLM-4.6",
35      "cost_per_1m_in": 0.39,
36      "cost_per_1m_out": 1.9,
37      "cost_per_1m_in_cached": 0.11,
38      "context_window": 204800,
39      "default_max_tokens": 102400,
40      "can_reason": true,
41      "supports_attachments": false
42    },
43    {
44      "id": "glm-4.6v",
45      "name": "GLM-4.6V",
46      "cost_per_1m_in": 0.3,
47      "cost_per_1m_out": 0.9,
48      "context_window": 131072,
49      "default_max_tokens": 65536,
50      "can_reason": true,
51      "supports_attachments": true
52    },
53    {
54      "id": "glm-4.5",
55      "name": "GLM-4.5",
56      "cost_per_1m_in": 0.6,
57      "cost_per_1m_out": 2.2,
58      "cost_per_1m_in_cached": 0.11,
59      "context_window": 131072,
60      "default_max_tokens": 49152,
61      "can_reason": true,
62      "supports_attachments": false
63    },
64    {
65      "id": "glm-4.5-air",
66      "name": "GLM-4.5-Air",
67      "cost_per_1m_in": 0.13,
68      "cost_per_1m_out": 0.85,
69      "cost_per_1m_in_cached": 0.03,
70      "context_window": 131072,
71      "default_max_tokens": 49152,
72      "can_reason": true,
73      "supports_attachments": false
74    },
75    {
76      "id": "glm-4.5v",
77      "name": "GLM-4.5V",
78      "cost_per_1m_in": 0.6,
79      "cost_per_1m_out": 1.8,
80      "cost_per_1m_in_cached": 0.11,
81      "context_window": 65536,
82      "default_max_tokens": 8192,
83      "can_reason": true,
84      "supports_attachments": true
85    }
86  ]
87}