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-5-turbo",
12 "name": "GLM-5-Turbo",
13 "cost_per_1m_in": 1.2,
14 "cost_per_1m_out": 4.0,
15 "cost_per_1m_in_cached": 0.24,
16 "context_window": 200000,
17 "default_max_tokens": 128000,
18 "can_reason": true,
19 "supports_attachments": false
20 },
21 {
22 "id": "glm-5",
23 "name": "GLM-5",
24 "cost_per_1m_in": 1.0,
25 "cost_per_1m_out": 3.2,
26 "cost_per_1m_in_cached": 0.2,
27 "context_window": 204800,
28 "default_max_tokens": 65536,
29 "can_reason": true,
30 "supports_attachments": false
31 },
32 {
33 "id": "glm-4.7",
34 "name": "GLM-4.7",
35 "cost_per_1m_in": 0.42,
36 "cost_per_1m_out": 2.2,
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.7-flash",
45 "name": "GLM-4.7 Flash",
46 "cost_per_1m_in": 0.07,
47 "cost_per_1m_out": 0.4,
48 "cost_per_1m_in_cached": 0.01,
49 "context_window": 200000,
50 "default_max_tokens": 65550,
51 "can_reason": true,
52 "supports_attachments": false
53 },
54 {
55 "id": "glm-4.6",
56 "name": "GLM-4.6",
57 "cost_per_1m_in": 0.39,
58 "cost_per_1m_out": 1.9,
59 "cost_per_1m_in_cached": 0.11,
60 "context_window": 204800,
61 "default_max_tokens": 102400,
62 "can_reason": true,
63 "supports_attachments": false
64 },
65 {
66 "id": "glm-4.6v",
67 "name": "GLM-4.6V",
68 "cost_per_1m_in": 0.3,
69 "cost_per_1m_out": 0.9,
70 "context_window": 131072,
71 "default_max_tokens": 65536,
72 "can_reason": true,
73 "supports_attachments": true
74 },
75 {
76 "id": "glm-4.5",
77 "name": "GLM-4.5",
78 "cost_per_1m_in": 0.6,
79 "cost_per_1m_out": 2.2,
80 "cost_per_1m_in_cached": 0.11,
81 "context_window": 131072,
82 "default_max_tokens": 49152,
83 "can_reason": true,
84 "supports_attachments": false
85 },
86 {
87 "id": "glm-4.5-air",
88 "name": "GLM-4.5-Air",
89 "cost_per_1m_in": 0.13,
90 "cost_per_1m_out": 0.85,
91 "cost_per_1m_in_cached": 0.03,
92 "context_window": 131072,
93 "default_max_tokens": 49152,
94 "can_reason": true,
95 "supports_attachments": false
96 },
97 {
98 "id": "glm-4.5v",
99 "name": "GLM-4.5V",
100 "cost_per_1m_in": 0.6,
101 "cost_per_1m_out": 1.8,
102 "cost_per_1m_in_cached": 0.11,
103 "context_window": 65536,
104 "default_max_tokens": 8192,
105 "can_reason": true,
106 "supports_attachments": true
107 }
108 ]
109}