@llmgateway/models 1.80.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 (52) 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 +360 -356
  14. package/dist/models/google.js +360 -356
  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 +2210 -2173
  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 +4 -4
  52. package/package.json +1 -1
@@ -17,11 +17,12 @@ export const xaiModels = [
17
17
  {
18
18
  test: "skip",
19
19
  providerId: "xai",
20
+ contentFilterPrice: 0.05,
20
21
  modelName: "grok-3",
21
- inputPrice: 3.0 / 1e6,
22
- cachedInputPrice: 0.75 / 1e6,
23
- outputPrice: 15.0 / 1e6,
24
- requestPrice: 0,
22
+ inputPrice: "3.0e-6",
23
+ cachedInputPrice: "0.75e-6",
24
+ outputPrice: "15.0e-6",
25
+ requestPrice: "0",
25
26
  contextSize: 131072,
26
27
  maxOutput: undefined,
27
28
  streaming: true,
@@ -41,10 +42,11 @@ export const xaiModels = [
41
42
  providers: [
42
43
  {
43
44
  providerId: "xai",
45
+ contentFilterPrice: 0.05,
44
46
  modelName: "grok-3-mini",
45
- inputPrice: 0.3 / 1e6,
46
- outputPrice: 0.5 / 1e6,
47
- requestPrice: 0,
47
+ inputPrice: "0.3e-6",
48
+ outputPrice: "0.5e-6",
49
+ requestPrice: "0",
48
50
  contextSize: 131072,
49
51
  maxOutput: undefined,
50
52
  streaming: true,
@@ -67,10 +69,11 @@ export const xaiModels = [
67
69
  {
68
70
  test: "skip",
69
71
  providerId: "xai",
72
+ contentFilterPrice: 0.05,
70
73
  modelName: "grok-3-fast",
71
- inputPrice: 5.0 / 1e6,
72
- outputPrice: 25.0 / 1e6,
73
- requestPrice: 0,
74
+ inputPrice: "5.0e-6",
75
+ outputPrice: "25.0e-6",
76
+ requestPrice: "0",
74
77
  contextSize: 131072,
75
78
  maxOutput: undefined,
76
79
  streaming: true,
@@ -91,10 +94,11 @@ export const xaiModels = [
91
94
  providers: [
92
95
  {
93
96
  providerId: "xai",
97
+ contentFilterPrice: 0.05,
94
98
  modelName: "grok-3-mini-fast",
95
- inputPrice: 0.6 / 1e6,
96
- outputPrice: 4.0 / 1e6,
97
- requestPrice: 0,
99
+ inputPrice: "0.6e-6",
100
+ outputPrice: "4.0e-6",
101
+ requestPrice: "0",
98
102
  contextSize: 131072,
99
103
  maxOutput: undefined,
100
104
  streaming: true,
@@ -116,10 +120,11 @@ export const xaiModels = [
116
120
  {
117
121
  test: "skip",
118
122
  providerId: "xai",
123
+ contentFilterPrice: 0.05,
119
124
  modelName: "grok-2-1212",
120
- inputPrice: 2.0 / 1e6,
121
- outputPrice: 10.0 / 1e6,
122
- requestPrice: 0,
125
+ inputPrice: "2.0e-6",
126
+ outputPrice: "10.0e-6",
127
+ requestPrice: "0",
123
128
  contextSize: 131072,
124
129
  maxOutput: undefined,
125
130
  streaming: true,
@@ -140,11 +145,12 @@ export const xaiModels = [
140
145
  providers: [
141
146
  {
142
147
  providerId: "xai",
148
+ contentFilterPrice: 0.05,
143
149
  modelName: "grok-2-vision-1212",
144
- inputPrice: 2.0 / 1e6,
145
- outputPrice: 10.0 / 1e6,
146
- requestPrice: 0,
147
- imageInputPrice: 2.0 / 1e6,
150
+ inputPrice: "2.0e-6",
151
+ outputPrice: "10.0e-6",
152
+ requestPrice: "0",
153
+ imageInputPrice: "2.0e-6",
148
154
  contextSize: 32768,
149
155
  maxOutput: undefined,
150
156
  streaming: true,
@@ -166,28 +172,29 @@ export const xaiModels = [
166
172
  {
167
173
  test: "skip",
168
174
  providerId: "xai",
175
+ contentFilterPrice: 0.05,
169
176
  modelName: "grok-4-0709",
170
177
  deactivatedAt: new Date("2026-05-15"),
171
- inputPrice: 3.0 / 1e6,
172
- outputPrice: 15.0 / 1e6,
178
+ inputPrice: "3.0e-6",
179
+ outputPrice: "15.0e-6",
173
180
  pricingTiers: [
174
181
  {
175
182
  name: "Up to 128K",
176
183
  upToTokens: 128000,
177
- inputPrice: 3.0 / 1e6,
178
- outputPrice: 15.0 / 1e6,
179
- cachedInputPrice: 0.75 / 1e6,
184
+ inputPrice: "3.0e-6",
185
+ outputPrice: "15.0e-6",
186
+ cachedInputPrice: "0.75e-6",
180
187
  },
181
188
  {
182
189
  name: "Over 128K",
183
190
  upToTokens: Infinity,
184
- inputPrice: 6.0 / 1e6,
185
- outputPrice: 30.0 / 1e6,
186
- cachedInputPrice: 0,
191
+ inputPrice: "6.0e-6",
192
+ outputPrice: "30.0e-6",
193
+ cachedInputPrice: "0",
187
194
  },
188
195
  ],
189
- cachedInputPrice: 0.75 / 1e6,
190
- requestPrice: 0,
196
+ cachedInputPrice: "0.75e-6",
197
+ requestPrice: "0",
191
198
  imageInputPrice: undefined,
192
199
  contextSize: 256000,
193
200
  maxOutput: 256000,
@@ -208,27 +215,28 @@ export const xaiModels = [
208
215
  providers: [
209
216
  {
210
217
  providerId: "xai",
218
+ contentFilterPrice: 0.05,
211
219
  modelName: "grok-4",
212
- inputPrice: 3.0 / 1e6,
213
- outputPrice: 15.0 / 1e6,
220
+ inputPrice: "3.0e-6",
221
+ outputPrice: "15.0e-6",
214
222
  pricingTiers: [
215
223
  {
216
224
  name: "Up to 128K",
217
225
  upToTokens: 128000,
218
- inputPrice: 3.0 / 1e6,
219
- outputPrice: 15.0 / 1e6,
220
- cachedInputPrice: 0.75 / 1e6,
226
+ inputPrice: "3.0e-6",
227
+ outputPrice: "15.0e-6",
228
+ cachedInputPrice: "0.75e-6",
221
229
  },
222
230
  {
223
231
  name: "Over 128K",
224
232
  upToTokens: Infinity,
225
- inputPrice: 6.0 / 1e6,
226
- outputPrice: 30.0 / 1e6,
227
- cachedInputPrice: 0,
233
+ inputPrice: "6.0e-6",
234
+ outputPrice: "30.0e-6",
235
+ cachedInputPrice: "0",
228
236
  },
229
237
  ],
230
- cachedInputPrice: 0.75 / 1e6,
231
- requestPrice: 0,
238
+ cachedInputPrice: "0.75e-6",
239
+ requestPrice: "0",
232
240
  imageInputPrice: undefined,
233
241
  contextSize: 256000,
234
242
  maxOutput: 256000,
@@ -249,28 +257,29 @@ export const xaiModels = [
249
257
  providers: [
250
258
  {
251
259
  providerId: "xai",
260
+ contentFilterPrice: 0.05,
252
261
  modelName: "grok-4-fast-reasoning",
253
262
  deactivatedAt: new Date("2026-05-15"),
254
- inputPrice: 0.2 / 1e6,
255
- outputPrice: 0.5 / 1e6,
263
+ inputPrice: "0.2e-6",
264
+ outputPrice: "0.5e-6",
256
265
  pricingTiers: [
257
266
  {
258
267
  name: "Up to 128K",
259
268
  upToTokens: 128000,
260
- inputPrice: 0.2 / 1e6,
261
- outputPrice: 0.5 / 1e6,
262
- cachedInputPrice: 0.05 / 1e6,
269
+ inputPrice: "0.2e-6",
270
+ outputPrice: "0.5e-6",
271
+ cachedInputPrice: "0.05e-6",
263
272
  },
264
273
  {
265
274
  name: "Over 128K",
266
275
  upToTokens: Infinity,
267
- inputPrice: 0.4 / 1e6,
268
- outputPrice: 1.0 / 1e6,
269
- cachedInputPrice: 0,
276
+ inputPrice: "0.4e-6",
277
+ outputPrice: "1.0e-6",
278
+ cachedInputPrice: "0",
270
279
  },
271
280
  ],
272
- cachedInputPrice: 0.05 / 1e6,
273
- requestPrice: 0,
281
+ cachedInputPrice: "0.05e-6",
282
+ requestPrice: "0",
274
283
  imageInputPrice: undefined,
275
284
  contextSize: 2_000_000,
276
285
  maxOutput: 30000,
@@ -292,28 +301,29 @@ export const xaiModels = [
292
301
  providers: [
293
302
  {
294
303
  providerId: "xai",
304
+ contentFilterPrice: 0.05,
295
305
  modelName: "grok-4-fast-non-reasoning",
296
306
  deactivatedAt: new Date("2026-05-15"),
297
- inputPrice: 0.2 / 1e6,
298
- outputPrice: 0.5 / 1e6,
307
+ inputPrice: "0.2e-6",
308
+ outputPrice: "0.5e-6",
299
309
  pricingTiers: [
300
310
  {
301
311
  name: "Up to 128K",
302
312
  upToTokens: 128000,
303
- inputPrice: 0.2 / 1e6,
304
- outputPrice: 0.5 / 1e6,
305
- cachedInputPrice: 0.05 / 1e6,
313
+ inputPrice: "0.2e-6",
314
+ outputPrice: "0.5e-6",
315
+ cachedInputPrice: "0.05e-6",
306
316
  },
307
317
  {
308
318
  name: "Over 128K",
309
319
  upToTokens: Infinity,
310
- inputPrice: 0.4 / 1e6,
311
- outputPrice: 1.0 / 1e6,
312
- cachedInputPrice: 0,
320
+ inputPrice: "0.4e-6",
321
+ outputPrice: "1.0e-6",
322
+ cachedInputPrice: "0",
313
323
  },
314
324
  ],
315
- cachedInputPrice: 0.05 / 1e6,
316
- requestPrice: 0,
325
+ cachedInputPrice: "0.05e-6",
326
+ requestPrice: "0",
317
327
  imageInputPrice: undefined,
318
328
  contextSize: 2_000_000,
319
329
  maxOutput: 30000,
@@ -335,12 +345,13 @@ export const xaiModels = [
335
345
  {
336
346
  test: "skip",
337
347
  providerId: "xai",
348
+ contentFilterPrice: 0.05,
338
349
  modelName: "grok-code-fast-1",
339
350
  deactivatedAt: new Date("2026-05-15"),
340
- inputPrice: 0.2 / 1e6,
341
- cachedInputPrice: 0.02 / 1e6,
342
- outputPrice: 1.5 / 1e6,
343
- requestPrice: 0,
351
+ inputPrice: "0.2e-6",
352
+ cachedInputPrice: "0.02e-6",
353
+ outputPrice: "1.5e-6",
354
+ requestPrice: "0",
344
355
  contextSize: 256000,
345
356
  maxOutput: 10000,
346
357
  streaming: true,
@@ -360,28 +371,29 @@ export const xaiModels = [
360
371
  providers: [
361
372
  {
362
373
  providerId: "xai",
374
+ contentFilterPrice: 0.05,
363
375
  modelName: "grok-4-1-fast-reasoning",
364
376
  deactivatedAt: new Date("2026-05-15"),
365
- inputPrice: 0.2 / 1e6,
366
- outputPrice: 0.5 / 1e6,
377
+ inputPrice: "0.2e-6",
378
+ outputPrice: "0.5e-6",
367
379
  pricingTiers: [
368
380
  {
369
381
  name: "Up to 128K",
370
382
  upToTokens: 128000,
371
- inputPrice: 0.2 / 1e6,
372
- outputPrice: 0.5 / 1e6,
373
- cachedInputPrice: 0.05 / 1e6,
383
+ inputPrice: "0.2e-6",
384
+ outputPrice: "0.5e-6",
385
+ cachedInputPrice: "0.05e-6",
374
386
  },
375
387
  {
376
388
  name: "Over 128K",
377
389
  upToTokens: Infinity,
378
- inputPrice: 0.4 / 1e6,
379
- outputPrice: 1.0 / 1e6,
380
- cachedInputPrice: 0,
390
+ inputPrice: "0.4e-6",
391
+ outputPrice: "1.0e-6",
392
+ cachedInputPrice: "0",
381
393
  },
382
394
  ],
383
- cachedInputPrice: 0.05 / 1e6,
384
- requestPrice: 0,
395
+ cachedInputPrice: "0.05e-6",
396
+ requestPrice: "0",
385
397
  imageInputPrice: undefined,
386
398
  contextSize: 2_000_000,
387
399
  maxOutput: 30000,
@@ -395,11 +407,11 @@ export const xaiModels = [
395
407
  {
396
408
  providerId: "azure-ai-foundry",
397
409
  modelName: "grok-4-1-fast-reasoning",
398
- inputPrice: 0.2 / 1e6,
399
- outputPrice: 0.5 / 1e6,
400
- requestPrice: 0,
410
+ inputPrice: "0.2e-6",
411
+ outputPrice: "0.5e-6",
412
+ requestPrice: "0",
401
413
  imageInputPrice: undefined,
402
- discount: 0.2,
414
+ discount: "0.2",
403
415
  contextSize: 2_000_000,
404
416
  maxOutput: 30000,
405
417
  streaming: true,
@@ -421,28 +433,29 @@ export const xaiModels = [
421
433
  providers: [
422
434
  {
423
435
  providerId: "xai",
436
+ contentFilterPrice: 0.05,
424
437
  modelName: "grok-4-1-fast-non-reasoning",
425
438
  deactivatedAt: new Date("2026-05-15"),
426
- inputPrice: 0.2 / 1e6,
427
- outputPrice: 0.5 / 1e6,
439
+ inputPrice: "0.2e-6",
440
+ outputPrice: "0.5e-6",
428
441
  pricingTiers: [
429
442
  {
430
443
  name: "Up to 128K",
431
444
  upToTokens: 128000,
432
- inputPrice: 0.2 / 1e6,
433
- outputPrice: 0.5 / 1e6,
434
- cachedInputPrice: 0.05 / 1e6,
445
+ inputPrice: "0.2e-6",
446
+ outputPrice: "0.5e-6",
447
+ cachedInputPrice: "0.05e-6",
435
448
  },
436
449
  {
437
450
  name: "Over 128K",
438
451
  upToTokens: Infinity,
439
- inputPrice: 0.4 / 1e6,
440
- outputPrice: 1.0 / 1e6,
441
- cachedInputPrice: 0,
452
+ inputPrice: "0.4e-6",
453
+ outputPrice: "1.0e-6",
454
+ cachedInputPrice: "0",
442
455
  },
443
456
  ],
444
- cachedInputPrice: 0.05 / 1e6,
445
- requestPrice: 0,
457
+ cachedInputPrice: "0.05e-6",
458
+ requestPrice: "0",
446
459
  imageInputPrice: undefined,
447
460
  contextSize: 2_000_000,
448
461
  maxOutput: 30000,
@@ -455,11 +468,11 @@ export const xaiModels = [
455
468
  {
456
469
  providerId: "azure-ai-foundry",
457
470
  modelName: "grok-4-1-fast-non-reasoning",
458
- inputPrice: 0.2 / 1e6,
459
- outputPrice: 0.5 / 1e6,
460
- requestPrice: 0,
471
+ inputPrice: "0.2e-6",
472
+ outputPrice: "0.5e-6",
473
+ requestPrice: "0",
461
474
  imageInputPrice: undefined,
462
- discount: 0.2,
475
+ discount: "0.2",
463
476
  contextSize: 2_000_000,
464
477
  maxOutput: 30000,
465
478
  streaming: true,
@@ -479,28 +492,29 @@ export const xaiModels = [
479
492
  providers: [
480
493
  {
481
494
  providerId: "xai",
495
+ contentFilterPrice: 0.05,
482
496
  modelName: "grok-4-fast-non-reasoning",
483
497
  deactivatedAt: new Date("2026-05-15"),
484
- inputPrice: 0.2 / 1e6,
485
- outputPrice: 0.5 / 1e6,
498
+ inputPrice: "0.2e-6",
499
+ outputPrice: "0.5e-6",
486
500
  pricingTiers: [
487
501
  {
488
502
  name: "Up to 128K",
489
503
  upToTokens: 128000,
490
- inputPrice: 0.2 / 1e6,
491
- outputPrice: 0.5 / 1e6,
492
- cachedInputPrice: 0.05 / 1e6,
504
+ inputPrice: "0.2e-6",
505
+ outputPrice: "0.5e-6",
506
+ cachedInputPrice: "0.05e-6",
493
507
  },
494
508
  {
495
509
  name: "Over 128K",
496
510
  upToTokens: Infinity,
497
- inputPrice: 0.4 / 1e6,
498
- outputPrice: 1.0 / 1e6,
499
- cachedInputPrice: 0,
511
+ inputPrice: "0.4e-6",
512
+ outputPrice: "1.0e-6",
513
+ cachedInputPrice: "0",
500
514
  },
501
515
  ],
502
- cachedInputPrice: 0.05 / 1e6,
503
- requestPrice: 0,
516
+ cachedInputPrice: "0.05e-6",
517
+ requestPrice: "0",
504
518
  imageInputPrice: undefined,
505
519
  contextSize: 2_000_000,
506
520
  maxOutput: 30000,
@@ -512,28 +526,29 @@ export const xaiModels = [
512
526
  },
513
527
  {
514
528
  providerId: "xai",
529
+ contentFilterPrice: 0.05,
515
530
  modelName: "grok-4-fast-reasoning",
516
531
  deactivatedAt: new Date("2026-05-15"),
517
- inputPrice: 0.2 / 1e6,
518
- outputPrice: 0.5 / 1e6,
532
+ inputPrice: "0.2e-6",
533
+ outputPrice: "0.5e-6",
519
534
  pricingTiers: [
520
535
  {
521
536
  name: "Up to 128K",
522
537
  upToTokens: 128000,
523
- inputPrice: 0.2 / 1e6,
524
- outputPrice: 0.5 / 1e6,
525
- cachedInputPrice: 0.05 / 1e6,
538
+ inputPrice: "0.2e-6",
539
+ outputPrice: "0.5e-6",
540
+ cachedInputPrice: "0.05e-6",
526
541
  },
527
542
  {
528
543
  name: "Over 128K",
529
544
  upToTokens: Infinity,
530
- inputPrice: 0.4 / 1e6,
531
- outputPrice: 1.0 / 1e6,
532
- cachedInputPrice: 0,
545
+ inputPrice: "0.4e-6",
546
+ outputPrice: "1.0e-6",
547
+ cachedInputPrice: "0",
533
548
  },
534
549
  ],
535
- cachedInputPrice: 0.05 / 1e6,
536
- requestPrice: 0,
550
+ cachedInputPrice: "0.05e-6",
551
+ requestPrice: "0",
537
552
  imageInputPrice: undefined,
538
553
  contextSize: 2_000_000,
539
554
  maxOutput: 30000,
@@ -555,28 +570,29 @@ export const xaiModels = [
555
570
  providers: [
556
571
  {
557
572
  providerId: "xai",
573
+ contentFilterPrice: 0.05,
558
574
  modelName: "grok-4-1-fast-non-reasoning",
559
575
  deactivatedAt: new Date("2026-05-15"),
560
- inputPrice: 0.2 / 1e6,
561
- outputPrice: 0.5 / 1e6,
576
+ inputPrice: "0.2e-6",
577
+ outputPrice: "0.5e-6",
562
578
  pricingTiers: [
563
579
  {
564
580
  name: "Up to 128K",
565
581
  upToTokens: 128000,
566
- inputPrice: 0.2 / 1e6,
567
- outputPrice: 0.5 / 1e6,
568
- cachedInputPrice: 0.05 / 1e6,
582
+ inputPrice: "0.2e-6",
583
+ outputPrice: "0.5e-6",
584
+ cachedInputPrice: "0.05e-6",
569
585
  },
570
586
  {
571
587
  name: "Over 128K",
572
588
  upToTokens: Infinity,
573
- inputPrice: 0.4 / 1e6,
574
- outputPrice: 1.0 / 1e6,
575
- cachedInputPrice: 0,
589
+ inputPrice: "0.4e-6",
590
+ outputPrice: "1.0e-6",
591
+ cachedInputPrice: "0",
576
592
  },
577
593
  ],
578
- cachedInputPrice: 0.05 / 1e6,
579
- requestPrice: 0,
594
+ cachedInputPrice: "0.05e-6",
595
+ requestPrice: "0",
580
596
  imageInputPrice: undefined,
581
597
  contextSize: 2_000_000,
582
598
  maxOutput: 30000,
@@ -589,11 +605,11 @@ export const xaiModels = [
589
605
  {
590
606
  providerId: "azure-ai-foundry",
591
607
  modelName: "grok-4-1-fast-non-reasoning",
592
- inputPrice: 0.2 / 1e6,
593
- outputPrice: 0.5 / 1e6,
594
- requestPrice: 0,
608
+ inputPrice: "0.2e-6",
609
+ outputPrice: "0.5e-6",
610
+ requestPrice: "0",
595
611
  imageInputPrice: undefined,
596
- discount: 0.2,
612
+ discount: "0.2",
597
613
  contextSize: 2_000_000,
598
614
  maxOutput: 30000,
599
615
  streaming: true,
@@ -604,28 +620,29 @@ export const xaiModels = [
604
620
  },
605
621
  {
606
622
  providerId: "xai",
623
+ contentFilterPrice: 0.05,
607
624
  modelName: "grok-4-1-fast-reasoning",
608
625
  deactivatedAt: new Date("2026-05-15"),
609
- inputPrice: 0.2 / 1e6,
610
- outputPrice: 0.5 / 1e6,
626
+ inputPrice: "0.2e-6",
627
+ outputPrice: "0.5e-6",
611
628
  pricingTiers: [
612
629
  {
613
630
  name: "Up to 128K",
614
631
  upToTokens: 128000,
615
- inputPrice: 0.2 / 1e6,
616
- outputPrice: 0.5 / 1e6,
617
- cachedInputPrice: 0.05 / 1e6,
632
+ inputPrice: "0.2e-6",
633
+ outputPrice: "0.5e-6",
634
+ cachedInputPrice: "0.05e-6",
618
635
  },
619
636
  {
620
637
  name: "Over 128K",
621
638
  upToTokens: Infinity,
622
- inputPrice: 0.4 / 1e6,
623
- outputPrice: 1.0 / 1e6,
624
- cachedInputPrice: 0,
639
+ inputPrice: "0.4e-6",
640
+ outputPrice: "1.0e-6",
641
+ cachedInputPrice: "0",
625
642
  },
626
643
  ],
627
- cachedInputPrice: 0.05 / 1e6,
628
- requestPrice: 0,
644
+ cachedInputPrice: "0.05e-6",
645
+ requestPrice: "0",
629
646
  imageInputPrice: undefined,
630
647
  contextSize: 2_000_000,
631
648
  maxOutput: 30000,
@@ -639,11 +656,11 @@ export const xaiModels = [
639
656
  {
640
657
  providerId: "azure-ai-foundry",
641
658
  modelName: "grok-4-1-fast-reasoning",
642
- inputPrice: 0.2 / 1e6,
643
- outputPrice: 0.5 / 1e6,
644
- requestPrice: 0,
659
+ inputPrice: "0.2e-6",
660
+ outputPrice: "0.5e-6",
661
+ requestPrice: "0",
645
662
  imageInputPrice: undefined,
646
- discount: 0.2,
663
+ discount: "0.2",
647
664
  contextSize: 2_000_000,
648
665
  maxOutput: 30000,
649
666
  streaming: true,
@@ -665,28 +682,29 @@ export const xaiModels = [
665
682
  providers: [
666
683
  {
667
684
  providerId: "xai",
685
+ contentFilterPrice: 0.05,
668
686
  modelName: "grok-4.20-multi-agent-beta-0309",
669
687
  deactivatedAt: new Date("2026-03-27"),
670
- inputPrice: 2.0 / 1e6,
671
- outputPrice: 6.0 / 1e6,
688
+ inputPrice: "2.0e-6",
689
+ outputPrice: "6.0e-6",
672
690
  pricingTiers: [
673
691
  {
674
692
  name: "Up to 200K",
675
693
  upToTokens: 200000,
676
- inputPrice: 2.0 / 1e6,
677
- outputPrice: 6.0 / 1e6,
678
- cachedInputPrice: 0.2 / 1e6,
694
+ inputPrice: "2.0e-6",
695
+ outputPrice: "6.0e-6",
696
+ cachedInputPrice: "0.2e-6",
679
697
  },
680
698
  {
681
699
  name: "Over 200K",
682
700
  upToTokens: Infinity,
683
- inputPrice: 4.0 / 1e6,
684
- outputPrice: 12.0 / 1e6,
685
- cachedInputPrice: 0.4 / 1e6,
701
+ inputPrice: "4.0e-6",
702
+ outputPrice: "12.0e-6",
703
+ cachedInputPrice: "0.4e-6",
686
704
  },
687
705
  ],
688
- cachedInputPrice: 0.2 / 1e6,
689
- requestPrice: 0,
706
+ cachedInputPrice: "0.2e-6",
707
+ requestPrice: "0",
690
708
  contextSize: 2_000_000,
691
709
  maxOutput: 30000,
692
710
  streaming: true,
@@ -708,27 +726,28 @@ export const xaiModels = [
708
726
  providers: [
709
727
  {
710
728
  providerId: "xai",
729
+ contentFilterPrice: 0.05,
711
730
  modelName: "grok-4.20-beta-0309-reasoning",
712
- inputPrice: 2.0 / 1e6,
713
- outputPrice: 6.0 / 1e6,
731
+ inputPrice: "2.0e-6",
732
+ outputPrice: "6.0e-6",
714
733
  pricingTiers: [
715
734
  {
716
735
  name: "Up to 200K",
717
736
  upToTokens: 200000,
718
- inputPrice: 2.0 / 1e6,
719
- outputPrice: 6.0 / 1e6,
720
- cachedInputPrice: 0.2 / 1e6,
737
+ inputPrice: "2.0e-6",
738
+ outputPrice: "6.0e-6",
739
+ cachedInputPrice: "0.2e-6",
721
740
  },
722
741
  {
723
742
  name: "Over 200K",
724
743
  upToTokens: Infinity,
725
- inputPrice: 4.0 / 1e6,
726
- outputPrice: 12.0 / 1e6,
727
- cachedInputPrice: 0.4 / 1e6,
744
+ inputPrice: "4.0e-6",
745
+ outputPrice: "12.0e-6",
746
+ cachedInputPrice: "0.4e-6",
728
747
  },
729
748
  ],
730
- cachedInputPrice: 0.2 / 1e6,
731
- requestPrice: 0,
749
+ cachedInputPrice: "0.2e-6",
750
+ requestPrice: "0",
732
751
  contextSize: 2_000_000,
733
752
  maxOutput: 30000,
734
753
  streaming: true,
@@ -749,27 +768,28 @@ export const xaiModels = [
749
768
  providers: [
750
769
  {
751
770
  providerId: "xai",
771
+ contentFilterPrice: 0.05,
752
772
  modelName: "grok-4.20-beta-0309-non-reasoning",
753
- inputPrice: 2.0 / 1e6,
754
- outputPrice: 6.0 / 1e6,
773
+ inputPrice: "2.0e-6",
774
+ outputPrice: "6.0e-6",
755
775
  pricingTiers: [
756
776
  {
757
777
  name: "Up to 200K",
758
778
  upToTokens: 200000,
759
- inputPrice: 2.0 / 1e6,
760
- outputPrice: 6.0 / 1e6,
761
- cachedInputPrice: 0.2 / 1e6,
779
+ inputPrice: "2.0e-6",
780
+ outputPrice: "6.0e-6",
781
+ cachedInputPrice: "0.2e-6",
762
782
  },
763
783
  {
764
784
  name: "Over 200K",
765
785
  upToTokens: Infinity,
766
- inputPrice: 4.0 / 1e6,
767
- outputPrice: 12.0 / 1e6,
768
- cachedInputPrice: 0.4 / 1e6,
786
+ inputPrice: "4.0e-6",
787
+ outputPrice: "12.0e-6",
788
+ cachedInputPrice: "0.4e-6",
769
789
  },
770
790
  ],
771
- cachedInputPrice: 0.2 / 1e6,
772
- requestPrice: 0,
791
+ cachedInputPrice: "0.2e-6",
792
+ requestPrice: "0",
773
793
  contextSize: 2_000_000,
774
794
  maxOutput: 30000,
775
795
  streaming: true,
@@ -789,27 +809,28 @@ export const xaiModels = [
789
809
  providers: [
790
810
  {
791
811
  providerId: "xai",
812
+ contentFilterPrice: 0.05,
792
813
  modelName: "grok-4.3",
793
- inputPrice: 1.25 / 1e6,
794
- outputPrice: 2.5 / 1e6,
795
- cachedInputPrice: 0.3125 / 1e6,
814
+ inputPrice: "1.25e-6",
815
+ outputPrice: "2.5e-6",
816
+ cachedInputPrice: "0.3125e-6",
796
817
  pricingTiers: [
797
818
  {
798
819
  name: "Up to 200K",
799
820
  upToTokens: 200000,
800
- inputPrice: 1.25 / 1e6,
801
- outputPrice: 2.5 / 1e6,
802
- cachedInputPrice: 0.3125 / 1e6,
821
+ inputPrice: "1.25e-6",
822
+ outputPrice: "2.5e-6",
823
+ cachedInputPrice: "0.3125e-6",
803
824
  },
804
825
  {
805
826
  name: "Over 200K",
806
827
  upToTokens: Infinity,
807
- inputPrice: 2.5 / 1e6,
808
- outputPrice: 5.0 / 1e6,
809
- cachedInputPrice: 0,
828
+ inputPrice: "2.5e-6",
829
+ outputPrice: "5.0e-6",
830
+ cachedInputPrice: "0",
810
831
  },
811
832
  ],
812
- requestPrice: 0,
833
+ requestPrice: "0",
813
834
  contextSize: 1_000_000,
814
835
  maxOutput: undefined,
815
836
  streaming: true,
@@ -832,12 +853,13 @@ export const xaiModels = [
832
853
  {
833
854
  test: "skip",
834
855
  providerId: "xai",
856
+ contentFilterPrice: 0.05,
835
857
  modelName: "grok-imagine-image-pro",
836
858
  deactivatedAt: new Date("2026-05-15"),
837
- inputPrice: 0,
838
- outputPrice: 0,
839
- requestPrice: 0.07,
840
- imageInputPrice: 0.002,
859
+ inputPrice: "0",
860
+ outputPrice: "0",
861
+ requestPrice: "0.07",
862
+ imageInputPrice: "0.002",
841
863
  contextSize: 2000,
842
864
  maxOutput: 4096,
843
865
  streaming: false,
@@ -859,11 +881,12 @@ export const xaiModels = [
859
881
  {
860
882
  test: "skip",
861
883
  providerId: "xai",
884
+ contentFilterPrice: 0.05,
862
885
  modelName: "grok-imagine-image",
863
- inputPrice: 0,
864
- outputPrice: 0,
865
- requestPrice: 0.02,
866
- imageInputPrice: 0.002,
886
+ inputPrice: "0",
887
+ outputPrice: "0",
888
+ requestPrice: "0.02",
889
+ imageInputPrice: "0.002",
867
890
  contextSize: 2000,
868
891
  maxOutput: 4096,
869
892
  streaming: false,