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