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.
- package/README.md +141 -0
- package/dist/index.cjs +1 -101
- package/dist/index.d.cts +10 -2
- package/dist/index.d.mts +10 -2
- package/dist/index.mjs +1 -92
- package/dist/providers/alibaba.cjs +4 -835
- package/dist/providers/alibaba.d.cts +1 -1
- package/dist/providers/alibaba.d.mts +1 -1
- package/dist/providers/alibaba.mjs +4 -833
- package/dist/providers/amazon.cjs +4 -1484
- package/dist/providers/amazon.d.cts +1 -1
- package/dist/providers/amazon.d.mts +1 -1
- package/dist/providers/amazon.mjs +4 -1482
- package/dist/providers/anthropic.cjs +3 -698
- package/dist/providers/anthropic.d.cts +1 -1
- package/dist/providers/anthropic.d.mts +1 -1
- package/dist/providers/anthropic.mjs +3 -696
- package/dist/providers/azure.cjs +6 -1491
- package/dist/providers/azure.d.cts +1 -1
- package/dist/providers/azure.d.mts +1 -1
- package/dist/providers/azure.mjs +6 -1489
- package/dist/providers/baseten.cjs +3 -279
- package/dist/providers/baseten.d.cts +1 -1
- package/dist/providers/baseten.d.mts +1 -1
- package/dist/providers/baseten.mjs +3 -277
- package/dist/providers/cerebras.cjs +4 -145
- package/dist/providers/cerebras.d.cts +1 -1
- package/dist/providers/cerebras.d.mts +1 -1
- package/dist/providers/cerebras.mjs +4 -143
- package/dist/providers/cloudflare-ai-gateway.cjs +4 -0
- package/dist/providers/cloudflare-ai-gateway.d.cts +7 -0
- package/dist/providers/cloudflare-ai-gateway.d.mts +7 -0
- package/dist/providers/cloudflare-ai-gateway.mjs +4 -0
- package/dist/providers/cloudflare-workers-ai.cjs +4 -0
- package/dist/providers/cloudflare-workers-ai.d.cts +7 -0
- package/dist/providers/cloudflare-workers-ai.d.mts +7 -0
- package/dist/providers/cloudflare-workers-ai.mjs +4 -0
- package/dist/providers/cohere.cjs +5 -525
- package/dist/providers/cohere.d.cts +1 -1
- package/dist/providers/cohere.d.mts +1 -1
- package/dist/providers/cohere.mjs +5 -523
- package/dist/providers/cursor.cjs +1 -856
- package/dist/providers/cursor.d.cts +1 -1
- package/dist/providers/cursor.d.mts +1 -1
- package/dist/providers/cursor.mjs +1 -854
- package/dist/providers/deepseek.cjs +3 -64
- package/dist/providers/deepseek.d.cts +1 -1
- package/dist/providers/deepseek.d.mts +1 -1
- package/dist/providers/deepseek.mjs +3 -62
- package/dist/providers/fireworks.cjs +3 -3794
- package/dist/providers/fireworks.d.cts +1 -1
- package/dist/providers/fireworks.d.mts +1 -1
- package/dist/providers/fireworks.mjs +3 -3792
- package/dist/providers/google.cjs +6 -972
- package/dist/providers/google.d.cts +1 -1
- package/dist/providers/google.d.mts +1 -1
- package/dist/providers/google.mjs +6 -970
- package/dist/providers/groq.cjs +3 -353
- package/dist/providers/groq.d.cts +1 -1
- package/dist/providers/groq.d.mts +1 -1
- package/dist/providers/groq.mjs +3 -351
- package/dist/providers/huggingface.cjs +3 -1022
- package/dist/providers/huggingface.d.cts +1 -1
- package/dist/providers/huggingface.d.mts +1 -1
- package/dist/providers/huggingface.mjs +3 -1020
- package/dist/providers/meta.cjs +3 -481
- package/dist/providers/meta.d.cts +1 -1
- package/dist/providers/meta.d.mts +1 -1
- package/dist/providers/meta.mjs +3 -479
- package/dist/providers/minimax.cjs +3 -156
- package/dist/providers/minimax.d.cts +1 -1
- package/dist/providers/minimax.d.mts +1 -1
- package/dist/providers/minimax.mjs +3 -154
- package/dist/providers/mistral.cjs +3 -1594
- package/dist/providers/mistral.d.cts +1 -1
- package/dist/providers/mistral.d.mts +1 -1
- package/dist/providers/mistral.mjs +3 -1592
- package/dist/providers/moonshot.cjs +3 -138
- package/dist/providers/moonshot.d.cts +1 -1
- package/dist/providers/moonshot.d.mts +1 -1
- package/dist/providers/moonshot.mjs +3 -136
- package/dist/providers/nvidia.cjs +3 -2040
- package/dist/providers/nvidia.d.cts +1 -1
- package/dist/providers/nvidia.d.mts +1 -1
- package/dist/providers/nvidia.mjs +3 -2038
- package/dist/providers/ollama.cjs +3 -326
- package/dist/providers/ollama.d.cts +1 -1
- package/dist/providers/ollama.d.mts +1 -1
- package/dist/providers/ollama.mjs +3 -324
- package/dist/providers/openai.cjs +3 -9079
- package/dist/providers/openai.d.cts +1 -1
- package/dist/providers/openai.d.mts +1 -1
- package/dist/providers/openai.mjs +3 -9077
- package/dist/providers/opencode.cjs +3 -367
- package/dist/providers/opencode.d.cts +1 -1
- package/dist/providers/opencode.d.mts +1 -1
- package/dist/providers/opencode.mjs +3 -365
- package/dist/providers/openrouter.cjs +21 -7835
- package/dist/providers/openrouter.d.cts +1 -1
- package/dist/providers/openrouter.d.mts +1 -1
- package/dist/providers/openrouter.mjs +21 -7833
- package/dist/providers/perplexity.cjs +3 -311
- package/dist/providers/perplexity.d.cts +1 -1
- package/dist/providers/perplexity.d.mts +1 -1
- package/dist/providers/perplexity.mjs +3 -309
- package/dist/providers/qwen.cjs +3 -835
- package/dist/providers/qwen.d.cts +1 -1
- package/dist/providers/qwen.d.mts +1 -1
- package/dist/providers/qwen.mjs +3 -833
- package/dist/providers/together.cjs +4 -360
- package/dist/providers/together.d.cts +1 -1
- package/dist/providers/together.d.mts +1 -1
- package/dist/providers/together.mjs +4 -358
- package/dist/providers/vercel.cjs +3 -4037
- package/dist/providers/vercel.d.cts +1 -1
- package/dist/providers/vercel.d.mts +1 -1
- package/dist/providers/vercel.mjs +3 -4035
- package/dist/providers/vertex.cjs +10 -1072
- package/dist/providers/vertex.d.cts +1 -1
- package/dist/providers/vertex.d.mts +1 -1
- package/dist/providers/vertex.mjs +10 -1070
- package/dist/providers/xai.cjs +3 -301
- package/dist/providers/xai.d.cts +1 -1
- package/dist/providers/xai.d.mts +1 -1
- package/dist/providers/xai.mjs +3 -299
- package/dist/providers/zai.cjs +3 -243
- package/dist/providers/zai.d.cts +1 -1
- package/dist/providers/zai.d.mts +1 -1
- package/dist/providers/zai.mjs +3 -241
- package/dist/types.d.cts +80 -8
- package/dist/types.d.mts +80 -8
- package/package.json +3 -3
- package/dist/providers/cloudflare.cjs +0 -826
- package/dist/providers/cloudflare.d.cts +0 -7
- package/dist/providers/cloudflare.d.mts +0 -7
- package/dist/providers/cloudflare.mjs +0 -824
package/dist/providers/xai.cjs
CHANGED
|
@@ -1,301 +1,3 @@
|
|
|
1
|
-
Object.defineProperty(exports,
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
"id": "xai",
|
|
5
|
-
"name": "xAI",
|
|
6
|
-
"region": "US",
|
|
7
|
-
"url": "https://x.ai",
|
|
8
|
-
"api_url": "https://api.x.ai/v1",
|
|
9
|
-
"docs_url": "https://docs.x.ai",
|
|
10
|
-
"pricing_url": "https://docs.x.ai/docs/model-pricing",
|
|
11
|
-
"icon": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"currentColor\" fill-rule=\"evenodd\">\n <path d=\"M6.469 8.776L16.512 23h-4.464L2.005 8.776H6.47zm-.004 7.9l2.233 3.164L6.467 23H2l4.465-6.324zM22 2.582V23h-3.659V7.764L22 2.582zM22 1l-9.952 14.095-2.233-3.163L17.533 1H22z\"/>\n</svg>",
|
|
12
|
-
"models": [
|
|
13
|
-
{
|
|
14
|
-
"id": "grok-3-mini",
|
|
15
|
-
"name": "grok-3-mini",
|
|
16
|
-
"created_by": "xai",
|
|
17
|
-
"source": "official",
|
|
18
|
-
"last_updated": "2026-03-20",
|
|
19
|
-
"release_date": "2025-04-04",
|
|
20
|
-
"capabilities": {
|
|
21
|
-
"streaming": true,
|
|
22
|
-
"tool_call": true,
|
|
23
|
-
"structured_output": true,
|
|
24
|
-
"reasoning": true
|
|
25
|
-
},
|
|
26
|
-
"context_window": 131072,
|
|
27
|
-
"description": "A lightweight model that thinks before responding.",
|
|
28
|
-
"modalities": {
|
|
29
|
-
"input": ["text"],
|
|
30
|
-
"output": ["text"]
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
"id": "grok-3",
|
|
35
|
-
"name": "grok-3",
|
|
36
|
-
"created_by": "xai",
|
|
37
|
-
"source": "official",
|
|
38
|
-
"last_updated": "2026-03-20",
|
|
39
|
-
"release_date": "2025-04-04",
|
|
40
|
-
"capabilities": {
|
|
41
|
-
"streaming": true,
|
|
42
|
-
"tool_call": true,
|
|
43
|
-
"structured_output": true
|
|
44
|
-
},
|
|
45
|
-
"context_window": 131072,
|
|
46
|
-
"description": "Grok 3 is the latest model from xAI.",
|
|
47
|
-
"modalities": {
|
|
48
|
-
"input": ["text"],
|
|
49
|
-
"output": ["text"]
|
|
50
|
-
}
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
"id": "grok-4-0709",
|
|
54
|
-
"name": "grok-4-0709",
|
|
55
|
-
"created_by": "xai",
|
|
56
|
-
"source": "official",
|
|
57
|
-
"last_updated": "2026-03-20",
|
|
58
|
-
"release_date": "2025-07-09",
|
|
59
|
-
"capabilities": {
|
|
60
|
-
"streaming": true,
|
|
61
|
-
"tool_call": true
|
|
62
|
-
}
|
|
63
|
-
},
|
|
64
|
-
{
|
|
65
|
-
"id": "grok-4-1-fast-non-reasoning",
|
|
66
|
-
"name": "grok-4-1-fast-non-reasoning",
|
|
67
|
-
"created_by": "xai",
|
|
68
|
-
"source": "official",
|
|
69
|
-
"last_updated": "2026-03-20",
|
|
70
|
-
"release_date": "2025-11-19",
|
|
71
|
-
"capabilities": {
|
|
72
|
-
"streaming": true,
|
|
73
|
-
"tool_call": true,
|
|
74
|
-
"structured_output": true
|
|
75
|
-
},
|
|
76
|
-
"family": "grok-4",
|
|
77
|
-
"context_window": 2e6,
|
|
78
|
-
"modalities": {
|
|
79
|
-
"input": ["text", "image"],
|
|
80
|
-
"output": ["text"]
|
|
81
|
-
},
|
|
82
|
-
"pricing": {
|
|
83
|
-
"input": .2,
|
|
84
|
-
"output": .5,
|
|
85
|
-
"cached_input": .05
|
|
86
|
-
}
|
|
87
|
-
},
|
|
88
|
-
{
|
|
89
|
-
"id": "grok-4-1-fast-reasoning",
|
|
90
|
-
"name": "grok-4-1-fast-reasoning",
|
|
91
|
-
"created_by": "xai",
|
|
92
|
-
"source": "official",
|
|
93
|
-
"last_updated": "2026-03-20",
|
|
94
|
-
"release_date": "2025-11-19",
|
|
95
|
-
"capabilities": {
|
|
96
|
-
"streaming": true,
|
|
97
|
-
"tool_call": true,
|
|
98
|
-
"structured_output": true,
|
|
99
|
-
"reasoning": true
|
|
100
|
-
},
|
|
101
|
-
"family": "grok-4",
|
|
102
|
-
"context_window": 2e6,
|
|
103
|
-
"reasoning_tokens": true,
|
|
104
|
-
"modalities": {
|
|
105
|
-
"input": ["text", "image"],
|
|
106
|
-
"output": ["text"]
|
|
107
|
-
},
|
|
108
|
-
"pricing": {
|
|
109
|
-
"input": .2,
|
|
110
|
-
"output": .5,
|
|
111
|
-
"cached_input": .05
|
|
112
|
-
}
|
|
113
|
-
},
|
|
114
|
-
{
|
|
115
|
-
"id": "grok-4-fast-non-reasoning",
|
|
116
|
-
"name": "grok-4-fast-non-reasoning",
|
|
117
|
-
"created_by": "xai",
|
|
118
|
-
"source": "official",
|
|
119
|
-
"last_updated": "2026-03-20",
|
|
120
|
-
"release_date": "2025-09-04",
|
|
121
|
-
"capabilities": {
|
|
122
|
-
"streaming": true,
|
|
123
|
-
"tool_call": true
|
|
124
|
-
}
|
|
125
|
-
},
|
|
126
|
-
{
|
|
127
|
-
"id": "grok-4-fast-reasoning",
|
|
128
|
-
"name": "grok-4-fast-reasoning",
|
|
129
|
-
"created_by": "xai",
|
|
130
|
-
"source": "official",
|
|
131
|
-
"last_updated": "2026-03-20",
|
|
132
|
-
"release_date": "2025-09-04",
|
|
133
|
-
"capabilities": {
|
|
134
|
-
"streaming": true,
|
|
135
|
-
"tool_call": true
|
|
136
|
-
}
|
|
137
|
-
},
|
|
138
|
-
{
|
|
139
|
-
"id": "grok-4.20-0309-non-reasoning",
|
|
140
|
-
"name": "grok-4.20-0309-non-reasoning",
|
|
141
|
-
"created_by": "xai",
|
|
142
|
-
"source": "official",
|
|
143
|
-
"last_updated": "2026-03-20",
|
|
144
|
-
"release_date": "2026-03-09",
|
|
145
|
-
"capabilities": {
|
|
146
|
-
"streaming": true,
|
|
147
|
-
"tool_call": true,
|
|
148
|
-
"structured_output": true
|
|
149
|
-
},
|
|
150
|
-
"family": "grok-4.20",
|
|
151
|
-
"context_window": 2e6,
|
|
152
|
-
"modalities": {
|
|
153
|
-
"input": ["text", "image"],
|
|
154
|
-
"output": ["text"]
|
|
155
|
-
},
|
|
156
|
-
"pricing": {
|
|
157
|
-
"input": 2,
|
|
158
|
-
"output": 6,
|
|
159
|
-
"cached_input": .2
|
|
160
|
-
}
|
|
161
|
-
},
|
|
162
|
-
{
|
|
163
|
-
"id": "grok-4.20-0309-reasoning",
|
|
164
|
-
"name": "grok-4.20-0309-reasoning",
|
|
165
|
-
"created_by": "xai",
|
|
166
|
-
"source": "official",
|
|
167
|
-
"last_updated": "2026-03-20",
|
|
168
|
-
"release_date": "2026-03-09",
|
|
169
|
-
"capabilities": {
|
|
170
|
-
"streaming": true,
|
|
171
|
-
"tool_call": true,
|
|
172
|
-
"structured_output": true,
|
|
173
|
-
"reasoning": true
|
|
174
|
-
},
|
|
175
|
-
"family": "grok-4.20",
|
|
176
|
-
"context_window": 2e6,
|
|
177
|
-
"reasoning_tokens": true,
|
|
178
|
-
"modalities": {
|
|
179
|
-
"input": ["text", "image"],
|
|
180
|
-
"output": ["text"]
|
|
181
|
-
},
|
|
182
|
-
"pricing": {
|
|
183
|
-
"input": 2,
|
|
184
|
-
"output": 6,
|
|
185
|
-
"cached_input": .2
|
|
186
|
-
}
|
|
187
|
-
},
|
|
188
|
-
{
|
|
189
|
-
"id": "grok-4.20-multi-agent-0309",
|
|
190
|
-
"name": "grok-4.20-multi-agent-0309",
|
|
191
|
-
"created_by": "xai",
|
|
192
|
-
"source": "official",
|
|
193
|
-
"last_updated": "2026-03-20",
|
|
194
|
-
"release_date": "2026-03-09",
|
|
195
|
-
"capabilities": {
|
|
196
|
-
"streaming": true,
|
|
197
|
-
"tool_call": true,
|
|
198
|
-
"structured_output": true,
|
|
199
|
-
"reasoning": true
|
|
200
|
-
},
|
|
201
|
-
"family": "grok-4.20",
|
|
202
|
-
"context_window": 2e6,
|
|
203
|
-
"reasoning_tokens": true,
|
|
204
|
-
"modalities": {
|
|
205
|
-
"input": ["text", "image"],
|
|
206
|
-
"output": ["text"]
|
|
207
|
-
},
|
|
208
|
-
"pricing": {
|
|
209
|
-
"input": 2,
|
|
210
|
-
"output": 6,
|
|
211
|
-
"cached_input": .2
|
|
212
|
-
}
|
|
213
|
-
},
|
|
214
|
-
{
|
|
215
|
-
"id": "grok-code-fast-1",
|
|
216
|
-
"name": "grok-code-fast-1",
|
|
217
|
-
"created_by": "xai",
|
|
218
|
-
"source": "official",
|
|
219
|
-
"last_updated": "2026-03-20",
|
|
220
|
-
"release_date": "2025-08-24",
|
|
221
|
-
"capabilities": {
|
|
222
|
-
"streaming": true,
|
|
223
|
-
"tool_call": true,
|
|
224
|
-
"structured_output": true,
|
|
225
|
-
"reasoning": true
|
|
226
|
-
},
|
|
227
|
-
"context_window": 256e3,
|
|
228
|
-
"max_output_tokens": 1e4,
|
|
229
|
-
"description": "Grok Code Fast 1 is a speedy and economical reasoning model that excels at agentic coding.",
|
|
230
|
-
"modalities": {
|
|
231
|
-
"input": ["text"],
|
|
232
|
-
"output": ["text"]
|
|
233
|
-
}
|
|
234
|
-
},
|
|
235
|
-
{
|
|
236
|
-
"id": "grok-imagine-image-pro",
|
|
237
|
-
"name": "grok-imagine-image-pro",
|
|
238
|
-
"created_by": "xai",
|
|
239
|
-
"source": "official",
|
|
240
|
-
"last_updated": "2026-03-21",
|
|
241
|
-
"release_date": "2026-01-28",
|
|
242
|
-
"capabilities": {
|
|
243
|
-
"streaming": true,
|
|
244
|
-
"tool_call": true
|
|
245
|
-
},
|
|
246
|
-
"family": "grok-imagine",
|
|
247
|
-
"model_type": "image",
|
|
248
|
-
"modalities": {
|
|
249
|
-
"input": ["text", "image"],
|
|
250
|
-
"output": ["image"]
|
|
251
|
-
}
|
|
252
|
-
},
|
|
253
|
-
{
|
|
254
|
-
"id": "grok-imagine-image",
|
|
255
|
-
"name": "grok-imagine-image",
|
|
256
|
-
"created_by": "xai",
|
|
257
|
-
"source": "official",
|
|
258
|
-
"last_updated": "2026-03-21",
|
|
259
|
-
"release_date": "2026-01-28",
|
|
260
|
-
"capabilities": {
|
|
261
|
-
"streaming": true,
|
|
262
|
-
"tool_call": true
|
|
263
|
-
},
|
|
264
|
-
"family": "grok-imagine",
|
|
265
|
-
"model_type": "image",
|
|
266
|
-
"modalities": {
|
|
267
|
-
"input": ["text", "image"],
|
|
268
|
-
"output": ["image"]
|
|
269
|
-
}
|
|
270
|
-
},
|
|
271
|
-
{
|
|
272
|
-
"id": "grok-imagine-video",
|
|
273
|
-
"name": "grok-imagine-video",
|
|
274
|
-
"created_by": "xai",
|
|
275
|
-
"source": "official",
|
|
276
|
-
"last_updated": "2026-03-21",
|
|
277
|
-
"release_date": "2026-01-28",
|
|
278
|
-
"capabilities": {
|
|
279
|
-
"streaming": true,
|
|
280
|
-
"tool_call": true
|
|
281
|
-
},
|
|
282
|
-
"family": "grok-imagine",
|
|
283
|
-
"model_type": "image",
|
|
284
|
-
"modalities": {
|
|
285
|
-
"input": [
|
|
286
|
-
"text",
|
|
287
|
-
"image",
|
|
288
|
-
"video"
|
|
289
|
-
],
|
|
290
|
-
"output": ["video"]
|
|
291
|
-
}
|
|
292
|
-
}
|
|
293
|
-
]
|
|
294
|
-
};
|
|
295
|
-
const models = provider.models.map((m) => ({
|
|
296
|
-
...m,
|
|
297
|
-
provider: provider.id
|
|
298
|
-
}));
|
|
299
|
-
//#endregion
|
|
300
|
-
exports.models = models;
|
|
301
|
-
exports.provider = provider;
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e={id:`xai`,name:`xAI`,region:`US`,headquarters:`Palo Alto, CA`,founded:2023,url:`https://x.ai`,api_url:`https://api.x.ai/v1`,docs_url:`https://docs.x.ai`,pricing_url:`https://docs.x.ai/docs/model-pricing`,description:`Elon Musk-founded AI company building Grok models.`,type:`direct`,sdk:{python:`xai-sdk`},openai_compatible:!0,free_tier:!1,github_url:`https://github.com/xai-org`,models_url:`https://docs.x.ai/docs/models`,twitter_url:`https://x.com/xai`,blog_url:`https://x.ai/news`,terms_url:`https://x.ai/legal/terms-of-service`,support_url:`https://x.ai/contact`,icon:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" fill-rule="evenodd">
|
|
2
|
+
<path d="M6.469 8.776L16.512 23h-4.464L2.005 8.776H6.47zm-.004 7.9l2.233 3.164L6.467 23H2l4.465-6.324zM22 2.582V23h-3.659V7.764L22 2.582zM22 1l-9.952 14.095-2.233-3.163L17.533 1H22z"/>
|
|
3
|
+
</svg>`,models:[{id:`grok-3-mini`,name:`grok-3-mini`,created_by:`xai`,source:`official`,last_updated:`2026-03-20`,release_date:`2025-04-04`,capabilities:{streaming:!0,tool_call:!0,structured_output:!0,reasoning:!0},context_window:131072,description:`A lightweight model that thinks before responding.`,modalities:{input:[`text`],output:[`text`]},family:`grok-3`,model_type:`chat`,license:`proprietary`},{id:`grok-3`,name:`grok-3`,created_by:`xai`,source:`official`,last_updated:`2026-03-20`,release_date:`2025-04-04`,capabilities:{streaming:!0,tool_call:!0,structured_output:!0},context_window:131072,description:`Grok 3 is the latest model from xAI.`,modalities:{input:[`text`],output:[`text`]},family:`grok-3`,model_type:`chat`,license:`proprietary`},{id:`grok-4-0709`,name:`grok-4-0709`,created_by:`xai`,source:`official`,last_updated:`2026-03-20`,release_date:`2025-07-09`,capabilities:{streaming:!0,tool_call:!0},family:`grok-4`,model_type:`chat`,license:`proprietary`},{id:`grok-4-1-fast-non-reasoning`,name:`grok-4-1-fast-non-reasoning`,created_by:`xai`,source:`official`,last_updated:`2026-03-23`,release_date:`2025-11-19`,capabilities:{streaming:!0,tool_call:!0,structured_output:!0},family:`grok-4`,context_window:2e6,modalities:{input:[`text`,`image`],output:[`text`]},pricing:{input:.2,output:.5,cached_input:.05},model_type:`reasoning`,license:`proprietary`,page_url:`https://docs.x.ai/docs/models#grok-4-1-fast-non-reasoning`,open_weight:!1,tools:[`function_calling`]},{id:`grok-4-1-fast-reasoning`,name:`grok-4-1-fast-reasoning`,created_by:`xai`,source:`official`,last_updated:`2026-03-23`,release_date:`2025-11-19`,capabilities:{streaming:!0,tool_call:!0,structured_output:!0,reasoning:!0},family:`grok-4`,context_window:2e6,reasoning_tokens:!0,modalities:{input:[`text`,`image`],output:[`text`]},pricing:{input:.2,output:.5,cached_input:.05},model_type:`reasoning`,license:`proprietary`,page_url:`https://docs.x.ai/docs/models#grok-4-1-fast-reasoning`,open_weight:!1,tools:[`function_calling`]},{id:`grok-4-fast-non-reasoning`,name:`grok-4-fast-non-reasoning`,created_by:`xai`,source:`official`,last_updated:`2026-03-20`,release_date:`2025-09-04`,capabilities:{streaming:!0,tool_call:!0},model_type:`reasoning`,family:`grok-4`,license:`proprietary`},{id:`grok-4-fast-reasoning`,name:`grok-4-fast-reasoning`,created_by:`xai`,source:`official`,last_updated:`2026-03-20`,release_date:`2025-09-04`,capabilities:{streaming:!0,tool_call:!0},model_type:`reasoning`,family:`grok-4`,license:`proprietary`},{id:`grok-4.20-0309-non-reasoning`,name:`grok-4.20-0309-non-reasoning`,created_by:`xai`,source:`official`,last_updated:`2026-03-23`,release_date:`2026-03-09`,capabilities:{streaming:!0,tool_call:!0,structured_output:!0},family:`grok-4.20`,context_window:2e6,modalities:{input:[`text`,`image`],output:[`text`]},pricing:{input:2,output:6,cached_input:.2},model_type:`reasoning`,license:`proprietary`,page_url:`https://docs.x.ai/docs/models#grok-4.20-0309-non-reasoning`,open_weight:!1,tools:[`function_calling`]},{id:`grok-4.20-0309-reasoning`,name:`grok-4.20-0309-reasoning`,created_by:`xai`,source:`official`,last_updated:`2026-03-23`,release_date:`2026-03-09`,capabilities:{streaming:!0,tool_call:!0,structured_output:!0,reasoning:!0},family:`grok-4.20`,context_window:2e6,reasoning_tokens:!0,modalities:{input:[`text`,`image`],output:[`text`]},pricing:{input:2,output:6,cached_input:.2},model_type:`reasoning`,license:`proprietary`,page_url:`https://docs.x.ai/docs/models#grok-4.20-0309-reasoning`,open_weight:!1,tools:[`function_calling`]},{id:`grok-4.20-multi-agent-0309`,name:`grok-4.20-multi-agent-0309`,created_by:`xai`,source:`official`,last_updated:`2026-03-23`,release_date:`2026-03-09`,capabilities:{streaming:!0,tool_call:!0,structured_output:!0,reasoning:!0},family:`grok-4.20`,context_window:2e6,reasoning_tokens:!0,modalities:{input:[`text`,`image`],output:[`text`]},pricing:{input:2,output:6,cached_input:.2},model_type:`chat`,license:`proprietary`,page_url:`https://docs.x.ai/docs/models#grok-4.20-multi-agent-0309`,open_weight:!1,tools:[`function_calling`]},{id:`grok-code-fast-1`,name:`grok-code-fast-1`,created_by:`xai`,source:`official`,last_updated:`2026-03-20`,release_date:`2025-08-24`,capabilities:{streaming:!0,tool_call:!0,structured_output:!0,reasoning:!0},context_window:256e3,max_output_tokens:1e4,description:`Grok Code Fast 1 is a speedy and economical reasoning model that excels at agentic coding.`,modalities:{input:[`text`],output:[`text`]},family:`grok-code`,model_type:`code`,license:`proprietary`},{id:`grok-imagine-image-pro`,name:`grok-imagine-image-pro`,created_by:`xai`,source:`official`,last_updated:`2026-03-23`,release_date:`2026-01-28`,capabilities:{streaming:!0,tool_call:!0},family:`grok-imagine`,model_type:`image`,modalities:{input:[`text`,`image`],output:[`image`]},license:`proprietary`,page_url:`https://docs.x.ai/docs/models#grok-imagine-image-pro`,open_weight:!1,tools:[`function_calling`]},{id:`grok-imagine-image`,name:`grok-imagine-image`,created_by:`xai`,source:`official`,last_updated:`2026-03-23`,release_date:`2026-01-28`,capabilities:{streaming:!0,tool_call:!0},family:`grok-imagine`,model_type:`image`,modalities:{input:[`text`,`image`],output:[`image`]},license:`proprietary`,page_url:`https://docs.x.ai/docs/models#grok-imagine-image`,open_weight:!1,tools:[`function_calling`]},{id:`grok-imagine-video`,name:`grok-imagine-video`,created_by:`xai`,source:`official`,last_updated:`2026-03-23`,release_date:`2026-01-28`,capabilities:{streaming:!0,tool_call:!0},family:`grok-imagine`,model_type:`image`,modalities:{input:[`text`,`image`,`video`],output:[`video`]},license:`proprietary`,page_url:`https://docs.x.ai/docs/models#grok-imagine-video`,open_weight:!1,tools:[`function_calling`]}]},t=e.models.map(t=>({...t,provider:e.id}));exports.models=t,exports.provider=e;
|
package/dist/providers/xai.d.cts
CHANGED
package/dist/providers/xai.d.mts
CHANGED
package/dist/providers/xai.mjs
CHANGED
|
@@ -1,299 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
"name": "xAI",
|
|
5
|
-
"region": "US",
|
|
6
|
-
"url": "https://x.ai",
|
|
7
|
-
"api_url": "https://api.x.ai/v1",
|
|
8
|
-
"docs_url": "https://docs.x.ai",
|
|
9
|
-
"pricing_url": "https://docs.x.ai/docs/model-pricing",
|
|
10
|
-
"icon": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"currentColor\" fill-rule=\"evenodd\">\n <path d=\"M6.469 8.776L16.512 23h-4.464L2.005 8.776H6.47zm-.004 7.9l2.233 3.164L6.467 23H2l4.465-6.324zM22 2.582V23h-3.659V7.764L22 2.582zM22 1l-9.952 14.095-2.233-3.163L17.533 1H22z\"/>\n</svg>",
|
|
11
|
-
"models": [
|
|
12
|
-
{
|
|
13
|
-
"id": "grok-3-mini",
|
|
14
|
-
"name": "grok-3-mini",
|
|
15
|
-
"created_by": "xai",
|
|
16
|
-
"source": "official",
|
|
17
|
-
"last_updated": "2026-03-20",
|
|
18
|
-
"release_date": "2025-04-04",
|
|
19
|
-
"capabilities": {
|
|
20
|
-
"streaming": true,
|
|
21
|
-
"tool_call": true,
|
|
22
|
-
"structured_output": true,
|
|
23
|
-
"reasoning": true
|
|
24
|
-
},
|
|
25
|
-
"context_window": 131072,
|
|
26
|
-
"description": "A lightweight model that thinks before responding.",
|
|
27
|
-
"modalities": {
|
|
28
|
-
"input": ["text"],
|
|
29
|
-
"output": ["text"]
|
|
30
|
-
}
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
"id": "grok-3",
|
|
34
|
-
"name": "grok-3",
|
|
35
|
-
"created_by": "xai",
|
|
36
|
-
"source": "official",
|
|
37
|
-
"last_updated": "2026-03-20",
|
|
38
|
-
"release_date": "2025-04-04",
|
|
39
|
-
"capabilities": {
|
|
40
|
-
"streaming": true,
|
|
41
|
-
"tool_call": true,
|
|
42
|
-
"structured_output": true
|
|
43
|
-
},
|
|
44
|
-
"context_window": 131072,
|
|
45
|
-
"description": "Grok 3 is the latest model from xAI.",
|
|
46
|
-
"modalities": {
|
|
47
|
-
"input": ["text"],
|
|
48
|
-
"output": ["text"]
|
|
49
|
-
}
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
"id": "grok-4-0709",
|
|
53
|
-
"name": "grok-4-0709",
|
|
54
|
-
"created_by": "xai",
|
|
55
|
-
"source": "official",
|
|
56
|
-
"last_updated": "2026-03-20",
|
|
57
|
-
"release_date": "2025-07-09",
|
|
58
|
-
"capabilities": {
|
|
59
|
-
"streaming": true,
|
|
60
|
-
"tool_call": true
|
|
61
|
-
}
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
"id": "grok-4-1-fast-non-reasoning",
|
|
65
|
-
"name": "grok-4-1-fast-non-reasoning",
|
|
66
|
-
"created_by": "xai",
|
|
67
|
-
"source": "official",
|
|
68
|
-
"last_updated": "2026-03-20",
|
|
69
|
-
"release_date": "2025-11-19",
|
|
70
|
-
"capabilities": {
|
|
71
|
-
"streaming": true,
|
|
72
|
-
"tool_call": true,
|
|
73
|
-
"structured_output": true
|
|
74
|
-
},
|
|
75
|
-
"family": "grok-4",
|
|
76
|
-
"context_window": 2e6,
|
|
77
|
-
"modalities": {
|
|
78
|
-
"input": ["text", "image"],
|
|
79
|
-
"output": ["text"]
|
|
80
|
-
},
|
|
81
|
-
"pricing": {
|
|
82
|
-
"input": .2,
|
|
83
|
-
"output": .5,
|
|
84
|
-
"cached_input": .05
|
|
85
|
-
}
|
|
86
|
-
},
|
|
87
|
-
{
|
|
88
|
-
"id": "grok-4-1-fast-reasoning",
|
|
89
|
-
"name": "grok-4-1-fast-reasoning",
|
|
90
|
-
"created_by": "xai",
|
|
91
|
-
"source": "official",
|
|
92
|
-
"last_updated": "2026-03-20",
|
|
93
|
-
"release_date": "2025-11-19",
|
|
94
|
-
"capabilities": {
|
|
95
|
-
"streaming": true,
|
|
96
|
-
"tool_call": true,
|
|
97
|
-
"structured_output": true,
|
|
98
|
-
"reasoning": true
|
|
99
|
-
},
|
|
100
|
-
"family": "grok-4",
|
|
101
|
-
"context_window": 2e6,
|
|
102
|
-
"reasoning_tokens": true,
|
|
103
|
-
"modalities": {
|
|
104
|
-
"input": ["text", "image"],
|
|
105
|
-
"output": ["text"]
|
|
106
|
-
},
|
|
107
|
-
"pricing": {
|
|
108
|
-
"input": .2,
|
|
109
|
-
"output": .5,
|
|
110
|
-
"cached_input": .05
|
|
111
|
-
}
|
|
112
|
-
},
|
|
113
|
-
{
|
|
114
|
-
"id": "grok-4-fast-non-reasoning",
|
|
115
|
-
"name": "grok-4-fast-non-reasoning",
|
|
116
|
-
"created_by": "xai",
|
|
117
|
-
"source": "official",
|
|
118
|
-
"last_updated": "2026-03-20",
|
|
119
|
-
"release_date": "2025-09-04",
|
|
120
|
-
"capabilities": {
|
|
121
|
-
"streaming": true,
|
|
122
|
-
"tool_call": true
|
|
123
|
-
}
|
|
124
|
-
},
|
|
125
|
-
{
|
|
126
|
-
"id": "grok-4-fast-reasoning",
|
|
127
|
-
"name": "grok-4-fast-reasoning",
|
|
128
|
-
"created_by": "xai",
|
|
129
|
-
"source": "official",
|
|
130
|
-
"last_updated": "2026-03-20",
|
|
131
|
-
"release_date": "2025-09-04",
|
|
132
|
-
"capabilities": {
|
|
133
|
-
"streaming": true,
|
|
134
|
-
"tool_call": true
|
|
135
|
-
}
|
|
136
|
-
},
|
|
137
|
-
{
|
|
138
|
-
"id": "grok-4.20-0309-non-reasoning",
|
|
139
|
-
"name": "grok-4.20-0309-non-reasoning",
|
|
140
|
-
"created_by": "xai",
|
|
141
|
-
"source": "official",
|
|
142
|
-
"last_updated": "2026-03-20",
|
|
143
|
-
"release_date": "2026-03-09",
|
|
144
|
-
"capabilities": {
|
|
145
|
-
"streaming": true,
|
|
146
|
-
"tool_call": true,
|
|
147
|
-
"structured_output": true
|
|
148
|
-
},
|
|
149
|
-
"family": "grok-4.20",
|
|
150
|
-
"context_window": 2e6,
|
|
151
|
-
"modalities": {
|
|
152
|
-
"input": ["text", "image"],
|
|
153
|
-
"output": ["text"]
|
|
154
|
-
},
|
|
155
|
-
"pricing": {
|
|
156
|
-
"input": 2,
|
|
157
|
-
"output": 6,
|
|
158
|
-
"cached_input": .2
|
|
159
|
-
}
|
|
160
|
-
},
|
|
161
|
-
{
|
|
162
|
-
"id": "grok-4.20-0309-reasoning",
|
|
163
|
-
"name": "grok-4.20-0309-reasoning",
|
|
164
|
-
"created_by": "xai",
|
|
165
|
-
"source": "official",
|
|
166
|
-
"last_updated": "2026-03-20",
|
|
167
|
-
"release_date": "2026-03-09",
|
|
168
|
-
"capabilities": {
|
|
169
|
-
"streaming": true,
|
|
170
|
-
"tool_call": true,
|
|
171
|
-
"structured_output": true,
|
|
172
|
-
"reasoning": true
|
|
173
|
-
},
|
|
174
|
-
"family": "grok-4.20",
|
|
175
|
-
"context_window": 2e6,
|
|
176
|
-
"reasoning_tokens": true,
|
|
177
|
-
"modalities": {
|
|
178
|
-
"input": ["text", "image"],
|
|
179
|
-
"output": ["text"]
|
|
180
|
-
},
|
|
181
|
-
"pricing": {
|
|
182
|
-
"input": 2,
|
|
183
|
-
"output": 6,
|
|
184
|
-
"cached_input": .2
|
|
185
|
-
}
|
|
186
|
-
},
|
|
187
|
-
{
|
|
188
|
-
"id": "grok-4.20-multi-agent-0309",
|
|
189
|
-
"name": "grok-4.20-multi-agent-0309",
|
|
190
|
-
"created_by": "xai",
|
|
191
|
-
"source": "official",
|
|
192
|
-
"last_updated": "2026-03-20",
|
|
193
|
-
"release_date": "2026-03-09",
|
|
194
|
-
"capabilities": {
|
|
195
|
-
"streaming": true,
|
|
196
|
-
"tool_call": true,
|
|
197
|
-
"structured_output": true,
|
|
198
|
-
"reasoning": true
|
|
199
|
-
},
|
|
200
|
-
"family": "grok-4.20",
|
|
201
|
-
"context_window": 2e6,
|
|
202
|
-
"reasoning_tokens": true,
|
|
203
|
-
"modalities": {
|
|
204
|
-
"input": ["text", "image"],
|
|
205
|
-
"output": ["text"]
|
|
206
|
-
},
|
|
207
|
-
"pricing": {
|
|
208
|
-
"input": 2,
|
|
209
|
-
"output": 6,
|
|
210
|
-
"cached_input": .2
|
|
211
|
-
}
|
|
212
|
-
},
|
|
213
|
-
{
|
|
214
|
-
"id": "grok-code-fast-1",
|
|
215
|
-
"name": "grok-code-fast-1",
|
|
216
|
-
"created_by": "xai",
|
|
217
|
-
"source": "official",
|
|
218
|
-
"last_updated": "2026-03-20",
|
|
219
|
-
"release_date": "2025-08-24",
|
|
220
|
-
"capabilities": {
|
|
221
|
-
"streaming": true,
|
|
222
|
-
"tool_call": true,
|
|
223
|
-
"structured_output": true,
|
|
224
|
-
"reasoning": true
|
|
225
|
-
},
|
|
226
|
-
"context_window": 256e3,
|
|
227
|
-
"max_output_tokens": 1e4,
|
|
228
|
-
"description": "Grok Code Fast 1 is a speedy and economical reasoning model that excels at agentic coding.",
|
|
229
|
-
"modalities": {
|
|
230
|
-
"input": ["text"],
|
|
231
|
-
"output": ["text"]
|
|
232
|
-
}
|
|
233
|
-
},
|
|
234
|
-
{
|
|
235
|
-
"id": "grok-imagine-image-pro",
|
|
236
|
-
"name": "grok-imagine-image-pro",
|
|
237
|
-
"created_by": "xai",
|
|
238
|
-
"source": "official",
|
|
239
|
-
"last_updated": "2026-03-21",
|
|
240
|
-
"release_date": "2026-01-28",
|
|
241
|
-
"capabilities": {
|
|
242
|
-
"streaming": true,
|
|
243
|
-
"tool_call": true
|
|
244
|
-
},
|
|
245
|
-
"family": "grok-imagine",
|
|
246
|
-
"model_type": "image",
|
|
247
|
-
"modalities": {
|
|
248
|
-
"input": ["text", "image"],
|
|
249
|
-
"output": ["image"]
|
|
250
|
-
}
|
|
251
|
-
},
|
|
252
|
-
{
|
|
253
|
-
"id": "grok-imagine-image",
|
|
254
|
-
"name": "grok-imagine-image",
|
|
255
|
-
"created_by": "xai",
|
|
256
|
-
"source": "official",
|
|
257
|
-
"last_updated": "2026-03-21",
|
|
258
|
-
"release_date": "2026-01-28",
|
|
259
|
-
"capabilities": {
|
|
260
|
-
"streaming": true,
|
|
261
|
-
"tool_call": true
|
|
262
|
-
},
|
|
263
|
-
"family": "grok-imagine",
|
|
264
|
-
"model_type": "image",
|
|
265
|
-
"modalities": {
|
|
266
|
-
"input": ["text", "image"],
|
|
267
|
-
"output": ["image"]
|
|
268
|
-
}
|
|
269
|
-
},
|
|
270
|
-
{
|
|
271
|
-
"id": "grok-imagine-video",
|
|
272
|
-
"name": "grok-imagine-video",
|
|
273
|
-
"created_by": "xai",
|
|
274
|
-
"source": "official",
|
|
275
|
-
"last_updated": "2026-03-21",
|
|
276
|
-
"release_date": "2026-01-28",
|
|
277
|
-
"capabilities": {
|
|
278
|
-
"streaming": true,
|
|
279
|
-
"tool_call": true
|
|
280
|
-
},
|
|
281
|
-
"family": "grok-imagine",
|
|
282
|
-
"model_type": "image",
|
|
283
|
-
"modalities": {
|
|
284
|
-
"input": [
|
|
285
|
-
"text",
|
|
286
|
-
"image",
|
|
287
|
-
"video"
|
|
288
|
-
],
|
|
289
|
-
"output": ["video"]
|
|
290
|
-
}
|
|
291
|
-
}
|
|
292
|
-
]
|
|
293
|
-
};
|
|
294
|
-
const models = provider.models.map((m) => ({
|
|
295
|
-
...m,
|
|
296
|
-
provider: provider.id
|
|
297
|
-
}));
|
|
298
|
-
//#endregion
|
|
299
|
-
export { models, provider };
|
|
1
|
+
const e={id:`xai`,name:`xAI`,region:`US`,headquarters:`Palo Alto, CA`,founded:2023,url:`https://x.ai`,api_url:`https://api.x.ai/v1`,docs_url:`https://docs.x.ai`,pricing_url:`https://docs.x.ai/docs/model-pricing`,description:`Elon Musk-founded AI company building Grok models.`,type:`direct`,sdk:{python:`xai-sdk`},openai_compatible:!0,free_tier:!1,github_url:`https://github.com/xai-org`,models_url:`https://docs.x.ai/docs/models`,twitter_url:`https://x.com/xai`,blog_url:`https://x.ai/news`,terms_url:`https://x.ai/legal/terms-of-service`,support_url:`https://x.ai/contact`,icon:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" fill-rule="evenodd">
|
|
2
|
+
<path d="M6.469 8.776L16.512 23h-4.464L2.005 8.776H6.47zm-.004 7.9l2.233 3.164L6.467 23H2l4.465-6.324zM22 2.582V23h-3.659V7.764L22 2.582zM22 1l-9.952 14.095-2.233-3.163L17.533 1H22z"/>
|
|
3
|
+
</svg>`,models:[{id:`grok-3-mini`,name:`grok-3-mini`,created_by:`xai`,source:`official`,last_updated:`2026-03-20`,release_date:`2025-04-04`,capabilities:{streaming:!0,tool_call:!0,structured_output:!0,reasoning:!0},context_window:131072,description:`A lightweight model that thinks before responding.`,modalities:{input:[`text`],output:[`text`]},family:`grok-3`,model_type:`chat`,license:`proprietary`},{id:`grok-3`,name:`grok-3`,created_by:`xai`,source:`official`,last_updated:`2026-03-20`,release_date:`2025-04-04`,capabilities:{streaming:!0,tool_call:!0,structured_output:!0},context_window:131072,description:`Grok 3 is the latest model from xAI.`,modalities:{input:[`text`],output:[`text`]},family:`grok-3`,model_type:`chat`,license:`proprietary`},{id:`grok-4-0709`,name:`grok-4-0709`,created_by:`xai`,source:`official`,last_updated:`2026-03-20`,release_date:`2025-07-09`,capabilities:{streaming:!0,tool_call:!0},family:`grok-4`,model_type:`chat`,license:`proprietary`},{id:`grok-4-1-fast-non-reasoning`,name:`grok-4-1-fast-non-reasoning`,created_by:`xai`,source:`official`,last_updated:`2026-03-23`,release_date:`2025-11-19`,capabilities:{streaming:!0,tool_call:!0,structured_output:!0},family:`grok-4`,context_window:2e6,modalities:{input:[`text`,`image`],output:[`text`]},pricing:{input:.2,output:.5,cached_input:.05},model_type:`reasoning`,license:`proprietary`,page_url:`https://docs.x.ai/docs/models#grok-4-1-fast-non-reasoning`,open_weight:!1,tools:[`function_calling`]},{id:`grok-4-1-fast-reasoning`,name:`grok-4-1-fast-reasoning`,created_by:`xai`,source:`official`,last_updated:`2026-03-23`,release_date:`2025-11-19`,capabilities:{streaming:!0,tool_call:!0,structured_output:!0,reasoning:!0},family:`grok-4`,context_window:2e6,reasoning_tokens:!0,modalities:{input:[`text`,`image`],output:[`text`]},pricing:{input:.2,output:.5,cached_input:.05},model_type:`reasoning`,license:`proprietary`,page_url:`https://docs.x.ai/docs/models#grok-4-1-fast-reasoning`,open_weight:!1,tools:[`function_calling`]},{id:`grok-4-fast-non-reasoning`,name:`grok-4-fast-non-reasoning`,created_by:`xai`,source:`official`,last_updated:`2026-03-20`,release_date:`2025-09-04`,capabilities:{streaming:!0,tool_call:!0},model_type:`reasoning`,family:`grok-4`,license:`proprietary`},{id:`grok-4-fast-reasoning`,name:`grok-4-fast-reasoning`,created_by:`xai`,source:`official`,last_updated:`2026-03-20`,release_date:`2025-09-04`,capabilities:{streaming:!0,tool_call:!0},model_type:`reasoning`,family:`grok-4`,license:`proprietary`},{id:`grok-4.20-0309-non-reasoning`,name:`grok-4.20-0309-non-reasoning`,created_by:`xai`,source:`official`,last_updated:`2026-03-23`,release_date:`2026-03-09`,capabilities:{streaming:!0,tool_call:!0,structured_output:!0},family:`grok-4.20`,context_window:2e6,modalities:{input:[`text`,`image`],output:[`text`]},pricing:{input:2,output:6,cached_input:.2},model_type:`reasoning`,license:`proprietary`,page_url:`https://docs.x.ai/docs/models#grok-4.20-0309-non-reasoning`,open_weight:!1,tools:[`function_calling`]},{id:`grok-4.20-0309-reasoning`,name:`grok-4.20-0309-reasoning`,created_by:`xai`,source:`official`,last_updated:`2026-03-23`,release_date:`2026-03-09`,capabilities:{streaming:!0,tool_call:!0,structured_output:!0,reasoning:!0},family:`grok-4.20`,context_window:2e6,reasoning_tokens:!0,modalities:{input:[`text`,`image`],output:[`text`]},pricing:{input:2,output:6,cached_input:.2},model_type:`reasoning`,license:`proprietary`,page_url:`https://docs.x.ai/docs/models#grok-4.20-0309-reasoning`,open_weight:!1,tools:[`function_calling`]},{id:`grok-4.20-multi-agent-0309`,name:`grok-4.20-multi-agent-0309`,created_by:`xai`,source:`official`,last_updated:`2026-03-23`,release_date:`2026-03-09`,capabilities:{streaming:!0,tool_call:!0,structured_output:!0,reasoning:!0},family:`grok-4.20`,context_window:2e6,reasoning_tokens:!0,modalities:{input:[`text`,`image`],output:[`text`]},pricing:{input:2,output:6,cached_input:.2},model_type:`chat`,license:`proprietary`,page_url:`https://docs.x.ai/docs/models#grok-4.20-multi-agent-0309`,open_weight:!1,tools:[`function_calling`]},{id:`grok-code-fast-1`,name:`grok-code-fast-1`,created_by:`xai`,source:`official`,last_updated:`2026-03-20`,release_date:`2025-08-24`,capabilities:{streaming:!0,tool_call:!0,structured_output:!0,reasoning:!0},context_window:256e3,max_output_tokens:1e4,description:`Grok Code Fast 1 is a speedy and economical reasoning model that excels at agentic coding.`,modalities:{input:[`text`],output:[`text`]},family:`grok-code`,model_type:`code`,license:`proprietary`},{id:`grok-imagine-image-pro`,name:`grok-imagine-image-pro`,created_by:`xai`,source:`official`,last_updated:`2026-03-23`,release_date:`2026-01-28`,capabilities:{streaming:!0,tool_call:!0},family:`grok-imagine`,model_type:`image`,modalities:{input:[`text`,`image`],output:[`image`]},license:`proprietary`,page_url:`https://docs.x.ai/docs/models#grok-imagine-image-pro`,open_weight:!1,tools:[`function_calling`]},{id:`grok-imagine-image`,name:`grok-imagine-image`,created_by:`xai`,source:`official`,last_updated:`2026-03-23`,release_date:`2026-01-28`,capabilities:{streaming:!0,tool_call:!0},family:`grok-imagine`,model_type:`image`,modalities:{input:[`text`,`image`],output:[`image`]},license:`proprietary`,page_url:`https://docs.x.ai/docs/models#grok-imagine-image`,open_weight:!1,tools:[`function_calling`]},{id:`grok-imagine-video`,name:`grok-imagine-video`,created_by:`xai`,source:`official`,last_updated:`2026-03-23`,release_date:`2026-01-28`,capabilities:{streaming:!0,tool_call:!0},family:`grok-imagine`,model_type:`image`,modalities:{input:[`text`,`image`,`video`],output:[`video`]},license:`proprietary`,page_url:`https://docs.x.ai/docs/models#grok-imagine-video`,open_weight:!1,tools:[`function_calling`]}]},t=e.models.map(t=>({...t,provider:e.id}));export{t as models,e as provider};
|