@llmgateway/models 1.79.0 → 1.82.0

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 (54) hide show
  1. package/dist/models/alibaba.d.ts +469 -469
  2. package/dist/models/alibaba.js +469 -469
  3. package/dist/models/alibaba.js.map +1 -1
  4. package/dist/models/anthropic.d.ts +266 -266
  5. package/dist/models/anthropic.js +266 -266
  6. package/dist/models/anthropic.js.map +1 -1
  7. package/dist/models/bytedance.d.ts +24 -24
  8. package/dist/models/bytedance.js +24 -24
  9. package/dist/models/bytedance.js.map +1 -1
  10. package/dist/models/deepseek.d.ts +62 -62
  11. package/dist/models/deepseek.js +62 -62
  12. package/dist/models/deepseek.js.map +1 -1
  13. package/dist/models/google.d.ts +402 -336
  14. package/dist/models/google.js +402 -336
  15. package/dist/models/google.js.map +1 -1
  16. package/dist/models/meta.d.ts +66 -66
  17. package/dist/models/meta.js +66 -66
  18. package/dist/models/meta.js.map +1 -1
  19. package/dist/models/minimax.d.ts +55 -55
  20. package/dist/models/minimax.js +55 -55
  21. package/dist/models/minimax.js.map +1 -1
  22. package/dist/models/mistral.d.ts +30 -30
  23. package/dist/models/mistral.js +30 -30
  24. package/dist/models/mistral.js.map +1 -1
  25. package/dist/models/moonshot.d.ts +70 -70
  26. package/dist/models/moonshot.js +70 -70
  27. package/dist/models/moonshot.js.map +1 -1
  28. package/dist/models/nousresearch.d.ts +6 -6
  29. package/dist/models/nousresearch.js +6 -6
  30. package/dist/models/nousresearch.js.map +1 -1
  31. package/dist/models/openai.d.ts +335 -327
  32. package/dist/models/openai.js +335 -327
  33. package/dist/models/openai.js.map +1 -1
  34. package/dist/models/perplexity.d.ts +12 -12
  35. package/dist/models/perplexity.js +12 -12
  36. package/dist/models/perplexity.js.map +1 -1
  37. package/dist/models/xai.d.ts +211 -188
  38. package/dist/models/xai.js +211 -188
  39. package/dist/models/xai.js.map +1 -1
  40. package/dist/models/xiaomi.d.ts +38 -38
  41. package/dist/models/xiaomi.js +38 -38
  42. package/dist/models/xiaomi.js.map +1 -1
  43. package/dist/models/zai.d.ts +177 -177
  44. package/dist/models/zai.js +177 -177
  45. package/dist/models/zai.js.map +1 -1
  46. package/dist/models.d.ts +2253 -2151
  47. package/dist/models.js.map +1 -1
  48. package/dist/providers.d.ts +62 -0
  49. package/dist/providers.js +60 -0
  50. package/dist/providers.js.map +1 -1
  51. package/dist/types.d.ts +13 -5
  52. package/dist/types.js +3 -0
  53. package/dist/types.js.map +1 -1
  54. package/package.json +1 -1
@@ -10,13 +10,13 @@ export const anthropicModels = [
10
10
  test: "skip",
11
11
  providerId: "anthropic",
12
12
  modelName: "claude-3-7-sonnet-latest",
13
- inputPrice: 3.0 / 1e6,
14
- outputPrice: 15.0 / 1e6,
15
- cachedInputPrice: 0.3 / 1e6,
16
- cacheWriteInputPrice: 3.75 / 1e6,
17
- cacheWriteInputPrice1h: 6.0 / 1e6,
13
+ inputPrice: "3.0e-6",
14
+ outputPrice: "15.0e-6",
15
+ cachedInputPrice: "0.3e-6",
16
+ cacheWriteInputPrice: "3.75e-6",
17
+ cacheWriteInputPrice1h: "6.0e-6",
18
18
  minCacheableTokens: 1024,
19
- requestPrice: 0,
19
+ requestPrice: "0",
20
20
  contextSize: 200000,
21
21
  maxOutput: 8192,
22
22
  reasoning: true,
@@ -26,7 +26,7 @@ export const anthropicModels = [
26
26
  tools: true,
27
27
  jsonOutputSchema: true,
28
28
  webSearch: true,
29
- webSearchPrice: 0.01,
29
+ webSearchPrice: "0.01",
30
30
  },
31
31
  {
32
32
  test: "skip",
@@ -34,13 +34,13 @@ export const anthropicModels = [
34
34
  modelName: "anthropic.claude-3-7-sonnet-20250219-v1:0",
35
35
  deprecatedAt: new Date("2025-10-28"),
36
36
  deactivatedAt: new Date("2026-04-28"),
37
- inputPrice: 3.0 / 1e6,
38
- outputPrice: 15.0 / 1e6,
39
- cachedInputPrice: 0.3 / 1e6,
40
- cacheWriteInputPrice: 3.75 / 1e6,
37
+ inputPrice: "3.0e-6",
38
+ outputPrice: "15.0e-6",
39
+ cachedInputPrice: "0.3e-6",
40
+ cacheWriteInputPrice: "3.75e-6",
41
41
  minCacheableTokens: 1024,
42
- requestPrice: 0,
43
- discount: 0.2,
42
+ requestPrice: "0",
43
+ discount: "0.2",
44
44
  contextSize: 200000,
45
45
  maxOutput: 8192,
46
46
  reasoning: true,
@@ -62,13 +62,13 @@ export const anthropicModels = [
62
62
  {
63
63
  providerId: "anthropic",
64
64
  modelName: "claude-3-5-haiku-20241022",
65
- inputPrice: 0.8 / 1e6,
66
- outputPrice: 4.0 / 1e6,
67
- cachedInputPrice: 0.08 / 1e6,
68
- cacheWriteInputPrice: 1.0 / 1e6,
69
- cacheWriteInputPrice1h: 1.6 / 1e6,
65
+ inputPrice: "0.8e-6",
66
+ outputPrice: "4.0e-6",
67
+ cachedInputPrice: "0.08e-6",
68
+ cacheWriteInputPrice: "1.0e-6",
69
+ cacheWriteInputPrice1h: "1.6e-6",
70
70
  minCacheableTokens: 2048,
71
- requestPrice: 0,
71
+ requestPrice: "0",
72
72
  contextSize: 200000,
73
73
  maxOutput: 8192,
74
74
  streaming: true,
@@ -76,7 +76,7 @@ export const anthropicModels = [
76
76
  tools: true,
77
77
  jsonOutputSchema: true,
78
78
  webSearch: true,
79
- webSearchPrice: 0.01,
79
+ webSearchPrice: "0.01",
80
80
  deprecatedAt: new Date("2025-12-19"),
81
81
  deactivatedAt: new Date("2026-02-19T17:00:00Z"),
82
82
  },
@@ -93,13 +93,13 @@ export const anthropicModels = [
93
93
  test: "skip",
94
94
  providerId: "anthropic",
95
95
  modelName: "claude-3-7-sonnet-20250219",
96
- inputPrice: 3.0 / 1e6,
97
- outputPrice: 15.0 / 1e6,
98
- cachedInputPrice: 0.3 / 1e6,
99
- cacheWriteInputPrice: 3.75 / 1e6,
100
- cacheWriteInputPrice1h: 6.0 / 1e6,
96
+ inputPrice: "3.0e-6",
97
+ outputPrice: "15.0e-6",
98
+ cachedInputPrice: "0.3e-6",
99
+ cacheWriteInputPrice: "3.75e-6",
100
+ cacheWriteInputPrice1h: "6.0e-6",
101
101
  minCacheableTokens: 1024,
102
- requestPrice: 0,
102
+ requestPrice: "0",
103
103
  contextSize: 200000,
104
104
  maxOutput: 8192,
105
105
  streaming: true,
@@ -109,7 +109,7 @@ export const anthropicModels = [
109
109
  tools: true,
110
110
  jsonOutputSchema: true,
111
111
  webSearch: true,
112
- webSearchPrice: 0.01,
112
+ webSearchPrice: "0.01",
113
113
  },
114
114
  ],
115
115
  },
@@ -124,13 +124,13 @@ export const anthropicModels = [
124
124
  test: "skip",
125
125
  providerId: "anthropic",
126
126
  modelName: "claude-3-5-sonnet-20241022",
127
- inputPrice: 3.0 / 1e6,
128
- outputPrice: 15.0 / 1e6,
129
- cachedInputPrice: 0.3 / 1e6,
130
- cacheWriteInputPrice: 3.75 / 1e6,
131
- cacheWriteInputPrice1h: 6.0 / 1e6,
127
+ inputPrice: "3.0e-6",
128
+ outputPrice: "15.0e-6",
129
+ cachedInputPrice: "0.3e-6",
130
+ cacheWriteInputPrice: "3.75e-6",
131
+ cacheWriteInputPrice1h: "6.0e-6",
132
132
  minCacheableTokens: 1024,
133
- requestPrice: 0,
133
+ requestPrice: "0",
134
134
  contextSize: 200000,
135
135
  maxOutput: 8192,
136
136
  streaming: true,
@@ -138,7 +138,7 @@ export const anthropicModels = [
138
138
  tools: true,
139
139
  jsonOutputSchema: true,
140
140
  webSearch: true,
141
- webSearchPrice: 0.01,
141
+ webSearchPrice: "0.01",
142
142
  deactivatedAt: new Date("2025-10-28"),
143
143
  },
144
144
  {
@@ -147,13 +147,13 @@ export const anthropicModels = [
147
147
  modelName: "anthropic.claude-3-5-sonnet-20241022-v2:0",
148
148
  deprecatedAt: new Date("2025-10-28"),
149
149
  deactivatedAt: new Date("2026-04-28"),
150
- inputPrice: 3.0 / 1e6,
151
- outputPrice: 15.0 / 1e6,
152
- cachedInputPrice: 0.3 / 1e6,
153
- cacheWriteInputPrice: 3.75 / 1e6,
150
+ inputPrice: "3.0e-6",
151
+ outputPrice: "15.0e-6",
152
+ cachedInputPrice: "0.3e-6",
153
+ cacheWriteInputPrice: "3.75e-6",
154
154
  minCacheableTokens: 1024,
155
- requestPrice: 0,
156
- discount: 0.2,
155
+ requestPrice: "0",
156
+ discount: "0.2",
157
157
  contextSize: 200000,
158
158
  maxOutput: 8192,
159
159
  streaming: true,
@@ -173,9 +173,9 @@ export const anthropicModels = [
173
173
  {
174
174
  providerId: "anthropic",
175
175
  modelName: "claude-2.1",
176
- inputPrice: 8.0 / 1e6,
177
- outputPrice: 24.0 / 1e6,
178
- requestPrice: 0,
176
+ inputPrice: "8.0e-6",
177
+ outputPrice: "24.0e-6",
178
+ requestPrice: "0",
179
179
  contextSize: 200000,
180
180
  maxOutput: undefined,
181
181
  streaming: true,
@@ -197,13 +197,13 @@ export const anthropicModels = [
197
197
  test: "skip",
198
198
  providerId: "anthropic",
199
199
  modelName: "claude-sonnet-4-20250514",
200
- inputPrice: 3.0 / 1e6,
201
- outputPrice: 15.0 / 1e6,
202
- cachedInputPrice: 0.3 / 1e6,
203
- cacheWriteInputPrice: 3.75 / 1e6,
204
- cacheWriteInputPrice1h: 6.0 / 1e6,
200
+ inputPrice: "3.0e-6",
201
+ outputPrice: "15.0e-6",
202
+ cachedInputPrice: "0.3e-6",
203
+ cacheWriteInputPrice: "3.75e-6",
204
+ cacheWriteInputPrice1h: "6.0e-6",
205
205
  minCacheableTokens: 1024,
206
- requestPrice: 0,
206
+ requestPrice: "0",
207
207
  contextSize: 200000,
208
208
  maxOutput: undefined,
209
209
  reasoning: true,
@@ -213,19 +213,19 @@ export const anthropicModels = [
213
213
  tools: true,
214
214
  jsonOutputSchema: true,
215
215
  webSearch: true,
216
- webSearchPrice: 0.01,
216
+ webSearchPrice: "0.01",
217
217
  },
218
218
  {
219
219
  test: "skip",
220
220
  providerId: "aws-bedrock",
221
221
  modelName: "anthropic.claude-sonnet-4-20250514-v1:0",
222
- inputPrice: 3.0 / 1e6,
223
- outputPrice: 15.0 / 1e6,
224
- cachedInputPrice: 0.3 / 1e6,
225
- cacheWriteInputPrice: 3.75 / 1e6,
222
+ inputPrice: "3.0e-6",
223
+ outputPrice: "15.0e-6",
224
+ cachedInputPrice: "0.3e-6",
225
+ cacheWriteInputPrice: "3.75e-6",
226
226
  minCacheableTokens: 1024,
227
- requestPrice: 0,
228
- discount: 0.2,
227
+ requestPrice: "0",
228
+ discount: "0.2",
229
229
  contextSize: 200000,
230
230
  maxOutput: undefined,
231
231
  reasoning: true,
@@ -248,13 +248,13 @@ export const anthropicModels = [
248
248
  test: "skip",
249
249
  providerId: "anthropic",
250
250
  modelName: "claude-sonnet-4-5",
251
- inputPrice: 3.0 / 1e6,
252
- outputPrice: 15.0 / 1e6,
253
- cachedInputPrice: 0.3 / 1e6,
254
- cacheWriteInputPrice: 3.75 / 1e6,
255
- cacheWriteInputPrice1h: 6.0 / 1e6,
251
+ inputPrice: "3.0e-6",
252
+ outputPrice: "15.0e-6",
253
+ cachedInputPrice: "0.3e-6",
254
+ cacheWriteInputPrice: "3.75e-6",
255
+ cacheWriteInputPrice1h: "6.0e-6",
256
256
  minCacheableTokens: 1024,
257
- requestPrice: 0,
257
+ requestPrice: "0",
258
258
  contextSize: 200000,
259
259
  reasoning: true,
260
260
  reasoningMaxTokens: true,
@@ -264,20 +264,20 @@ export const anthropicModels = [
264
264
  tools: true,
265
265
  jsonOutputSchema: true,
266
266
  webSearch: true,
267
- webSearchPrice: 0.01,
267
+ webSearchPrice: "0.01",
268
268
  },
269
269
  {
270
270
  test: "skip",
271
271
  providerId: "aws-bedrock",
272
272
  modelName: "anthropic.claude-sonnet-4-5-20250929-v1:0",
273
- inputPrice: 3.0 / 1e6,
274
- outputPrice: 15.0 / 1e6,
275
- cachedInputPrice: 0.3 / 1e6,
276
- cacheWriteInputPrice: 3.75 / 1e6,
277
- cacheWriteInputPrice1h: 6.0 / 1e6,
273
+ inputPrice: "3.0e-6",
274
+ outputPrice: "15.0e-6",
275
+ cachedInputPrice: "0.3e-6",
276
+ cacheWriteInputPrice: "3.75e-6",
277
+ cacheWriteInputPrice1h: "6.0e-6",
278
278
  minCacheableTokens: 1024,
279
- requestPrice: 0,
280
- discount: 0.2,
279
+ requestPrice: "0",
280
+ discount: "0.2",
281
281
  contextSize: 200000,
282
282
  maxOutput: 8192,
283
283
  reasoning: true,
@@ -300,13 +300,13 @@ export const anthropicModels = [
300
300
  test: "skip",
301
301
  providerId: "anthropic",
302
302
  modelName: "claude-sonnet-4-5-20250929",
303
- inputPrice: 3.0 / 1e6,
304
- outputPrice: 15.0 / 1e6,
305
- cachedInputPrice: 0.3 / 1e6,
306
- cacheWriteInputPrice: 3.75 / 1e6,
307
- cacheWriteInputPrice1h: 6.0 / 1e6,
303
+ inputPrice: "3.0e-6",
304
+ outputPrice: "15.0e-6",
305
+ cachedInputPrice: "0.3e-6",
306
+ cacheWriteInputPrice: "3.75e-6",
307
+ cacheWriteInputPrice1h: "6.0e-6",
308
308
  minCacheableTokens: 1024,
309
- requestPrice: 0,
309
+ requestPrice: "0",
310
310
  contextSize: 200000,
311
311
  reasoning: true,
312
312
  reasoningMaxTokens: true,
@@ -316,20 +316,20 @@ export const anthropicModels = [
316
316
  tools: true,
317
317
  jsonOutputSchema: true,
318
318
  webSearch: true,
319
- webSearchPrice: 0.01,
319
+ webSearchPrice: "0.01",
320
320
  },
321
321
  {
322
322
  test: "skip",
323
323
  providerId: "aws-bedrock",
324
324
  modelName: "anthropic.claude-sonnet-4-5-20250929-v1:0",
325
- inputPrice: 3.0 / 1e6,
326
- outputPrice: 15.0 / 1e6,
327
- cachedInputPrice: 0.3 / 1e6,
328
- cacheWriteInputPrice: 3.75 / 1e6,
329
- cacheWriteInputPrice1h: 6.0 / 1e6,
325
+ inputPrice: "3.0e-6",
326
+ outputPrice: "15.0e-6",
327
+ cachedInputPrice: "0.3e-6",
328
+ cacheWriteInputPrice: "3.75e-6",
329
+ cacheWriteInputPrice1h: "6.0e-6",
330
330
  minCacheableTokens: 1024,
331
- requestPrice: 0,
332
- discount: 0.2,
331
+ requestPrice: "0",
332
+ discount: "0.2",
333
333
  contextSize: 200000,
334
334
  maxOutput: 8192,
335
335
  reasoning: true,
@@ -351,13 +351,13 @@ export const anthropicModels = [
351
351
  {
352
352
  providerId: "anthropic",
353
353
  modelName: "claude-sonnet-4-6",
354
- inputPrice: 3.0 / 1e6,
355
- outputPrice: 15.0 / 1e6,
356
- cachedInputPrice: 0.3 / 1e6,
357
- cacheWriteInputPrice: 3.75 / 1e6,
358
- cacheWriteInputPrice1h: 6.0 / 1e6,
354
+ inputPrice: "3.0e-6",
355
+ outputPrice: "15.0e-6",
356
+ cachedInputPrice: "0.3e-6",
357
+ cacheWriteInputPrice: "3.75e-6",
358
+ cacheWriteInputPrice1h: "6.0e-6",
359
359
  minCacheableTokens: 2048,
360
- requestPrice: 0,
360
+ requestPrice: "0",
361
361
  contextSize: 200000,
362
362
  maxOutput: 64000,
363
363
  reasoning: true,
@@ -367,19 +367,19 @@ export const anthropicModels = [
367
367
  tools: true,
368
368
  jsonOutputSchema: true,
369
369
  webSearch: true,
370
- webSearchPrice: 0.01,
370
+ webSearchPrice: "0.01",
371
371
  },
372
372
  {
373
373
  providerId: "aws-bedrock",
374
374
  modelName: "anthropic.claude-sonnet-4-6",
375
- inputPrice: 3.0 / 1e6,
376
- outputPrice: 15.0 / 1e6,
377
- cachedInputPrice: 0.3 / 1e6,
378
- cacheWriteInputPrice: 3.75 / 1e6,
379
- cacheWriteInputPrice1h: 6.0 / 1e6,
375
+ inputPrice: "3.0e-6",
376
+ outputPrice: "15.0e-6",
377
+ cachedInputPrice: "0.3e-6",
378
+ cacheWriteInputPrice: "3.75e-6",
379
+ cacheWriteInputPrice1h: "6.0e-6",
380
380
  minCacheableTokens: 2048,
381
- requestPrice: 0,
382
- discount: 0.2,
381
+ requestPrice: "0",
382
+ discount: "0.2",
383
383
  contextSize: 200000,
384
384
  maxOutput: 64000,
385
385
  reasoning: true,
@@ -394,11 +394,11 @@ export const anthropicModels = [
394
394
  providerId: "google-vertex",
395
395
  stability: "unstable",
396
396
  modelName: "claude-sonnet-4-6",
397
- inputPrice: 3.0 / 1e6,
398
- outputPrice: 15.0 / 1e6,
399
- cachedInputPrice: 0.3 / 1e6,
397
+ inputPrice: "3.0e-6",
398
+ outputPrice: "15.0e-6",
399
+ cachedInputPrice: "0.3e-6",
400
400
  minCacheableTokens: 2048,
401
- requestPrice: 0,
401
+ requestPrice: "0",
402
402
  contextSize: 200000,
403
403
  maxOutput: 64000,
404
404
  reasoning: true,
@@ -420,13 +420,13 @@ export const anthropicModels = [
420
420
  {
421
421
  providerId: "anthropic",
422
422
  modelName: "claude-haiku-4-5",
423
- inputPrice: 1.0 / 1e6,
424
- outputPrice: 5.0 / 1e6,
425
- cachedInputPrice: 0.1 / 1e6,
426
- cacheWriteInputPrice: 1.25 / 1e6,
427
- cacheWriteInputPrice1h: 2.0 / 1e6,
423
+ inputPrice: "1.0e-6",
424
+ outputPrice: "5.0e-6",
425
+ cachedInputPrice: "0.1e-6",
426
+ cacheWriteInputPrice: "1.25e-6",
427
+ cacheWriteInputPrice1h: "2.0e-6",
428
428
  minCacheableTokens: 4096,
429
- requestPrice: 0,
429
+ requestPrice: "0",
430
430
  contextSize: 200000,
431
431
  maxOutput: 64000,
432
432
  streaming: true,
@@ -435,19 +435,19 @@ export const anthropicModels = [
435
435
  jsonOutput: true,
436
436
  jsonOutputSchema: true,
437
437
  webSearch: true,
438
- webSearchPrice: 0.01,
438
+ webSearchPrice: "0.01",
439
439
  },
440
440
  {
441
441
  providerId: "aws-bedrock",
442
442
  modelName: "anthropic.claude-haiku-4-5-20251001-v1:0",
443
- inputPrice: 1.0 / 1e6,
444
- outputPrice: 5.0 / 1e6,
445
- cachedInputPrice: 0.1 / 1e6,
446
- cacheWriteInputPrice: 1.25 / 1e6,
447
- cacheWriteInputPrice1h: 2.0 / 1e6,
443
+ inputPrice: "1.0e-6",
444
+ outputPrice: "5.0e-6",
445
+ cachedInputPrice: "0.1e-6",
446
+ cacheWriteInputPrice: "1.25e-6",
447
+ cacheWriteInputPrice1h: "2.0e-6",
448
448
  minCacheableTokens: 4096,
449
- requestPrice: 0,
450
- discount: 0.2,
449
+ requestPrice: "0",
450
+ discount: "0.2",
451
451
  contextSize: 200000,
452
452
  maxOutput: 64000,
453
453
  streaming: true,
@@ -468,13 +468,13 @@ export const anthropicModels = [
468
468
  {
469
469
  providerId: "anthropic",
470
470
  modelName: "claude-haiku-4-5-20251001",
471
- inputPrice: 1.0 / 1e6,
472
- outputPrice: 5.0 / 1e6,
473
- cachedInputPrice: 0.1 / 1e6,
474
- cacheWriteInputPrice: 1.25 / 1e6,
475
- cacheWriteInputPrice1h: 2.0 / 1e6,
471
+ inputPrice: "1.0e-6",
472
+ outputPrice: "5.0e-6",
473
+ cachedInputPrice: "0.1e-6",
474
+ cacheWriteInputPrice: "1.25e-6",
475
+ cacheWriteInputPrice1h: "2.0e-6",
476
476
  minCacheableTokens: 4096,
477
- requestPrice: 0,
477
+ requestPrice: "0",
478
478
  contextSize: 200000,
479
479
  maxOutput: 64000,
480
480
  streaming: true,
@@ -483,19 +483,19 @@ export const anthropicModels = [
483
483
  jsonOutput: true,
484
484
  jsonOutputSchema: true,
485
485
  webSearch: true,
486
- webSearchPrice: 0.01,
486
+ webSearchPrice: "0.01",
487
487
  },
488
488
  {
489
489
  providerId: "aws-bedrock",
490
490
  modelName: "anthropic.claude-haiku-4-5-20251001-v1:0",
491
- inputPrice: 1.0 / 1e6,
492
- outputPrice: 5.0 / 1e6,
493
- cachedInputPrice: 0.1 / 1e6,
494
- cacheWriteInputPrice: 1.25 / 1e6,
495
- cacheWriteInputPrice1h: 2.0 / 1e6,
491
+ inputPrice: "1.0e-6",
492
+ outputPrice: "5.0e-6",
493
+ cachedInputPrice: "0.1e-6",
494
+ cacheWriteInputPrice: "1.25e-6",
495
+ cacheWriteInputPrice1h: "2.0e-6",
496
496
  minCacheableTokens: 4096,
497
- requestPrice: 0,
498
- discount: 0.2,
497
+ requestPrice: "0",
498
+ discount: "0.2",
499
499
  contextSize: 200000,
500
500
  maxOutput: 64000,
501
501
  streaming: true,
@@ -517,13 +517,13 @@ export const anthropicModels = [
517
517
  test: "skip",
518
518
  providerId: "anthropic",
519
519
  modelName: "claude-opus-4-20250514",
520
- inputPrice: 15.0 / 1e6,
521
- outputPrice: 75.0 / 1e6,
522
- cachedInputPrice: 1.5 / 1e6,
523
- cacheWriteInputPrice: 18.75 / 1e6,
524
- cacheWriteInputPrice1h: 30.0 / 1e6,
520
+ inputPrice: "15.0e-6",
521
+ outputPrice: "75.0e-6",
522
+ cachedInputPrice: "1.5e-6",
523
+ cacheWriteInputPrice: "18.75e-6",
524
+ cacheWriteInputPrice1h: "30.0e-6",
525
525
  minCacheableTokens: 1024,
526
- requestPrice: 0,
526
+ requestPrice: "0",
527
527
  contextSize: 200000,
528
528
  maxOutput: undefined,
529
529
  reasoning: true,
@@ -533,19 +533,19 @@ export const anthropicModels = [
533
533
  tools: true,
534
534
  jsonOutputSchema: true,
535
535
  webSearch: true,
536
- webSearchPrice: 0.01,
536
+ webSearchPrice: "0.01",
537
537
  },
538
538
  {
539
539
  test: "skip",
540
540
  providerId: "aws-bedrock",
541
541
  modelName: "anthropic.claude-opus-4-20250514-v1:0",
542
- inputPrice: 15.0 / 1e6,
543
- outputPrice: 75.0 / 1e6,
544
- cachedInputPrice: 1.5 / 1e6,
545
- cacheWriteInputPrice: 18.75 / 1e6,
542
+ inputPrice: "15.0e-6",
543
+ outputPrice: "75.0e-6",
544
+ cachedInputPrice: "1.5e-6",
545
+ cacheWriteInputPrice: "18.75e-6",
546
546
  minCacheableTokens: 1024,
547
- requestPrice: 0,
548
- discount: 0.2,
547
+ requestPrice: "0",
548
+ discount: "0.2",
549
549
  contextSize: 200000,
550
550
  maxOutput: undefined,
551
551
  reasoning: true,
@@ -568,13 +568,13 @@ export const anthropicModels = [
568
568
  test: "skip",
569
569
  providerId: "anthropic",
570
570
  modelName: "claude-opus-4-1-20250805",
571
- inputPrice: 15.0 / 1e6,
572
- outputPrice: 75.0 / 1e6,
573
- cachedInputPrice: 1.5 / 1e6,
574
- cacheWriteInputPrice: 18.75 / 1e6,
575
- cacheWriteInputPrice1h: 30.0 / 1e6,
571
+ inputPrice: "15.0e-6",
572
+ outputPrice: "75.0e-6",
573
+ cachedInputPrice: "1.5e-6",
574
+ cacheWriteInputPrice: "18.75e-6",
575
+ cacheWriteInputPrice1h: "30.0e-6",
576
576
  minCacheableTokens: 1024,
577
- requestPrice: 0,
577
+ requestPrice: "0",
578
578
  contextSize: 200000,
579
579
  maxOutput: 32000,
580
580
  streaming: true,
@@ -584,19 +584,19 @@ export const anthropicModels = [
584
584
  tools: true,
585
585
  jsonOutputSchema: true,
586
586
  webSearch: true,
587
- webSearchPrice: 0.01,
587
+ webSearchPrice: "0.01",
588
588
  },
589
589
  {
590
590
  test: "skip",
591
591
  providerId: "aws-bedrock",
592
592
  modelName: "anthropic.claude-opus-4-1-20250805-v1:0",
593
- inputPrice: 15.0 / 1e6,
594
- outputPrice: 75.0 / 1e6,
595
- cachedInputPrice: 1.5 / 1e6,
596
- cacheWriteInputPrice: 18.75 / 1e6,
593
+ inputPrice: "15.0e-6",
594
+ outputPrice: "75.0e-6",
595
+ cachedInputPrice: "1.5e-6",
596
+ cacheWriteInputPrice: "18.75e-6",
597
597
  minCacheableTokens: 1024,
598
- requestPrice: 0,
599
- discount: 0.2,
598
+ requestPrice: "0",
599
+ discount: "0.2",
600
600
  contextSize: 200000,
601
601
  maxOutput: 32000,
602
602
  streaming: true,
@@ -620,13 +620,13 @@ export const anthropicModels = [
620
620
  providerId: "anthropic",
621
621
  modelName: "claude-3-5-sonnet-20240620",
622
622
  deactivatedAt: new Date("2025-10-28"),
623
- inputPrice: 3.0 / 1e6,
624
- outputPrice: 15.0 / 1e6,
625
- cachedInputPrice: 0.3 / 1e6,
626
- cacheWriteInputPrice: 3.75 / 1e6,
627
- cacheWriteInputPrice1h: 6.0 / 1e6,
623
+ inputPrice: "3.0e-6",
624
+ outputPrice: "15.0e-6",
625
+ cachedInputPrice: "0.3e-6",
626
+ cacheWriteInputPrice: "3.75e-6",
627
+ cacheWriteInputPrice1h: "6.0e-6",
628
628
  minCacheableTokens: 1024,
629
- requestPrice: 0,
629
+ requestPrice: "0",
630
630
  contextSize: 200000,
631
631
  maxOutput: 8192,
632
632
  streaming: true,
@@ -647,13 +647,13 @@ export const anthropicModels = [
647
647
  providerId: "anthropic",
648
648
  modelName: "claude-3-5-sonnet-latest",
649
649
  deactivatedAt: new Date("2025-10-28"),
650
- inputPrice: 3.0 / 1e6,
651
- outputPrice: 15.0 / 1e6,
652
- cachedInputPrice: 0.3 / 1e6,
653
- cacheWriteInputPrice: 3.75 / 1e6,
654
- cacheWriteInputPrice1h: 6.0 / 1e6,
650
+ inputPrice: "3.0e-6",
651
+ outputPrice: "15.0e-6",
652
+ cachedInputPrice: "0.3e-6",
653
+ cacheWriteInputPrice: "3.75e-6",
654
+ cacheWriteInputPrice1h: "6.0e-6",
655
655
  minCacheableTokens: 1024,
656
- requestPrice: 0,
656
+ requestPrice: "0",
657
657
  contextSize: 200000,
658
658
  maxOutput: undefined,
659
659
  streaming: true,
@@ -661,7 +661,7 @@ export const anthropicModels = [
661
661
  tools: true,
662
662
  jsonOutputSchema: true,
663
663
  webSearch: true,
664
- webSearchPrice: 0.01,
664
+ webSearchPrice: "0.01",
665
665
  },
666
666
  ],
667
667
  },
@@ -675,13 +675,13 @@ export const anthropicModels = [
675
675
  {
676
676
  providerId: "anthropic",
677
677
  modelName: "claude-3-5-haiku-latest",
678
- inputPrice: 0.8 / 1e6,
679
- outputPrice: 4.0 / 1e6,
680
- cachedInputPrice: 0.08 / 1e6,
681
- cacheWriteInputPrice: 1.0 / 1e6,
682
- cacheWriteInputPrice1h: 1.6 / 1e6,
678
+ inputPrice: "0.8e-6",
679
+ outputPrice: "4.0e-6",
680
+ cachedInputPrice: "0.08e-6",
681
+ cacheWriteInputPrice: "1.0e-6",
682
+ cacheWriteInputPrice1h: "1.6e-6",
683
683
  minCacheableTokens: 2048,
684
- requestPrice: 0,
684
+ requestPrice: "0",
685
685
  contextSize: 200000,
686
686
  maxOutput: 8192,
687
687
  streaming: true,
@@ -689,7 +689,7 @@ export const anthropicModels = [
689
689
  tools: true,
690
690
  jsonOutputSchema: true,
691
691
  webSearch: true,
692
- webSearchPrice: 0.01,
692
+ webSearchPrice: "0.01",
693
693
  deprecatedAt: new Date("2025-12-19"),
694
694
  deactivatedAt: new Date("2026-02-19T17:00:00Z"),
695
695
  },
@@ -698,13 +698,13 @@ export const anthropicModels = [
698
698
  modelName: "anthropic.claude-3-5-haiku-20241022-v1:0",
699
699
  deprecatedAt: new Date("2025-10-28"),
700
700
  deactivatedAt: new Date("2026-04-28"),
701
- inputPrice: 0.8 / 1e6,
702
- outputPrice: 4.0 / 1e6,
703
- cachedInputPrice: 0.08 / 1e6,
704
- cacheWriteInputPrice: 1.0 / 1e6,
701
+ inputPrice: "0.8e-6",
702
+ outputPrice: "4.0e-6",
703
+ cachedInputPrice: "0.08e-6",
704
+ cacheWriteInputPrice: "1.0e-6",
705
705
  minCacheableTokens: 2048,
706
- requestPrice: 0,
707
- discount: 0.2,
706
+ requestPrice: "0",
707
+ discount: "0.2",
708
708
  contextSize: 200000,
709
709
  maxOutput: 8192,
710
710
  streaming: true,
@@ -725,13 +725,13 @@ export const anthropicModels = [
725
725
  test: "skip",
726
726
  providerId: "anthropic",
727
727
  modelName: "claude-3-opus-20240229",
728
- inputPrice: 15.0 / 1e6,
729
- outputPrice: 75.0 / 1e6,
730
- cachedInputPrice: 1.5 / 1e6,
731
- cacheWriteInputPrice: 18.75 / 1e6,
732
- cacheWriteInputPrice1h: 30.0 / 1e6,
728
+ inputPrice: "15.0e-6",
729
+ outputPrice: "75.0e-6",
730
+ cachedInputPrice: "1.5e-6",
731
+ cacheWriteInputPrice: "18.75e-6",
732
+ cacheWriteInputPrice1h: "30.0e-6",
733
733
  minCacheableTokens: 1024,
734
- requestPrice: 0,
734
+ requestPrice: "0",
735
735
  contextSize: 200000,
736
736
  maxOutput: 4096,
737
737
  streaming: true,
@@ -750,13 +750,13 @@ export const anthropicModels = [
750
750
  {
751
751
  providerId: "anthropic",
752
752
  modelName: "claude-3-haiku-20240307",
753
- inputPrice: 0.25 / 1e6,
754
- outputPrice: 1.25 / 1e6,
755
- cachedInputPrice: 0.03 / 1e6,
756
- cacheWriteInputPrice: 0.3 / 1e6,
757
- cacheWriteInputPrice1h: 0.5 / 1e6,
753
+ inputPrice: "0.25e-6",
754
+ outputPrice: "1.25e-6",
755
+ cachedInputPrice: "0.03e-6",
756
+ cacheWriteInputPrice: "0.3e-6",
757
+ cacheWriteInputPrice1h: "0.5e-6",
758
758
  minCacheableTokens: 1024,
759
- requestPrice: 0,
759
+ requestPrice: "0",
760
760
  contextSize: 200000,
761
761
  maxOutput: 4096,
762
762
  streaming: true,
@@ -777,13 +777,13 @@ export const anthropicModels = [
777
777
  {
778
778
  providerId: "anthropic",
779
779
  modelName: "claude-3-haiku-20240307",
780
- inputPrice: 0.25 / 1e6,
781
- outputPrice: 1.25 / 1e6,
782
- cachedInputPrice: 0.03 / 1e6,
783
- cacheWriteInputPrice: 0.3 / 1e6,
784
- cacheWriteInputPrice1h: 0.5 / 1e6,
780
+ inputPrice: "0.25e-6",
781
+ outputPrice: "1.25e-6",
782
+ cachedInputPrice: "0.03e-6",
783
+ cacheWriteInputPrice: "0.3e-6",
784
+ cacheWriteInputPrice1h: "0.5e-6",
785
785
  minCacheableTokens: 1024,
786
- requestPrice: 0,
786
+ requestPrice: "0",
787
787
  contextSize: 200000,
788
788
  maxOutput: 4096,
789
789
  streaming: true,
@@ -805,13 +805,13 @@ export const anthropicModels = [
805
805
  test: "skip",
806
806
  providerId: "anthropic",
807
807
  modelName: "claude-opus-4-5-20251101",
808
- inputPrice: 5.0 / 1e6,
809
- outputPrice: 25.0 / 1e6,
810
- cachedInputPrice: 0.5 / 1e6,
811
- cacheWriteInputPrice: 6.25 / 1e6,
812
- cacheWriteInputPrice1h: 10.0 / 1e6,
808
+ inputPrice: "5.0e-6",
809
+ outputPrice: "25.0e-6",
810
+ cachedInputPrice: "0.5e-6",
811
+ cacheWriteInputPrice: "6.25e-6",
812
+ cacheWriteInputPrice1h: "10.0e-6",
813
813
  minCacheableTokens: 4096,
814
- requestPrice: 0,
814
+ requestPrice: "0",
815
815
  contextSize: 200000,
816
816
  maxOutput: 32000,
817
817
  reasoning: true,
@@ -822,20 +822,20 @@ export const anthropicModels = [
822
822
  jsonOutputSchema: true,
823
823
  supportedParameters: ["temperature", "max_tokens", "top_p", "effort"],
824
824
  webSearch: true,
825
- webSearchPrice: 0.01,
825
+ webSearchPrice: "0.01",
826
826
  },
827
827
  {
828
828
  test: "skip",
829
829
  providerId: "aws-bedrock",
830
830
  modelName: "anthropic.claude-opus-4-5-20251101-v1:0",
831
- inputPrice: 5.0 / 1e6,
832
- outputPrice: 25.0 / 1e6,
833
- cachedInputPrice: 0.5 / 1e6,
834
- cacheWriteInputPrice: 6.25 / 1e6,
835
- cacheWriteInputPrice1h: 10.0 / 1e6,
831
+ inputPrice: "5.0e-6",
832
+ outputPrice: "25.0e-6",
833
+ cachedInputPrice: "0.5e-6",
834
+ cacheWriteInputPrice: "6.25e-6",
835
+ cacheWriteInputPrice1h: "10.0e-6",
836
836
  minCacheableTokens: 4096,
837
- requestPrice: 0,
838
- discount: 0.2,
837
+ requestPrice: "0",
838
+ discount: "0.2",
839
839
  contextSize: 200000,
840
840
  maxOutput: 32000,
841
841
  reasoning: true,
@@ -850,11 +850,11 @@ export const anthropicModels = [
850
850
  providerId: "google-vertex",
851
851
  stability: "unstable",
852
852
  modelName: "claude-opus-4-5@20251101",
853
- inputPrice: 5.0 / 1e6,
854
- outputPrice: 25.0 / 1e6,
855
- cachedInputPrice: 0.5 / 1e6,
853
+ inputPrice: "5.0e-6",
854
+ outputPrice: "25.0e-6",
855
+ cachedInputPrice: "0.5e-6",
856
856
  minCacheableTokens: 4096,
857
- requestPrice: 0,
857
+ requestPrice: "0",
858
858
  contextSize: 200000,
859
859
  maxOutput: 32000,
860
860
  reasoning: true,
@@ -877,33 +877,33 @@ export const anthropicModels = [
877
877
  test: "skip",
878
878
  providerId: "anthropic",
879
879
  modelName: "claude-opus-4-6",
880
- inputPrice: 5.0 / 1e6,
881
- outputPrice: 25.0 / 1e6,
882
- cachedInputPrice: 0.5 / 1e6,
883
- cacheWriteInputPrice: 6.25 / 1e6,
884
- cacheWriteInputPrice1h: 10.0 / 1e6,
880
+ inputPrice: "5.0e-6",
881
+ outputPrice: "25.0e-6",
882
+ cachedInputPrice: "0.5e-6",
883
+ cacheWriteInputPrice: "6.25e-6",
884
+ cacheWriteInputPrice1h: "10.0e-6",
885
885
  minCacheableTokens: 4096,
886
886
  pricingTiers: [
887
887
  {
888
888
  name: "Up to 200K",
889
889
  upToTokens: 200000,
890
- inputPrice: 5.0 / 1e6,
891
- outputPrice: 25.0 / 1e6,
892
- cachedInputPrice: 0.5 / 1e6,
893
- cacheWriteInputPrice: 6.25 / 1e6,
894
- cacheWriteInputPrice1h: 10.0 / 1e6,
890
+ inputPrice: "5.0e-6",
891
+ outputPrice: "25.0e-6",
892
+ cachedInputPrice: "0.5e-6",
893
+ cacheWriteInputPrice: "6.25e-6",
894
+ cacheWriteInputPrice1h: "10.0e-6",
895
895
  },
896
896
  {
897
897
  name: "Over 200K",
898
898
  upToTokens: Infinity,
899
- inputPrice: 10.0 / 1e6,
900
- outputPrice: 37.5 / 1e6,
901
- cachedInputPrice: 1.0 / 1e6,
902
- cacheWriteInputPrice: 12.5 / 1e6,
903
- cacheWriteInputPrice1h: 20.0 / 1e6,
899
+ inputPrice: "10.0e-6",
900
+ outputPrice: "37.5e-6",
901
+ cachedInputPrice: "1.0e-6",
902
+ cacheWriteInputPrice: "12.5e-6",
903
+ cacheWriteInputPrice1h: "20.0e-6",
904
904
  },
905
905
  ],
906
- requestPrice: 0,
906
+ requestPrice: "0",
907
907
  contextSize: 1000000,
908
908
  maxOutput: 128000,
909
909
  reasoning: true,
@@ -914,20 +914,20 @@ export const anthropicModels = [
914
914
  jsonOutputSchema: true,
915
915
  supportedParameters: ["temperature", "max_tokens", "top_p", "effort"],
916
916
  webSearch: true,
917
- webSearchPrice: 0.01,
917
+ webSearchPrice: "0.01",
918
918
  },
919
919
  {
920
920
  test: "skip",
921
921
  providerId: "aws-bedrock",
922
922
  modelName: "anthropic.claude-opus-4-6-v1",
923
- inputPrice: 5.0 / 1e6,
924
- outputPrice: 25.0 / 1e6,
925
- cachedInputPrice: 0.5 / 1e6,
926
- cacheWriteInputPrice: 6.25 / 1e6,
927
- cacheWriteInputPrice1h: 10.0 / 1e6,
923
+ inputPrice: "5.0e-6",
924
+ outputPrice: "25.0e-6",
925
+ cachedInputPrice: "0.5e-6",
926
+ cacheWriteInputPrice: "6.25e-6",
927
+ cacheWriteInputPrice1h: "10.0e-6",
928
928
  minCacheableTokens: 4096,
929
- requestPrice: 0,
930
- discount: 0.2,
929
+ requestPrice: "0",
930
+ discount: "0.2",
931
931
  contextSize: 1000000,
932
932
  maxOutput: 128000,
933
933
  reasoning: true,
@@ -949,33 +949,33 @@ export const anthropicModels = [
949
949
  {
950
950
  providerId: "anthropic",
951
951
  modelName: "claude-opus-4-7",
952
- inputPrice: 5.0 / 1e6,
953
- outputPrice: 25.0 / 1e6,
954
- cachedInputPrice: 0.5 / 1e6,
955
- cacheWriteInputPrice: 6.25 / 1e6,
956
- cacheWriteInputPrice1h: 10.0 / 1e6,
952
+ inputPrice: "5.0e-6",
953
+ outputPrice: "25.0e-6",
954
+ cachedInputPrice: "0.5e-6",
955
+ cacheWriteInputPrice: "6.25e-6",
956
+ cacheWriteInputPrice1h: "10.0e-6",
957
957
  minCacheableTokens: 4096,
958
958
  pricingTiers: [
959
959
  {
960
960
  name: "Up to 200K",
961
961
  upToTokens: 200000,
962
- inputPrice: 5.0 / 1e6,
963
- outputPrice: 25.0 / 1e6,
964
- cachedInputPrice: 0.5 / 1e6,
965
- cacheWriteInputPrice: 6.25 / 1e6,
966
- cacheWriteInputPrice1h: 10.0 / 1e6,
962
+ inputPrice: "5.0e-6",
963
+ outputPrice: "25.0e-6",
964
+ cachedInputPrice: "0.5e-6",
965
+ cacheWriteInputPrice: "6.25e-6",
966
+ cacheWriteInputPrice1h: "10.0e-6",
967
967
  },
968
968
  {
969
969
  name: "Over 200K",
970
970
  upToTokens: Infinity,
971
- inputPrice: 10.0 / 1e6,
972
- outputPrice: 37.5 / 1e6,
973
- cachedInputPrice: 1.0 / 1e6,
974
- cacheWriteInputPrice: 12.5 / 1e6,
975
- cacheWriteInputPrice1h: 20.0 / 1e6,
971
+ inputPrice: "10.0e-6",
972
+ outputPrice: "37.5e-6",
973
+ cachedInputPrice: "1.0e-6",
974
+ cacheWriteInputPrice: "12.5e-6",
975
+ cacheWriteInputPrice1h: "20.0e-6",
976
976
  },
977
977
  ],
978
- requestPrice: 0,
978
+ requestPrice: "0",
979
979
  contextSize: 1000000,
980
980
  maxOutput: 128000,
981
981
  reasoning: true,
@@ -987,19 +987,19 @@ export const anthropicModels = [
987
987
  jsonOutputSchema: true,
988
988
  supportedParameters: ["temperature", "max_tokens", "top_p", "effort"],
989
989
  webSearch: true,
990
- webSearchPrice: 0.01,
990
+ webSearchPrice: "0.01",
991
991
  },
992
992
  {
993
993
  providerId: "aws-bedrock",
994
994
  modelName: "anthropic.claude-opus-4-7",
995
- inputPrice: 5.0 / 1e6,
996
- outputPrice: 25.0 / 1e6,
997
- cachedInputPrice: 0.5 / 1e6,
998
- cacheWriteInputPrice: 6.25 / 1e6,
999
- cacheWriteInputPrice1h: 10.0 / 1e6,
995
+ inputPrice: "5.0e-6",
996
+ outputPrice: "25.0e-6",
997
+ cachedInputPrice: "0.5e-6",
998
+ cacheWriteInputPrice: "6.25e-6",
999
+ cacheWriteInputPrice1h: "10.0e-6",
1000
1000
  minCacheableTokens: 4096,
1001
- requestPrice: 0,
1002
- discount: 0.2,
1001
+ requestPrice: "0",
1002
+ discount: "0.2",
1003
1003
  contextSize: 1000000,
1004
1004
  maxOutput: 128000,
1005
1005
  reasoning: true,