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,696 @@
1
+ //#region src/providers/anthropic.ts
2
+ const provider = {
3
+ "id": "anthropic",
4
+ "name": "Anthropic",
5
+ "region": "US",
6
+ "url": "https://anthropic.com",
7
+ "api_url": "https://api.anthropic.com/v1",
8
+ "docs_url": "https://docs.anthropic.com",
9
+ "pricing_url": "https://anthropic.com/pricing",
10
+ "icon": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"currentColor\" fill-rule=\"evenodd\">\n <path d=\"M13.827 3.52h3.603L24 20h-3.603l-6.57-16.48zm-7.258 0h3.767L16.906 20h-3.674l-1.343-3.461H5.017l-1.344 3.46H0L6.57 3.522zm4.132 9.959L8.453 7.687 6.205 13.48H10.7z\"/>\n</svg>",
11
+ "models": [
12
+ {
13
+ "id": "claude-3-5-haiku",
14
+ "name": "Claude Haiku 3.5",
15
+ "created_by": "anthropic",
16
+ "source": "official",
17
+ "last_updated": "2026-03-21",
18
+ "family": "claude-haiku",
19
+ "capabilities": {
20
+ "streaming": true,
21
+ "vision": true,
22
+ "tool_call": true
23
+ },
24
+ "modalities": {
25
+ "input": ["text", "image"],
26
+ "output": ["text"]
27
+ },
28
+ "pricing": {
29
+ "input": .8,
30
+ "output": 4,
31
+ "cached_input": .08,
32
+ "batch_input": .4,
33
+ "batch_output": 2,
34
+ "cache_write": 1
35
+ },
36
+ "tools": ["function_calling"],
37
+ "endpoints": ["messages"]
38
+ },
39
+ {
40
+ "id": "claude-3-7-sonnet",
41
+ "name": "Claude Sonnet 3.7",
42
+ "created_by": "anthropic",
43
+ "source": "official",
44
+ "last_updated": "2026-03-21",
45
+ "family": "claude-sonnet",
46
+ "capabilities": {
47
+ "streaming": true,
48
+ "vision": true,
49
+ "tool_call": true
50
+ },
51
+ "modalities": {
52
+ "input": ["text", "image"],
53
+ "output": ["text"]
54
+ },
55
+ "pricing": {
56
+ "input": 3,
57
+ "output": 15,
58
+ "cached_input": .3,
59
+ "batch_input": 1.5,
60
+ "batch_output": 7.5,
61
+ "cache_write": 3.75
62
+ },
63
+ "tools": ["function_calling"],
64
+ "endpoints": ["messages"]
65
+ },
66
+ {
67
+ "id": "claude-3-haiku-20240307",
68
+ "name": "Claude Haiku 3",
69
+ "created_by": "anthropic",
70
+ "source": "official",
71
+ "last_updated": "2026-03-21",
72
+ "family": "claude-haiku",
73
+ "status": "deprecated",
74
+ "context_window": 2e5,
75
+ "max_output_tokens": 4e3,
76
+ "speed": 4,
77
+ "capabilities": {
78
+ "streaming": true,
79
+ "vision": true,
80
+ "tool_call": true
81
+ },
82
+ "modalities": {
83
+ "input": ["text", "image"],
84
+ "output": ["text"]
85
+ },
86
+ "pricing": {
87
+ "input": .25,
88
+ "output": 1.25,
89
+ "cached_input": .03,
90
+ "batch_input": .125,
91
+ "batch_output": .625,
92
+ "cache_write": .3
93
+ },
94
+ "tools": ["function_calling"],
95
+ "endpoints": ["messages"]
96
+ },
97
+ {
98
+ "id": "claude-3-haiku",
99
+ "name": "Claude Haiku 3",
100
+ "created_by": "anthropic",
101
+ "source": "official",
102
+ "last_updated": "2026-03-21",
103
+ "family": "claude-haiku",
104
+ "capabilities": {
105
+ "streaming": true,
106
+ "vision": true,
107
+ "tool_call": true
108
+ },
109
+ "modalities": {
110
+ "input": ["text", "image"],
111
+ "output": ["text"]
112
+ },
113
+ "pricing": {
114
+ "input": .25,
115
+ "output": 1.25,
116
+ "cached_input": .03,
117
+ "batch_input": .125,
118
+ "batch_output": .625,
119
+ "cache_write": .3
120
+ },
121
+ "tools": ["function_calling"],
122
+ "endpoints": ["messages"]
123
+ },
124
+ {
125
+ "id": "claude-3-opus",
126
+ "name": "Claude Opus 3",
127
+ "created_by": "anthropic",
128
+ "source": "official",
129
+ "last_updated": "2026-03-21",
130
+ "family": "claude-opus",
131
+ "capabilities": {
132
+ "streaming": true,
133
+ "vision": true,
134
+ "tool_call": true
135
+ },
136
+ "modalities": {
137
+ "input": ["text", "image"],
138
+ "output": ["text"]
139
+ },
140
+ "pricing": {
141
+ "input": 15,
142
+ "output": 75,
143
+ "cached_input": 1.5,
144
+ "batch_input": 7.5,
145
+ "batch_output": 37.5,
146
+ "cache_write": 18.75
147
+ },
148
+ "tools": ["function_calling"],
149
+ "endpoints": ["messages"]
150
+ },
151
+ {
152
+ "id": "claude-haiku-4-5-20251001",
153
+ "name": "Claude Haiku 4.5",
154
+ "created_by": "anthropic",
155
+ "source": "official",
156
+ "last_updated": "2026-03-21",
157
+ "family": "claude-haiku",
158
+ "description": "The fastest model with near-frontier intelligence",
159
+ "status": "active",
160
+ "knowledge_cutoff": "2025-02",
161
+ "context_window": 2e5,
162
+ "max_output_tokens": 64e3,
163
+ "alias": "claude-haiku-4-5",
164
+ "speed": 5,
165
+ "capabilities": {
166
+ "streaming": true,
167
+ "vision": true,
168
+ "tool_call": true,
169
+ "reasoning": true
170
+ },
171
+ "modalities": {
172
+ "input": ["text", "image"],
173
+ "output": ["text"]
174
+ },
175
+ "pricing": {
176
+ "input": 1,
177
+ "output": 5,
178
+ "cached_input": .1,
179
+ "batch_input": .5,
180
+ "batch_output": 2.5,
181
+ "cache_write": 1.25
182
+ },
183
+ "tagline": "The fastest model with near-frontier intelligence",
184
+ "tools": [
185
+ "function_calling",
186
+ "computer_use",
187
+ "mcp"
188
+ ],
189
+ "endpoints": ["messages"]
190
+ },
191
+ {
192
+ "id": "claude-haiku-4-5",
193
+ "name": "Claude Haiku 4.5",
194
+ "created_by": "anthropic",
195
+ "source": "official",
196
+ "last_updated": "2026-03-21",
197
+ "family": "claude-haiku",
198
+ "description": "The fastest model with near-frontier intelligence",
199
+ "status": "active",
200
+ "knowledge_cutoff": "2025-02",
201
+ "context_window": 2e5,
202
+ "max_output_tokens": 64e3,
203
+ "speed": 5,
204
+ "capabilities": {
205
+ "streaming": true,
206
+ "vision": true,
207
+ "tool_call": true,
208
+ "reasoning": true
209
+ },
210
+ "modalities": {
211
+ "input": ["text", "image"],
212
+ "output": ["text"]
213
+ },
214
+ "pricing": {
215
+ "input": 1,
216
+ "output": 5,
217
+ "cached_input": .1,
218
+ "batch_input": .5,
219
+ "batch_output": 2.5,
220
+ "cache_write": 1.25
221
+ },
222
+ "snapshots": ["claude-haiku-4-5-20251001"],
223
+ "tagline": "The fastest model with near-frontier intelligence",
224
+ "tools": [
225
+ "function_calling",
226
+ "computer_use",
227
+ "mcp"
228
+ ],
229
+ "endpoints": ["messages"]
230
+ },
231
+ {
232
+ "id": "claude-opus-4-0",
233
+ "name": "Claude Opus 4",
234
+ "created_by": "anthropic",
235
+ "source": "official",
236
+ "last_updated": "2026-03-21",
237
+ "family": "claude-opus",
238
+ "status": "active",
239
+ "knowledge_cutoff": "2025-01",
240
+ "context_window": 2e5,
241
+ "max_output_tokens": 32e3,
242
+ "speed": 3,
243
+ "capabilities": {
244
+ "streaming": true,
245
+ "vision": true,
246
+ "tool_call": true,
247
+ "reasoning": true
248
+ },
249
+ "modalities": {
250
+ "input": ["text", "image"],
251
+ "output": ["text"]
252
+ },
253
+ "pricing": {
254
+ "input": 15,
255
+ "output": 75,
256
+ "cached_input": 1.5,
257
+ "batch_input": 7.5,
258
+ "batch_output": 37.5,
259
+ "cache_write": 18.75
260
+ },
261
+ "snapshots": ["claude-opus-4-20250514"],
262
+ "tools": [
263
+ "function_calling",
264
+ "computer_use",
265
+ "mcp"
266
+ ],
267
+ "endpoints": ["messages"]
268
+ },
269
+ {
270
+ "id": "claude-opus-4-1-20250805",
271
+ "name": "Claude Opus 4.1",
272
+ "created_by": "anthropic",
273
+ "source": "official",
274
+ "last_updated": "2026-03-21",
275
+ "family": "claude-opus",
276
+ "status": "active",
277
+ "knowledge_cutoff": "2025-01",
278
+ "context_window": 2e5,
279
+ "max_output_tokens": 32e3,
280
+ "alias": "claude-opus-4-1",
281
+ "speed": 3,
282
+ "capabilities": {
283
+ "streaming": true,
284
+ "vision": true,
285
+ "tool_call": true,
286
+ "reasoning": true
287
+ },
288
+ "modalities": {
289
+ "input": ["text", "image"],
290
+ "output": ["text"]
291
+ },
292
+ "pricing": {
293
+ "input": 15,
294
+ "output": 75,
295
+ "cached_input": 1.5,
296
+ "batch_input": 7.5,
297
+ "batch_output": 37.5,
298
+ "cache_write": 18.75
299
+ },
300
+ "tools": [
301
+ "function_calling",
302
+ "computer_use",
303
+ "mcp"
304
+ ],
305
+ "endpoints": ["messages"]
306
+ },
307
+ {
308
+ "id": "claude-opus-4-1",
309
+ "name": "Claude Opus 4.1",
310
+ "created_by": "anthropic",
311
+ "source": "official",
312
+ "last_updated": "2026-03-21",
313
+ "family": "claude-opus",
314
+ "status": "active",
315
+ "knowledge_cutoff": "2025-01",
316
+ "context_window": 2e5,
317
+ "max_output_tokens": 32e3,
318
+ "speed": 3,
319
+ "capabilities": {
320
+ "streaming": true,
321
+ "vision": true,
322
+ "tool_call": true,
323
+ "reasoning": true
324
+ },
325
+ "modalities": {
326
+ "input": ["text", "image"],
327
+ "output": ["text"]
328
+ },
329
+ "pricing": {
330
+ "input": 15,
331
+ "output": 75,
332
+ "cached_input": 1.5,
333
+ "batch_input": 7.5,
334
+ "batch_output": 37.5,
335
+ "cache_write": 18.75
336
+ },
337
+ "snapshots": ["claude-opus-4-1-20250805"],
338
+ "tools": [
339
+ "function_calling",
340
+ "computer_use",
341
+ "mcp"
342
+ ],
343
+ "endpoints": ["messages"]
344
+ },
345
+ {
346
+ "id": "claude-opus-4-20250514",
347
+ "name": "Claude Opus 4",
348
+ "created_by": "anthropic",
349
+ "source": "official",
350
+ "last_updated": "2026-03-21",
351
+ "family": "claude-opus",
352
+ "status": "active",
353
+ "knowledge_cutoff": "2025-01",
354
+ "context_window": 2e5,
355
+ "max_output_tokens": 32e3,
356
+ "alias": "claude-opus-4-0",
357
+ "speed": 3,
358
+ "capabilities": {
359
+ "streaming": true,
360
+ "vision": true,
361
+ "tool_call": true,
362
+ "reasoning": true
363
+ },
364
+ "modalities": {
365
+ "input": ["text", "image"],
366
+ "output": ["text"]
367
+ },
368
+ "pricing": {
369
+ "input": 15,
370
+ "output": 75,
371
+ "cached_input": 1.5,
372
+ "batch_input": 7.5,
373
+ "batch_output": 37.5,
374
+ "cache_write": 18.75
375
+ },
376
+ "tools": [
377
+ "function_calling",
378
+ "computer_use",
379
+ "mcp"
380
+ ],
381
+ "endpoints": ["messages"]
382
+ },
383
+ {
384
+ "id": "claude-opus-4-5-20251101",
385
+ "name": "Claude Opus 4.5",
386
+ "created_by": "anthropic",
387
+ "source": "official",
388
+ "last_updated": "2026-03-21",
389
+ "family": "claude-opus",
390
+ "status": "active",
391
+ "knowledge_cutoff": "2025-05",
392
+ "context_window": 2e5,
393
+ "max_output_tokens": 64e3,
394
+ "alias": "claude-opus-4-5",
395
+ "speed": 3,
396
+ "capabilities": {
397
+ "streaming": true,
398
+ "vision": true,
399
+ "tool_call": true,
400
+ "reasoning": true
401
+ },
402
+ "modalities": {
403
+ "input": ["text", "image"],
404
+ "output": ["text"]
405
+ },
406
+ "pricing": {
407
+ "input": 5,
408
+ "output": 25,
409
+ "cached_input": .5,
410
+ "batch_input": 2.5,
411
+ "batch_output": 12.5,
412
+ "cache_write": 6.25
413
+ },
414
+ "tools": [
415
+ "function_calling",
416
+ "computer_use",
417
+ "mcp"
418
+ ],
419
+ "endpoints": ["messages"]
420
+ },
421
+ {
422
+ "id": "claude-opus-4-5",
423
+ "name": "Claude Opus 4.5",
424
+ "created_by": "anthropic",
425
+ "source": "official",
426
+ "last_updated": "2026-03-21",
427
+ "family": "claude-opus",
428
+ "status": "active",
429
+ "knowledge_cutoff": "2025-05",
430
+ "context_window": 2e5,
431
+ "max_output_tokens": 64e3,
432
+ "speed": 3,
433
+ "capabilities": {
434
+ "streaming": true,
435
+ "vision": true,
436
+ "tool_call": true,
437
+ "reasoning": true
438
+ },
439
+ "modalities": {
440
+ "input": ["text", "image"],
441
+ "output": ["text"]
442
+ },
443
+ "pricing": {
444
+ "input": 5,
445
+ "output": 25,
446
+ "cached_input": .5,
447
+ "batch_input": 2.5,
448
+ "batch_output": 12.5,
449
+ "cache_write": 6.25
450
+ },
451
+ "snapshots": ["claude-opus-4-5-20251101"],
452
+ "tools": [
453
+ "function_calling",
454
+ "computer_use",
455
+ "mcp"
456
+ ],
457
+ "endpoints": ["messages"]
458
+ },
459
+ {
460
+ "id": "claude-opus-4-6",
461
+ "name": "Claude Opus 4.6",
462
+ "created_by": "anthropic",
463
+ "source": "official",
464
+ "last_updated": "2026-03-21",
465
+ "family": "claude-opus",
466
+ "description": "The most intelligent model for building agents and coding",
467
+ "status": "active",
468
+ "knowledge_cutoff": "2025-05",
469
+ "context_window": 1e6,
470
+ "max_output_tokens": 128e3,
471
+ "speed": 3,
472
+ "capabilities": {
473
+ "streaming": true,
474
+ "vision": true,
475
+ "tool_call": true,
476
+ "reasoning": true
477
+ },
478
+ "modalities": {
479
+ "input": ["text", "image"],
480
+ "output": ["text"]
481
+ },
482
+ "pricing": {
483
+ "input": 5,
484
+ "output": 25,
485
+ "cached_input": .5,
486
+ "batch_input": 2.5,
487
+ "batch_output": 12.5,
488
+ "cache_write": 6.25
489
+ },
490
+ "tagline": "The most intelligent model for building agents and coding",
491
+ "tools": [
492
+ "function_calling",
493
+ "computer_use",
494
+ "mcp"
495
+ ],
496
+ "endpoints": ["messages"]
497
+ },
498
+ {
499
+ "id": "claude-sonnet-4-0",
500
+ "name": "Claude Sonnet 4",
501
+ "created_by": "anthropic",
502
+ "source": "official",
503
+ "last_updated": "2026-03-21",
504
+ "family": "claude-sonnet",
505
+ "status": "active",
506
+ "knowledge_cutoff": "2025-01",
507
+ "context_window": 1e6,
508
+ "max_output_tokens": 64e3,
509
+ "speed": 4,
510
+ "capabilities": {
511
+ "streaming": true,
512
+ "vision": true,
513
+ "tool_call": true,
514
+ "reasoning": true
515
+ },
516
+ "modalities": {
517
+ "input": ["text", "image"],
518
+ "output": ["text"]
519
+ },
520
+ "pricing": {
521
+ "input": 3,
522
+ "output": 15,
523
+ "cached_input": .3,
524
+ "batch_input": 1.5,
525
+ "batch_output": 7.5,
526
+ "cache_write": 3.75
527
+ },
528
+ "snapshots": ["claude-sonnet-4-20250514"],
529
+ "tools": [
530
+ "function_calling",
531
+ "computer_use",
532
+ "mcp"
533
+ ],
534
+ "endpoints": ["messages"]
535
+ },
536
+ {
537
+ "id": "claude-sonnet-4-20250514",
538
+ "name": "Claude Sonnet 4",
539
+ "created_by": "anthropic",
540
+ "source": "official",
541
+ "last_updated": "2026-03-21",
542
+ "family": "claude-sonnet",
543
+ "status": "active",
544
+ "knowledge_cutoff": "2025-01",
545
+ "context_window": 1e6,
546
+ "max_output_tokens": 64e3,
547
+ "alias": "claude-sonnet-4-0",
548
+ "speed": 4,
549
+ "capabilities": {
550
+ "streaming": true,
551
+ "vision": true,
552
+ "tool_call": true,
553
+ "reasoning": true
554
+ },
555
+ "modalities": {
556
+ "input": ["text", "image"],
557
+ "output": ["text"]
558
+ },
559
+ "pricing": {
560
+ "input": 3,
561
+ "output": 15,
562
+ "cached_input": .3,
563
+ "batch_input": 1.5,
564
+ "batch_output": 7.5,
565
+ "cache_write": 3.75
566
+ },
567
+ "tools": [
568
+ "function_calling",
569
+ "computer_use",
570
+ "mcp"
571
+ ],
572
+ "endpoints": ["messages"]
573
+ },
574
+ {
575
+ "id": "claude-sonnet-4-5-20250929",
576
+ "name": "Claude Sonnet 4.5",
577
+ "created_by": "anthropic",
578
+ "source": "official",
579
+ "last_updated": "2026-03-21",
580
+ "family": "claude-sonnet",
581
+ "status": "active",
582
+ "knowledge_cutoff": "2025-01",
583
+ "context_window": 1e6,
584
+ "max_output_tokens": 64e3,
585
+ "alias": "claude-sonnet-4-5",
586
+ "speed": 4,
587
+ "capabilities": {
588
+ "streaming": true,
589
+ "vision": true,
590
+ "tool_call": true,
591
+ "reasoning": true
592
+ },
593
+ "modalities": {
594
+ "input": ["text", "image"],
595
+ "output": ["text"]
596
+ },
597
+ "pricing": {
598
+ "input": 3,
599
+ "output": 15,
600
+ "cached_input": .3,
601
+ "batch_input": 1.5,
602
+ "batch_output": 7.5,
603
+ "cache_write": 3.75
604
+ },
605
+ "tools": [
606
+ "function_calling",
607
+ "computer_use",
608
+ "mcp"
609
+ ],
610
+ "endpoints": ["messages"]
611
+ },
612
+ {
613
+ "id": "claude-sonnet-4-5",
614
+ "name": "Claude Sonnet 4.5",
615
+ "created_by": "anthropic",
616
+ "source": "official",
617
+ "last_updated": "2026-03-21",
618
+ "family": "claude-sonnet",
619
+ "status": "active",
620
+ "knowledge_cutoff": "2025-01",
621
+ "context_window": 1e6,
622
+ "max_output_tokens": 64e3,
623
+ "speed": 4,
624
+ "capabilities": {
625
+ "streaming": true,
626
+ "vision": true,
627
+ "tool_call": true,
628
+ "reasoning": true
629
+ },
630
+ "modalities": {
631
+ "input": ["text", "image"],
632
+ "output": ["text"]
633
+ },
634
+ "pricing": {
635
+ "input": 3,
636
+ "output": 15,
637
+ "cached_input": .3,
638
+ "batch_input": 1.5,
639
+ "batch_output": 7.5,
640
+ "cache_write": 3.75
641
+ },
642
+ "snapshots": ["claude-sonnet-4-5-20250929"],
643
+ "tools": [
644
+ "function_calling",
645
+ "computer_use",
646
+ "mcp"
647
+ ],
648
+ "endpoints": ["messages"]
649
+ },
650
+ {
651
+ "id": "claude-sonnet-4-6",
652
+ "name": "Claude Sonnet 4.6",
653
+ "created_by": "anthropic",
654
+ "source": "official",
655
+ "last_updated": "2026-03-21",
656
+ "family": "claude-sonnet",
657
+ "description": "The best combination of speed and intelligence",
658
+ "status": "active",
659
+ "knowledge_cutoff": "2025-08",
660
+ "context_window": 1e6,
661
+ "max_output_tokens": 64e3,
662
+ "speed": 4,
663
+ "capabilities": {
664
+ "streaming": true,
665
+ "vision": true,
666
+ "tool_call": true,
667
+ "reasoning": true
668
+ },
669
+ "modalities": {
670
+ "input": ["text", "image"],
671
+ "output": ["text"]
672
+ },
673
+ "pricing": {
674
+ "input": 3,
675
+ "output": 15,
676
+ "cached_input": .3,
677
+ "batch_input": 1.5,
678
+ "batch_output": 7.5,
679
+ "cache_write": 3.75
680
+ },
681
+ "tagline": "The best combination of speed and intelligence",
682
+ "tools": [
683
+ "function_calling",
684
+ "computer_use",
685
+ "mcp"
686
+ ],
687
+ "endpoints": ["messages"]
688
+ }
689
+ ]
690
+ };
691
+ const models = provider.models.map((m) => ({
692
+ ...m,
693
+ provider: provider.id
694
+ }));
695
+ //#endregion
696
+ export { models, provider };