@nodaro/shared 3.59.0 → 3.60.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/{chunk-QE7W4YIK.cjs → chunk-5G23AJBU.cjs} +6 -6
- package/dist/{chunk-QE7W4YIK.cjs.map → chunk-5G23AJBU.cjs.map} +1 -1
- package/dist/{chunk-DKZGLIFW.cjs → chunk-5HK5Z5OB.cjs} +4 -4
- package/dist/{chunk-DKZGLIFW.cjs.map → chunk-5HK5Z5OB.cjs.map} +1 -1
- package/dist/{chunk-RSXQOFM7.cjs → chunk-5Y42RIGY.cjs} +8 -8
- package/dist/{chunk-RSXQOFM7.cjs.map → chunk-5Y42RIGY.cjs.map} +1 -1
- package/dist/{chunk-FHCMYGBV.js → chunk-6AJOTEVC.js} +3 -3
- package/dist/{chunk-FHCMYGBV.js.map → chunk-6AJOTEVC.js.map} +1 -1
- package/dist/{chunk-ZVUVSD5X.js → chunk-6Q6SI7AG.js} +3 -3
- package/dist/{chunk-ZVUVSD5X.js.map → chunk-6Q6SI7AG.js.map} +1 -1
- package/dist/{chunk-V3NONYLA.cjs → chunk-A6HRY3WF.cjs} +269 -18
- package/dist/chunk-A6HRY3WF.cjs.map +1 -0
- package/dist/{chunk-D574HZ35.cjs → chunk-AXT7YNOR.cjs} +51 -51
- package/dist/{chunk-D574HZ35.cjs.map → chunk-AXT7YNOR.cjs.map} +1 -1
- package/dist/{chunk-TA7ODVYJ.js → chunk-AZGONXWV.js} +4 -4
- package/dist/{chunk-TA7ODVYJ.js.map → chunk-AZGONXWV.js.map} +1 -1
- package/dist/{chunk-OFL4UH6L.cjs → chunk-BDXXOEBZ.cjs} +80 -57
- package/dist/chunk-BDXXOEBZ.cjs.map +1 -0
- package/dist/{chunk-NSZTHJZJ.cjs → chunk-BGIJO5V4.cjs} +39 -39
- package/dist/{chunk-NSZTHJZJ.cjs.map → chunk-BGIJO5V4.cjs.map} +1 -1
- package/dist/{chunk-NZRG5CXQ.cjs → chunk-BLJUCPMV.cjs} +5 -2
- package/dist/chunk-BLJUCPMV.cjs.map +1 -0
- package/dist/{chunk-NHZWVKGV.cjs → chunk-BXNPO3PL.cjs} +8 -8
- package/dist/{chunk-NHZWVKGV.cjs.map → chunk-BXNPO3PL.cjs.map} +1 -1
- package/dist/{chunk-UPD7W2KJ.cjs → chunk-CIOXUPCJ.cjs} +12 -12
- package/dist/{chunk-UPD7W2KJ.cjs.map → chunk-CIOXUPCJ.cjs.map} +1 -1
- package/dist/{chunk-YE4EDT57.cjs → chunk-DQIJPDHC.cjs} +11 -11
- package/dist/{chunk-YE4EDT57.cjs.map → chunk-DQIJPDHC.cjs.map} +1 -1
- package/dist/{chunk-UMPZR56R.js → chunk-DS2TOM32.js} +3 -3
- package/dist/{chunk-UMPZR56R.js.map → chunk-DS2TOM32.js.map} +1 -1
- package/dist/{chunk-YSEJOJNQ.js → chunk-EN2YI5TV.js} +3 -3
- package/dist/{chunk-YSEJOJNQ.js.map → chunk-EN2YI5TV.js.map} +1 -1
- package/dist/{chunk-ZU56AMFK.js → chunk-G6GMY5BC.js} +20 -4
- package/dist/chunk-G6GMY5BC.js.map +1 -0
- package/dist/chunk-G7ZYZQKO.cjs +27 -0
- package/dist/{chunk-6VXDW2U3.cjs.map → chunk-G7ZYZQKO.cjs.map} +1 -1
- package/dist/{chunk-PEATSEAD.cjs → chunk-GNPJ2JLE.cjs} +6 -6
- package/dist/{chunk-PEATSEAD.cjs.map → chunk-GNPJ2JLE.cjs.map} +1 -1
- package/dist/{chunk-VLQW4CVW.cjs → chunk-GWBQ3GPO.cjs} +41 -21
- package/dist/chunk-GWBQ3GPO.cjs.map +1 -0
- package/dist/{chunk-P7KSB5T6.cjs → chunk-HDHLZK7C.cjs} +5 -5
- package/dist/{chunk-P7KSB5T6.cjs.map → chunk-HDHLZK7C.cjs.map} +1 -1
- package/dist/{chunk-QLLR7GUY.cjs → chunk-HNEF2N5C.cjs} +5 -5
- package/dist/{chunk-QLLR7GUY.cjs.map → chunk-HNEF2N5C.cjs.map} +1 -1
- package/dist/{chunk-7JM5EZF3.cjs → chunk-HOKWJXHA.cjs} +13 -13
- package/dist/{chunk-7JM5EZF3.cjs.map → chunk-HOKWJXHA.cjs.map} +1 -1
- package/dist/{chunk-RGBNOCIO.js → chunk-ICDLYU4I.js} +9 -9
- package/dist/{chunk-RGBNOCIO.js.map → chunk-ICDLYU4I.js.map} +1 -1
- package/dist/{chunk-FJCRWDU5.js → chunk-IV6IDECY.js} +4 -4
- package/dist/{chunk-FJCRWDU5.js.map → chunk-IV6IDECY.js.map} +1 -1
- package/dist/{chunk-PIX4OCCQ.js → chunk-JKZVRKN3.js} +36 -14
- package/dist/chunk-JKZVRKN3.js.map +1 -0
- package/dist/{chunk-MTXVODG3.js → chunk-KJZVQIN4.js} +3 -3
- package/dist/{chunk-MTXVODG3.js.map → chunk-KJZVQIN4.js.map} +1 -1
- package/dist/{chunk-2VQHPILW.js → chunk-KOLC7AF2.js} +262 -19
- package/dist/chunk-KOLC7AF2.js.map +1 -0
- package/dist/{chunk-IP7QOHWQ.js → chunk-LN3EVFRS.js} +5 -5
- package/dist/{chunk-IP7QOHWQ.js.map → chunk-LN3EVFRS.js.map} +1 -1
- package/dist/{chunk-EO4W4MA3.js → chunk-MHY47BLL.js} +4 -4
- package/dist/{chunk-EO4W4MA3.js.map → chunk-MHY47BLL.js.map} +1 -1
- package/dist/{chunk-AWS4BWEC.js → chunk-Q6IES3U2.js} +5 -2
- package/dist/chunk-Q6IES3U2.js.map +1 -0
- package/dist/{chunk-62RC6K62.cjs → chunk-RRPPXZ36.cjs} +4 -4
- package/dist/{chunk-62RC6K62.cjs.map → chunk-RRPPXZ36.cjs.map} +1 -1
- package/dist/{chunk-3R2KVYXN.js → chunk-SCYBGTX6.js} +3 -3
- package/dist/{chunk-3R2KVYXN.js.map → chunk-SCYBGTX6.js.map} +1 -1
- package/dist/{chunk-K4L4G76I.cjs → chunk-SKFJIFEV.cjs} +21 -21
- package/dist/{chunk-K4L4G76I.cjs.map → chunk-SKFJIFEV.cjs.map} +1 -1
- package/dist/{chunk-2S7YYCRT.js → chunk-TZ42IVSF.js} +4 -4
- package/dist/{chunk-2S7YYCRT.js.map → chunk-TZ42IVSF.js.map} +1 -1
- package/dist/{chunk-PIEMWFSJ.js → chunk-URLDVK67.js} +3 -3
- package/dist/{chunk-PIEMWFSJ.js.map → chunk-URLDVK67.js.map} +1 -1
- package/dist/{chunk-IOET54EV.js → chunk-VB2ARGQ6.js} +35 -3
- package/dist/chunk-VB2ARGQ6.js.map +1 -0
- package/dist/{chunk-VOZI5F7V.js → chunk-VYQ25YQF.js} +3 -3
- package/dist/{chunk-VOZI5F7V.js.map → chunk-VYQ25YQF.js.map} +1 -1
- package/dist/{chunk-QSWUSXRL.cjs → chunk-WGKAOUEQ.cjs} +41 -2
- package/dist/chunk-WGKAOUEQ.cjs.map +1 -0
- package/dist/{chunk-ORJ5HQAB.js → chunk-YHVEZVAO.js} +4 -4
- package/dist/{chunk-ORJ5HQAB.js.map → chunk-YHVEZVAO.js.map} +1 -1
- package/dist/entries/apps.cjs +43 -43
- package/dist/entries/apps.js +8 -8
- package/dist/entries/credits.cjs +155 -151
- package/dist/entries/credits.d.cts +32 -3
- package/dist/entries/credits.d.ts +32 -3
- package/dist/entries/credits.js +8 -8
- package/dist/entries/llm-models.d.cts +1 -1
- package/dist/entries/llm-models.d.ts +1 -1
- package/dist/entries/model-catalog.cjs +144 -84
- package/dist/entries/model-catalog.d.cts +4 -47
- package/dist/entries/model-catalog.d.ts +4 -47
- package/dist/entries/model-catalog.js +5 -5
- package/dist/entries/models.cjs +305 -289
- package/dist/entries/models.d.cts +3 -3
- package/dist/entries/models.d.ts +3 -3
- package/dist/entries/models.js +4 -4
- package/dist/entries/nodes.cjs +208 -208
- package/dist/entries/nodes.d.cts +1 -1
- package/dist/entries/nodes.d.ts +1 -1
- package/dist/entries/nodes.js +10 -10
- package/dist/entries/pipeline.cjs +152 -152
- package/dist/entries/pipeline.d.cts +1 -1
- package/dist/entries/pipeline.d.ts +1 -1
- package/dist/entries/pipeline.js +3 -3
- package/dist/entries/ugc.cjs +71 -71
- package/dist/entries/ugc.js +4 -4
- package/dist/entries/video.cjs +117 -117
- package/dist/entries/video.js +4 -4
- package/dist/entries/workflow.cjs +147 -147
- package/dist/entries/workflow.d.cts +8 -0
- package/dist/entries/workflow.d.ts +8 -0
- package/dist/entries/workflow.js +2 -2
- package/dist/gpt-image-2-6-BeZdT-pW.d.cts +98 -0
- package/dist/gpt-image-2-6-BeZdT-pW.d.ts +98 -0
- package/dist/index.cjs +1314 -1234
- package/dist/index.d.cts +5 -4
- package/dist/index.d.ts +5 -4
- package/dist/index.js +20 -20
- package/dist/{model-catalog-QJ_AO9l0.d.cts → model-catalog-D6Es7VG-.d.cts} +56 -2
- package/dist/{model-catalog-QJ_AO9l0.d.ts → model-catalog-D6Es7VG-.d.ts} +56 -2
- package/dist/{model-constants-BwBdh6Rn.d.ts → model-constants-22k3fjp1.d.cts} +16 -1
- package/dist/{model-constants-BwBdh6Rn.d.cts → model-constants-22k3fjp1.d.ts} +16 -1
- package/package.json +1 -1
- package/src/__tests__/gpt-image-2-6-formats.test.ts +171 -0
- package/src/credit-identifiers.ts +63 -3
- package/src/entries/credits.ts +1 -0
- package/src/entries/model-catalog.ts +17 -0
- package/src/entries/models.ts +6 -0
- package/src/gpt-image-2-6.ts +72 -0
- package/src/model-catalog.ts +336 -13
- package/src/model-constants.ts +33 -0
- package/src/node-execution-state.ts +8 -0
- package/src/node-runtime-keys.ts +3 -0
- package/dist/chunk-2VQHPILW.js.map +0 -1
- package/dist/chunk-6VXDW2U3.cjs +0 -27
- package/dist/chunk-AWS4BWEC.js.map +0 -1
- package/dist/chunk-IOET54EV.js.map +0 -1
- package/dist/chunk-NZRG5CXQ.cjs.map +0 -1
- package/dist/chunk-OFL4UH6L.cjs.map +0 -1
- package/dist/chunk-PIX4OCCQ.js.map +0 -1
- package/dist/chunk-QSWUSXRL.cjs.map +0 -1
- package/dist/chunk-V3NONYLA.cjs.map +0 -1
- package/dist/chunk-VLQW4CVW.cjs.map +0 -1
- package/dist/chunk-ZU56AMFK.js.map +0 -1
|
@@ -147,6 +147,11 @@ var GPT_IMAGE_2_6_VALUE_LABELS = {
|
|
|
147
147
|
"max": "Max"
|
|
148
148
|
};
|
|
149
149
|
var GPT_IMAGE_BACKGROUNDS = ["auto", "opaque", "transparent"];
|
|
150
|
+
var GPT_IMAGE_2_6_FORMATS = ["png", "jpeg", "webp", "gif", "svg"];
|
|
151
|
+
var GPT_IMAGE_2_6_GIF_FRAMES = { min: 2, max: 16, default: 9 };
|
|
152
|
+
var GPT_IMAGE_2_6_GIF_FRAME_DURATION = { min: 20, max: 2e3, step: 10, default: 200 };
|
|
153
|
+
var GPT_IMAGE_2_6_ECONOMY_GIF_FRAMES = { min: 4, max: 16, default: 9, values: [4, 9, 16] };
|
|
154
|
+
var GPT_IMAGE_2_6_SVG_LEVELS = ["standard", "detailed", "max"];
|
|
150
155
|
var IMAGEN4_RATIOS = ["1:1", "16:9", "9:16", "4:3", "3:4"];
|
|
151
156
|
var IDEOGRAM_RATIOS = ["1:1", "16:9", "9:16", "4:3", "3:4"];
|
|
152
157
|
var SEEDREAM_RATIOS = ["1:1", "16:9", "9:16", "4:3", "3:4", "3:2", "2:3", "21:9"];
|
|
@@ -671,7 +676,7 @@ var IMAGE_MODELS = {
|
|
|
671
676
|
maker: "openai",
|
|
672
677
|
label: "GPT Image 2.6 Flare",
|
|
673
678
|
series: "GPT Image",
|
|
674
|
-
description: "Fast GPT Image 2.6 - pick it for speed: posters, product shots and quick iteration, with stronger layouts. Up to 4K, quality from low to max or auto (priced up to the max), a transparent background at 1K.",
|
|
679
|
+
description: "Fast GPT Image 2.6 - pick it for speed: posters, product shots and quick iteration, with stronger layouts. Up to 4K, quality from low to max or auto (priced up to the max), a transparent background at 1K. Writes PNG, JPEG, WebP, an animated GIF or an SVG.",
|
|
675
680
|
useCases: ["typography", "high-res", "general", "draft"],
|
|
676
681
|
features: ["reference-image"],
|
|
677
682
|
aspectRatios: GPT_IMAGE_2_6_RATIOS,
|
|
@@ -681,6 +686,10 @@ var IMAGE_MODELS = {
|
|
|
681
686
|
defaultQuality: "medium",
|
|
682
687
|
backgrounds: GPT_IMAGE_BACKGROUNDS,
|
|
683
688
|
transparentResolution: "1K",
|
|
689
|
+
outputFormats: GPT_IMAGE_2_6_FORMATS,
|
|
690
|
+
gifFrames: GPT_IMAGE_2_6_GIF_FRAMES,
|
|
691
|
+
gifFrameDurationMs: GPT_IMAGE_2_6_GIF_FRAME_DURATION,
|
|
692
|
+
svgLevels: GPT_IMAGE_2_6_SVG_LEVELS,
|
|
684
693
|
pricing: [
|
|
685
694
|
{ identifier: "gpt-image-2-6-flare", credits: 20, note: "medium, 1K default" },
|
|
686
695
|
{ identifier: "gpt-image-2-6-flare:low:1K", credits: 12, note: "low, 1K" },
|
|
@@ -700,7 +709,34 @@ var IMAGE_MODELS = {
|
|
|
700
709
|
{ identifier: "gpt-image-2-6-flare:max:4K", credits: 321, note: "max, 4K" },
|
|
701
710
|
{ identifier: "gpt-image-2-6-flare:auto:1K", credits: 96, note: "auto, 1K: the most it can cost, settled on what it really cost" },
|
|
702
711
|
{ identifier: "gpt-image-2-6-flare:auto:2K", credits: 193, note: "auto, 2K: the most it can cost, settled on what it really cost" },
|
|
703
|
-
{ identifier: "gpt-image-2-6-flare:auto:4K", credits: 321, note: "auto, 4K: the most it can cost, settled on what it really cost" }
|
|
712
|
+
{ identifier: "gpt-image-2-6-flare:auto:4K", credits: 321, note: "auto, 4K: the most it can cost, settled on what it really cost" },
|
|
713
|
+
{ identifier: "gpt-image-2-6-flare:low:gif-2-8", credits: 8, note: "GIF, low, 2 to 8 frames" },
|
|
714
|
+
{ identifier: "gpt-image-2-6-flare:low:gif-9-12", credits: 17, note: "GIF, low, 9 to 12 frames" },
|
|
715
|
+
{ identifier: "gpt-image-2-6-flare:low:gif-13-16", credits: 23, note: "GIF, low, 13 to 16 frames" },
|
|
716
|
+
{ identifier: "gpt-image-2-6-flare:medium:gif-2-8", credits: 14, note: "GIF, medium, 2 to 8 frames" },
|
|
717
|
+
{ identifier: "gpt-image-2-6-flare:medium:gif-9-12", credits: 29, note: "GIF, medium, 9 to 12 frames" },
|
|
718
|
+
{ identifier: "gpt-image-2-6-flare:medium:gif-13-16", credits: 41, note: "GIF, medium, 13 to 16 frames" },
|
|
719
|
+
{ identifier: "gpt-image-2-6-flare:high:gif-2-8", credits: 17, note: "GIF, high, 2 to 8 frames" },
|
|
720
|
+
{ identifier: "gpt-image-2-6-flare:high:gif-9-12", credits: 35, note: "GIF, high, 9 to 12 frames" },
|
|
721
|
+
{ identifier: "gpt-image-2-6-flare:high:gif-13-16", credits: 49, note: "GIF, high, 13 to 16 frames" },
|
|
722
|
+
{ identifier: "gpt-image-2-6-flare:xhigh:gif-2-8", credits: 29, note: "GIF, extra high, 2 to 8 frames" },
|
|
723
|
+
{ identifier: "gpt-image-2-6-flare:xhigh:gif-9-12", credits: 61, note: "GIF, extra high, 9 to 12 frames" },
|
|
724
|
+
{ identifier: "gpt-image-2-6-flare:xhigh:gif-13-16", credits: 86, note: "GIF, extra high, 13 to 16 frames" },
|
|
725
|
+
{ identifier: "gpt-image-2-6-flare:max:gif-2-8", credits: 65, note: "GIF, max, 2 to 8 frames" },
|
|
726
|
+
{ identifier: "gpt-image-2-6-flare:max:gif-9-12", credits: 136, note: "GIF, max, 9 to 12 frames" },
|
|
727
|
+
{ identifier: "gpt-image-2-6-flare:max:gif-13-16", credits: 194, note: "GIF, max, 13 to 16 frames" },
|
|
728
|
+
{ identifier: "gpt-image-2-6-flare:auto:gif-2-8", credits: 65, note: "GIF, auto, 2 to 8 frames: the most it can cost, settled on what it really cost" },
|
|
729
|
+
{ identifier: "gpt-image-2-6-flare:auto:gif-9-12", credits: 136, note: "GIF, auto, 9 to 12 frames: the most it can cost, settled on what it really cost" },
|
|
730
|
+
{ identifier: "gpt-image-2-6-flare:auto:gif-13-16", credits: 194, note: "GIF, auto, 13 to 16 frames: the most it can cost, settled on what it really cost" },
|
|
731
|
+
{ identifier: "gpt-image-2-6-flare:medium:1K:svg-standard", credits: 25, note: "SVG standard, medium, 1K" },
|
|
732
|
+
{ identifier: "gpt-image-2-6-flare:medium:2K:svg-standard", credits: 45, note: "SVG standard, medium, 2K" },
|
|
733
|
+
{ identifier: "gpt-image-2-6-flare:medium:4K:svg-standard", credits: 72, note: "SVG standard, medium, 4K" },
|
|
734
|
+
{ identifier: "gpt-image-2-6-flare:medium:1K:svg-detailed", credits: 64, note: "SVG detailed, medium, 1K" },
|
|
735
|
+
{ identifier: "gpt-image-2-6-flare:medium:2K:svg-detailed", credits: 84, note: "SVG detailed, medium, 2K" },
|
|
736
|
+
{ identifier: "gpt-image-2-6-flare:medium:4K:svg-detailed", credits: 111, note: "SVG detailed, medium, 4K" },
|
|
737
|
+
{ identifier: "gpt-image-2-6-flare:medium:1K:svg-max", credits: 81, note: "SVG max, medium, 1K" },
|
|
738
|
+
{ identifier: "gpt-image-2-6-flare:medium:2K:svg-max", credits: 101, note: "SVG max, medium, 2K" },
|
|
739
|
+
{ identifier: "gpt-image-2-6-flare:medium:4K:svg-max", credits: 128, note: "SVG max, medium, 4K" }
|
|
704
740
|
],
|
|
705
741
|
valueLabels: GPT_IMAGE_2_6_VALUE_LABELS,
|
|
706
742
|
safetyFilter: { stochastic: true, fallback: "nano-banana-pro" }
|
|
@@ -713,7 +749,7 @@ var IMAGE_MODELS = {
|
|
|
713
749
|
maker: "openai",
|
|
714
750
|
label: "GPT Image 2.6 Flare (I2I)",
|
|
715
751
|
series: "GPT Image",
|
|
716
|
-
description: "Fast GPT Image 2.6 edits - up to 16 input images, priced per image. Pick it while iterating.",
|
|
752
|
+
description: "Fast GPT Image 2.6 edits - up to 16 input images, priced per image. Writes PNG, JPEG, WebP, an animated GIF or an SVG. Pick it while iterating.",
|
|
717
753
|
useCases: ["edit", "high-res"],
|
|
718
754
|
features: ["reference-image"],
|
|
719
755
|
aspectRatios: GPT_IMAGE_2_6_RATIOS,
|
|
@@ -723,13 +759,19 @@ var IMAGE_MODELS = {
|
|
|
723
759
|
defaultQuality: "medium",
|
|
724
760
|
backgrounds: GPT_IMAGE_BACKGROUNDS,
|
|
725
761
|
transparentResolution: "1K",
|
|
762
|
+
outputFormats: GPT_IMAGE_2_6_FORMATS,
|
|
763
|
+
gifFrames: GPT_IMAGE_2_6_GIF_FRAMES,
|
|
764
|
+
gifFrameDurationMs: GPT_IMAGE_2_6_GIF_FRAME_DURATION,
|
|
765
|
+
svgLevels: GPT_IMAGE_2_6_SVG_LEVELS,
|
|
726
766
|
pricing: [
|
|
727
767
|
{ identifier: "gpt-image-2-6-flare-i2i", credits: 20, note: "medium, 1K default" },
|
|
728
768
|
{ identifier: "gpt-image-2-6-flare-i2i:low:1K:1ref", credits: 17, note: "low, 1K, one input image (the least)" },
|
|
729
769
|
{ identifier: "gpt-image-2-6-flare-i2i:medium:1K:1ref", credits: 26, note: "medium, 1K, one input image" },
|
|
730
770
|
{ identifier: "gpt-image-2-6-flare-i2i:high:4K:16ref", credits: 169, note: "high, 4K, sixteen input images" },
|
|
731
771
|
{ identifier: "gpt-image-2-6-flare-i2i:max:4K:16ref", credits: 409, note: "max, 4K, sixteen input images (the most)" },
|
|
732
|
-
{ identifier: "gpt-image-2-6-flare-i2i:auto:1K:1ref", credits: 101, note: "auto, 1K, one input image: the most it can cost, settled on what it really cost" }
|
|
772
|
+
{ identifier: "gpt-image-2-6-flare-i2i:auto:1K:1ref", credits: 101, note: "auto, 1K, one input image: the most it can cost, settled on what it really cost" },
|
|
773
|
+
{ identifier: "gpt-image-2-6-flare-i2i:medium:gif-9-12:1ref", credits: 34, note: "GIF, medium, 9 to 12 frames, one input image" },
|
|
774
|
+
{ identifier: "gpt-image-2-6-flare-i2i:medium:1K:svg-standard:1ref", credits: 31, note: "SVG standard, medium, 1K, one input image" }
|
|
733
775
|
],
|
|
734
776
|
valueLabels: GPT_IMAGE_2_6_VALUE_LABELS,
|
|
735
777
|
safetyFilter: { stochastic: true, fallback: "nano-banana-pro" }
|
|
@@ -742,7 +784,7 @@ var IMAGE_MODELS = {
|
|
|
742
784
|
maker: "openai",
|
|
743
785
|
label: "GPT Image 2.6 Sunburst",
|
|
744
786
|
series: "GPT Image",
|
|
745
|
-
description: "Precision GPT Image 2.6 - pick it when every detail counts: the strongest consistency across edits and the finest detail. Up to 4K, quality from low to max or auto (priced up to the max), a transparent background at 1K.",
|
|
787
|
+
description: "Precision GPT Image 2.6 - pick it when every detail counts: the strongest consistency across edits and the finest detail. Up to 4K, quality from low to max or auto (priced up to the max), a transparent background at 1K. Writes PNG, JPEG, WebP, an animated GIF or an SVG.",
|
|
746
788
|
useCases: ["typography", "high-res", "general"],
|
|
747
789
|
features: ["reference-image"],
|
|
748
790
|
aspectRatios: GPT_IMAGE_2_6_RATIOS,
|
|
@@ -752,6 +794,10 @@ var IMAGE_MODELS = {
|
|
|
752
794
|
defaultQuality: "medium",
|
|
753
795
|
backgrounds: GPT_IMAGE_BACKGROUNDS,
|
|
754
796
|
transparentResolution: "1K",
|
|
797
|
+
outputFormats: GPT_IMAGE_2_6_FORMATS,
|
|
798
|
+
gifFrames: GPT_IMAGE_2_6_GIF_FRAMES,
|
|
799
|
+
gifFrameDurationMs: GPT_IMAGE_2_6_GIF_FRAME_DURATION,
|
|
800
|
+
svgLevels: GPT_IMAGE_2_6_SVG_LEVELS,
|
|
755
801
|
pricing: [
|
|
756
802
|
{ identifier: "gpt-image-2-6-sunburst", credits: 20, note: "medium, 1K default" },
|
|
757
803
|
{ identifier: "gpt-image-2-6-sunburst:low:1K", credits: 12, note: "low, 1K" },
|
|
@@ -771,7 +817,34 @@ var IMAGE_MODELS = {
|
|
|
771
817
|
{ identifier: "gpt-image-2-6-sunburst:max:4K", credits: 321, note: "max, 4K" },
|
|
772
818
|
{ identifier: "gpt-image-2-6-sunburst:auto:1K", credits: 96, note: "auto, 1K: the most it can cost, settled on what it really cost" },
|
|
773
819
|
{ identifier: "gpt-image-2-6-sunburst:auto:2K", credits: 193, note: "auto, 2K: the most it can cost, settled on what it really cost" },
|
|
774
|
-
{ identifier: "gpt-image-2-6-sunburst:auto:4K", credits: 321, note: "auto, 4K: the most it can cost, settled on what it really cost" }
|
|
820
|
+
{ identifier: "gpt-image-2-6-sunburst:auto:4K", credits: 321, note: "auto, 4K: the most it can cost, settled on what it really cost" },
|
|
821
|
+
{ identifier: "gpt-image-2-6-sunburst:low:gif-2-8", credits: 8, note: "GIF, low, 2 to 8 frames" },
|
|
822
|
+
{ identifier: "gpt-image-2-6-sunburst:low:gif-9-12", credits: 17, note: "GIF, low, 9 to 12 frames" },
|
|
823
|
+
{ identifier: "gpt-image-2-6-sunburst:low:gif-13-16", credits: 23, note: "GIF, low, 13 to 16 frames" },
|
|
824
|
+
{ identifier: "gpt-image-2-6-sunburst:medium:gif-2-8", credits: 14, note: "GIF, medium, 2 to 8 frames" },
|
|
825
|
+
{ identifier: "gpt-image-2-6-sunburst:medium:gif-9-12", credits: 29, note: "GIF, medium, 9 to 12 frames" },
|
|
826
|
+
{ identifier: "gpt-image-2-6-sunburst:medium:gif-13-16", credits: 41, note: "GIF, medium, 13 to 16 frames" },
|
|
827
|
+
{ identifier: "gpt-image-2-6-sunburst:high:gif-2-8", credits: 17, note: "GIF, high, 2 to 8 frames" },
|
|
828
|
+
{ identifier: "gpt-image-2-6-sunburst:high:gif-9-12", credits: 35, note: "GIF, high, 9 to 12 frames" },
|
|
829
|
+
{ identifier: "gpt-image-2-6-sunburst:high:gif-13-16", credits: 49, note: "GIF, high, 13 to 16 frames" },
|
|
830
|
+
{ identifier: "gpt-image-2-6-sunburst:xhigh:gif-2-8", credits: 29, note: "GIF, extra high, 2 to 8 frames" },
|
|
831
|
+
{ identifier: "gpt-image-2-6-sunburst:xhigh:gif-9-12", credits: 61, note: "GIF, extra high, 9 to 12 frames" },
|
|
832
|
+
{ identifier: "gpt-image-2-6-sunburst:xhigh:gif-13-16", credits: 86, note: "GIF, extra high, 13 to 16 frames" },
|
|
833
|
+
{ identifier: "gpt-image-2-6-sunburst:max:gif-2-8", credits: 65, note: "GIF, max, 2 to 8 frames" },
|
|
834
|
+
{ identifier: "gpt-image-2-6-sunburst:max:gif-9-12", credits: 136, note: "GIF, max, 9 to 12 frames" },
|
|
835
|
+
{ identifier: "gpt-image-2-6-sunburst:max:gif-13-16", credits: 194, note: "GIF, max, 13 to 16 frames" },
|
|
836
|
+
{ identifier: "gpt-image-2-6-sunburst:auto:gif-2-8", credits: 65, note: "GIF, auto, 2 to 8 frames: the most it can cost, settled on what it really cost" },
|
|
837
|
+
{ identifier: "gpt-image-2-6-sunburst:auto:gif-9-12", credits: 136, note: "GIF, auto, 9 to 12 frames: the most it can cost, settled on what it really cost" },
|
|
838
|
+
{ identifier: "gpt-image-2-6-sunburst:auto:gif-13-16", credits: 194, note: "GIF, auto, 13 to 16 frames: the most it can cost, settled on what it really cost" },
|
|
839
|
+
{ identifier: "gpt-image-2-6-sunburst:medium:1K:svg-standard", credits: 25, note: "SVG standard, medium, 1K" },
|
|
840
|
+
{ identifier: "gpt-image-2-6-sunburst:medium:2K:svg-standard", credits: 45, note: "SVG standard, medium, 2K" },
|
|
841
|
+
{ identifier: "gpt-image-2-6-sunburst:medium:4K:svg-standard", credits: 72, note: "SVG standard, medium, 4K" },
|
|
842
|
+
{ identifier: "gpt-image-2-6-sunburst:medium:1K:svg-detailed", credits: 64, note: "SVG detailed, medium, 1K" },
|
|
843
|
+
{ identifier: "gpt-image-2-6-sunburst:medium:2K:svg-detailed", credits: 84, note: "SVG detailed, medium, 2K" },
|
|
844
|
+
{ identifier: "gpt-image-2-6-sunburst:medium:4K:svg-detailed", credits: 111, note: "SVG detailed, medium, 4K" },
|
|
845
|
+
{ identifier: "gpt-image-2-6-sunburst:medium:1K:svg-max", credits: 81, note: "SVG max, medium, 1K" },
|
|
846
|
+
{ identifier: "gpt-image-2-6-sunburst:medium:2K:svg-max", credits: 101, note: "SVG max, medium, 2K" },
|
|
847
|
+
{ identifier: "gpt-image-2-6-sunburst:medium:4K:svg-max", credits: 128, note: "SVG max, medium, 4K" }
|
|
775
848
|
],
|
|
776
849
|
valueLabels: GPT_IMAGE_2_6_VALUE_LABELS,
|
|
777
850
|
safetyFilter: { stochastic: true, fallback: "nano-banana-pro" }
|
|
@@ -784,7 +857,7 @@ var IMAGE_MODELS = {
|
|
|
784
857
|
maker: "openai",
|
|
785
858
|
label: "GPT Image 2.6 Sunburst (I2I)",
|
|
786
859
|
series: "GPT Image",
|
|
787
|
-
description: "Precision GPT Image 2.6 edits - up to 16 input images, priced per image. Pick it for finished, detail-critical edits.",
|
|
860
|
+
description: "Precision GPT Image 2.6 edits - up to 16 input images, priced per image. Writes PNG, JPEG, WebP, an animated GIF or an SVG. Pick it for finished, detail-critical edits.",
|
|
788
861
|
useCases: ["edit", "high-res"],
|
|
789
862
|
features: ["reference-image"],
|
|
790
863
|
aspectRatios: GPT_IMAGE_2_6_RATIOS,
|
|
@@ -794,13 +867,19 @@ var IMAGE_MODELS = {
|
|
|
794
867
|
defaultQuality: "medium",
|
|
795
868
|
backgrounds: GPT_IMAGE_BACKGROUNDS,
|
|
796
869
|
transparentResolution: "1K",
|
|
870
|
+
outputFormats: GPT_IMAGE_2_6_FORMATS,
|
|
871
|
+
gifFrames: GPT_IMAGE_2_6_GIF_FRAMES,
|
|
872
|
+
gifFrameDurationMs: GPT_IMAGE_2_6_GIF_FRAME_DURATION,
|
|
873
|
+
svgLevels: GPT_IMAGE_2_6_SVG_LEVELS,
|
|
797
874
|
pricing: [
|
|
798
875
|
{ identifier: "gpt-image-2-6-sunburst-i2i", credits: 20, note: "medium, 1K default" },
|
|
799
876
|
{ identifier: "gpt-image-2-6-sunburst-i2i:low:1K:1ref", credits: 17, note: "low, 1K, one input image (the least)" },
|
|
800
877
|
{ identifier: "gpt-image-2-6-sunburst-i2i:medium:1K:1ref", credits: 26, note: "medium, 1K, one input image" },
|
|
801
878
|
{ identifier: "gpt-image-2-6-sunburst-i2i:high:4K:16ref", credits: 169, note: "high, 4K, sixteen input images" },
|
|
802
879
|
{ identifier: "gpt-image-2-6-sunburst-i2i:max:4K:16ref", credits: 409, note: "max, 4K, sixteen input images (the most)" },
|
|
803
|
-
{ identifier: "gpt-image-2-6-sunburst-i2i:auto:1K:1ref", credits: 101, note: "auto, 1K, one input image: the most it can cost, settled on what it really cost" }
|
|
880
|
+
{ identifier: "gpt-image-2-6-sunburst-i2i:auto:1K:1ref", credits: 101, note: "auto, 1K, one input image: the most it can cost, settled on what it really cost" },
|
|
881
|
+
{ identifier: "gpt-image-2-6-sunburst-i2i:medium:gif-9-12:1ref", credits: 34, note: "GIF, medium, 9 to 12 frames, one input image" },
|
|
882
|
+
{ identifier: "gpt-image-2-6-sunburst-i2i:medium:1K:svg-standard:1ref", credits: 31, note: "SVG standard, medium, 1K, one input image" }
|
|
804
883
|
],
|
|
805
884
|
valueLabels: GPT_IMAGE_2_6_VALUE_LABELS,
|
|
806
885
|
safetyFilter: { stochastic: true, fallback: "nano-banana-pro" }
|
|
@@ -825,6 +904,11 @@ var IMAGE_MODELS = {
|
|
|
825
904
|
aspectRatios: GPT_IMAGE_2_6_ECONOMY_RATIOS,
|
|
826
905
|
autoAspectFromSourceImage: true,
|
|
827
906
|
backgrounds: GPT_IMAGE_BACKGROUNDS,
|
|
907
|
+
// A GIF is priced at the flat row for now: check its price on a real run
|
|
908
|
+
// before Economy is switched back on (backend gpt-image-2-6-pricing.ts).
|
|
909
|
+
outputFormats: ["png", "gif"],
|
|
910
|
+
gifFrames: GPT_IMAGE_2_6_ECONOMY_GIF_FRAMES,
|
|
911
|
+
gifFrameDurationMs: GPT_IMAGE_2_6_GIF_FRAME_DURATION,
|
|
828
912
|
pricing: [{ identifier: "gpt-image-2-6-economy", credits: 13, note: "1K flat" }],
|
|
829
913
|
valueLabels: GPT_IMAGE_2_6_VALUE_LABELS,
|
|
830
914
|
safetyFilter: { stochastic: true, fallback: "nano-banana-pro" }
|
|
@@ -844,6 +928,7 @@ var IMAGE_MODELS = {
|
|
|
844
928
|
aspectRatios: GPT_IMAGE_2_6_ECONOMY_RATIOS,
|
|
845
929
|
autoAspectFromSourceImage: true,
|
|
846
930
|
backgrounds: GPT_IMAGE_BACKGROUNDS,
|
|
931
|
+
outputFormats: ["png"],
|
|
847
932
|
pricing: [{ identifier: "gpt-image-2-6-economy-i2i", credits: 13, note: "1K flat" }],
|
|
848
933
|
valueLabels: GPT_IMAGE_2_6_VALUE_LABELS,
|
|
849
934
|
safetyFilter: { stochastic: true, fallback: "nano-banana-pro" }
|
|
@@ -3519,6 +3604,20 @@ function sameOptionValue(a, b) {
|
|
|
3519
3604
|
const fb = Number(nb);
|
|
3520
3605
|
return Number.isFinite(fa) && Number.isFinite(fb) && fa === fb;
|
|
3521
3606
|
}
|
|
3607
|
+
var MODEL_INPUT_ADJUSTMENT_FIELDS = [
|
|
3608
|
+
"aspectRatio",
|
|
3609
|
+
"resolution",
|
|
3610
|
+
"quality",
|
|
3611
|
+
"duration",
|
|
3612
|
+
"background",
|
|
3613
|
+
"outputFormat",
|
|
3614
|
+
"gifFrames",
|
|
3615
|
+
"gifFrameDurationMs",
|
|
3616
|
+
"svgLevel"
|
|
3617
|
+
];
|
|
3618
|
+
var IMAGE_GIF_FRAME_SIZE = 512;
|
|
3619
|
+
var MASKLESS_OUTPUT_FORMATS = ["gif", "svg"];
|
|
3620
|
+
var TRANSPARENT_OUTPUT_FORMATS = ["png", "webp"];
|
|
3522
3621
|
function isAutoAspectToken(value) {
|
|
3523
3622
|
return typeof value === "string" && value.trim().toLowerCase() === "auto";
|
|
3524
3623
|
}
|
|
@@ -3596,8 +3695,24 @@ function normalizeModelInput(modelId, input, context = {}) {
|
|
|
3596
3695
|
});
|
|
3597
3696
|
return next;
|
|
3598
3697
|
};
|
|
3599
|
-
const
|
|
3600
|
-
|
|
3698
|
+
const format = normalizeOutputFormat(m, input, adjustments);
|
|
3699
|
+
out.outputFormat = format.levers.outputFormat;
|
|
3700
|
+
out.gifFrames = format.levers.gifFrames;
|
|
3701
|
+
out.gifFrameDurationMs = format.levers.gifFrameDurationMs;
|
|
3702
|
+
out.svgLevel = format.levers.svgLevel;
|
|
3703
|
+
const gif = format.levers.outputFormat === "gif";
|
|
3704
|
+
const sourceRatio = !gif && autoAspectNeedsSourceImage(modelId, input.aspectRatio) && usableSize(context.sourceImage) ? nearestCatalogAspectRatio(context.sourceImage.width, context.sourceImage.height, m.aspectRatios ?? []) : void 0;
|
|
3705
|
+
if (gif) {
|
|
3706
|
+
if (input.aspectRatio !== void 0 && input.aspectRatio !== "1:1" && !isAutoAspectToken(input.aspectRatio)) {
|
|
3707
|
+
adjustments.push({
|
|
3708
|
+
field: "aspectRatio",
|
|
3709
|
+
from: input.aspectRatio,
|
|
3710
|
+
to: "1:1",
|
|
3711
|
+
reason: `A GIF from ${m.label} is square (${IMAGE_GIF_FRAME_SIZE}x${IMAGE_GIF_FRAME_SIZE} a frame), so the aspect ratio does not apply.`
|
|
3712
|
+
});
|
|
3713
|
+
}
|
|
3714
|
+
out.aspectRatio = input.aspectRatio === void 0 ? void 0 : "1:1";
|
|
3715
|
+
} else if (sourceRatio !== void 0 && input.aspectRatio !== void 0) {
|
|
3601
3716
|
const { width, height } = context.sourceImage;
|
|
3602
3717
|
const why = m.autoAspectFromSourceImage === true ? `${m.label}'s own "auto" does not keep the photo's shape` : `${m.label} has no "auto" aspect ratio`;
|
|
3603
3718
|
adjustments.push({
|
|
@@ -3610,14 +3725,39 @@ function normalizeModelInput(modelId, input, context = {}) {
|
|
|
3610
3725
|
} else {
|
|
3611
3726
|
out.aspectRatio = snap("aspectRatio", input.aspectRatio, m.aspectRatios);
|
|
3612
3727
|
}
|
|
3613
|
-
|
|
3614
|
-
|
|
3615
|
-
|
|
3616
|
-
|
|
3617
|
-
|
|
3618
|
-
|
|
3728
|
+
if (gif) {
|
|
3729
|
+
if (input.resolution !== void 0) {
|
|
3730
|
+
adjustments.push({
|
|
3731
|
+
field: "resolution",
|
|
3732
|
+
from: input.resolution,
|
|
3733
|
+
to: void 0,
|
|
3734
|
+
reason: `A GIF from ${m.label} is ${IMAGE_GIF_FRAME_SIZE}x${IMAGE_GIF_FRAME_SIZE} a frame, so the size does not apply.`
|
|
3735
|
+
});
|
|
3736
|
+
}
|
|
3737
|
+
out.resolution = void 0;
|
|
3738
|
+
} else {
|
|
3739
|
+
out.resolution = snap(
|
|
3740
|
+
"resolution",
|
|
3741
|
+
input.resolution,
|
|
3742
|
+
m.resolutions,
|
|
3743
|
+
defaultResolutionFor(modelId)
|
|
3744
|
+
);
|
|
3745
|
+
}
|
|
3619
3746
|
out.quality = snap("quality", input.quality, m.qualities, m.defaultQuality);
|
|
3620
3747
|
out.background = snap("background", input.background, m.backgrounds);
|
|
3748
|
+
const writes = format.levers.outputFormat;
|
|
3749
|
+
if (writes !== void 0 && out.background !== void 0 && out.background !== "auto") {
|
|
3750
|
+
const dropped = writes === "svg" || out.background === "transparent" && !TRANSPARENT_OUTPUT_FORMATS.includes(writes);
|
|
3751
|
+
if (dropped) {
|
|
3752
|
+
adjustments.push({
|
|
3753
|
+
field: "background",
|
|
3754
|
+
from: out.background,
|
|
3755
|
+
to: "auto",
|
|
3756
|
+
reason: writes === "svg" ? `An SVG from ${m.label} takes no background setting.` : `${m.label} only keeps a transparent background in PNG or WebP, not ${writes.toUpperCase()}.`
|
|
3757
|
+
});
|
|
3758
|
+
out.background = "auto";
|
|
3759
|
+
}
|
|
3760
|
+
}
|
|
3621
3761
|
out.duration = m.autoDuration === true && isAutoVideoDuration(input.duration) ? input.duration : snap("duration", input.duration, m.durations);
|
|
3622
3762
|
const sized = resolutionAtAspectRatio(modelId, out.aspectRatio, out.resolution);
|
|
3623
3763
|
if (out.resolution !== void 0 && sized !== void 0 && sized !== out.resolution) {
|
|
@@ -3652,6 +3792,81 @@ function normalizeModelInput(modelId, input, context = {}) {
|
|
|
3652
3792
|
}
|
|
3653
3793
|
return out;
|
|
3654
3794
|
}
|
|
3795
|
+
function normalizeOutputFormat(m, input, adjustments) {
|
|
3796
|
+
if (input.outputFormat === void 0) return { levers: {} };
|
|
3797
|
+
const asked = input.outputFormat.trim().toLowerCase();
|
|
3798
|
+
const value = asked === "jpg" ? "jpeg" : asked;
|
|
3799
|
+
const formats = m.outputFormats;
|
|
3800
|
+
if (!formats || formats.length === 0) {
|
|
3801
|
+
adjustments.push({
|
|
3802
|
+
field: "outputFormat",
|
|
3803
|
+
from: input.outputFormat,
|
|
3804
|
+
to: void 0,
|
|
3805
|
+
reason: `${m.label} has no outputFormat setting \u2014 the value was dropped.`
|
|
3806
|
+
});
|
|
3807
|
+
return { levers: {} };
|
|
3808
|
+
}
|
|
3809
|
+
let outputFormat = formats.find((f) => f === value);
|
|
3810
|
+
if (outputFormat === void 0) {
|
|
3811
|
+
outputFormat = formats[0];
|
|
3812
|
+
adjustments.push({
|
|
3813
|
+
field: "outputFormat",
|
|
3814
|
+
from: input.outputFormat,
|
|
3815
|
+
to: outputFormat,
|
|
3816
|
+
reason: `${m.label} does not write "${input.outputFormat}" \u2014 using "${outputFormat}" instead. Supported: ${formats.join(", ")}.`
|
|
3817
|
+
});
|
|
3818
|
+
}
|
|
3819
|
+
if (outputFormat === "gif") {
|
|
3820
|
+
return { levers: { outputFormat, gifFrames: gifFramesFor(m, input.gifFrames, adjustments), gifFrameDurationMs: gifFrameDurationFor(m, input.gifFrameDurationMs, adjustments) } };
|
|
3821
|
+
}
|
|
3822
|
+
if (outputFormat === "svg") {
|
|
3823
|
+
const levels = m.svgLevels ?? [];
|
|
3824
|
+
const askedLevel = input.svgLevel?.trim().toLowerCase();
|
|
3825
|
+
let svgLevel = askedLevel === void 0 ? levels[0] : levels.find((l) => l === askedLevel);
|
|
3826
|
+
if (input.svgLevel !== void 0 && svgLevel === void 0 && levels.length > 0) {
|
|
3827
|
+
svgLevel = levels[0];
|
|
3828
|
+
adjustments.push({
|
|
3829
|
+
field: "svgLevel",
|
|
3830
|
+
from: input.svgLevel,
|
|
3831
|
+
to: svgLevel,
|
|
3832
|
+
reason: `${m.label} does not draw an SVG at level "${input.svgLevel}" \u2014 using "${svgLevel}" instead. Supported: ${levels.join(", ")}.`
|
|
3833
|
+
});
|
|
3834
|
+
}
|
|
3835
|
+
return { levers: { outputFormat, ...svgLevel !== void 0 && { svgLevel } } };
|
|
3836
|
+
}
|
|
3837
|
+
return { levers: { outputFormat } };
|
|
3838
|
+
}
|
|
3839
|
+
function gifFramesFor(m, asked, adjustments) {
|
|
3840
|
+
const spec = m.gifFrames;
|
|
3841
|
+
if (!spec) return asked;
|
|
3842
|
+
if (asked === void 0 || !Number.isFinite(asked)) return spec.default;
|
|
3843
|
+
const inRange = Math.min(Math.max(Math.round(asked), spec.min), spec.max);
|
|
3844
|
+
const frames = spec.values && spec.values.length > 0 ? spec.values.reduce((best, v) => Math.abs(v - inRange) < Math.abs(best - inRange) ? v : best, spec.values[0]) : inRange;
|
|
3845
|
+
if (frames !== asked) {
|
|
3846
|
+
adjustments.push({
|
|
3847
|
+
field: "gifFrames",
|
|
3848
|
+
from: asked,
|
|
3849
|
+
to: frames,
|
|
3850
|
+
reason: spec.values && spec.values.length > 0 ? `A GIF from ${m.label} has ${spec.values.join(", ")} frames \u2014 using ${frames}.` : `A GIF from ${m.label} has ${spec.min} to ${spec.max} frames \u2014 using ${frames}.`
|
|
3851
|
+
});
|
|
3852
|
+
}
|
|
3853
|
+
return frames;
|
|
3854
|
+
}
|
|
3855
|
+
function gifFrameDurationFor(m, asked, adjustments) {
|
|
3856
|
+
const spec = m.gifFrameDurationMs;
|
|
3857
|
+
if (!spec) return asked;
|
|
3858
|
+
if (asked === void 0 || !Number.isFinite(asked)) return spec.default;
|
|
3859
|
+
const ms = Math.min(Math.max(Math.round(asked / spec.step) * spec.step, spec.min), spec.max);
|
|
3860
|
+
if (ms !== asked) {
|
|
3861
|
+
adjustments.push({
|
|
3862
|
+
field: "gifFrameDurationMs",
|
|
3863
|
+
from: asked,
|
|
3864
|
+
to: ms,
|
|
3865
|
+
reason: `${m.label} shows each GIF frame ${spec.min} to ${spec.max} ms, in steps of ${spec.step} \u2014 using ${ms}.`
|
|
3866
|
+
});
|
|
3867
|
+
}
|
|
3868
|
+
return ms;
|
|
3869
|
+
}
|
|
3655
3870
|
var PASSTHROUGH_ASPECT_TOKENS = /* @__PURE__ */ new Set(["auto", "adaptive"]);
|
|
3656
3871
|
var RESOLUTION_BAND_PIXELS = {
|
|
3657
3872
|
"2k": 1440,
|
|
@@ -3879,6 +4094,34 @@ function backgroundOptionsByKind(kind) {
|
|
|
3879
4094
|
}
|
|
3880
4095
|
return out;
|
|
3881
4096
|
}
|
|
4097
|
+
var IMAGE_OUTPUT_FORMAT_LABELS = {
|
|
4098
|
+
png: "PNG",
|
|
4099
|
+
jpeg: "JPEG",
|
|
4100
|
+
webp: "WebP",
|
|
4101
|
+
gif: "GIF (animated)",
|
|
4102
|
+
svg: "SVG (vector)"
|
|
4103
|
+
};
|
|
4104
|
+
var IMAGE_SVG_LEVEL_LABELS = {
|
|
4105
|
+
standard: "SVG Standard",
|
|
4106
|
+
detailed: "SVG Detailed",
|
|
4107
|
+
max: "SVG Max"
|
|
4108
|
+
};
|
|
4109
|
+
function outputFormatOptionsByKind(kind) {
|
|
4110
|
+
const out = {};
|
|
4111
|
+
for (const m of Object.values(MODEL_CATALOG)) {
|
|
4112
|
+
if (m.kind !== kind || !m.outputFormats || m.outputFormats.length < 2) continue;
|
|
4113
|
+
out[m.id] = m.outputFormats.map((v) => ({ value: v, label: IMAGE_OUTPUT_FORMAT_LABELS[v] ?? v }));
|
|
4114
|
+
}
|
|
4115
|
+
return out;
|
|
4116
|
+
}
|
|
4117
|
+
function svgLevelOptionsByKind(kind) {
|
|
4118
|
+
const out = {};
|
|
4119
|
+
for (const m of Object.values(MODEL_CATALOG)) {
|
|
4120
|
+
if (m.kind !== kind || !m.outputFormats?.includes("svg") || !m.svgLevels) continue;
|
|
4121
|
+
out[m.id] = m.svgLevels.map((v) => ({ value: v, label: IMAGE_SVG_LEVEL_LABELS[v] ?? v }));
|
|
4122
|
+
}
|
|
4123
|
+
return out;
|
|
4124
|
+
}
|
|
3882
4125
|
function buildModelMenu(kind, allowlist) {
|
|
3883
4126
|
const resByModel = resolutionOptionsByKind(kind);
|
|
3884
4127
|
const arByModel = aspectRatioOptionsByKind(kind);
|
|
@@ -3918,6 +4161,6 @@ function modelIdsByKindMode(kind, modes, opts = {}) {
|
|
|
3918
4161
|
return ids;
|
|
3919
4162
|
}
|
|
3920
4163
|
|
|
3921
|
-
export { FLUX2_RES_MP, MODEL_CATALOG, MODEL_KINDS, MODEL_MAKERS, MODEL_RECOMMENDATIONS, SEEDANCE_DRAFT_FINALIZE_MAX_SEC, SEEDANCE_DRAFT_FINALIZE_MIN_SEC, SEEDANCE_DRAFT_FINALIZE_PROVIDER, SEEDANCE_DRAFT_FINALIZE_RESOLUTION, SEEDANCE_DRAFT_MODELS, SEEDANCE_DRAFT_RESOLUTION, SPEECH_UNIT_PRICE_NOTE, VIDEO_DURATION_AUTO, aspectRatioOptionsByKind, autoAspectNeedsSourceImage, backgroundOptionsByKind, buildModelMenu, creditRangesAll, defaultResolutionFor, durationsByMode, fitAspectRatioToModel, getAspectRatioOptions, getCreditRange, getDurationsForModel, getModel, getQualityOptions, getResolutionOptions, groupByFamily, groupByKindAndFamily, hasFeature, isAutoAspectToken, isAutoVideoDuration, isFlux2Model, isModelMakerId, isSeedanceDraftCapable, listModels, modelIdsByKindMode, modelMakerOf, modelTakesSeed, modelsWithFeature, nearestCatalogAspectRatio, normalizeModelInput, normalizeVideoRequestParams, qualityOptionsByKind, resolutionAtAspectRatio, resolutionOptionsByKind, resolutionsAtAspectRatio, seedanceDraftFinalizeBillableSec, seedanceDraftFinalizeCreditId, validateModelInput };
|
|
3922
|
-
//# sourceMappingURL=chunk-
|
|
3923
|
-
//# sourceMappingURL=chunk-
|
|
4164
|
+
export { FLUX2_RES_MP, IMAGE_GIF_FRAME_SIZE, IMAGE_OUTPUT_FORMAT_LABELS, IMAGE_SVG_LEVEL_LABELS, MASKLESS_OUTPUT_FORMATS, MODEL_CATALOG, MODEL_INPUT_ADJUSTMENT_FIELDS, MODEL_KINDS, MODEL_MAKERS, MODEL_RECOMMENDATIONS, SEEDANCE_DRAFT_FINALIZE_MAX_SEC, SEEDANCE_DRAFT_FINALIZE_MIN_SEC, SEEDANCE_DRAFT_FINALIZE_PROVIDER, SEEDANCE_DRAFT_FINALIZE_RESOLUTION, SEEDANCE_DRAFT_MODELS, SEEDANCE_DRAFT_RESOLUTION, SPEECH_UNIT_PRICE_NOTE, TRANSPARENT_OUTPUT_FORMATS, VIDEO_DURATION_AUTO, aspectRatioOptionsByKind, autoAspectNeedsSourceImage, backgroundOptionsByKind, buildModelMenu, creditRangesAll, defaultResolutionFor, durationsByMode, fitAspectRatioToModel, getAspectRatioOptions, getCreditRange, getDurationsForModel, getModel, getQualityOptions, getResolutionOptions, groupByFamily, groupByKindAndFamily, hasFeature, isAutoAspectToken, isAutoVideoDuration, isFlux2Model, isModelMakerId, isSeedanceDraftCapable, listModels, modelIdsByKindMode, modelMakerOf, modelTakesSeed, modelsWithFeature, nearestCatalogAspectRatio, normalizeModelInput, normalizeVideoRequestParams, outputFormatOptionsByKind, qualityOptionsByKind, resolutionAtAspectRatio, resolutionOptionsByKind, resolutionsAtAspectRatio, seedanceDraftFinalizeBillableSec, seedanceDraftFinalizeCreditId, svgLevelOptionsByKind, validateModelInput };
|
|
4165
|
+
//# sourceMappingURL=chunk-KOLC7AF2.js.map
|
|
4166
|
+
//# sourceMappingURL=chunk-KOLC7AF2.js.map
|