Skip to content

Commit f9053ec

Browse files
committed
feat(zai): add GLM-4.5-X, AirX, Flash; sync with Z.ai docs; keep canonical api line keys
1 parent 4e6c717 commit f9053ec

File tree

1 file changed

+68
-0
lines changed
  • packages/types/src/providers

1 file changed

+68
-0
lines changed

packages/types/src/providers/zai.ts

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,40 @@ export const internationalZAiModels = {
3232
description:
3333
"GLM-4.5-Air is the lightweight version of GLM-4.5. It balances performance and cost-effectiveness, and can flexibly switch to hybrid thinking models.",
3434
},
35+
"glm-4.5-x": {
36+
maxTokens: 98_304,
37+
contextWindow: 131_072,
38+
supportsImages: false,
39+
supportsPromptCache: true,
40+
inputPrice: 0.6,
41+
outputPrice: 2.2,
42+
cacheWritesPrice: 0,
43+
cacheReadsPrice: 0.11,
44+
description:
45+
"GLM-4.5-X is a high-performance variant optimized for strong reasoning with ultra-fast responses.",
46+
},
47+
"glm-4.5-airx": {
48+
maxTokens: 98_304,
49+
contextWindow: 131_072,
50+
supportsImages: false,
51+
supportsPromptCache: true,
52+
inputPrice: 0.2,
53+
outputPrice: 1.1,
54+
cacheWritesPrice: 0,
55+
cacheReadsPrice: 0.03,
56+
description: "GLM-4.5-AirX is a lightweight, ultra-fast variant delivering strong performance with lower cost.",
57+
},
58+
"glm-4.5-flash": {
59+
maxTokens: 98_304,
60+
contextWindow: 131_072,
61+
supportsImages: false,
62+
supportsPromptCache: true,
63+
inputPrice: 0,
64+
outputPrice: 0,
65+
cacheWritesPrice: 0,
66+
cacheReadsPrice: 0,
67+
description: "GLM-4.5-Flash is a free, high-speed model excellent for reasoning, coding, and agentic tasks.",
68+
},
3569
"glm-4.6": {
3670
maxTokens: 98_304,
3771
contextWindow: 204_800,
@@ -113,6 +147,40 @@ export const mainlandZAiModels = {
113147
},
114148
],
115149
},
150+
"glm-4.5-x": {
151+
maxTokens: 98_304,
152+
contextWindow: 131_072,
153+
supportsImages: false,
154+
supportsPromptCache: true,
155+
inputPrice: 0.29,
156+
outputPrice: 1.14,
157+
cacheWritesPrice: 0,
158+
cacheReadsPrice: 0.057,
159+
description:
160+
"GLM-4.5-X is a high-performance variant optimized for strong reasoning with ultra-fast responses.",
161+
},
162+
"glm-4.5-airx": {
163+
maxTokens: 98_304,
164+
contextWindow: 131_072,
165+
supportsImages: false,
166+
supportsPromptCache: true,
167+
inputPrice: 0.1,
168+
outputPrice: 0.6,
169+
cacheWritesPrice: 0,
170+
cacheReadsPrice: 0.02,
171+
description: "GLM-4.5-AirX is a lightweight, ultra-fast variant delivering strong performance with lower cost.",
172+
},
173+
"glm-4.5-flash": {
174+
maxTokens: 98_304,
175+
contextWindow: 131_072,
176+
supportsImages: false,
177+
supportsPromptCache: true,
178+
inputPrice: 0,
179+
outputPrice: 0,
180+
cacheWritesPrice: 0,
181+
cacheReadsPrice: 0,
182+
description: "GLM-4.5-Flash is a free, high-speed model excellent for reasoning, coding, and agentic tasks.",
183+
},
116184
"glm-4.6": {
117185
maxTokens: 98_304,
118186
contextWindow: 204_800,

0 commit comments

Comments
 (0)