modelpedia 0.0.2 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (136) hide show
  1. package/README.md +141 -0
  2. package/dist/index.cjs +1 -101
  3. package/dist/index.d.cts +10 -2
  4. package/dist/index.d.mts +10 -2
  5. package/dist/index.mjs +1 -92
  6. package/dist/providers/alibaba.cjs +4 -835
  7. package/dist/providers/alibaba.d.cts +1 -1
  8. package/dist/providers/alibaba.d.mts +1 -1
  9. package/dist/providers/alibaba.mjs +4 -833
  10. package/dist/providers/amazon.cjs +4 -1484
  11. package/dist/providers/amazon.d.cts +1 -1
  12. package/dist/providers/amazon.d.mts +1 -1
  13. package/dist/providers/amazon.mjs +4 -1482
  14. package/dist/providers/anthropic.cjs +3 -698
  15. package/dist/providers/anthropic.d.cts +1 -1
  16. package/dist/providers/anthropic.d.mts +1 -1
  17. package/dist/providers/anthropic.mjs +3 -696
  18. package/dist/providers/azure.cjs +6 -1491
  19. package/dist/providers/azure.d.cts +1 -1
  20. package/dist/providers/azure.d.mts +1 -1
  21. package/dist/providers/azure.mjs +6 -1489
  22. package/dist/providers/baseten.cjs +3 -279
  23. package/dist/providers/baseten.d.cts +1 -1
  24. package/dist/providers/baseten.d.mts +1 -1
  25. package/dist/providers/baseten.mjs +3 -277
  26. package/dist/providers/cerebras.cjs +4 -145
  27. package/dist/providers/cerebras.d.cts +1 -1
  28. package/dist/providers/cerebras.d.mts +1 -1
  29. package/dist/providers/cerebras.mjs +4 -143
  30. package/dist/providers/cloudflare-ai-gateway.cjs +4 -0
  31. package/dist/providers/cloudflare-ai-gateway.d.cts +7 -0
  32. package/dist/providers/cloudflare-ai-gateway.d.mts +7 -0
  33. package/dist/providers/cloudflare-ai-gateway.mjs +4 -0
  34. package/dist/providers/cloudflare-workers-ai.cjs +4 -0
  35. package/dist/providers/cloudflare-workers-ai.d.cts +7 -0
  36. package/dist/providers/cloudflare-workers-ai.d.mts +7 -0
  37. package/dist/providers/cloudflare-workers-ai.mjs +4 -0
  38. package/dist/providers/cohere.cjs +5 -525
  39. package/dist/providers/cohere.d.cts +1 -1
  40. package/dist/providers/cohere.d.mts +1 -1
  41. package/dist/providers/cohere.mjs +5 -523
  42. package/dist/providers/cursor.cjs +1 -856
  43. package/dist/providers/cursor.d.cts +1 -1
  44. package/dist/providers/cursor.d.mts +1 -1
  45. package/dist/providers/cursor.mjs +1 -854
  46. package/dist/providers/deepseek.cjs +3 -64
  47. package/dist/providers/deepseek.d.cts +1 -1
  48. package/dist/providers/deepseek.d.mts +1 -1
  49. package/dist/providers/deepseek.mjs +3 -62
  50. package/dist/providers/fireworks.cjs +3 -3794
  51. package/dist/providers/fireworks.d.cts +1 -1
  52. package/dist/providers/fireworks.d.mts +1 -1
  53. package/dist/providers/fireworks.mjs +3 -3792
  54. package/dist/providers/google.cjs +6 -972
  55. package/dist/providers/google.d.cts +1 -1
  56. package/dist/providers/google.d.mts +1 -1
  57. package/dist/providers/google.mjs +6 -970
  58. package/dist/providers/groq.cjs +3 -353
  59. package/dist/providers/groq.d.cts +1 -1
  60. package/dist/providers/groq.d.mts +1 -1
  61. package/dist/providers/groq.mjs +3 -351
  62. package/dist/providers/huggingface.cjs +3 -1022
  63. package/dist/providers/huggingface.d.cts +1 -1
  64. package/dist/providers/huggingface.d.mts +1 -1
  65. package/dist/providers/huggingface.mjs +3 -1020
  66. package/dist/providers/meta.cjs +3 -481
  67. package/dist/providers/meta.d.cts +1 -1
  68. package/dist/providers/meta.d.mts +1 -1
  69. package/dist/providers/meta.mjs +3 -479
  70. package/dist/providers/minimax.cjs +3 -156
  71. package/dist/providers/minimax.d.cts +1 -1
  72. package/dist/providers/minimax.d.mts +1 -1
  73. package/dist/providers/minimax.mjs +3 -154
  74. package/dist/providers/mistral.cjs +3 -1594
  75. package/dist/providers/mistral.d.cts +1 -1
  76. package/dist/providers/mistral.d.mts +1 -1
  77. package/dist/providers/mistral.mjs +3 -1592
  78. package/dist/providers/moonshot.cjs +3 -138
  79. package/dist/providers/moonshot.d.cts +1 -1
  80. package/dist/providers/moonshot.d.mts +1 -1
  81. package/dist/providers/moonshot.mjs +3 -136
  82. package/dist/providers/nvidia.cjs +3 -2040
  83. package/dist/providers/nvidia.d.cts +1 -1
  84. package/dist/providers/nvidia.d.mts +1 -1
  85. package/dist/providers/nvidia.mjs +3 -2038
  86. package/dist/providers/ollama.cjs +3 -326
  87. package/dist/providers/ollama.d.cts +1 -1
  88. package/dist/providers/ollama.d.mts +1 -1
  89. package/dist/providers/ollama.mjs +3 -324
  90. package/dist/providers/openai.cjs +3 -9079
  91. package/dist/providers/openai.d.cts +1 -1
  92. package/dist/providers/openai.d.mts +1 -1
  93. package/dist/providers/openai.mjs +3 -9077
  94. package/dist/providers/opencode.cjs +3 -367
  95. package/dist/providers/opencode.d.cts +1 -1
  96. package/dist/providers/opencode.d.mts +1 -1
  97. package/dist/providers/opencode.mjs +3 -365
  98. package/dist/providers/openrouter.cjs +21 -7835
  99. package/dist/providers/openrouter.d.cts +1 -1
  100. package/dist/providers/openrouter.d.mts +1 -1
  101. package/dist/providers/openrouter.mjs +21 -7833
  102. package/dist/providers/perplexity.cjs +3 -311
  103. package/dist/providers/perplexity.d.cts +1 -1
  104. package/dist/providers/perplexity.d.mts +1 -1
  105. package/dist/providers/perplexity.mjs +3 -309
  106. package/dist/providers/qwen.cjs +3 -835
  107. package/dist/providers/qwen.d.cts +1 -1
  108. package/dist/providers/qwen.d.mts +1 -1
  109. package/dist/providers/qwen.mjs +3 -833
  110. package/dist/providers/together.cjs +4 -360
  111. package/dist/providers/together.d.cts +1 -1
  112. package/dist/providers/together.d.mts +1 -1
  113. package/dist/providers/together.mjs +4 -358
  114. package/dist/providers/vercel.cjs +3 -4037
  115. package/dist/providers/vercel.d.cts +1 -1
  116. package/dist/providers/vercel.d.mts +1 -1
  117. package/dist/providers/vercel.mjs +3 -4035
  118. package/dist/providers/vertex.cjs +10 -1072
  119. package/dist/providers/vertex.d.cts +1 -1
  120. package/dist/providers/vertex.d.mts +1 -1
  121. package/dist/providers/vertex.mjs +10 -1070
  122. package/dist/providers/xai.cjs +3 -301
  123. package/dist/providers/xai.d.cts +1 -1
  124. package/dist/providers/xai.d.mts +1 -1
  125. package/dist/providers/xai.mjs +3 -299
  126. package/dist/providers/zai.cjs +3 -243
  127. package/dist/providers/zai.d.cts +1 -1
  128. package/dist/providers/zai.d.mts +1 -1
  129. package/dist/providers/zai.mjs +3 -241
  130. package/dist/types.d.cts +80 -8
  131. package/dist/types.d.mts +80 -8
  132. package/package.json +3 -3
  133. package/dist/providers/cloudflare.cjs +0 -826
  134. package/dist/providers/cloudflare.d.cts +0 -7
  135. package/dist/providers/cloudflare.d.mts +0 -7
  136. package/dist/providers/cloudflare.mjs +0 -824
@@ -1,243 +1,3 @@
1
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- //#region src/providers/zai.ts
3
- const provider = {
4
- "id": "zai",
5
- "name": "Z.AI (Zhipu)",
6
- "region": "CN",
7
- "url": "https://z.ai",
8
- "api_url": "https://api.z.ai/api/paas/v4",
9
- "docs_url": "https://docs.z.ai",
10
- "pricing_url": "https://z.ai/pricing",
11
- "icon": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"currentColor\" fill-rule=\"evenodd\">\n <path d=\"M12.105 2L9.927 4.953H.653L2.83 2h9.276zM23.254 19.048L21.078 22h-9.242l2.174-2.952h9.244zM24 2L9.264 22H0L14.736 2H24z\"/>\n</svg>",
12
- "models": [
13
- {
14
- "id": "glm-4-32b-0414-128k",
15
- "name": "GLM-4-32B-0414-128K",
16
- "created_by": "zhipu",
17
- "source": "official",
18
- "last_updated": "2026-03-21",
19
- "context_window": 128e3,
20
- "max_output_tokens": 16e3,
21
- "capabilities": {
22
- "streaming": true,
23
- "tool_call": true,
24
- "structured_output": true
25
- },
26
- "modalities": {
27
- "input": ["text"],
28
- "output": ["text"]
29
- }
30
- },
31
- {
32
- "id": "glm-4.5",
33
- "name": "GLM-4.5",
34
- "created_by": "zhipu",
35
- "source": "official",
36
- "last_updated": "2026-03-21",
37
- "context_window": 128e3,
38
- "max_output_tokens": 96e3,
39
- "capabilities": {
40
- "streaming": true,
41
- "tool_call": true,
42
- "structured_output": true,
43
- "reasoning": true
44
- },
45
- "modalities": {
46
- "input": ["text"],
47
- "output": ["text"]
48
- }
49
- },
50
- {
51
- "id": "glm-4.5v",
52
- "name": "GLM-4.5V",
53
- "created_by": "zhipu",
54
- "source": "official",
55
- "last_updated": "2026-03-21",
56
- "max_output_tokens": 16e3,
57
- "capabilities": {
58
- "streaming": true,
59
- "reasoning": true
60
- },
61
- "modalities": {
62
- "input": ["text"],
63
- "output": ["text"]
64
- }
65
- },
66
- {
67
- "id": "glm-4.6",
68
- "name": "GLM-4.6",
69
- "created_by": "zhipu",
70
- "source": "official",
71
- "last_updated": "2026-03-21",
72
- "context_window": 2e5,
73
- "max_output_tokens": 128e3,
74
- "capabilities": { "streaming": true },
75
- "modalities": {
76
- "input": ["text"],
77
- "output": ["text"]
78
- }
79
- },
80
- {
81
- "id": "glm-4.6v-flash",
82
- "name": "GLM-4.6V-Flash",
83
- "created_by": "zhipu",
84
- "source": "official",
85
- "last_updated": "2026-03-21",
86
- "context_window": 128e3,
87
- "capabilities": {
88
- "streaming": true,
89
- "tool_call": true
90
- },
91
- "modalities": {
92
- "input": ["text"],
93
- "output": ["text"]
94
- }
95
- },
96
- {
97
- "id": "glm-4.6v-flashx",
98
- "name": "GLM-4.6V-FlashX",
99
- "created_by": "zhipu",
100
- "source": "official",
101
- "last_updated": "2026-03-21",
102
- "context_window": 128e3,
103
- "capabilities": {
104
- "streaming": true,
105
- "tool_call": true
106
- },
107
- "modalities": {
108
- "input": ["text"],
109
- "output": ["text"]
110
- }
111
- },
112
- {
113
- "id": "glm-4.6v",
114
- "name": "GLM-4.6V",
115
- "created_by": "zhipu",
116
- "source": "official",
117
- "last_updated": "2026-03-21",
118
- "context_window": 128e3,
119
- "capabilities": {
120
- "streaming": true,
121
- "tool_call": true
122
- },
123
- "modalities": {
124
- "input": ["text"],
125
- "output": ["text"]
126
- }
127
- },
128
- {
129
- "id": "glm-4.7-flash",
130
- "name": "GLM-4.7-Flash",
131
- "created_by": "zhipu",
132
- "source": "official",
133
- "last_updated": "2026-03-21",
134
- "context_window": 2e5,
135
- "max_output_tokens": 128e3,
136
- "capabilities": {
137
- "streaming": true,
138
- "tool_call": true,
139
- "structured_output": true,
140
- "reasoning": true
141
- },
142
- "modalities": {
143
- "input": ["text"],
144
- "output": ["text"]
145
- }
146
- },
147
- {
148
- "id": "glm-4.7-flashx",
149
- "name": "GLM-4.7-FlashX",
150
- "created_by": "zhipu",
151
- "source": "official",
152
- "last_updated": "2026-03-21",
153
- "context_window": 2e5,
154
- "max_output_tokens": 128e3,
155
- "capabilities": {
156
- "streaming": true,
157
- "tool_call": true,
158
- "structured_output": true,
159
- "reasoning": true
160
- },
161
- "modalities": {
162
- "input": ["text"],
163
- "output": ["text"]
164
- }
165
- },
166
- {
167
- "id": "glm-4.7",
168
- "name": "GLM-4.7",
169
- "created_by": "zhipu",
170
- "source": "official",
171
- "last_updated": "2026-03-21",
172
- "context_window": 2e5,
173
- "max_output_tokens": 128e3,
174
- "capabilities": {
175
- "streaming": true,
176
- "tool_call": true,
177
- "structured_output": true,
178
- "reasoning": true
179
- },
180
- "modalities": {
181
- "input": ["text"],
182
- "output": ["text"]
183
- }
184
- },
185
- {
186
- "id": "glm-5-turbo",
187
- "name": "GLM-5-TURBO",
188
- "created_by": "zhipu",
189
- "source": "official",
190
- "last_updated": "2026-03-21",
191
- "context_window": 2e5,
192
- "max_output_tokens": 128e3,
193
- "capabilities": {
194
- "streaming": true,
195
- "tool_call": true,
196
- "structured_output": true,
197
- "reasoning": true
198
- },
199
- "modalities": {
200
- "input": ["text"],
201
- "output": ["text"]
202
- }
203
- },
204
- {
205
- "id": "glm-5",
206
- "name": "GLM-5",
207
- "created_by": "zhipu",
208
- "source": "official",
209
- "last_updated": "2026-03-21",
210
- "context_window": 2e5,
211
- "max_output_tokens": 128e3,
212
- "capabilities": {
213
- "streaming": true,
214
- "tool_call": true,
215
- "structured_output": true,
216
- "reasoning": true
217
- },
218
- "modalities": {
219
- "input": ["text"],
220
- "output": ["text"]
221
- }
222
- },
223
- {
224
- "id": "glm-ocr",
225
- "name": "GLM-OCR",
226
- "created_by": "zhipu",
227
- "source": "official",
228
- "last_updated": "2026-03-21",
229
- "capabilities": { "streaming": true },
230
- "modalities": {
231
- "input": ["text"],
232
- "output": ["text"]
233
- }
234
- }
235
- ]
236
- };
237
- const models = provider.models.map((m) => ({
238
- ...m,
239
- provider: provider.id
240
- }));
241
- //#endregion
242
- exports.models = models;
243
- exports.provider = provider;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e={id:`zai`,name:`Z.AI (Zhipu)`,region:`CN`,headquarters:`Beijing, Beijing`,founded:2019,url:`https://z.ai`,api_url:`https://api.z.ai/api/paas/v4`,docs_url:`https://docs.z.ai`,pricing_url:`https://z.ai/pricing`,description:`Zhipu AI builds GLM models for Chinese and multilingual AI applications.`,type:`direct`,aliases:[`zhipu`],openai_compatible:!0,free_tier:!0,github_url:`https://github.com/THUDM`,models_url:`https://open.bigmodel.cn/modelcenter/overview`,twitter_url:`https://x.com/ZhipuAI`,terms_url:`https://open.bigmodel.cn/dev/howuse/serviceagreement`,support_url:`https://z.ai/contact`,icon:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" fill-rule="evenodd">
2
+ <path d="M12.105 2L9.927 4.953H.653L2.83 2h9.276zM23.254 19.048L21.078 22h-9.242l2.174-2.952h9.244zM24 2L9.264 22H0L14.736 2H24z"/>
3
+ </svg>`,models:[{id:`autoglm-phone-multilingual`,name:`AUTOGLM-PHONE-MULTILINGUAL`,created_by:`zai`,source:`official`,last_updated:`2026-03-23`,license:`mit`,page_url:`https://docs.z.ai/guides/vlm/autoglm-phone-multilingual`,capabilities:{streaming:!0},modalities:{input:[`text`],output:[`text`]},open_weight:!0},{id:`cogvideox-3`,name:`COGVIDEOX-3`,created_by:`zai`,source:`official`,last_updated:`2026-03-23`,license:`mit`,page_url:`https://docs.z.ai/guides/video/cogvideox-3`,modalities:{input:[`image`,`text`],output:[`video`]},open_weight:!0,model_type:`video`},{id:`cogview-4-250304`,name:`COGVIEW-4-250304`,created_by:`zai`,source:`official`,last_updated:`2026-03-23`,license:`mit`,page_url:`https://docs.z.ai/guides/image/cogview-4`,modalities:{input:[`text`],output:[`image`]},open_weight:!0,model_type:`image`},{id:`curl`,name:`cURL`,created_by:`zai`,source:`official`,last_updated:`2026-03-23`,license:`mit`,page_url:`https://docs.z.ai/guides/audio/glm-asr-2512`,modalities:{input:[`audio`],output:[`text`]},open_weight:!0},{id:`glm-4-32b-0414-128k`,name:`GLM-4-32B-0414-128K`,created_by:`zhipu`,source:`official`,last_updated:`2026-03-23`,context_window:128e3,max_output_tokens:16e3,capabilities:{streaming:!0,tool_call:!0,structured_output:!0},modalities:{input:[`text`],output:[`text`]},model_type:`chat`,family:`glm-4`,license:`mit`,parameters:32,open_weight:!0,tools:[`function_calling`],page_url:`https://docs.z.ai/guides/llm/glm-4-32b-0414-128k`,pricing:{input:.1,output:.1}},{id:`glm-4.5`,name:`GLM-4.5`,created_by:`zhipu`,source:`official`,last_updated:`2026-03-23`,context_window:128e3,max_output_tokens:96e3,capabilities:{streaming:!0,tool_call:!0,structured_output:!0,reasoning:!0,prompt_caching:!0},modalities:{input:[`text`],output:[`text`]},family:`glm-4.5`,model_type:`chat`,license:`mit`,open_weight:!0,tools:[`function_calling`],description:`The first-principle measure of AGI lies in integrating more general intelligence capabilities without compromising existing functions. GLM-4.5 represents our first complete realization of this concept. It combines advanced reasoning, coding, and agent capabilities within a single model, achieving a significant technological breakthrough by natively fusing reasoning, coding, and agent abilities to meet the complex demands of agent-based applications.`,parameters:355,active_parameters:32,page_url:`https://docs.z.ai/guides/llm/glm-4.5`,architecture:`moe`,tagline:`The first-principle measure of AGI lies in integrating more general intelligence capabilities without compromising existing functions.`,pricing:{input:.6,output:2.2,cached_input:.11}},{id:`glm-4.5v`,name:`GLM-4.5V`,created_by:`zhipu`,source:`official`,last_updated:`2026-03-23`,max_output_tokens:16e3,capabilities:{streaming:!0,reasoning:!0},modalities:{input:[`text`],output:[`text`]},family:`glm-4.5`,model_type:`chat`,license:`mit`,open_weight:!0,parameters:106,active_parameters:12,page_url:`https://docs.z.ai/guides/vlm/glm-4.5v`,architecture:`moe`,pricing:{input:.6,output:1.8,cached_input:.11}},{id:`glm-4.6`,name:`GLM-4.6`,created_by:`zhipu`,source:`official`,last_updated:`2026-03-23`,context_window:128e3,max_output_tokens:128e3,capabilities:{streaming:!0},modalities:{input:[`text`],output:[`text`]},family:`glm-4.6`,model_type:`chat`,license:`mit`,open_weight:!0,page_url:`https://docs.z.ai/guides/llm/glm-4.6`,pricing:{input:.6,output:2.2,cached_input:.11}},{id:`glm-4.6v-flash`,name:`GLM-4.6V-Flash`,created_by:`zhipu`,source:`official`,last_updated:`2026-03-23`,context_window:128e3,capabilities:{streaming:!0,tool_call:!0},modalities:{input:[`text`],output:[`text`]},family:`glm-4.6`,model_type:`chat`,license:`mit`,open_weight:!0,tools:[`function_calling`],description:`GLM-4.6V-Flash: Lightweight, Completely Free`,page_url:`https://docs.z.ai/guides/vlm/glm-4.6v`,tagline:`GLM-4.6V-Flash: Lightweight, Completely Free`,pricing:{input:0,output:0,cached_input:0}},{id:`glm-4.6v-flashx`,name:`GLM-4.6V-FlashX`,created_by:`zhipu`,source:`official`,last_updated:`2026-03-23`,context_window:128e3,capabilities:{streaming:!0,tool_call:!0},modalities:{input:[`text`],output:[`text`]},family:`glm-4.6`,model_type:`chat`,license:`mit`,open_weight:!0,tools:[`function_calling`],description:`GLM-4.6V-FlashX: Lightweight, High-Speed,and Affordable`,page_url:`https://docs.z.ai/guides/vlm/glm-4.6v`,tagline:`GLM-4.6V-FlashX: Lightweight, High-Speed,and Affordable`,pricing:{input:.04,output:.4,cached_input:.004}},{id:`glm-4.6v`,name:`GLM-4.6V`,created_by:`zhipu`,source:`official`,last_updated:`2026-03-23`,context_window:128e3,capabilities:{streaming:!0,tool_call:!0},modalities:{input:[`text`],output:[`text`]},family:`glm-4.6`,model_type:`chat`,license:`mit`,open_weight:!0,tools:[`function_calling`],page_url:`https://docs.z.ai/guides/vlm/glm-4.6v`,pricing:{input:.3,output:.9,cached_input:.05}},{id:`glm-4.7-flash`,name:`GLM-4.7-Flash`,created_by:`zhipu`,source:`official`,last_updated:`2026-03-23`,context_window:2e5,max_output_tokens:128e3,capabilities:{streaming:!0,tool_call:!0,structured_output:!0,reasoning:!0,prompt_caching:!0},modalities:{input:[`text`],output:[`text`]},family:`glm-4.7`,model_type:`chat`,license:`mit`,open_weight:!0,tools:[`function_calling`],description:`GLM-4.7-Flash: Lightweight, Completely Free`,page_url:`https://docs.z.ai/guides/llm/glm-4.7`,tagline:`GLM-4.7-Flash: Lightweight, Completely Free`,pricing:{input:0,output:0,cached_input:0}},{id:`glm-4.7-flashx`,name:`GLM-4.7-FlashX`,created_by:`zhipu`,source:`official`,last_updated:`2026-03-23`,context_window:2e5,max_output_tokens:128e3,capabilities:{streaming:!0,tool_call:!0,structured_output:!0,reasoning:!0,prompt_caching:!0},modalities:{input:[`text`],output:[`text`]},family:`glm-4.7`,model_type:`chat`,license:`mit`,open_weight:!0,tools:[`function_calling`],description:`GLM-4.7-FlashX: Lightweight, High-Speed,and Affordable`,page_url:`https://docs.z.ai/guides/llm/glm-4.7`,tagline:`GLM-4.7-FlashX: Lightweight, High-Speed,and Affordable`,pricing:{input:.07,output:.4,cached_input:.01}},{id:`glm-4.7`,name:`GLM-4.7`,created_by:`zhipu`,source:`official`,last_updated:`2026-03-23`,context_window:2e5,max_output_tokens:128e3,capabilities:{streaming:!0,tool_call:!0,structured_output:!0,reasoning:!0,prompt_caching:!0},modalities:{input:[`text`],output:[`text`]},family:`glm-4.7`,model_type:`chat`,license:`mit`,open_weight:!0,tools:[`function_calling`],page_url:`https://docs.z.ai/guides/llm/glm-4.7`,pricing:{input:.6,output:2.2,cached_input:.11}},{id:`glm-5-turbo`,name:`GLM-5-TURBO`,created_by:`zhipu`,source:`official`,last_updated:`2026-03-23`,context_window:2e5,max_output_tokens:128e3,capabilities:{streaming:!0,tool_call:!0,structured_output:!0,reasoning:!0,prompt_caching:!0},modalities:{input:[`text`],output:[`text`]},model_type:`chat`,family:`glm-5`,license:`proprietary`,open_weight:!1,tools:[`function_calling`],page_url:`https://docs.z.ai/guides/llm/glm-5-turbo`,pricing:{input:1.2,output:4,cached_input:.24}},{id:`glm-5`,name:`GLM-5`,created_by:`zhipu`,source:`official`,last_updated:`2026-03-23`,context_window:2e5,max_output_tokens:128e3,capabilities:{streaming:!0,tool_call:!0,structured_output:!0,reasoning:!0,prompt_caching:!0},modalities:{input:[`text`],output:[`text`]},model_type:`chat`,family:`glm-5`,license:`mit`,open_weight:!0,tools:[`function_calling`],parameters:355,active_parameters:32,page_url:`https://docs.z.ai/guides/llm/glm-5`,pricing:{input:1,output:3.2,cached_input:.2}},{id:`glm-asr-2512`,name:`GLM-ASR-2512`,created_by:`zai`,source:`official`,last_updated:`2026-03-23`,family:`glm`,model_type:`chat`,license:`mit`,alias:`glm-asr`,page_url:`https://docs.z.ai/guides/audio/glm-asr-2512`,modalities:{input:[`audio`],output:[`text`]},open_weight:!0},{id:`glm-asr`,name:`GLM-ASR-2512`,created_by:`zai`,source:`official`,last_updated:`2026-03-23`,family:`glm`,license:`mit`,page_url:`https://docs.z.ai/guides/audio/glm-asr-2512`,model_type:`chat`,modalities:{input:[`audio`],output:[`text`]},open_weight:!0,snapshots:[`glm-asr-2512`]},{id:`glm-image`,name:`GLM-IMAGE`,created_by:`zai`,source:`official`,last_updated:`2026-03-23`,family:`glm`,license:`mit`,page_url:`https://docs.z.ai/guides/image/glm-image`,architecture:`hybrid`,model_type:`chat`,modalities:{input:[`text`],output:[`image`]},open_weight:!0},{id:`glm-ocr`,name:`GLM-OCR`,created_by:`zhipu`,source:`official`,last_updated:`2026-03-23`,capabilities:{streaming:!0},modalities:{input:[`text`],output:[`text`]},model_type:`chat`,family:`glm`,license:`proprietary`,open_weight:!1,parameters:.9,page_url:`https://docs.z.ai/guides/vlm/glm-ocr`,pricing:{input:.03,output:.03}},{id:`grounding`,name:`Grounding`,created_by:`zai`,source:`official`,last_updated:`2026-03-23`,max_output_tokens:16e3,license:`mit`,parameters:106,active_parameters:12,page_url:`https://docs.z.ai/guides/vlm/glm-4.5v`,architecture:`moe`,capabilities:{streaming:!0,reasoning:!0},modalities:{input:[`text`],output:[`text`]},open_weight:!0},{id:`java`,name:`Java`,created_by:`zai`,source:`official`,last_updated:`2026-03-23`,license:`mit`,page_url:`https://docs.z.ai/guides/image/cogview-4`,modalities:{input:[`text`],output:[`image`]},open_weight:!0},{id:`python`,name:`Python`,created_by:`zai`,source:`official`,last_updated:`2026-03-23`,license:`mit`,page_url:`https://docs.z.ai/guides/image/cogview-4`,modalities:{input:[`text`],output:[`image`]},open_weight:!0},{id:`vidu2-image`,name:`VIDU2-IMAGE`,created_by:`zai`,source:`official`,last_updated:`2026-03-23`,license:`mit`,page_url:`https://docs.z.ai/guides/video/vidu2`,modalities:{input:[`image`,`text`],output:[`video`]},open_weight:!0},{id:`vidu2-reference`,name:`VIDU2-REFERENCE`,created_by:`zai`,source:`official`,last_updated:`2026-03-23`,license:`mit`,page_url:`https://docs.z.ai/guides/video/vidu2`,modalities:{input:[`image`,`text`],output:[`video`]},open_weight:!0},{id:`vidu2-start-end`,name:`VIDU2-START-END`,created_by:`zai`,source:`official`,last_updated:`2026-03-23`,license:`mit`,page_url:`https://docs.z.ai/guides/video/vidu2`,modalities:{input:[`image`,`text`],output:[`video`]},open_weight:!0},{id:`viduq1-image`,name:`VIDUQ1-IMAGE`,created_by:`zai`,source:`official`,last_updated:`2026-03-23`,license:`mit`,page_url:`https://docs.z.ai/guides/video/vidu-q1`,modalities:{input:[`image`,`text`],output:[`video`]},open_weight:!0},{id:`viduq1-start-end`,name:`VIDUQ1-START-END`,created_by:`zai`,source:`official`,last_updated:`2026-03-23`,license:`mit`,page_url:`https://docs.z.ai/guides/video/vidu-q1`,modalities:{input:[`image`,`text`],output:[`video`]},open_weight:!0},{id:`viduq1-text`,name:`VIDUQ1-TEXT`,created_by:`zai`,source:`official`,last_updated:`2026-03-23`,license:`mit`,page_url:`https://docs.z.ai/guides/video/vidu-q1`,modalities:{input:[`image`,`text`],output:[`video`]},open_weight:!0}]},t=e.models.map(t=>({...t,provider:e.id}));exports.models=t,exports.provider=e;
@@ -1,4 +1,4 @@
1
- import { f as ProviderWithModels, n as Model } from "../types.cjs";
1
+ import { m as ProviderWithModels, r as Model } from "../types.cjs";
2
2
 
3
3
  //#region src/providers/zai.d.ts
4
4
  declare const provider: ProviderWithModels;
@@ -1,4 +1,4 @@
1
- import { f as ProviderWithModels, n as Model } from "../types.mjs";
1
+ import { m as ProviderWithModels, r as Model } from "../types.mjs";
2
2
 
3
3
  //#region src/providers/zai.d.ts
4
4
  declare const provider: ProviderWithModels;
@@ -1,241 +1,3 @@
1
- //#region src/providers/zai.ts
2
- const provider = {
3
- "id": "zai",
4
- "name": "Z.AI (Zhipu)",
5
- "region": "CN",
6
- "url": "https://z.ai",
7
- "api_url": "https://api.z.ai/api/paas/v4",
8
- "docs_url": "https://docs.z.ai",
9
- "pricing_url": "https://z.ai/pricing",
10
- "icon": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"currentColor\" fill-rule=\"evenodd\">\n <path d=\"M12.105 2L9.927 4.953H.653L2.83 2h9.276zM23.254 19.048L21.078 22h-9.242l2.174-2.952h9.244zM24 2L9.264 22H0L14.736 2H24z\"/>\n</svg>",
11
- "models": [
12
- {
13
- "id": "glm-4-32b-0414-128k",
14
- "name": "GLM-4-32B-0414-128K",
15
- "created_by": "zhipu",
16
- "source": "official",
17
- "last_updated": "2026-03-21",
18
- "context_window": 128e3,
19
- "max_output_tokens": 16e3,
20
- "capabilities": {
21
- "streaming": true,
22
- "tool_call": true,
23
- "structured_output": true
24
- },
25
- "modalities": {
26
- "input": ["text"],
27
- "output": ["text"]
28
- }
29
- },
30
- {
31
- "id": "glm-4.5",
32
- "name": "GLM-4.5",
33
- "created_by": "zhipu",
34
- "source": "official",
35
- "last_updated": "2026-03-21",
36
- "context_window": 128e3,
37
- "max_output_tokens": 96e3,
38
- "capabilities": {
39
- "streaming": true,
40
- "tool_call": true,
41
- "structured_output": true,
42
- "reasoning": true
43
- },
44
- "modalities": {
45
- "input": ["text"],
46
- "output": ["text"]
47
- }
48
- },
49
- {
50
- "id": "glm-4.5v",
51
- "name": "GLM-4.5V",
52
- "created_by": "zhipu",
53
- "source": "official",
54
- "last_updated": "2026-03-21",
55
- "max_output_tokens": 16e3,
56
- "capabilities": {
57
- "streaming": true,
58
- "reasoning": true
59
- },
60
- "modalities": {
61
- "input": ["text"],
62
- "output": ["text"]
63
- }
64
- },
65
- {
66
- "id": "glm-4.6",
67
- "name": "GLM-4.6",
68
- "created_by": "zhipu",
69
- "source": "official",
70
- "last_updated": "2026-03-21",
71
- "context_window": 2e5,
72
- "max_output_tokens": 128e3,
73
- "capabilities": { "streaming": true },
74
- "modalities": {
75
- "input": ["text"],
76
- "output": ["text"]
77
- }
78
- },
79
- {
80
- "id": "glm-4.6v-flash",
81
- "name": "GLM-4.6V-Flash",
82
- "created_by": "zhipu",
83
- "source": "official",
84
- "last_updated": "2026-03-21",
85
- "context_window": 128e3,
86
- "capabilities": {
87
- "streaming": true,
88
- "tool_call": true
89
- },
90
- "modalities": {
91
- "input": ["text"],
92
- "output": ["text"]
93
- }
94
- },
95
- {
96
- "id": "glm-4.6v-flashx",
97
- "name": "GLM-4.6V-FlashX",
98
- "created_by": "zhipu",
99
- "source": "official",
100
- "last_updated": "2026-03-21",
101
- "context_window": 128e3,
102
- "capabilities": {
103
- "streaming": true,
104
- "tool_call": true
105
- },
106
- "modalities": {
107
- "input": ["text"],
108
- "output": ["text"]
109
- }
110
- },
111
- {
112
- "id": "glm-4.6v",
113
- "name": "GLM-4.6V",
114
- "created_by": "zhipu",
115
- "source": "official",
116
- "last_updated": "2026-03-21",
117
- "context_window": 128e3,
118
- "capabilities": {
119
- "streaming": true,
120
- "tool_call": true
121
- },
122
- "modalities": {
123
- "input": ["text"],
124
- "output": ["text"]
125
- }
126
- },
127
- {
128
- "id": "glm-4.7-flash",
129
- "name": "GLM-4.7-Flash",
130
- "created_by": "zhipu",
131
- "source": "official",
132
- "last_updated": "2026-03-21",
133
- "context_window": 2e5,
134
- "max_output_tokens": 128e3,
135
- "capabilities": {
136
- "streaming": true,
137
- "tool_call": true,
138
- "structured_output": true,
139
- "reasoning": true
140
- },
141
- "modalities": {
142
- "input": ["text"],
143
- "output": ["text"]
144
- }
145
- },
146
- {
147
- "id": "glm-4.7-flashx",
148
- "name": "GLM-4.7-FlashX",
149
- "created_by": "zhipu",
150
- "source": "official",
151
- "last_updated": "2026-03-21",
152
- "context_window": 2e5,
153
- "max_output_tokens": 128e3,
154
- "capabilities": {
155
- "streaming": true,
156
- "tool_call": true,
157
- "structured_output": true,
158
- "reasoning": true
159
- },
160
- "modalities": {
161
- "input": ["text"],
162
- "output": ["text"]
163
- }
164
- },
165
- {
166
- "id": "glm-4.7",
167
- "name": "GLM-4.7",
168
- "created_by": "zhipu",
169
- "source": "official",
170
- "last_updated": "2026-03-21",
171
- "context_window": 2e5,
172
- "max_output_tokens": 128e3,
173
- "capabilities": {
174
- "streaming": true,
175
- "tool_call": true,
176
- "structured_output": true,
177
- "reasoning": true
178
- },
179
- "modalities": {
180
- "input": ["text"],
181
- "output": ["text"]
182
- }
183
- },
184
- {
185
- "id": "glm-5-turbo",
186
- "name": "GLM-5-TURBO",
187
- "created_by": "zhipu",
188
- "source": "official",
189
- "last_updated": "2026-03-21",
190
- "context_window": 2e5,
191
- "max_output_tokens": 128e3,
192
- "capabilities": {
193
- "streaming": true,
194
- "tool_call": true,
195
- "structured_output": true,
196
- "reasoning": true
197
- },
198
- "modalities": {
199
- "input": ["text"],
200
- "output": ["text"]
201
- }
202
- },
203
- {
204
- "id": "glm-5",
205
- "name": "GLM-5",
206
- "created_by": "zhipu",
207
- "source": "official",
208
- "last_updated": "2026-03-21",
209
- "context_window": 2e5,
210
- "max_output_tokens": 128e3,
211
- "capabilities": {
212
- "streaming": true,
213
- "tool_call": true,
214
- "structured_output": true,
215
- "reasoning": true
216
- },
217
- "modalities": {
218
- "input": ["text"],
219
- "output": ["text"]
220
- }
221
- },
222
- {
223
- "id": "glm-ocr",
224
- "name": "GLM-OCR",
225
- "created_by": "zhipu",
226
- "source": "official",
227
- "last_updated": "2026-03-21",
228
- "capabilities": { "streaming": true },
229
- "modalities": {
230
- "input": ["text"],
231
- "output": ["text"]
232
- }
233
- }
234
- ]
235
- };
236
- const models = provider.models.map((m) => ({
237
- ...m,
238
- provider: provider.id
239
- }));
240
- //#endregion
241
- export { models, provider };
1
+ const e={id:`zai`,name:`Z.AI (Zhipu)`,region:`CN`,headquarters:`Beijing, Beijing`,founded:2019,url:`https://z.ai`,api_url:`https://api.z.ai/api/paas/v4`,docs_url:`https://docs.z.ai`,pricing_url:`https://z.ai/pricing`,description:`Zhipu AI builds GLM models for Chinese and multilingual AI applications.`,type:`direct`,aliases:[`zhipu`],openai_compatible:!0,free_tier:!0,github_url:`https://github.com/THUDM`,models_url:`https://open.bigmodel.cn/modelcenter/overview`,twitter_url:`https://x.com/ZhipuAI`,terms_url:`https://open.bigmodel.cn/dev/howuse/serviceagreement`,support_url:`https://z.ai/contact`,icon:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" fill-rule="evenodd">
2
+ <path d="M12.105 2L9.927 4.953H.653L2.83 2h9.276zM23.254 19.048L21.078 22h-9.242l2.174-2.952h9.244zM24 2L9.264 22H0L14.736 2H24z"/>
3
+ </svg>`,models:[{id:`autoglm-phone-multilingual`,name:`AUTOGLM-PHONE-MULTILINGUAL`,created_by:`zai`,source:`official`,last_updated:`2026-03-23`,license:`mit`,page_url:`https://docs.z.ai/guides/vlm/autoglm-phone-multilingual`,capabilities:{streaming:!0},modalities:{input:[`text`],output:[`text`]},open_weight:!0},{id:`cogvideox-3`,name:`COGVIDEOX-3`,created_by:`zai`,source:`official`,last_updated:`2026-03-23`,license:`mit`,page_url:`https://docs.z.ai/guides/video/cogvideox-3`,modalities:{input:[`image`,`text`],output:[`video`]},open_weight:!0,model_type:`video`},{id:`cogview-4-250304`,name:`COGVIEW-4-250304`,created_by:`zai`,source:`official`,last_updated:`2026-03-23`,license:`mit`,page_url:`https://docs.z.ai/guides/image/cogview-4`,modalities:{input:[`text`],output:[`image`]},open_weight:!0,model_type:`image`},{id:`curl`,name:`cURL`,created_by:`zai`,source:`official`,last_updated:`2026-03-23`,license:`mit`,page_url:`https://docs.z.ai/guides/audio/glm-asr-2512`,modalities:{input:[`audio`],output:[`text`]},open_weight:!0},{id:`glm-4-32b-0414-128k`,name:`GLM-4-32B-0414-128K`,created_by:`zhipu`,source:`official`,last_updated:`2026-03-23`,context_window:128e3,max_output_tokens:16e3,capabilities:{streaming:!0,tool_call:!0,structured_output:!0},modalities:{input:[`text`],output:[`text`]},model_type:`chat`,family:`glm-4`,license:`mit`,parameters:32,open_weight:!0,tools:[`function_calling`],page_url:`https://docs.z.ai/guides/llm/glm-4-32b-0414-128k`,pricing:{input:.1,output:.1}},{id:`glm-4.5`,name:`GLM-4.5`,created_by:`zhipu`,source:`official`,last_updated:`2026-03-23`,context_window:128e3,max_output_tokens:96e3,capabilities:{streaming:!0,tool_call:!0,structured_output:!0,reasoning:!0,prompt_caching:!0},modalities:{input:[`text`],output:[`text`]},family:`glm-4.5`,model_type:`chat`,license:`mit`,open_weight:!0,tools:[`function_calling`],description:`The first-principle measure of AGI lies in integrating more general intelligence capabilities without compromising existing functions. GLM-4.5 represents our first complete realization of this concept. It combines advanced reasoning, coding, and agent capabilities within a single model, achieving a significant technological breakthrough by natively fusing reasoning, coding, and agent abilities to meet the complex demands of agent-based applications.`,parameters:355,active_parameters:32,page_url:`https://docs.z.ai/guides/llm/glm-4.5`,architecture:`moe`,tagline:`The first-principle measure of AGI lies in integrating more general intelligence capabilities without compromising existing functions.`,pricing:{input:.6,output:2.2,cached_input:.11}},{id:`glm-4.5v`,name:`GLM-4.5V`,created_by:`zhipu`,source:`official`,last_updated:`2026-03-23`,max_output_tokens:16e3,capabilities:{streaming:!0,reasoning:!0},modalities:{input:[`text`],output:[`text`]},family:`glm-4.5`,model_type:`chat`,license:`mit`,open_weight:!0,parameters:106,active_parameters:12,page_url:`https://docs.z.ai/guides/vlm/glm-4.5v`,architecture:`moe`,pricing:{input:.6,output:1.8,cached_input:.11}},{id:`glm-4.6`,name:`GLM-4.6`,created_by:`zhipu`,source:`official`,last_updated:`2026-03-23`,context_window:128e3,max_output_tokens:128e3,capabilities:{streaming:!0},modalities:{input:[`text`],output:[`text`]},family:`glm-4.6`,model_type:`chat`,license:`mit`,open_weight:!0,page_url:`https://docs.z.ai/guides/llm/glm-4.6`,pricing:{input:.6,output:2.2,cached_input:.11}},{id:`glm-4.6v-flash`,name:`GLM-4.6V-Flash`,created_by:`zhipu`,source:`official`,last_updated:`2026-03-23`,context_window:128e3,capabilities:{streaming:!0,tool_call:!0},modalities:{input:[`text`],output:[`text`]},family:`glm-4.6`,model_type:`chat`,license:`mit`,open_weight:!0,tools:[`function_calling`],description:`GLM-4.6V-Flash: Lightweight, Completely Free`,page_url:`https://docs.z.ai/guides/vlm/glm-4.6v`,tagline:`GLM-4.6V-Flash: Lightweight, Completely Free`,pricing:{input:0,output:0,cached_input:0}},{id:`glm-4.6v-flashx`,name:`GLM-4.6V-FlashX`,created_by:`zhipu`,source:`official`,last_updated:`2026-03-23`,context_window:128e3,capabilities:{streaming:!0,tool_call:!0},modalities:{input:[`text`],output:[`text`]},family:`glm-4.6`,model_type:`chat`,license:`mit`,open_weight:!0,tools:[`function_calling`],description:`GLM-4.6V-FlashX: Lightweight, High-Speed,and Affordable`,page_url:`https://docs.z.ai/guides/vlm/glm-4.6v`,tagline:`GLM-4.6V-FlashX: Lightweight, High-Speed,and Affordable`,pricing:{input:.04,output:.4,cached_input:.004}},{id:`glm-4.6v`,name:`GLM-4.6V`,created_by:`zhipu`,source:`official`,last_updated:`2026-03-23`,context_window:128e3,capabilities:{streaming:!0,tool_call:!0},modalities:{input:[`text`],output:[`text`]},family:`glm-4.6`,model_type:`chat`,license:`mit`,open_weight:!0,tools:[`function_calling`],page_url:`https://docs.z.ai/guides/vlm/glm-4.6v`,pricing:{input:.3,output:.9,cached_input:.05}},{id:`glm-4.7-flash`,name:`GLM-4.7-Flash`,created_by:`zhipu`,source:`official`,last_updated:`2026-03-23`,context_window:2e5,max_output_tokens:128e3,capabilities:{streaming:!0,tool_call:!0,structured_output:!0,reasoning:!0,prompt_caching:!0},modalities:{input:[`text`],output:[`text`]},family:`glm-4.7`,model_type:`chat`,license:`mit`,open_weight:!0,tools:[`function_calling`],description:`GLM-4.7-Flash: Lightweight, Completely Free`,page_url:`https://docs.z.ai/guides/llm/glm-4.7`,tagline:`GLM-4.7-Flash: Lightweight, Completely Free`,pricing:{input:0,output:0,cached_input:0}},{id:`glm-4.7-flashx`,name:`GLM-4.7-FlashX`,created_by:`zhipu`,source:`official`,last_updated:`2026-03-23`,context_window:2e5,max_output_tokens:128e3,capabilities:{streaming:!0,tool_call:!0,structured_output:!0,reasoning:!0,prompt_caching:!0},modalities:{input:[`text`],output:[`text`]},family:`glm-4.7`,model_type:`chat`,license:`mit`,open_weight:!0,tools:[`function_calling`],description:`GLM-4.7-FlashX: Lightweight, High-Speed,and Affordable`,page_url:`https://docs.z.ai/guides/llm/glm-4.7`,tagline:`GLM-4.7-FlashX: Lightweight, High-Speed,and Affordable`,pricing:{input:.07,output:.4,cached_input:.01}},{id:`glm-4.7`,name:`GLM-4.7`,created_by:`zhipu`,source:`official`,last_updated:`2026-03-23`,context_window:2e5,max_output_tokens:128e3,capabilities:{streaming:!0,tool_call:!0,structured_output:!0,reasoning:!0,prompt_caching:!0},modalities:{input:[`text`],output:[`text`]},family:`glm-4.7`,model_type:`chat`,license:`mit`,open_weight:!0,tools:[`function_calling`],page_url:`https://docs.z.ai/guides/llm/glm-4.7`,pricing:{input:.6,output:2.2,cached_input:.11}},{id:`glm-5-turbo`,name:`GLM-5-TURBO`,created_by:`zhipu`,source:`official`,last_updated:`2026-03-23`,context_window:2e5,max_output_tokens:128e3,capabilities:{streaming:!0,tool_call:!0,structured_output:!0,reasoning:!0,prompt_caching:!0},modalities:{input:[`text`],output:[`text`]},model_type:`chat`,family:`glm-5`,license:`proprietary`,open_weight:!1,tools:[`function_calling`],page_url:`https://docs.z.ai/guides/llm/glm-5-turbo`,pricing:{input:1.2,output:4,cached_input:.24}},{id:`glm-5`,name:`GLM-5`,created_by:`zhipu`,source:`official`,last_updated:`2026-03-23`,context_window:2e5,max_output_tokens:128e3,capabilities:{streaming:!0,tool_call:!0,structured_output:!0,reasoning:!0,prompt_caching:!0},modalities:{input:[`text`],output:[`text`]},model_type:`chat`,family:`glm-5`,license:`mit`,open_weight:!0,tools:[`function_calling`],parameters:355,active_parameters:32,page_url:`https://docs.z.ai/guides/llm/glm-5`,pricing:{input:1,output:3.2,cached_input:.2}},{id:`glm-asr-2512`,name:`GLM-ASR-2512`,created_by:`zai`,source:`official`,last_updated:`2026-03-23`,family:`glm`,model_type:`chat`,license:`mit`,alias:`glm-asr`,page_url:`https://docs.z.ai/guides/audio/glm-asr-2512`,modalities:{input:[`audio`],output:[`text`]},open_weight:!0},{id:`glm-asr`,name:`GLM-ASR-2512`,created_by:`zai`,source:`official`,last_updated:`2026-03-23`,family:`glm`,license:`mit`,page_url:`https://docs.z.ai/guides/audio/glm-asr-2512`,model_type:`chat`,modalities:{input:[`audio`],output:[`text`]},open_weight:!0,snapshots:[`glm-asr-2512`]},{id:`glm-image`,name:`GLM-IMAGE`,created_by:`zai`,source:`official`,last_updated:`2026-03-23`,family:`glm`,license:`mit`,page_url:`https://docs.z.ai/guides/image/glm-image`,architecture:`hybrid`,model_type:`chat`,modalities:{input:[`text`],output:[`image`]},open_weight:!0},{id:`glm-ocr`,name:`GLM-OCR`,created_by:`zhipu`,source:`official`,last_updated:`2026-03-23`,capabilities:{streaming:!0},modalities:{input:[`text`],output:[`text`]},model_type:`chat`,family:`glm`,license:`proprietary`,open_weight:!1,parameters:.9,page_url:`https://docs.z.ai/guides/vlm/glm-ocr`,pricing:{input:.03,output:.03}},{id:`grounding`,name:`Grounding`,created_by:`zai`,source:`official`,last_updated:`2026-03-23`,max_output_tokens:16e3,license:`mit`,parameters:106,active_parameters:12,page_url:`https://docs.z.ai/guides/vlm/glm-4.5v`,architecture:`moe`,capabilities:{streaming:!0,reasoning:!0},modalities:{input:[`text`],output:[`text`]},open_weight:!0},{id:`java`,name:`Java`,created_by:`zai`,source:`official`,last_updated:`2026-03-23`,license:`mit`,page_url:`https://docs.z.ai/guides/image/cogview-4`,modalities:{input:[`text`],output:[`image`]},open_weight:!0},{id:`python`,name:`Python`,created_by:`zai`,source:`official`,last_updated:`2026-03-23`,license:`mit`,page_url:`https://docs.z.ai/guides/image/cogview-4`,modalities:{input:[`text`],output:[`image`]},open_weight:!0},{id:`vidu2-image`,name:`VIDU2-IMAGE`,created_by:`zai`,source:`official`,last_updated:`2026-03-23`,license:`mit`,page_url:`https://docs.z.ai/guides/video/vidu2`,modalities:{input:[`image`,`text`],output:[`video`]},open_weight:!0},{id:`vidu2-reference`,name:`VIDU2-REFERENCE`,created_by:`zai`,source:`official`,last_updated:`2026-03-23`,license:`mit`,page_url:`https://docs.z.ai/guides/video/vidu2`,modalities:{input:[`image`,`text`],output:[`video`]},open_weight:!0},{id:`vidu2-start-end`,name:`VIDU2-START-END`,created_by:`zai`,source:`official`,last_updated:`2026-03-23`,license:`mit`,page_url:`https://docs.z.ai/guides/video/vidu2`,modalities:{input:[`image`,`text`],output:[`video`]},open_weight:!0},{id:`viduq1-image`,name:`VIDUQ1-IMAGE`,created_by:`zai`,source:`official`,last_updated:`2026-03-23`,license:`mit`,page_url:`https://docs.z.ai/guides/video/vidu-q1`,modalities:{input:[`image`,`text`],output:[`video`]},open_weight:!0},{id:`viduq1-start-end`,name:`VIDUQ1-START-END`,created_by:`zai`,source:`official`,last_updated:`2026-03-23`,license:`mit`,page_url:`https://docs.z.ai/guides/video/vidu-q1`,modalities:{input:[`image`,`text`],output:[`video`]},open_weight:!0},{id:`viduq1-text`,name:`VIDUQ1-TEXT`,created_by:`zai`,source:`official`,last_updated:`2026-03-23`,license:`mit`,page_url:`https://docs.z.ai/guides/video/vidu-q1`,modalities:{input:[`image`,`text`],output:[`video`]},open_weight:!0}]},t=e.models.map(t=>({...t,provider:e.id}));export{t as models,e as provider};