@llmgateway/models 1.27.0 → 1.29.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.
package/dist/models.d.ts CHANGED
@@ -17,6 +17,8 @@ export interface ProviderModelMapping {
17
17
  cachedInputPrice?: number;
18
18
  minCacheableTokens?: number;
19
19
  imageInputPrice?: number;
20
+ imageOutputTokensByResolution?: Record<string, number>;
21
+ imageInputTokensByResolution?: Record<string, number>;
20
22
  requestPrice?: number;
21
23
  discount?: number;
22
24
  pricingTiers?: PricingTier[];
@@ -1117,6 +1119,58 @@ export declare const models: [{
1117
1119
  readonly jsonOutputSchema: false;
1118
1120
  readonly jsonOutput: false;
1119
1121
  }];
1122
+ }, {
1123
+ readonly id: "gpt-5.4";
1124
+ readonly name: "GPT-5.4";
1125
+ readonly description: "Most capable model for complex professional work with reasoning support.";
1126
+ readonly family: "openai";
1127
+ readonly releasedAt: Date;
1128
+ readonly providers: [{
1129
+ readonly providerId: "openai";
1130
+ readonly modelName: "gpt-5.4";
1131
+ readonly inputPrice: number;
1132
+ readonly outputPrice: number;
1133
+ readonly cachedInputPrice: number;
1134
+ readonly requestPrice: 0;
1135
+ readonly contextSize: 1050000;
1136
+ readonly maxOutput: 128000;
1137
+ readonly streaming: true;
1138
+ readonly vision: true;
1139
+ readonly tools: true;
1140
+ readonly webSearch: true;
1141
+ readonly webSearchPrice: 0.01;
1142
+ readonly reasoning: true;
1143
+ readonly reasoningOutput: "omit";
1144
+ readonly supportsResponsesApi: true;
1145
+ readonly jsonOutputSchema: true;
1146
+ readonly supportedParameters: ["temperature", "top_p", "frequency_penalty", "presence_penalty", "response_format"];
1147
+ readonly jsonOutput: true;
1148
+ }];
1149
+ }, {
1150
+ readonly id: "gpt-5.4-pro";
1151
+ readonly name: "GPT-5.4 Pro";
1152
+ readonly description: "Version of GPT-5.4 that uses more compute for smarter and more precise responses.";
1153
+ readonly family: "openai";
1154
+ readonly releasedAt: Date;
1155
+ readonly providers: [{
1156
+ readonly providerId: "openai";
1157
+ readonly modelName: "gpt-5.4-pro";
1158
+ readonly inputPrice: number;
1159
+ readonly outputPrice: number;
1160
+ readonly requestPrice: 0;
1161
+ readonly contextSize: 1050000;
1162
+ readonly maxOutput: 128000;
1163
+ readonly streaming: true;
1164
+ readonly reasoning: true;
1165
+ readonly reasoningOutput: "omit";
1166
+ readonly vision: true;
1167
+ readonly tools: true;
1168
+ readonly webSearch: true;
1169
+ readonly webSearchPrice: 0.01;
1170
+ readonly supportsResponsesApi: true;
1171
+ readonly jsonOutputSchema: false;
1172
+ readonly jsonOutput: true;
1173
+ }];
1120
1174
  }, {
1121
1175
  readonly id: "claude-3-7-sonnet";
1122
1176
  readonly name: "Claude 3.7 Sonnet";
@@ -2444,7 +2498,17 @@ export declare const models: [{
2444
2498
  readonly inputPrice: number;
2445
2499
  readonly outputPrice: number;
2446
2500
  readonly imageInputPrice: number;
2501
+ readonly imageInputTokensByResolution: {
2502
+ readonly default: 560;
2503
+ };
2447
2504
  readonly imageOutputPrice: number;
2505
+ readonly imageOutputTokensByResolution: {
2506
+ readonly "0.5K": 747;
2507
+ readonly "1K": 1120;
2508
+ readonly "2K": 1680;
2509
+ readonly "4K": 2520;
2510
+ readonly default: 1120;
2511
+ };
2448
2512
  readonly requestPrice: 0;
2449
2513
  readonly contextSize: 65536;
2450
2514
  readonly maxOutput: 65536;
@@ -2460,7 +2524,17 @@ export declare const models: [{
2460
2524
  readonly inputPrice: number;
2461
2525
  readonly outputPrice: number;
2462
2526
  readonly imageInputPrice: number;
2527
+ readonly imageInputTokensByResolution: {
2528
+ readonly default: 560;
2529
+ };
2463
2530
  readonly imageOutputPrice: number;
2531
+ readonly imageOutputTokensByResolution: {
2532
+ readonly "0.5K": 747;
2533
+ readonly "1K": 1120;
2534
+ readonly "2K": 1680;
2535
+ readonly "4K": 2520;
2536
+ readonly default: 1120;
2537
+ };
2464
2538
  readonly requestPrice: 0;
2465
2539
  readonly contextSize: 65536;
2466
2540
  readonly maxOutput: 65536;
@@ -2476,7 +2550,17 @@ export declare const models: [{
2476
2550
  readonly inputPrice: number;
2477
2551
  readonly outputPrice: number;
2478
2552
  readonly imageInputPrice: number;
2553
+ readonly imageInputTokensByResolution: {
2554
+ readonly default: 560;
2555
+ };
2479
2556
  readonly imageOutputPrice: number;
2557
+ readonly imageOutputTokensByResolution: {
2558
+ readonly "0.5K": 747;
2559
+ readonly "1K": 1120;
2560
+ readonly "2K": 1680;
2561
+ readonly "4K": 2520;
2562
+ readonly default: 1120;
2563
+ };
2480
2564
  readonly discount: 0.2;
2481
2565
  readonly requestPrice: 0;
2482
2566
  readonly contextSize: 65536;
@@ -2545,6 +2629,12 @@ export declare const models: [{
2545
2629
  readonly inputPrice: number;
2546
2630
  readonly outputPrice: number;
2547
2631
  readonly imageOutputPrice: number;
2632
+ readonly imageOutputTokensByResolution: {
2633
+ readonly "1K": 1120;
2634
+ readonly "2K": 1120;
2635
+ readonly "4K": 2000;
2636
+ readonly default: 1120;
2637
+ };
2548
2638
  readonly requestPrice: 0;
2549
2639
  readonly contextSize: 32768;
2550
2640
  readonly maxOutput: 32768;
@@ -2562,6 +2652,12 @@ export declare const models: [{
2562
2652
  readonly inputPrice: number;
2563
2653
  readonly outputPrice: number;
2564
2654
  readonly imageOutputPrice: number;
2655
+ readonly imageOutputTokensByResolution: {
2656
+ readonly "1K": 1120;
2657
+ readonly "2K": 1120;
2658
+ readonly "4K": 2000;
2659
+ readonly default: 1120;
2660
+ };
2565
2661
  readonly requestPrice: 0;
2566
2662
  readonly contextSize: 32768;
2567
2663
  readonly maxOutput: 32768;
@@ -2577,6 +2673,12 @@ export declare const models: [{
2577
2673
  readonly inputPrice: number;
2578
2674
  readonly outputPrice: number;
2579
2675
  readonly imageOutputPrice: number;
2676
+ readonly imageOutputTokensByResolution: {
2677
+ readonly "1K": 1120;
2678
+ readonly "2K": 1120;
2679
+ readonly "4K": 2000;
2680
+ readonly default: 1120;
2681
+ };
2580
2682
  readonly requestPrice: 0;
2581
2683
  readonly discount: 0.2;
2582
2684
  readonly contextSize: 32768;
@@ -2660,7 +2762,16 @@ export declare const models: [{
2660
2762
  readonly outputPrice: number;
2661
2763
  readonly cachedInputPrice: number;
2662
2764
  readonly imageInputPrice: number;
2765
+ readonly imageInputTokensByResolution: {
2766
+ readonly default: 560;
2767
+ };
2663
2768
  readonly imageOutputPrice: number;
2769
+ readonly imageOutputTokensByResolution: {
2770
+ readonly "1K": 1120;
2771
+ readonly "2K": 1120;
2772
+ readonly "4K": 2000;
2773
+ readonly default: 1120;
2774
+ };
2664
2775
  readonly requestPrice: 0;
2665
2776
  readonly contextSize: 65536;
2666
2777
  readonly maxOutput: 32768;
@@ -2677,7 +2788,16 @@ export declare const models: [{
2677
2788
  readonly outputPrice: number;
2678
2789
  readonly cachedInputPrice: number;
2679
2790
  readonly imageInputPrice: number;
2791
+ readonly imageInputTokensByResolution: {
2792
+ readonly default: 560;
2793
+ };
2680
2794
  readonly imageOutputPrice: number;
2795
+ readonly imageOutputTokensByResolution: {
2796
+ readonly "1K": 1120;
2797
+ readonly "2K": 1120;
2798
+ readonly "4K": 2000;
2799
+ readonly default: 1120;
2800
+ };
2681
2801
  readonly requestPrice: 0;
2682
2802
  readonly contextSize: 65536;
2683
2803
  readonly maxOutput: 32768;
@@ -2694,7 +2814,16 @@ export declare const models: [{
2694
2814
  readonly outputPrice: number;
2695
2815
  readonly cachedInputPrice: number;
2696
2816
  readonly imageInputPrice: number;
2817
+ readonly imageInputTokensByResolution: {
2818
+ readonly default: 560;
2819
+ };
2697
2820
  readonly imageOutputPrice: number;
2821
+ readonly imageOutputTokensByResolution: {
2822
+ readonly "1K": 1120;
2823
+ readonly "2K": 1120;
2824
+ readonly "4K": 2000;
2825
+ readonly default: 1120;
2826
+ };
2698
2827
  readonly requestPrice: 0;
2699
2828
  readonly discount: 0.2;
2700
2829
  readonly contextSize: 65536;
@@ -3360,6 +3489,7 @@ export declare const models: [{
3360
3489
  readonly maxOutput: 30000;
3361
3490
  readonly streaming: true;
3362
3491
  readonly vision: true;
3492
+ readonly reasoning: true;
3363
3493
  readonly tools: true;
3364
3494
  readonly jsonOutput: true;
3365
3495
  readonly supportedParameters: string[];
@@ -3447,6 +3577,7 @@ export declare const models: [{
3447
3577
  readonly maxOutput: 30000;
3448
3578
  readonly streaming: true;
3449
3579
  readonly vision: true;
3580
+ readonly reasoning: true;
3450
3581
  readonly tools: true;
3451
3582
  readonly jsonOutput: true;
3452
3583
  readonly supportedParameters: string[];
@@ -3484,6 +3615,126 @@ export declare const models: [{
3484
3615
  readonly jsonOutput: true;
3485
3616
  readonly supportedParameters: string[];
3486
3617
  }];
3618
+ }, {
3619
+ readonly id: "grok-4-fast";
3620
+ readonly name: "Grok 4 Fast";
3621
+ readonly description: "Grok 4 Fast - routes to reasoning or non-reasoning variant based on reasoning_effort parameter.";
3622
+ readonly family: "xai";
3623
+ readonly releasedAt: Date;
3624
+ readonly providers: [{
3625
+ readonly providerId: "xai";
3626
+ readonly modelName: "grok-4-fast-non-reasoning";
3627
+ readonly inputPrice: number;
3628
+ readonly outputPrice: number;
3629
+ readonly pricingTiers: [{
3630
+ readonly name: "Up to 128K";
3631
+ readonly upToTokens: 128000;
3632
+ readonly inputPrice: number;
3633
+ readonly outputPrice: number;
3634
+ }, {
3635
+ readonly name: "Over 128K";
3636
+ readonly upToTokens: number;
3637
+ readonly inputPrice: number;
3638
+ readonly outputPrice: number;
3639
+ }];
3640
+ readonly cachedInputPrice: number;
3641
+ readonly requestPrice: 0;
3642
+ readonly imageInputPrice: undefined;
3643
+ readonly contextSize: 2000000;
3644
+ readonly maxOutput: 30000;
3645
+ readonly streaming: true;
3646
+ readonly vision: true;
3647
+ readonly tools: true;
3648
+ readonly jsonOutput: true;
3649
+ readonly supportedParameters: string[];
3650
+ }, {
3651
+ readonly providerId: "xai";
3652
+ readonly modelName: "grok-4-fast-reasoning";
3653
+ readonly inputPrice: number;
3654
+ readonly outputPrice: number;
3655
+ readonly pricingTiers: [{
3656
+ readonly name: "Up to 128K";
3657
+ readonly upToTokens: 128000;
3658
+ readonly inputPrice: number;
3659
+ readonly outputPrice: number;
3660
+ }, {
3661
+ readonly name: "Over 128K";
3662
+ readonly upToTokens: number;
3663
+ readonly inputPrice: number;
3664
+ readonly outputPrice: number;
3665
+ }];
3666
+ readonly cachedInputPrice: number;
3667
+ readonly requestPrice: 0;
3668
+ readonly imageInputPrice: undefined;
3669
+ readonly contextSize: 2000000;
3670
+ readonly maxOutput: 30000;
3671
+ readonly streaming: true;
3672
+ readonly vision: true;
3673
+ readonly reasoning: true;
3674
+ readonly tools: true;
3675
+ readonly jsonOutput: true;
3676
+ readonly supportedParameters: string[];
3677
+ }];
3678
+ }, {
3679
+ readonly id: "grok-4-1-fast";
3680
+ readonly name: "Grok 4.1 Fast";
3681
+ readonly description: "Grok 4.1 Fast - routes to reasoning or non-reasoning variant based on reasoning_effort parameter.";
3682
+ readonly family: "xai";
3683
+ readonly releasedAt: Date;
3684
+ readonly providers: [{
3685
+ readonly providerId: "xai";
3686
+ readonly modelName: "grok-4-1-fast-non-reasoning";
3687
+ readonly inputPrice: number;
3688
+ readonly outputPrice: number;
3689
+ readonly pricingTiers: [{
3690
+ readonly name: "Up to 128K";
3691
+ readonly upToTokens: 128000;
3692
+ readonly inputPrice: number;
3693
+ readonly outputPrice: number;
3694
+ }, {
3695
+ readonly name: "Over 128K";
3696
+ readonly upToTokens: number;
3697
+ readonly inputPrice: number;
3698
+ readonly outputPrice: number;
3699
+ }];
3700
+ readonly cachedInputPrice: number;
3701
+ readonly requestPrice: 0;
3702
+ readonly imageInputPrice: undefined;
3703
+ readonly contextSize: 2000000;
3704
+ readonly maxOutput: 30000;
3705
+ readonly streaming: true;
3706
+ readonly vision: true;
3707
+ readonly tools: true;
3708
+ readonly jsonOutput: true;
3709
+ readonly supportedParameters: string[];
3710
+ }, {
3711
+ readonly providerId: "xai";
3712
+ readonly modelName: "grok-4-1-fast-reasoning";
3713
+ readonly inputPrice: number;
3714
+ readonly outputPrice: number;
3715
+ readonly pricingTiers: [{
3716
+ readonly name: "Up to 128K";
3717
+ readonly upToTokens: 128000;
3718
+ readonly inputPrice: number;
3719
+ readonly outputPrice: number;
3720
+ }, {
3721
+ readonly name: "Over 128K";
3722
+ readonly upToTokens: number;
3723
+ readonly inputPrice: number;
3724
+ readonly outputPrice: number;
3725
+ }];
3726
+ readonly cachedInputPrice: number;
3727
+ readonly requestPrice: 0;
3728
+ readonly imageInputPrice: undefined;
3729
+ readonly contextSize: 2000000;
3730
+ readonly maxOutput: 30000;
3731
+ readonly streaming: true;
3732
+ readonly vision: true;
3733
+ readonly reasoning: true;
3734
+ readonly tools: true;
3735
+ readonly jsonOutput: true;
3736
+ readonly supportedParameters: string[];
3737
+ }];
3487
3738
  }, {
3488
3739
  readonly id: "grok-imagine-image-pro";
3489
3740
  readonly name: "Grok Imagine Image Pro";
@@ -1 +1 @@
1
- {"version":3,"file":"models.js","sourceRoot":"","sources":["../src/models.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0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AAC;AAC9D,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAsP5C,MAAM,CAAC,MAAM,MAAM,GAAG;IACrB,GAAG,gBAAgB;IACnB,GAAG,YAAY;IACf,GAAG,eAAe;IAClB,GAAG,YAAY;IACf,GAAG,gBAAgB;IACnB,GAAG,SAAS;IACZ,GAAG,UAAU;IACb,GAAG,cAAc;IACjB,GAAG,aAAa;IAChB,GAAG,eAAe;IAClB,GAAG,aAAa;IAChB,GAAG,cAAc;IACjB,GAAG,aAAa;IAChB,GAAG,eAAe;IAClB,GAAG,kBAAkB;IACrB,GAAG,SAAS;CACyB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@llmgateway/models",
3
- "version": "1.27.0",
3
+ "version": "1.29.0",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",