@llmgateway/models 1.97.1 → 1.99.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 (60) hide show
  1. package/README.md +1 -1
  2. package/dist/models/alibaba.d.ts +72 -72
  3. package/dist/models/alibaba.js +72 -72
  4. package/dist/models/alibaba.js.map +1 -1
  5. package/dist/models/anthropic.d.ts +73 -44
  6. package/dist/models/anthropic.js +76 -44
  7. package/dist/models/anthropic.js.map +1 -1
  8. package/dist/models/bytedance.d.ts +9 -9
  9. package/dist/models/bytedance.js +9 -9
  10. package/dist/models/bytedance.js.map +1 -1
  11. package/dist/models/deepseek.d.ts +18 -18
  12. package/dist/models/deepseek.js +18 -18
  13. package/dist/models/deepseek.js.map +1 -1
  14. package/dist/models/google.d.ts +97 -74
  15. package/dist/models/google.js +97 -74
  16. package/dist/models/google.js.map +1 -1
  17. package/dist/models/llmgateway.d.ts +2 -2
  18. package/dist/models/llmgateway.js +2 -2
  19. package/dist/models/llmgateway.js.map +1 -1
  20. package/dist/models/meta.d.ts +22 -22
  21. package/dist/models/meta.js +22 -22
  22. package/dist/models/meta.js.map +1 -1
  23. package/dist/models/minimax.d.ts +15 -15
  24. package/dist/models/minimax.js +15 -15
  25. package/dist/models/minimax.js.map +1 -1
  26. package/dist/models/mistral.d.ts +10 -10
  27. package/dist/models/mistral.js +10 -10
  28. package/dist/models/mistral.js.map +1 -1
  29. package/dist/models/moonshot.d.ts +19 -19
  30. package/dist/models/moonshot.js +19 -19
  31. package/dist/models/moonshot.js.map +1 -1
  32. package/dist/models/nousresearch.d.ts +2 -2
  33. package/dist/models/nousresearch.js +2 -2
  34. package/dist/models/nousresearch.js.map +1 -1
  35. package/dist/models/openai.d.ts +84 -84
  36. package/dist/models/openai.js +84 -84
  37. package/dist/models/openai.js.map +1 -1
  38. package/dist/models/perplexity.d.ts +3 -3
  39. package/dist/models/perplexity.js +3 -3
  40. package/dist/models/perplexity.js.map +1 -1
  41. package/dist/models/xai.d.ts +24 -24
  42. package/dist/models/xai.js +24 -24
  43. package/dist/models/xai.js.map +1 -1
  44. package/dist/models/xiaomi.d.ts +5 -5
  45. package/dist/models/xiaomi.js +5 -5
  46. package/dist/models/xiaomi.js.map +1 -1
  47. package/dist/models/zai.d.ts +41 -41
  48. package/dist/models/zai.js +41 -41
  49. package/dist/models/zai.js.map +1 -1
  50. package/dist/models.d.ts +499 -446
  51. package/dist/models.js.map +1 -1
  52. package/dist/region-helpers.d.ts +0 -1
  53. package/dist/region-helpers.js +0 -7
  54. package/dist/region-helpers.js.map +1 -1
  55. package/dist/type-guards.js +2 -2
  56. package/dist/type-guards.js.map +1 -1
  57. package/dist/types.d.ts +12 -3
  58. package/dist/types.js +3 -0
  59. package/dist/types.js.map +1 -1
  60. package/package.json +1 -1
@@ -8,7 +8,7 @@ export const googleModels = [
8
8
  providers: [
9
9
  {
10
10
  providerId: "google-ai-studio",
11
- modelName: "gemini-2.5-pro",
11
+ externalId: "gemini-2.5-pro",
12
12
  inputPrice: "1.25e-6",
13
13
  outputPrice: "10.0e-6",
14
14
  cachedInputPrice: "0.125e-6",
@@ -36,6 +36,7 @@ export const googleModels = [
36
36
  streaming: true,
37
37
  vision: true,
38
38
  audio: true,
39
+ document: true,
39
40
  tools: true,
40
41
  webSearch: true,
41
42
  webSearchPrice: "0.035",
@@ -44,7 +45,7 @@ export const googleModels = [
44
45
  },
45
46
  {
46
47
  providerId: "google-vertex",
47
- modelName: "gemini-2.5-pro",
48
+ externalId: "gemini-2.5-pro",
48
49
  inputPrice: "1.25e-6",
49
50
  outputPrice: "10.0e-6",
50
51
  cachedInputPrice: "0.125e-6",
@@ -90,7 +91,7 @@ export const googleModels = [
90
91
  {
91
92
  test: "skip",
92
93
  providerId: "google-ai-studio",
93
- modelName: "gemini-2.5-pro-preview-05-06",
94
+ externalId: "gemini-2.5-pro-preview-05-06",
94
95
  inputPrice: "1.25e-6",
95
96
  outputPrice: "10.0e-6",
96
97
  pricingTiers: [
@@ -115,6 +116,7 @@ export const googleModels = [
115
116
  streaming: true,
116
117
  vision: true,
117
118
  audio: true,
119
+ document: true,
118
120
  tools: true,
119
121
  jsonOutput: true,
120
122
  jsonOutputSchema: true,
@@ -123,7 +125,7 @@ export const googleModels = [
123
125
  {
124
126
  test: "skip",
125
127
  providerId: "google-vertex",
126
- modelName: "gemini-2.5-pro-preview-05-06",
128
+ externalId: "gemini-2.5-pro-preview-05-06",
127
129
  inputPrice: "1.25e-6",
128
130
  outputPrice: "10.0e-6",
129
131
  pricingTiers: [
@@ -165,7 +167,7 @@ export const googleModels = [
165
167
  {
166
168
  test: "skip",
167
169
  providerId: "google-ai-studio",
168
- modelName: "gemini-2.5-pro-preview-06-05",
170
+ externalId: "gemini-2.5-pro-preview-06-05",
169
171
  inputPrice: "1.25e-6",
170
172
  outputPrice: "10.0e-6",
171
173
  pricingTiers: [
@@ -190,6 +192,7 @@ export const googleModels = [
190
192
  streaming: true,
191
193
  vision: true,
192
194
  audio: true,
195
+ document: true,
193
196
  tools: true,
194
197
  jsonOutput: true,
195
198
  jsonOutputSchema: true,
@@ -198,7 +201,7 @@ export const googleModels = [
198
201
  {
199
202
  test: "skip",
200
203
  providerId: "google-vertex",
201
- modelName: "gemini-2.5-pro-preview-06-05",
204
+ externalId: "gemini-2.5-pro-preview-06-05",
202
205
  inputPrice: "1.25e-6",
203
206
  outputPrice: "10.0e-6",
204
207
  pricingTiers: [
@@ -239,7 +242,7 @@ export const googleModels = [
239
242
  providers: [
240
243
  {
241
244
  providerId: "google-ai-studio",
242
- modelName: "gemini-2.5-flash-preview-04-17",
245
+ externalId: "gemini-2.5-flash-preview-04-17",
243
246
  inputPrice: "0.15e-6",
244
247
  outputPrice: "0.6e-6",
245
248
  requestPrice: "0",
@@ -250,6 +253,7 @@ export const googleModels = [
250
253
  streaming: true,
251
254
  vision: true,
252
255
  audio: true,
256
+ document: true,
253
257
  tools: true,
254
258
  jsonOutput: true,
255
259
  jsonOutputSchema: true,
@@ -257,7 +261,7 @@ export const googleModels = [
257
261
  },
258
262
  {
259
263
  providerId: "google-vertex",
260
- modelName: "gemini-2.5-flash-preview-04-17",
264
+ externalId: "gemini-2.5-flash-preview-04-17",
261
265
  inputPrice: "0.15e-6",
262
266
  outputPrice: "0.6e-6",
263
267
  requestPrice: "0",
@@ -284,7 +288,7 @@ export const googleModels = [
284
288
  providers: [
285
289
  {
286
290
  providerId: "google-ai-studio",
287
- modelName: "gemini-2.5-flash-preview-05-20",
291
+ externalId: "gemini-2.5-flash-preview-05-20",
288
292
  inputPrice: "0.15e-6",
289
293
  outputPrice: "0.6e-6",
290
294
  requestPrice: "0",
@@ -295,6 +299,7 @@ export const googleModels = [
295
299
  streaming: true,
296
300
  vision: true,
297
301
  audio: true,
302
+ document: true,
298
303
  tools: true,
299
304
  jsonOutput: true,
300
305
  jsonOutputSchema: true,
@@ -302,7 +307,7 @@ export const googleModels = [
302
307
  },
303
308
  {
304
309
  providerId: "google-vertex",
305
- modelName: "gemini-2.5-flash-preview-05-20",
310
+ externalId: "gemini-2.5-flash-preview-05-20",
306
311
  inputPrice: "0.15e-6",
307
312
  outputPrice: "0.6e-6",
308
313
  requestPrice: "0",
@@ -329,7 +334,7 @@ export const googleModels = [
329
334
  providers: [
330
335
  {
331
336
  providerId: "google-ai-studio",
332
- modelName: "gemini-2.5-flash-preview-09-2025",
337
+ externalId: "gemini-2.5-flash-preview-09-2025",
333
338
  deactivatedAt: new Date("2026-01-17"),
334
339
  inputPrice: "0.3e-6",
335
340
  outputPrice: "2.5e-6",
@@ -342,6 +347,7 @@ export const googleModels = [
342
347
  streaming: true,
343
348
  vision: true,
344
349
  audio: true,
350
+ document: true,
345
351
  tools: true,
346
352
  jsonOutput: true,
347
353
  jsonOutputSchema: true,
@@ -349,7 +355,7 @@ export const googleModels = [
349
355
  {
350
356
  providerId: "google-vertex",
351
357
  deactivatedAt: new Date("2026-01-27"),
352
- modelName: "gemini-2.5-flash-preview-09-2025",
358
+ externalId: "gemini-2.5-flash-preview-09-2025",
353
359
  inputPrice: "0.3e-6",
354
360
  outputPrice: "2.5e-6",
355
361
  cachedInputPrice: "0.03e-6",
@@ -376,7 +382,7 @@ export const googleModels = [
376
382
  providers: [
377
383
  {
378
384
  providerId: "google-ai-studio",
379
- modelName: "gemini-2.5-flash",
385
+ externalId: "gemini-2.5-flash",
380
386
  inputPrice: "0.3e-6",
381
387
  outputPrice: "2.5e-6",
382
388
  cachedInputPrice: "0.03e-6",
@@ -390,6 +396,7 @@ export const googleModels = [
390
396
  streaming: true,
391
397
  vision: true,
392
398
  audio: true,
399
+ document: true,
393
400
  tools: true,
394
401
  webSearch: true,
395
402
  webSearchPrice: "0.035",
@@ -398,7 +405,7 @@ export const googleModels = [
398
405
  },
399
406
  {
400
407
  providerId: "google-vertex",
401
- modelName: "gemini-2.5-flash",
408
+ externalId: "gemini-2.5-flash",
402
409
  inputPrice: "0.3e-6",
403
410
  outputPrice: "2.5e-6",
404
411
  cachedInputPrice: "0.03e-6",
@@ -429,7 +436,7 @@ export const googleModels = [
429
436
  providers: [
430
437
  {
431
438
  providerId: "google-ai-studio",
432
- modelName: "gemini-2.5-flash-lite",
439
+ externalId: "gemini-2.5-flash-lite",
433
440
  inputPrice: "0.1e-6",
434
441
  outputPrice: "0.4e-6",
435
442
  cachedInputPrice: "0.01e-6",
@@ -441,13 +448,14 @@ export const googleModels = [
441
448
  streaming: true,
442
449
  vision: true,
443
450
  audio: true,
451
+ document: true,
444
452
  tools: true,
445
453
  jsonOutput: true,
446
454
  jsonOutputSchema: true,
447
455
  },
448
456
  {
449
457
  providerId: "google-vertex",
450
- modelName: "gemini-2.5-flash-lite",
458
+ externalId: "gemini-2.5-flash-lite",
451
459
  inputPrice: "0.1e-6",
452
460
  outputPrice: "0.4e-6",
453
461
  cachedInputPrice: "0.01e-6",
@@ -475,7 +483,7 @@ export const googleModels = [
475
483
  {
476
484
  providerId: "google-ai-studio",
477
485
  deactivatedAt: new Date("2026-03-31"),
478
- modelName: "gemini-2.5-flash-lite-preview-09-2025",
486
+ externalId: "gemini-2.5-flash-lite-preview-09-2025",
479
487
  inputPrice: "0.1e-6",
480
488
  outputPrice: "0.4e-6",
481
489
  cachedInputPrice: "0.01e-6",
@@ -485,13 +493,15 @@ export const googleModels = [
485
493
  streaming: true,
486
494
  vision: true,
487
495
  audio: true,
496
+ document: true,
488
497
  tools: true,
489
498
  jsonOutput: true,
490
499
  jsonOutputSchema: true,
491
500
  },
492
501
  {
493
502
  providerId: "google-vertex",
494
- modelName: "gemini-2.5-flash-lite-preview-09-2025",
503
+ deactivatedAt: new Date("2026-07-09"),
504
+ externalId: "gemini-2.5-flash-lite-preview-09-2025",
495
505
  inputPrice: "0.1e-6",
496
506
  outputPrice: "0.4e-6",
497
507
  cachedInputPrice: "0.01e-6",
@@ -517,7 +527,7 @@ export const googleModels = [
517
527
  {
518
528
  test: "skip",
519
529
  providerId: "google-ai-studio",
520
- modelName: "gemini-pro-latest",
530
+ externalId: "gemini-pro-latest",
521
531
  inputPrice: "2e-6",
522
532
  outputPrice: "12e-6",
523
533
  cachedInputPrice: "0.2e-6",
@@ -545,6 +555,7 @@ export const googleModels = [
545
555
  streaming: true,
546
556
  vision: true,
547
557
  audio: true,
558
+ document: true,
548
559
  tools: true,
549
560
  webSearch: true,
550
561
  webSearchPrice: "0.014",
@@ -563,7 +574,7 @@ export const googleModels = [
563
574
  {
564
575
  test: "skip",
565
576
  providerId: "google-ai-studio",
566
- modelName: "gemini-3-pro-preview",
577
+ externalId: "gemini-3-pro-preview",
567
578
  inputPrice: "2e-6",
568
579
  outputPrice: "12e-6",
569
580
  cachedInputPrice: "0.2e-6",
@@ -591,6 +602,7 @@ export const googleModels = [
591
602
  streaming: true,
592
603
  vision: true,
593
604
  audio: true,
605
+ document: true,
594
606
  tools: true,
595
607
  webSearch: true,
596
608
  webSearchPrice: "0.014",
@@ -602,7 +614,7 @@ export const googleModels = [
602
614
  {
603
615
  test: "skip",
604
616
  providerId: "google-vertex",
605
- modelName: "gemini-3-pro-preview",
617
+ externalId: "gemini-3-pro-preview",
606
618
  inputPrice: "2e-6",
607
619
  outputPrice: "12e-6",
608
620
  cachedInputPrice: "0.2e-6",
@@ -650,7 +662,7 @@ export const googleModels = [
650
662
  {
651
663
  test: "skip",
652
664
  providerId: "google-ai-studio",
653
- modelName: "gemini-3.1-pro-preview",
665
+ externalId: "gemini-3.1-pro-preview",
654
666
  inputPrice: "2e-6",
655
667
  outputPrice: "12e-6",
656
668
  cachedInputPrice: "0.2e-6",
@@ -678,6 +690,7 @@ export const googleModels = [
678
690
  streaming: true,
679
691
  vision: true,
680
692
  audio: true,
693
+ document: true,
681
694
  tools: true,
682
695
  webSearch: true,
683
696
  webSearchPrice: "0.014",
@@ -687,7 +700,7 @@ export const googleModels = [
687
700
  {
688
701
  test: "skip",
689
702
  providerId: "google-vertex",
690
- modelName: "gemini-3.1-pro-preview",
703
+ externalId: "gemini-3.1-pro-preview",
691
704
  inputPrice: "2e-6",
692
705
  outputPrice: "12e-6",
693
706
  cachedInputPrice: "0.2e-6",
@@ -724,7 +737,7 @@ export const googleModels = [
724
737
  {
725
738
  test: "skip",
726
739
  providerId: "quartz",
727
- modelName: "gemini-3.1-pro-preview",
740
+ externalId: "gemini-3.1-pro-preview",
728
741
  discount: "0.2",
729
742
  inputPrice: "2e-6",
730
743
  outputPrice: "12e-6",
@@ -771,7 +784,7 @@ export const googleModels = [
771
784
  {
772
785
  test: "skip",
773
786
  providerId: "google-ai-studio",
774
- modelName: "gemini-3.1-flash-lite-preview",
787
+ externalId: "gemini-3.1-flash-lite-preview",
775
788
  deprecatedAt: new Date("2026-05-12"),
776
789
  deactivatedAt: new Date("2026-05-25"),
777
790
  inputPrice: "0.25e-6",
@@ -783,6 +796,7 @@ export const googleModels = [
783
796
  streaming: true,
784
797
  vision: true,
785
798
  audio: true,
799
+ document: true,
786
800
  tools: true,
787
801
  reasoning: true,
788
802
  reasoningMaxTokens: true,
@@ -792,7 +806,7 @@ export const googleModels = [
792
806
  {
793
807
  test: "skip",
794
808
  providerId: "google-vertex",
795
- modelName: "gemini-3.1-flash-lite-preview",
809
+ externalId: "gemini-3.1-flash-lite-preview",
796
810
  deprecatedAt: new Date("2026-05-12"),
797
811
  deactivatedAt: new Date("2026-05-25"),
798
812
  inputPrice: "0.25e-6",
@@ -821,7 +835,7 @@ export const googleModels = [
821
835
  providers: [
822
836
  {
823
837
  providerId: "google-ai-studio",
824
- modelName: "gemini-3.1-flash-lite",
838
+ externalId: "gemini-3.1-flash-lite",
825
839
  inputPrice: "0.25e-6",
826
840
  outputPrice: "1.5e-6",
827
841
  cachedInputPrice: "0.025e-6",
@@ -835,6 +849,7 @@ export const googleModels = [
835
849
  streaming: true,
836
850
  vision: true,
837
851
  audio: true,
852
+ document: true,
838
853
  tools: true,
839
854
  webSearch: true,
840
855
  reasoning: true,
@@ -844,7 +859,7 @@ export const googleModels = [
844
859
  },
845
860
  {
846
861
  providerId: "google-vertex",
847
- modelName: "gemini-3.1-flash-lite",
862
+ externalId: "gemini-3.1-flash-lite",
848
863
  inputPrice: "0.25e-6",
849
864
  outputPrice: "1.5e-6",
850
865
  cachedInputPrice: "0.025e-6",
@@ -876,7 +891,7 @@ export const googleModels = [
876
891
  providers: [
877
892
  {
878
893
  providerId: "google-ai-studio",
879
- modelName: "gemini-3.5-flash",
894
+ externalId: "gemini-3.5-flash",
880
895
  inputPrice: "1.5e-6",
881
896
  outputPrice: "9e-6",
882
897
  cachedInputPrice: "0.15e-6",
@@ -892,6 +907,7 @@ export const googleModels = [
892
907
  streaming: true,
893
908
  vision: true,
894
909
  audio: true,
910
+ document: true,
895
911
  tools: true,
896
912
  webSearch: true,
897
913
  jsonOutput: true,
@@ -899,7 +915,7 @@ export const googleModels = [
899
915
  },
900
916
  {
901
917
  providerId: "google-vertex",
902
- modelName: "gemini-3.5-flash",
918
+ externalId: "gemini-3.5-flash",
903
919
  inputPrice: "1.5e-6",
904
920
  outputPrice: "9e-6",
905
921
  cachedInputPrice: "0.15e-6",
@@ -934,7 +950,7 @@ export const googleModels = [
934
950
  providers: [
935
951
  {
936
952
  providerId: "google-vertex",
937
- modelName: "veo-3.1-generate-001",
953
+ externalId: "veo-3.1-generate-001",
938
954
  inputPrice: undefined,
939
955
  outputPrice: undefined,
940
956
  requestPrice: undefined,
@@ -965,7 +981,7 @@ export const googleModels = [
965
981
  },
966
982
  {
967
983
  providerId: "avalanche",
968
- modelName: "veo3",
984
+ externalId: "veo3",
969
985
  inputPrice: undefined,
970
986
  outputPrice: undefined,
971
987
  requestPrice: undefined,
@@ -1007,7 +1023,7 @@ export const googleModels = [
1007
1023
  providers: [
1008
1024
  {
1009
1025
  providerId: "google-vertex",
1010
- modelName: "veo-3.1-fast-generate-001",
1026
+ externalId: "veo-3.1-fast-generate-001",
1011
1027
  inputPrice: undefined,
1012
1028
  outputPrice: undefined,
1013
1029
  requestPrice: undefined,
@@ -1038,7 +1054,7 @@ export const googleModels = [
1038
1054
  },
1039
1055
  {
1040
1056
  providerId: "avalanche",
1041
- modelName: "veo3_fast",
1057
+ externalId: "veo3_fast",
1042
1058
  inputPrice: undefined,
1043
1059
  outputPrice: undefined,
1044
1060
  requestPrice: undefined,
@@ -1076,7 +1092,7 @@ export const googleModels = [
1076
1092
  {
1077
1093
  test: "skip",
1078
1094
  providerId: "google-ai-studio",
1079
- modelName: "gemini-3.1-flash-image-preview",
1095
+ externalId: "gemini-3.1-flash-image-preview",
1080
1096
  inputPrice: "0.25e-6",
1081
1097
  outputPrice: "1.5e-6",
1082
1098
  imageInputPrice: "0.25e-6",
@@ -1101,7 +1117,7 @@ export const googleModels = [
1101
1117
  {
1102
1118
  test: "skip",
1103
1119
  providerId: "glacier",
1104
- modelName: "gemini-3.1-flash-image-preview",
1120
+ externalId: "gemini-3.1-flash-image-preview",
1105
1121
  discount: "0.2",
1106
1122
  inputPrice: "0.25e-6",
1107
1123
  outputPrice: "1.5e-6",
@@ -1127,7 +1143,7 @@ export const googleModels = [
1127
1143
  {
1128
1144
  test: "skip",
1129
1145
  providerId: "google-vertex",
1130
- modelName: "gemini-3.1-flash-image-preview",
1146
+ externalId: "gemini-3.1-flash-image-preview",
1131
1147
  inputPrice: "0.25e-6",
1132
1148
  outputPrice: "1.5e-6",
1133
1149
  imageInputPrice: "0.25e-6",
@@ -1152,7 +1168,7 @@ export const googleModels = [
1152
1168
  {
1153
1169
  test: "skip",
1154
1170
  providerId: "quartz",
1155
- modelName: "gemini-3.1-flash-image-preview",
1171
+ externalId: "gemini-3.1-flash-image-preview",
1156
1172
  discount: "0.2",
1157
1173
  inputPrice: "0.25e-6",
1158
1174
  outputPrice: "1.5e-6",
@@ -1186,7 +1202,7 @@ export const googleModels = [
1186
1202
  providers: [
1187
1203
  {
1188
1204
  providerId: "google-ai-studio",
1189
- modelName: "gemini-3-flash-preview",
1205
+ externalId: "gemini-3-flash-preview",
1190
1206
  inputPrice: "0.5e-6",
1191
1207
  outputPrice: "3e-6",
1192
1208
  cachedInputPrice: "0.05e-6",
@@ -1200,6 +1216,7 @@ export const googleModels = [
1200
1216
  streaming: true,
1201
1217
  vision: true,
1202
1218
  audio: true,
1219
+ document: true,
1203
1220
  tools: true,
1204
1221
  webSearch: true,
1205
1222
  webSearchPrice: "0.014",
@@ -1208,7 +1225,7 @@ export const googleModels = [
1208
1225
  },
1209
1226
  {
1210
1227
  providerId: "google-vertex",
1211
- modelName: "gemini-3-flash-preview",
1228
+ externalId: "gemini-3-flash-preview",
1212
1229
  inputPrice: "0.5e-6",
1213
1230
  outputPrice: "3e-6",
1214
1231
  cachedInputPrice: "0.05e-6",
@@ -1242,7 +1259,7 @@ export const googleModels = [
1242
1259
  {
1243
1260
  test: "skip",
1244
1261
  providerId: "google-ai-studio",
1245
- modelName: "gemini-2.5-flash-image-preview",
1262
+ externalId: "gemini-2.5-flash-image-preview",
1246
1263
  inputPrice: "0.3e-6",
1247
1264
  outputPrice: "2.5e-6",
1248
1265
  imageOutputPrice: "30e-6",
@@ -1266,7 +1283,7 @@ export const googleModels = [
1266
1283
  {
1267
1284
  test: "skip",
1268
1285
  providerId: "google-vertex",
1269
- modelName: "gemini-2.5-flash-image-preview",
1286
+ externalId: "gemini-2.5-flash-image-preview",
1270
1287
  inputPrice: "0.3e-6",
1271
1288
  outputPrice: "2.5e-6",
1272
1289
  imageOutputPrice: "30e-6",
@@ -1301,7 +1318,7 @@ export const googleModels = [
1301
1318
  {
1302
1319
  test: "skip",
1303
1320
  providerId: "google-ai-studio",
1304
- modelName: "gemini-2.5-flash-image",
1321
+ externalId: "gemini-2.5-flash-image",
1305
1322
  inputPrice: "0.3e-6",
1306
1323
  outputPrice: "30e-6",
1307
1324
  cachedInputPrice: "0.03e-6",
@@ -1317,7 +1334,7 @@ export const googleModels = [
1317
1334
  {
1318
1335
  test: "skip",
1319
1336
  providerId: "google-vertex",
1320
- modelName: "gemini-2.5-flash-image",
1337
+ externalId: "gemini-2.5-flash-image",
1321
1338
  inputPrice: "0.3e-6",
1322
1339
  outputPrice: "30e-6",
1323
1340
  cachedInputPrice: "0.03e-6",
@@ -1333,7 +1350,7 @@ export const googleModels = [
1333
1350
  {
1334
1351
  test: "skip",
1335
1352
  providerId: "glacier",
1336
- modelName: "gemini-2.5-flash-image",
1353
+ externalId: "gemini-2.5-flash-image",
1337
1354
  inputPrice: "0.3e-6",
1338
1355
  outputPrice: "30e-6",
1339
1356
  cachedInputPrice: "0.03e-6",
@@ -1361,7 +1378,7 @@ export const googleModels = [
1361
1378
  {
1362
1379
  test: "skip",
1363
1380
  providerId: "google-ai-studio",
1364
- modelName: "gemini-3-pro-image-preview",
1381
+ externalId: "gemini-3-pro-image-preview",
1365
1382
  inputPrice: "2e-6",
1366
1383
  outputPrice: "12e-6",
1367
1384
  cachedInputPrice: "0.2e-6",
@@ -1386,7 +1403,7 @@ export const googleModels = [
1386
1403
  {
1387
1404
  test: "skip",
1388
1405
  providerId: "glacier",
1389
- modelName: "gemini-3-pro-image-preview",
1406
+ externalId: "gemini-3-pro-image-preview",
1390
1407
  discount: "0.2",
1391
1408
  inputPrice: "2e-6",
1392
1409
  outputPrice: "12e-6",
@@ -1412,7 +1429,7 @@ export const googleModels = [
1412
1429
  {
1413
1430
  test: "skip",
1414
1431
  providerId: "google-vertex",
1415
- modelName: "gemini-3-pro-image-preview",
1432
+ externalId: "gemini-3-pro-image-preview",
1416
1433
  inputPrice: "2e-6",
1417
1434
  outputPrice: "12e-6",
1418
1435
  cachedInputPrice: "0.2e-6",
@@ -1437,7 +1454,7 @@ export const googleModels = [
1437
1454
  {
1438
1455
  test: "skip",
1439
1456
  providerId: "quartz",
1440
- modelName: "gemini-3-pro-image-preview",
1457
+ externalId: "gemini-3-pro-image-preview",
1441
1458
  discount: "0.2",
1442
1459
  inputPrice: "2e-6",
1443
1460
  outputPrice: "12e-6",
@@ -1471,7 +1488,7 @@ export const googleModels = [
1471
1488
  providers: [
1472
1489
  {
1473
1490
  providerId: "google-ai-studio",
1474
- modelName: "gemini-2.5-flash-preview-04-17-thinking",
1491
+ externalId: "gemini-2.5-flash-preview-04-17-thinking",
1475
1492
  inputPrice: "0.15e-6",
1476
1493
  outputPrice: "0.6e-6",
1477
1494
  requestPrice: "0",
@@ -1482,6 +1499,7 @@ export const googleModels = [
1482
1499
  streaming: true,
1483
1500
  vision: true,
1484
1501
  audio: true,
1502
+ document: true,
1485
1503
  tools: true,
1486
1504
  jsonOutput: true,
1487
1505
  jsonOutputSchema: true,
@@ -1489,7 +1507,7 @@ export const googleModels = [
1489
1507
  },
1490
1508
  {
1491
1509
  providerId: "google-vertex",
1492
- modelName: "gemini-2.5-flash-preview-04-17-thinking",
1510
+ externalId: "gemini-2.5-flash-preview-04-17-thinking",
1493
1511
  inputPrice: "0.15e-6",
1494
1512
  outputPrice: "0.6e-6",
1495
1513
  requestPrice: "0",
@@ -1516,7 +1534,7 @@ export const googleModels = [
1516
1534
  providers: [
1517
1535
  {
1518
1536
  providerId: "google-ai-studio",
1519
- modelName: "gemini-1.5-pro",
1537
+ externalId: "gemini-1.5-pro",
1520
1538
  inputPrice: "2.5e-6",
1521
1539
  outputPrice: "10.0e-6",
1522
1540
  requestPrice: "0",
@@ -1527,6 +1545,7 @@ export const googleModels = [
1527
1545
  streaming: true,
1528
1546
  vision: true,
1529
1547
  audio: true,
1548
+ document: true,
1530
1549
  tools: true,
1531
1550
  jsonOutput: true,
1532
1551
  jsonOutputSchema: true,
@@ -1534,7 +1553,7 @@ export const googleModels = [
1534
1553
  },
1535
1554
  {
1536
1555
  providerId: "google-vertex",
1537
- modelName: "gemini-1.5-pro",
1556
+ externalId: "gemini-1.5-pro",
1538
1557
  inputPrice: "2.5e-6",
1539
1558
  outputPrice: "10.0e-6",
1540
1559
  requestPrice: "0",
@@ -1561,7 +1580,7 @@ export const googleModels = [
1561
1580
  providers: [
1562
1581
  {
1563
1582
  providerId: "google-ai-studio",
1564
- modelName: "gemini-1.5-flash",
1583
+ externalId: "gemini-1.5-flash",
1565
1584
  inputPrice: "0.0375e-6",
1566
1585
  outputPrice: "0.15e-6",
1567
1586
  requestPrice: "0",
@@ -1572,6 +1591,7 @@ export const googleModels = [
1572
1591
  streaming: true,
1573
1592
  vision: true,
1574
1593
  audio: true,
1594
+ document: true,
1575
1595
  tools: true,
1576
1596
  jsonOutput: true,
1577
1597
  jsonOutputSchema: true,
@@ -1579,7 +1599,7 @@ export const googleModels = [
1579
1599
  },
1580
1600
  {
1581
1601
  providerId: "google-vertex",
1582
- modelName: "gemini-1.5-flash",
1602
+ externalId: "gemini-1.5-flash",
1583
1603
  inputPrice: "0.0375e-6",
1584
1604
  outputPrice: "0.15e-6",
1585
1605
  requestPrice: "0",
@@ -1606,7 +1626,7 @@ export const googleModels = [
1606
1626
  providers: [
1607
1627
  {
1608
1628
  providerId: "google-ai-studio",
1609
- modelName: "gemini-1.5-flash-8b",
1629
+ externalId: "gemini-1.5-flash-8b",
1610
1630
  inputPrice: "0.0375e-6",
1611
1631
  outputPrice: "0.15e-6",
1612
1632
  requestPrice: "0",
@@ -1617,6 +1637,7 @@ export const googleModels = [
1617
1637
  streaming: true,
1618
1638
  vision: false,
1619
1639
  audio: true,
1640
+ document: true,
1620
1641
  tools: true,
1621
1642
  jsonOutput: true,
1622
1643
  jsonOutputSchema: true,
@@ -1624,7 +1645,7 @@ export const googleModels = [
1624
1645
  },
1625
1646
  {
1626
1647
  providerId: "google-vertex",
1627
- modelName: "gemini-1.5-flash-8b",
1648
+ externalId: "gemini-1.5-flash-8b",
1628
1649
  inputPrice: "0.0375e-6",
1629
1650
  outputPrice: "0.15e-6",
1630
1651
  requestPrice: "0",
@@ -1651,7 +1672,7 @@ export const googleModels = [
1651
1672
  providers: [
1652
1673
  {
1653
1674
  providerId: "google-ai-studio",
1654
- modelName: "gemini-2.0-flash-lite",
1675
+ externalId: "gemini-2.0-flash-lite",
1655
1676
  inputPrice: "0.075e-6",
1656
1677
  outputPrice: "0.3e-6",
1657
1678
  requestPrice: "0",
@@ -1660,6 +1681,7 @@ export const googleModels = [
1660
1681
  streaming: true,
1661
1682
  vision: false,
1662
1683
  audio: true,
1684
+ document: true,
1663
1685
  tools: true,
1664
1686
  jsonOutput: true,
1665
1687
  jsonOutputSchema: true,
@@ -1668,7 +1690,7 @@ export const googleModels = [
1668
1690
  },
1669
1691
  {
1670
1692
  providerId: "google-vertex",
1671
- modelName: "gemini-2.0-flash-lite",
1693
+ externalId: "gemini-2.0-flash-lite",
1672
1694
  inputPrice: "0.075e-6",
1673
1695
  outputPrice: "0.3e-6",
1674
1696
  requestPrice: "0",
@@ -1694,7 +1716,7 @@ export const googleModels = [
1694
1716
  providers: [
1695
1717
  {
1696
1718
  providerId: "google-ai-studio",
1697
- modelName: "gemini-2.0-flash",
1719
+ externalId: "gemini-2.0-flash",
1698
1720
  inputPrice: "0.1e-6",
1699
1721
  outputPrice: "0.4e-6",
1700
1722
  cachedInputPrice: "0.025e-6",
@@ -1706,6 +1728,7 @@ export const googleModels = [
1706
1728
  streaming: true,
1707
1729
  vision: false,
1708
1730
  audio: true,
1731
+ document: true,
1709
1732
  tools: true,
1710
1733
  jsonOutput: true,
1711
1734
  jsonOutputSchema: true,
@@ -1715,7 +1738,7 @@ export const googleModels = [
1715
1738
  {
1716
1739
  providerId: "google-vertex",
1717
1740
  test: "skip",
1718
- modelName: "gemini-2.0-flash",
1741
+ externalId: "gemini-2.0-flash",
1719
1742
  inputPrice: "0.1e-6",
1720
1743
  outputPrice: "0.4e-6",
1721
1744
  cachedInputPrice: "0.025e-6",
@@ -1744,7 +1767,7 @@ export const googleModels = [
1744
1767
  providers: [
1745
1768
  {
1746
1769
  providerId: "google-ai-studio",
1747
- modelName: "gemma-3n-e2b-it",
1770
+ externalId: "gemma-3n-e2b-it",
1748
1771
  inputPrice: "0.075e-6",
1749
1772
  outputPrice: "0.3e-6",
1750
1773
  requestPrice: "0",
@@ -1767,7 +1790,7 @@ export const googleModels = [
1767
1790
  providers: [
1768
1791
  {
1769
1792
  providerId: "google-ai-studio",
1770
- modelName: "gemma-3n-e4b-it",
1793
+ externalId: "gemma-3n-e4b-it",
1771
1794
  inputPrice: "0.075e-6",
1772
1795
  outputPrice: "0.3e-6",
1773
1796
  requestPrice: "0",
@@ -1790,7 +1813,7 @@ export const googleModels = [
1790
1813
  providers: [
1791
1814
  {
1792
1815
  providerId: "google-ai-studio",
1793
- modelName: "gemma-3-1b-it",
1816
+ externalId: "gemma-3-1b-it",
1794
1817
  inputPrice: "0.075e-6",
1795
1818
  outputPrice: "0.3e-6",
1796
1819
  requestPrice: "0",
@@ -1813,7 +1836,7 @@ export const googleModels = [
1813
1836
  providers: [
1814
1837
  {
1815
1838
  providerId: "google-ai-studio",
1816
- modelName: "gemma-3-4b-it",
1839
+ externalId: "gemma-3-4b-it",
1817
1840
  inputPrice: "0.075e-6",
1818
1841
  outputPrice: "0.3e-6",
1819
1842
  requestPrice: "0",
@@ -1836,7 +1859,7 @@ export const googleModels = [
1836
1859
  providers: [
1837
1860
  {
1838
1861
  providerId: "google-ai-studio",
1839
- modelName: "gemma-3-12b-it",
1862
+ externalId: "gemma-3-12b-it",
1840
1863
  inputPrice: "0.075e-6",
1841
1864
  outputPrice: "0.3e-6",
1842
1865
  requestPrice: "0",
@@ -1859,7 +1882,7 @@ export const googleModels = [
1859
1882
  providers: [
1860
1883
  {
1861
1884
  providerId: "groq",
1862
- modelName: "gemma2-9b-it",
1885
+ externalId: "gemma2-9b-it",
1863
1886
  inputPrice: "0.2e-6",
1864
1887
  outputPrice: "0.2e-6",
1865
1888
  requestPrice: "0",
@@ -1883,7 +1906,7 @@ export const googleModels = [
1883
1906
  providers: [
1884
1907
  {
1885
1908
  providerId: "nebius",
1886
- modelName: "google/gemma-3-27b-it",
1909
+ externalId: "google/gemma-3-27b-it",
1887
1910
  inputPrice: "0.27e-6",
1888
1911
  outputPrice: "0.27e-6",
1889
1912
  requestPrice: "0",
@@ -1907,7 +1930,7 @@ export const googleModels = [
1907
1930
  providers: [
1908
1931
  {
1909
1932
  providerId: "google-ai-studio",
1910
- modelName: "gemini-embedding-001",
1933
+ externalId: "gemini-embedding-001",
1911
1934
  inputPrice: "0.15e-6",
1912
1935
  outputPrice: "0",
1913
1936
  requestPrice: "0",
@@ -1919,7 +1942,7 @@ export const googleModels = [
1919
1942
  },
1920
1943
  {
1921
1944
  providerId: "google-vertex",
1922
- modelName: "gemini-embedding-001",
1945
+ externalId: "gemini-embedding-001",
1923
1946
  inputPrice: "0.15e-6",
1924
1947
  outputPrice: "0",
1925
1948
  requestPrice: "0",
@@ -1941,7 +1964,7 @@ export const googleModels = [
1941
1964
  providers: [
1942
1965
  {
1943
1966
  providerId: "google-ai-studio",
1944
- modelName: "gemini-embedding-2",
1967
+ externalId: "gemini-embedding-2",
1945
1968
  inputPrice: "0.20e-6",
1946
1969
  outputPrice: "0",
1947
1970
  requestPrice: "0",
@@ -1963,7 +1986,7 @@ export const googleModels = [
1963
1986
  providers: [
1964
1987
  {
1965
1988
  providerId: "google-vertex",
1966
- modelName: "text-embedding-005",
1989
+ externalId: "text-embedding-005",
1967
1990
  inputPrice: "0.025e-6",
1968
1991
  outputPrice: "0",
1969
1992
  requestPrice: "0",
@@ -1985,7 +2008,7 @@ export const googleModels = [
1985
2008
  providers: [
1986
2009
  {
1987
2010
  providerId: "google-vertex",
1988
- modelName: "text-embedding-004",
2011
+ externalId: "text-embedding-004",
1989
2012
  inputPrice: "0.025e-6",
1990
2013
  outputPrice: "0",
1991
2014
  requestPrice: "0",
@@ -2007,7 +2030,7 @@ export const googleModels = [
2007
2030
  providers: [
2008
2031
  {
2009
2032
  providerId: "google-vertex",
2010
- modelName: "text-multilingual-embedding-002",
2033
+ externalId: "text-multilingual-embedding-002",
2011
2034
  inputPrice: "0.025e-6",
2012
2035
  outputPrice: "0",
2013
2036
  requestPrice: "0",