modelpedia 0.0.1 → 0.0.2

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 (128) hide show
  1. package/dist/index.cjs +60 -35560
  2. package/dist/index.d.cts +3 -156
  3. package/dist/index.d.mts +3 -156
  4. package/dist/index.mjs +60 -35560
  5. package/dist/providers/alibaba.cjs +835 -0
  6. package/dist/providers/alibaba.d.cts +7 -0
  7. package/dist/providers/alibaba.d.mts +7 -0
  8. package/dist/providers/alibaba.mjs +833 -0
  9. package/dist/providers/amazon.cjs +1484 -0
  10. package/dist/providers/amazon.d.cts +7 -0
  11. package/dist/providers/amazon.d.mts +7 -0
  12. package/dist/providers/amazon.mjs +1482 -0
  13. package/dist/providers/anthropic.cjs +698 -0
  14. package/dist/providers/anthropic.d.cts +7 -0
  15. package/dist/providers/anthropic.d.mts +7 -0
  16. package/dist/providers/anthropic.mjs +696 -0
  17. package/dist/providers/azure.cjs +1491 -0
  18. package/dist/providers/azure.d.cts +7 -0
  19. package/dist/providers/azure.d.mts +7 -0
  20. package/dist/providers/azure.mjs +1489 -0
  21. package/dist/providers/baseten.cjs +279 -0
  22. package/dist/providers/baseten.d.cts +7 -0
  23. package/dist/providers/baseten.d.mts +7 -0
  24. package/dist/providers/baseten.mjs +277 -0
  25. package/dist/providers/cerebras.cjs +145 -0
  26. package/dist/providers/cerebras.d.cts +7 -0
  27. package/dist/providers/cerebras.d.mts +7 -0
  28. package/dist/providers/cerebras.mjs +143 -0
  29. package/dist/providers/cloudflare.cjs +826 -0
  30. package/dist/providers/cloudflare.d.cts +7 -0
  31. package/dist/providers/cloudflare.d.mts +7 -0
  32. package/dist/providers/cloudflare.mjs +824 -0
  33. package/dist/providers/cohere.cjs +525 -0
  34. package/dist/providers/cohere.d.cts +7 -0
  35. package/dist/providers/cohere.d.mts +7 -0
  36. package/dist/providers/cohere.mjs +523 -0
  37. package/dist/providers/cursor.cjs +856 -0
  38. package/dist/providers/cursor.d.cts +7 -0
  39. package/dist/providers/cursor.d.mts +7 -0
  40. package/dist/providers/cursor.mjs +854 -0
  41. package/dist/providers/deepseek.cjs +64 -0
  42. package/dist/providers/deepseek.d.cts +7 -0
  43. package/dist/providers/deepseek.d.mts +7 -0
  44. package/dist/providers/deepseek.mjs +62 -0
  45. package/dist/providers/fireworks.cjs +3794 -0
  46. package/dist/providers/fireworks.d.cts +7 -0
  47. package/dist/providers/fireworks.d.mts +7 -0
  48. package/dist/providers/fireworks.mjs +3792 -0
  49. package/dist/providers/google.cjs +972 -0
  50. package/dist/providers/google.d.cts +7 -0
  51. package/dist/providers/google.d.mts +7 -0
  52. package/dist/providers/google.mjs +970 -0
  53. package/dist/providers/groq.cjs +353 -0
  54. package/dist/providers/groq.d.cts +7 -0
  55. package/dist/providers/groq.d.mts +7 -0
  56. package/dist/providers/groq.mjs +351 -0
  57. package/dist/providers/huggingface.cjs +1022 -0
  58. package/dist/providers/huggingface.d.cts +7 -0
  59. package/dist/providers/huggingface.d.mts +7 -0
  60. package/dist/providers/huggingface.mjs +1020 -0
  61. package/dist/providers/meta.cjs +481 -0
  62. package/dist/providers/meta.d.cts +7 -0
  63. package/dist/providers/meta.d.mts +7 -0
  64. package/dist/providers/meta.mjs +479 -0
  65. package/dist/providers/minimax.cjs +156 -0
  66. package/dist/providers/minimax.d.cts +7 -0
  67. package/dist/providers/minimax.d.mts +7 -0
  68. package/dist/providers/minimax.mjs +154 -0
  69. package/dist/providers/mistral.cjs +1594 -0
  70. package/dist/providers/mistral.d.cts +7 -0
  71. package/dist/providers/mistral.d.mts +7 -0
  72. package/dist/providers/mistral.mjs +1592 -0
  73. package/dist/providers/moonshot.cjs +138 -0
  74. package/dist/providers/moonshot.d.cts +7 -0
  75. package/dist/providers/moonshot.d.mts +7 -0
  76. package/dist/providers/moonshot.mjs +136 -0
  77. package/dist/providers/nvidia.cjs +2040 -0
  78. package/dist/providers/nvidia.d.cts +7 -0
  79. package/dist/providers/nvidia.d.mts +7 -0
  80. package/dist/providers/nvidia.mjs +2038 -0
  81. package/dist/providers/ollama.cjs +326 -0
  82. package/dist/providers/ollama.d.cts +7 -0
  83. package/dist/providers/ollama.d.mts +7 -0
  84. package/dist/providers/ollama.mjs +324 -0
  85. package/dist/providers/openai.cjs +9079 -0
  86. package/dist/providers/openai.d.cts +7 -0
  87. package/dist/providers/openai.d.mts +7 -0
  88. package/dist/providers/openai.mjs +9077 -0
  89. package/dist/providers/opencode.cjs +367 -0
  90. package/dist/providers/opencode.d.cts +7 -0
  91. package/dist/providers/opencode.d.mts +7 -0
  92. package/dist/providers/opencode.mjs +365 -0
  93. package/dist/providers/openrouter.cjs +7835 -0
  94. package/dist/providers/openrouter.d.cts +7 -0
  95. package/dist/providers/openrouter.d.mts +7 -0
  96. package/dist/providers/openrouter.mjs +7833 -0
  97. package/dist/providers/perplexity.cjs +311 -0
  98. package/dist/providers/perplexity.d.cts +7 -0
  99. package/dist/providers/perplexity.d.mts +7 -0
  100. package/dist/providers/perplexity.mjs +309 -0
  101. package/dist/providers/qwen.cjs +835 -0
  102. package/dist/providers/qwen.d.cts +7 -0
  103. package/dist/providers/qwen.d.mts +7 -0
  104. package/dist/providers/qwen.mjs +833 -0
  105. package/dist/providers/together.cjs +360 -0
  106. package/dist/providers/together.d.cts +7 -0
  107. package/dist/providers/together.d.mts +7 -0
  108. package/dist/providers/together.mjs +358 -0
  109. package/dist/providers/vercel.cjs +4037 -0
  110. package/dist/providers/vercel.d.cts +7 -0
  111. package/dist/providers/vercel.d.mts +7 -0
  112. package/dist/providers/vercel.mjs +4035 -0
  113. package/dist/providers/vertex.cjs +1072 -0
  114. package/dist/providers/vertex.d.cts +7 -0
  115. package/dist/providers/vertex.d.mts +7 -0
  116. package/dist/providers/vertex.mjs +1070 -0
  117. package/dist/providers/xai.cjs +301 -0
  118. package/dist/providers/xai.d.cts +7 -0
  119. package/dist/providers/xai.d.mts +7 -0
  120. package/dist/providers/xai.mjs +299 -0
  121. package/dist/providers/zai.cjs +243 -0
  122. package/dist/providers/zai.d.cts +7 -0
  123. package/dist/providers/zai.d.mts +7 -0
  124. package/dist/providers/zai.mjs +241 -0
  125. package/dist/types.d.cts +186 -0
  126. package/dist/types.d.mts +186 -0
  127. package/package.json +14 -38
  128. package/README.md +0 -100
@@ -0,0 +1,301 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ //#region src/providers/xai.ts
3
+ const provider = {
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;
@@ -0,0 +1,7 @@
1
+ import { f as ProviderWithModels, n as Model } from "../types.cjs";
2
+
3
+ //#region src/providers/xai.d.ts
4
+ declare const provider: ProviderWithModels;
5
+ declare const models: Model[];
6
+ //#endregion
7
+ export { models, provider };
@@ -0,0 +1,7 @@
1
+ import { f as ProviderWithModels, n as Model } from "../types.mjs";
2
+
3
+ //#region src/providers/xai.d.ts
4
+ declare const provider: ProviderWithModels;
5
+ declare const models: Model[];
6
+ //#endregion
7
+ export { models, provider };
@@ -0,0 +1,299 @@
1
+ //#region src/providers/xai.ts
2
+ const provider = {
3
+ "id": "xai",
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 };