@mate-academy/llm-gateway 11.39.0 → 11.40.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/README.md CHANGED
@@ -718,7 +718,9 @@ const transcript = utterances.parse(JSON.parse(text));
718
718
  The prompt resolves against the image model map and requires `imageGeneration`,
719
719
  so a completion prompt fails the gate. The image model map holds
720
720
  `gemini-3.1-flash-image-preview`, `google-vertex/gemini-3.1-flash-image`,
721
- `gpt-image-2` and `openai/gpt-image-2`. The images endpoints take a single
721
+ `gpt-image-2`, `openai/gpt-image-2`, `gpt-image-2.5-flare` and
722
+ `gpt-image-2.5-sunburst`. Flare is the faster of the two GPT Image 2.5 models;
723
+ both bill image output at the same token rate. The images endpoints take a single
722
724
  prompt string, so the compiled prompt body is the preamble and `prompt` — the
723
725
  description of the wanted picture — is appended to it: the house style stays
724
726
  editable in Langfuse while the caller supplies the subject. `imageOptions` is
@@ -13595,6 +13595,7 @@ export declare const LLMAPI_AVAILABLE_MODELS: {
13595
13595
  readonly getPriceForTextInput: (tokens: number) => number;
13596
13596
  readonly getPriceForCachedTextInput: (tokens: number) => number;
13597
13597
  readonly getPriceForTextOutput: (tokens: number) => number;
13598
+ readonly getPriceForImageOutput: (tokens: number) => number;
13598
13599
  readonly getPriceForAudioInput: () => number;
13599
13600
  readonly getPriceForAudioOutput: () => number;
13600
13601
  readonly currency: "USD";
@@ -13606,6 +13607,7 @@ export declare const LLMAPI_AVAILABLE_MODELS: {
13606
13607
  readonly webSearch: false;
13607
13608
  readonly jsonOutput: false;
13608
13609
  readonly structuredOutputs: false;
13610
+ readonly imageGeneration: true;
13609
13611
  };
13610
13612
  };
13611
13613
  readonly "gpt-image-2.5-sunburst": {
@@ -13621,6 +13623,7 @@ export declare const LLMAPI_AVAILABLE_MODELS: {
13621
13623
  readonly getPriceForTextInput: (tokens: number) => number;
13622
13624
  readonly getPriceForCachedTextInput: (tokens: number) => number;
13623
13625
  readonly getPriceForTextOutput: (tokens: number) => number;
13626
+ readonly getPriceForImageOutput: (tokens: number) => number;
13624
13627
  readonly getPriceForAudioInput: () => number;
13625
13628
  readonly getPriceForAudioOutput: () => number;
13626
13629
  readonly currency: "USD";
@@ -13632,6 +13635,7 @@ export declare const LLMAPI_AVAILABLE_MODELS: {
13632
13635
  readonly webSearch: false;
13633
13636
  readonly jsonOutput: false;
13634
13637
  readonly structuredOutputs: false;
13638
+ readonly imageGeneration: true;
13635
13639
  };
13636
13640
  };
13637
13641
  readonly "grok-4.7": {
@@ -30986,6 +30990,7 @@ export declare const LLMAPI_MODELS: {
30986
30990
  readonly getPriceForTextInput: (tokens: number) => number;
30987
30991
  readonly getPriceForCachedTextInput: (tokens: number) => number;
30988
30992
  readonly getPriceForTextOutput: (tokens: number) => number;
30993
+ readonly getPriceForImageOutput: (tokens: number) => number;
30989
30994
  readonly getPriceForAudioInput: () => number;
30990
30995
  readonly getPriceForAudioOutput: () => number;
30991
30996
  readonly currency: "USD";
@@ -30997,6 +31002,7 @@ export declare const LLMAPI_MODELS: {
30997
31002
  readonly webSearch: false;
30998
31003
  readonly jsonOutput: false;
30999
31004
  readonly structuredOutputs: false;
31005
+ readonly imageGeneration: true;
31000
31006
  };
31001
31007
  };
31002
31008
  readonly "gpt-image-2.5-sunburst": {
@@ -31012,6 +31018,7 @@ export declare const LLMAPI_MODELS: {
31012
31018
  readonly getPriceForTextInput: (tokens: number) => number;
31013
31019
  readonly getPriceForCachedTextInput: (tokens: number) => number;
31014
31020
  readonly getPriceForTextOutput: (tokens: number) => number;
31021
+ readonly getPriceForImageOutput: (tokens: number) => number;
31015
31022
  readonly getPriceForAudioInput: () => number;
31016
31023
  readonly getPriceForAudioOutput: () => number;
31017
31024
  readonly currency: "USD";
@@ -31023,6 +31030,7 @@ export declare const LLMAPI_MODELS: {
31023
31030
  readonly webSearch: false;
31024
31031
  readonly jsonOutput: false;
31025
31032
  readonly structuredOutputs: false;
31033
+ readonly imageGeneration: true;
31026
31034
  };
31027
31035
  };
31028
31036
  readonly "grok-4.7": {
@@ -47803,6 +47811,7 @@ export declare const LLMAPI_MODELS: {
47803
47811
  readonly getPriceForTextInput: (tokens: number) => number;
47804
47812
  readonly getPriceForCachedTextInput: (tokens: number) => number;
47805
47813
  readonly getPriceForTextOutput: (tokens: number) => number;
47814
+ readonly getPriceForImageOutput: (tokens: number) => number;
47806
47815
  readonly getPriceForAudioInput: () => number;
47807
47816
  readonly getPriceForAudioOutput: () => number;
47808
47817
  readonly currency: "USD";
@@ -47814,6 +47823,7 @@ export declare const LLMAPI_MODELS: {
47814
47823
  readonly webSearch: false;
47815
47824
  readonly jsonOutput: false;
47816
47825
  readonly structuredOutputs: false;
47826
+ readonly imageGeneration: true;
47817
47827
  };
47818
47828
  };
47819
47829
  readonly "gpt-image-2.5-sunburst": {
@@ -47829,6 +47839,7 @@ export declare const LLMAPI_MODELS: {
47829
47839
  readonly getPriceForTextInput: (tokens: number) => number;
47830
47840
  readonly getPriceForCachedTextInput: (tokens: number) => number;
47831
47841
  readonly getPriceForTextOutput: (tokens: number) => number;
47842
+ readonly getPriceForImageOutput: (tokens: number) => number;
47832
47843
  readonly getPriceForAudioInput: () => number;
47833
47844
  readonly getPriceForAudioOutput: () => number;
47834
47845
  readonly currency: "USD";
@@ -47840,6 +47851,7 @@ export declare const LLMAPI_MODELS: {
47840
47851
  readonly webSearch: false;
47841
47852
  readonly jsonOutput: false;
47842
47853
  readonly structuredOutputs: false;
47854
+ readonly imageGeneration: true;
47843
47855
  };
47844
47856
  };
47845
47857
  readonly "grok-4.7": {
@@ -53332,6 +53344,62 @@ export declare const LLMAPI_MODELS: {
53332
53344
  readonly imageGeneration: true;
53333
53345
  };
53334
53346
  };
53347
+ readonly "gpt-image-2.5-flare": {
53348
+ readonly name: LLMAPIModelNames.GPT_IMAGE_2_5_FLARE;
53349
+ readonly limits: {
53350
+ readonly maxInputTokens: 128000;
53351
+ readonly maxOutputTokens: 8192;
53352
+ };
53353
+ readonly config: {
53354
+ readonly temperature: 0.2;
53355
+ };
53356
+ readonly pricing: {
53357
+ readonly getPriceForTextInput: (tokens: number) => number;
53358
+ readonly getPriceForCachedTextInput: (tokens: number) => number;
53359
+ readonly getPriceForTextOutput: (tokens: number) => number;
53360
+ readonly getPriceForImageOutput: (tokens: number) => number;
53361
+ readonly getPriceForAudioInput: () => number;
53362
+ readonly getPriceForAudioOutput: () => number;
53363
+ readonly currency: "USD";
53364
+ };
53365
+ readonly capabilities: {
53366
+ readonly vision: true;
53367
+ readonly tools: false;
53368
+ readonly reasoning: false;
53369
+ readonly webSearch: false;
53370
+ readonly jsonOutput: false;
53371
+ readonly structuredOutputs: false;
53372
+ readonly imageGeneration: true;
53373
+ };
53374
+ };
53375
+ readonly "gpt-image-2.5-sunburst": {
53376
+ readonly name: LLMAPIModelNames.GPT_IMAGE_2_5_SUNBURST;
53377
+ readonly limits: {
53378
+ readonly maxInputTokens: 128000;
53379
+ readonly maxOutputTokens: 8192;
53380
+ };
53381
+ readonly config: {
53382
+ readonly temperature: 0.2;
53383
+ };
53384
+ readonly pricing: {
53385
+ readonly getPriceForTextInput: (tokens: number) => number;
53386
+ readonly getPriceForCachedTextInput: (tokens: number) => number;
53387
+ readonly getPriceForTextOutput: (tokens: number) => number;
53388
+ readonly getPriceForImageOutput: (tokens: number) => number;
53389
+ readonly getPriceForAudioInput: () => number;
53390
+ readonly getPriceForAudioOutput: () => number;
53391
+ readonly currency: "USD";
53392
+ };
53393
+ readonly capabilities: {
53394
+ readonly vision: true;
53395
+ readonly tools: false;
53396
+ readonly reasoning: false;
53397
+ readonly webSearch: false;
53398
+ readonly jsonOutput: false;
53399
+ readonly structuredOutputs: false;
53400
+ readonly imageGeneration: true;
53401
+ };
53402
+ };
53335
53403
  };
53336
53404
  readonly decision: {
53337
53405
  "jev-latest": {
@@ -8746,7 +8746,7 @@ exports.LLMAPI_AVAILABLE_MODELS = {
8746
8746
  name: LLMAPI_typedefs_1.LLMAPIModelNames.GPT_IMAGE_2_5_FLARE,
8747
8747
  limits: { maxInputTokens: 128_000, maxOutputTokens: 8_192 },
8748
8748
  config: { temperature: 0.2 },
8749
- pricing: { getPriceForTextInput: (tokens) => 5 * tokens / 1_000_000, getPriceForCachedTextInput: (tokens) => 1.25 * tokens / 1_000_000, getPriceForTextOutput: (tokens) => 0 * tokens / 1_000_000, getPriceForAudioInput: () => 0, getPriceForAudioOutput: () => 0, currency: 'USD' },
8749
+ pricing: { getPriceForTextInput: (tokens) => 5 * tokens / 1_000_000, getPriceForCachedTextInput: (tokens) => 1.25 * tokens / 1_000_000, getPriceForTextOutput: (tokens) => 0 * tokens / 1_000_000, getPriceForImageOutput: (tokens) => 30 * tokens / 1_000_000, getPriceForAudioInput: () => 0, getPriceForAudioOutput: () => 0, currency: 'USD' },
8750
8750
  capabilities: {
8751
8751
  vision: true,
8752
8752
  tools: false,
@@ -8754,13 +8754,14 @@ exports.LLMAPI_AVAILABLE_MODELS = {
8754
8754
  webSearch: false,
8755
8755
  jsonOutput: false,
8756
8756
  structuredOutputs: false,
8757
+ imageGeneration: true,
8757
8758
  },
8758
8759
  },
8759
8760
  [LLMAPI_typedefs_1.LLMAPIModelNames.GPT_IMAGE_2_5_SUNBURST]: {
8760
8761
  name: LLMAPI_typedefs_1.LLMAPIModelNames.GPT_IMAGE_2_5_SUNBURST,
8761
8762
  limits: { maxInputTokens: 128_000, maxOutputTokens: 8_192 },
8762
8763
  config: { temperature: 0.2 },
8763
- pricing: { getPriceForTextInput: (tokens) => 5 * tokens / 1_000_000, getPriceForCachedTextInput: (tokens) => 1.25 * tokens / 1_000_000, getPriceForTextOutput: (tokens) => 0 * tokens / 1_000_000, getPriceForAudioInput: () => 0, getPriceForAudioOutput: () => 0, currency: 'USD' },
8764
+ pricing: { getPriceForTextInput: (tokens) => 5 * tokens / 1_000_000, getPriceForCachedTextInput: (tokens) => 1.25 * tokens / 1_000_000, getPriceForTextOutput: (tokens) => 0 * tokens / 1_000_000, getPriceForImageOutput: (tokens) => 30 * tokens / 1_000_000, getPriceForAudioInput: () => 0, getPriceForAudioOutput: () => 0, currency: 'USD' },
8764
8765
  capabilities: {
8765
8766
  vision: true,
8766
8767
  tools: false,
@@ -8768,6 +8769,7 @@ exports.LLMAPI_AVAILABLE_MODELS = {
8768
8769
  webSearch: false,
8769
8770
  jsonOutput: false,
8770
8771
  structuredOutputs: false,
8772
+ imageGeneration: true,
8771
8773
  },
8772
8774
  },
8773
8775
  [LLMAPI_typedefs_1.LLMAPIModelNames.GROK_4_7]: {
@@ -10539,6 +10541,8 @@ const LLMAPI_IMAGE_MODELS = {
10539
10541
  [LLMAPI_typedefs_1.LLMAPIModelNames.GEMINI_3_1_FLASH_IMAGE_GOOGLE_VERTEX]: exports.LLMAPI_AVAILABLE_MODELS[LLMAPI_typedefs_1.LLMAPIModelNames.GEMINI_3_1_FLASH_IMAGE_GOOGLE_VERTEX],
10540
10542
  [LLMAPI_typedefs_1.LLMAPIModelNames.GPT_IMAGE_2]: exports.LLMAPI_AVAILABLE_MODELS[LLMAPI_typedefs_1.LLMAPIModelNames.GPT_IMAGE_2],
10541
10543
  [LLMAPI_typedefs_1.LLMAPIModelNames.GPT_IMAGE_2_OPENAI]: exports.LLMAPI_AVAILABLE_MODELS[LLMAPI_typedefs_1.LLMAPIModelNames.GPT_IMAGE_2_OPENAI],
10544
+ [LLMAPI_typedefs_1.LLMAPIModelNames.GPT_IMAGE_2_5_FLARE]: exports.LLMAPI_AVAILABLE_MODELS[LLMAPI_typedefs_1.LLMAPIModelNames.GPT_IMAGE_2_5_FLARE],
10545
+ [LLMAPI_typedefs_1.LLMAPIModelNames.GPT_IMAGE_2_5_SUNBURST]: exports.LLMAPI_AVAILABLE_MODELS[LLMAPI_typedefs_1.LLMAPIModelNames.GPT_IMAGE_2_5_SUNBURST],
10542
10546
  };
10543
10547
  exports.LLMAPI_IMAGE_DEFAULT_OUTPUT_FORMAT = 'png';
10544
10548
  exports.LLMAPI_IMAGE_MIME_TYPE_BY_OUTPUT_FORMAT = {