@nodaro/shared 3.59.0 → 3.60.1
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-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-2S7YYCRT.js → chunk-HYBACFYW.js} +4 -4
- package/dist/chunk-HYBACFYW.js.map +1 -0
- 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-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-NSZTHJZJ.cjs → chunk-W4M7TNXG.cjs} +39 -39
- package/dist/chunk-W4M7TNXG.cjs.map +1 -0
- 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 +5 -4
- package/dist/entries/models.d.ts +5 -4
- 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/cast-swap-limits.ts +2 -1
- 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-2S7YYCRT.js.map +0 -1
- 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-NSZTHJZJ.cjs.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
|
@@ -149,6 +149,11 @@ var GPT_IMAGE_2_6_VALUE_LABELS = {
|
|
|
149
149
|
"max": "Max"
|
|
150
150
|
};
|
|
151
151
|
var GPT_IMAGE_BACKGROUNDS = ["auto", "opaque", "transparent"];
|
|
152
|
+
var GPT_IMAGE_2_6_FORMATS = ["png", "jpeg", "webp", "gif", "svg"];
|
|
153
|
+
var GPT_IMAGE_2_6_GIF_FRAMES = { min: 2, max: 16, default: 9 };
|
|
154
|
+
var GPT_IMAGE_2_6_GIF_FRAME_DURATION = { min: 20, max: 2e3, step: 10, default: 200 };
|
|
155
|
+
var GPT_IMAGE_2_6_ECONOMY_GIF_FRAMES = { min: 4, max: 16, default: 9, values: [4, 9, 16] };
|
|
156
|
+
var GPT_IMAGE_2_6_SVG_LEVELS = ["standard", "detailed", "max"];
|
|
152
157
|
var IMAGEN4_RATIOS = ["1:1", "16:9", "9:16", "4:3", "3:4"];
|
|
153
158
|
var IDEOGRAM_RATIOS = ["1:1", "16:9", "9:16", "4:3", "3:4"];
|
|
154
159
|
var SEEDREAM_RATIOS = ["1:1", "16:9", "9:16", "4:3", "3:4", "3:2", "2:3", "21:9"];
|
|
@@ -673,7 +678,7 @@ var IMAGE_MODELS = {
|
|
|
673
678
|
maker: "openai",
|
|
674
679
|
label: "GPT Image 2.6 Flare",
|
|
675
680
|
series: "GPT Image",
|
|
676
|
-
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.",
|
|
681
|
+
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.",
|
|
677
682
|
useCases: ["typography", "high-res", "general", "draft"],
|
|
678
683
|
features: ["reference-image"],
|
|
679
684
|
aspectRatios: GPT_IMAGE_2_6_RATIOS,
|
|
@@ -683,6 +688,10 @@ var IMAGE_MODELS = {
|
|
|
683
688
|
defaultQuality: "medium",
|
|
684
689
|
backgrounds: GPT_IMAGE_BACKGROUNDS,
|
|
685
690
|
transparentResolution: "1K",
|
|
691
|
+
outputFormats: GPT_IMAGE_2_6_FORMATS,
|
|
692
|
+
gifFrames: GPT_IMAGE_2_6_GIF_FRAMES,
|
|
693
|
+
gifFrameDurationMs: GPT_IMAGE_2_6_GIF_FRAME_DURATION,
|
|
694
|
+
svgLevels: GPT_IMAGE_2_6_SVG_LEVELS,
|
|
686
695
|
pricing: [
|
|
687
696
|
{ identifier: "gpt-image-2-6-flare", credits: 20, note: "medium, 1K default" },
|
|
688
697
|
{ identifier: "gpt-image-2-6-flare:low:1K", credits: 12, note: "low, 1K" },
|
|
@@ -702,7 +711,34 @@ var IMAGE_MODELS = {
|
|
|
702
711
|
{ identifier: "gpt-image-2-6-flare:max:4K", credits: 321, note: "max, 4K" },
|
|
703
712
|
{ identifier: "gpt-image-2-6-flare:auto:1K", credits: 96, note: "auto, 1K: the most it can cost, settled on what it really cost" },
|
|
704
713
|
{ identifier: "gpt-image-2-6-flare:auto:2K", credits: 193, note: "auto, 2K: the most it can cost, settled on what it really cost" },
|
|
705
|
-
{ identifier: "gpt-image-2-6-flare:auto:4K", credits: 321, note: "auto, 4K: the most it can cost, settled on what it really cost" }
|
|
714
|
+
{ identifier: "gpt-image-2-6-flare:auto:4K", credits: 321, note: "auto, 4K: the most it can cost, settled on what it really cost" },
|
|
715
|
+
{ identifier: "gpt-image-2-6-flare:low:gif-2-8", credits: 8, note: "GIF, low, 2 to 8 frames" },
|
|
716
|
+
{ identifier: "gpt-image-2-6-flare:low:gif-9-12", credits: 17, note: "GIF, low, 9 to 12 frames" },
|
|
717
|
+
{ identifier: "gpt-image-2-6-flare:low:gif-13-16", credits: 23, note: "GIF, low, 13 to 16 frames" },
|
|
718
|
+
{ identifier: "gpt-image-2-6-flare:medium:gif-2-8", credits: 14, note: "GIF, medium, 2 to 8 frames" },
|
|
719
|
+
{ identifier: "gpt-image-2-6-flare:medium:gif-9-12", credits: 29, note: "GIF, medium, 9 to 12 frames" },
|
|
720
|
+
{ identifier: "gpt-image-2-6-flare:medium:gif-13-16", credits: 41, note: "GIF, medium, 13 to 16 frames" },
|
|
721
|
+
{ identifier: "gpt-image-2-6-flare:high:gif-2-8", credits: 17, note: "GIF, high, 2 to 8 frames" },
|
|
722
|
+
{ identifier: "gpt-image-2-6-flare:high:gif-9-12", credits: 35, note: "GIF, high, 9 to 12 frames" },
|
|
723
|
+
{ identifier: "gpt-image-2-6-flare:high:gif-13-16", credits: 49, note: "GIF, high, 13 to 16 frames" },
|
|
724
|
+
{ identifier: "gpt-image-2-6-flare:xhigh:gif-2-8", credits: 29, note: "GIF, extra high, 2 to 8 frames" },
|
|
725
|
+
{ identifier: "gpt-image-2-6-flare:xhigh:gif-9-12", credits: 61, note: "GIF, extra high, 9 to 12 frames" },
|
|
726
|
+
{ identifier: "gpt-image-2-6-flare:xhigh:gif-13-16", credits: 86, note: "GIF, extra high, 13 to 16 frames" },
|
|
727
|
+
{ identifier: "gpt-image-2-6-flare:max:gif-2-8", credits: 65, note: "GIF, max, 2 to 8 frames" },
|
|
728
|
+
{ identifier: "gpt-image-2-6-flare:max:gif-9-12", credits: 136, note: "GIF, max, 9 to 12 frames" },
|
|
729
|
+
{ identifier: "gpt-image-2-6-flare:max:gif-13-16", credits: 194, note: "GIF, max, 13 to 16 frames" },
|
|
730
|
+
{ 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" },
|
|
731
|
+
{ 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" },
|
|
732
|
+
{ 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" },
|
|
733
|
+
{ identifier: "gpt-image-2-6-flare:medium:1K:svg-standard", credits: 25, note: "SVG standard, medium, 1K" },
|
|
734
|
+
{ identifier: "gpt-image-2-6-flare:medium:2K:svg-standard", credits: 45, note: "SVG standard, medium, 2K" },
|
|
735
|
+
{ identifier: "gpt-image-2-6-flare:medium:4K:svg-standard", credits: 72, note: "SVG standard, medium, 4K" },
|
|
736
|
+
{ identifier: "gpt-image-2-6-flare:medium:1K:svg-detailed", credits: 64, note: "SVG detailed, medium, 1K" },
|
|
737
|
+
{ identifier: "gpt-image-2-6-flare:medium:2K:svg-detailed", credits: 84, note: "SVG detailed, medium, 2K" },
|
|
738
|
+
{ identifier: "gpt-image-2-6-flare:medium:4K:svg-detailed", credits: 111, note: "SVG detailed, medium, 4K" },
|
|
739
|
+
{ identifier: "gpt-image-2-6-flare:medium:1K:svg-max", credits: 81, note: "SVG max, medium, 1K" },
|
|
740
|
+
{ identifier: "gpt-image-2-6-flare:medium:2K:svg-max", credits: 101, note: "SVG max, medium, 2K" },
|
|
741
|
+
{ identifier: "gpt-image-2-6-flare:medium:4K:svg-max", credits: 128, note: "SVG max, medium, 4K" }
|
|
706
742
|
],
|
|
707
743
|
valueLabels: GPT_IMAGE_2_6_VALUE_LABELS,
|
|
708
744
|
safetyFilter: { stochastic: true, fallback: "nano-banana-pro" }
|
|
@@ -715,7 +751,7 @@ var IMAGE_MODELS = {
|
|
|
715
751
|
maker: "openai",
|
|
716
752
|
label: "GPT Image 2.6 Flare (I2I)",
|
|
717
753
|
series: "GPT Image",
|
|
718
|
-
description: "Fast GPT Image 2.6 edits - up to 16 input images, priced per image. Pick it while iterating.",
|
|
754
|
+
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.",
|
|
719
755
|
useCases: ["edit", "high-res"],
|
|
720
756
|
features: ["reference-image"],
|
|
721
757
|
aspectRatios: GPT_IMAGE_2_6_RATIOS,
|
|
@@ -725,13 +761,19 @@ var IMAGE_MODELS = {
|
|
|
725
761
|
defaultQuality: "medium",
|
|
726
762
|
backgrounds: GPT_IMAGE_BACKGROUNDS,
|
|
727
763
|
transparentResolution: "1K",
|
|
764
|
+
outputFormats: GPT_IMAGE_2_6_FORMATS,
|
|
765
|
+
gifFrames: GPT_IMAGE_2_6_GIF_FRAMES,
|
|
766
|
+
gifFrameDurationMs: GPT_IMAGE_2_6_GIF_FRAME_DURATION,
|
|
767
|
+
svgLevels: GPT_IMAGE_2_6_SVG_LEVELS,
|
|
728
768
|
pricing: [
|
|
729
769
|
{ identifier: "gpt-image-2-6-flare-i2i", credits: 20, note: "medium, 1K default" },
|
|
730
770
|
{ identifier: "gpt-image-2-6-flare-i2i:low:1K:1ref", credits: 17, note: "low, 1K, one input image (the least)" },
|
|
731
771
|
{ identifier: "gpt-image-2-6-flare-i2i:medium:1K:1ref", credits: 26, note: "medium, 1K, one input image" },
|
|
732
772
|
{ identifier: "gpt-image-2-6-flare-i2i:high:4K:16ref", credits: 169, note: "high, 4K, sixteen input images" },
|
|
733
773
|
{ identifier: "gpt-image-2-6-flare-i2i:max:4K:16ref", credits: 409, note: "max, 4K, sixteen input images (the most)" },
|
|
734
|
-
{ 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" }
|
|
774
|
+
{ 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" },
|
|
775
|
+
{ identifier: "gpt-image-2-6-flare-i2i:medium:gif-9-12:1ref", credits: 34, note: "GIF, medium, 9 to 12 frames, one input image" },
|
|
776
|
+
{ identifier: "gpt-image-2-6-flare-i2i:medium:1K:svg-standard:1ref", credits: 31, note: "SVG standard, medium, 1K, one input image" }
|
|
735
777
|
],
|
|
736
778
|
valueLabels: GPT_IMAGE_2_6_VALUE_LABELS,
|
|
737
779
|
safetyFilter: { stochastic: true, fallback: "nano-banana-pro" }
|
|
@@ -744,7 +786,7 @@ var IMAGE_MODELS = {
|
|
|
744
786
|
maker: "openai",
|
|
745
787
|
label: "GPT Image 2.6 Sunburst",
|
|
746
788
|
series: "GPT Image",
|
|
747
|
-
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.",
|
|
789
|
+
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.",
|
|
748
790
|
useCases: ["typography", "high-res", "general"],
|
|
749
791
|
features: ["reference-image"],
|
|
750
792
|
aspectRatios: GPT_IMAGE_2_6_RATIOS,
|
|
@@ -754,6 +796,10 @@ var IMAGE_MODELS = {
|
|
|
754
796
|
defaultQuality: "medium",
|
|
755
797
|
backgrounds: GPT_IMAGE_BACKGROUNDS,
|
|
756
798
|
transparentResolution: "1K",
|
|
799
|
+
outputFormats: GPT_IMAGE_2_6_FORMATS,
|
|
800
|
+
gifFrames: GPT_IMAGE_2_6_GIF_FRAMES,
|
|
801
|
+
gifFrameDurationMs: GPT_IMAGE_2_6_GIF_FRAME_DURATION,
|
|
802
|
+
svgLevels: GPT_IMAGE_2_6_SVG_LEVELS,
|
|
757
803
|
pricing: [
|
|
758
804
|
{ identifier: "gpt-image-2-6-sunburst", credits: 20, note: "medium, 1K default" },
|
|
759
805
|
{ identifier: "gpt-image-2-6-sunburst:low:1K", credits: 12, note: "low, 1K" },
|
|
@@ -773,7 +819,34 @@ var IMAGE_MODELS = {
|
|
|
773
819
|
{ identifier: "gpt-image-2-6-sunburst:max:4K", credits: 321, note: "max, 4K" },
|
|
774
820
|
{ identifier: "gpt-image-2-6-sunburst:auto:1K", credits: 96, note: "auto, 1K: the most it can cost, settled on what it really cost" },
|
|
775
821
|
{ identifier: "gpt-image-2-6-sunburst:auto:2K", credits: 193, note: "auto, 2K: the most it can cost, settled on what it really cost" },
|
|
776
|
-
{ identifier: "gpt-image-2-6-sunburst:auto:4K", credits: 321, note: "auto, 4K: the most it can cost, settled on what it really cost" }
|
|
822
|
+
{ identifier: "gpt-image-2-6-sunburst:auto:4K", credits: 321, note: "auto, 4K: the most it can cost, settled on what it really cost" },
|
|
823
|
+
{ identifier: "gpt-image-2-6-sunburst:low:gif-2-8", credits: 8, note: "GIF, low, 2 to 8 frames" },
|
|
824
|
+
{ identifier: "gpt-image-2-6-sunburst:low:gif-9-12", credits: 17, note: "GIF, low, 9 to 12 frames" },
|
|
825
|
+
{ identifier: "gpt-image-2-6-sunburst:low:gif-13-16", credits: 23, note: "GIF, low, 13 to 16 frames" },
|
|
826
|
+
{ identifier: "gpt-image-2-6-sunburst:medium:gif-2-8", credits: 14, note: "GIF, medium, 2 to 8 frames" },
|
|
827
|
+
{ identifier: "gpt-image-2-6-sunburst:medium:gif-9-12", credits: 29, note: "GIF, medium, 9 to 12 frames" },
|
|
828
|
+
{ identifier: "gpt-image-2-6-sunburst:medium:gif-13-16", credits: 41, note: "GIF, medium, 13 to 16 frames" },
|
|
829
|
+
{ identifier: "gpt-image-2-6-sunburst:high:gif-2-8", credits: 17, note: "GIF, high, 2 to 8 frames" },
|
|
830
|
+
{ identifier: "gpt-image-2-6-sunburst:high:gif-9-12", credits: 35, note: "GIF, high, 9 to 12 frames" },
|
|
831
|
+
{ identifier: "gpt-image-2-6-sunburst:high:gif-13-16", credits: 49, note: "GIF, high, 13 to 16 frames" },
|
|
832
|
+
{ identifier: "gpt-image-2-6-sunburst:xhigh:gif-2-8", credits: 29, note: "GIF, extra high, 2 to 8 frames" },
|
|
833
|
+
{ identifier: "gpt-image-2-6-sunburst:xhigh:gif-9-12", credits: 61, note: "GIF, extra high, 9 to 12 frames" },
|
|
834
|
+
{ identifier: "gpt-image-2-6-sunburst:xhigh:gif-13-16", credits: 86, note: "GIF, extra high, 13 to 16 frames" },
|
|
835
|
+
{ identifier: "gpt-image-2-6-sunburst:max:gif-2-8", credits: 65, note: "GIF, max, 2 to 8 frames" },
|
|
836
|
+
{ identifier: "gpt-image-2-6-sunburst:max:gif-9-12", credits: 136, note: "GIF, max, 9 to 12 frames" },
|
|
837
|
+
{ identifier: "gpt-image-2-6-sunburst:max:gif-13-16", credits: 194, note: "GIF, max, 13 to 16 frames" },
|
|
838
|
+
{ 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" },
|
|
839
|
+
{ 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" },
|
|
840
|
+
{ 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" },
|
|
841
|
+
{ identifier: "gpt-image-2-6-sunburst:medium:1K:svg-standard", credits: 25, note: "SVG standard, medium, 1K" },
|
|
842
|
+
{ identifier: "gpt-image-2-6-sunburst:medium:2K:svg-standard", credits: 45, note: "SVG standard, medium, 2K" },
|
|
843
|
+
{ identifier: "gpt-image-2-6-sunburst:medium:4K:svg-standard", credits: 72, note: "SVG standard, medium, 4K" },
|
|
844
|
+
{ identifier: "gpt-image-2-6-sunburst:medium:1K:svg-detailed", credits: 64, note: "SVG detailed, medium, 1K" },
|
|
845
|
+
{ identifier: "gpt-image-2-6-sunburst:medium:2K:svg-detailed", credits: 84, note: "SVG detailed, medium, 2K" },
|
|
846
|
+
{ identifier: "gpt-image-2-6-sunburst:medium:4K:svg-detailed", credits: 111, note: "SVG detailed, medium, 4K" },
|
|
847
|
+
{ identifier: "gpt-image-2-6-sunburst:medium:1K:svg-max", credits: 81, note: "SVG max, medium, 1K" },
|
|
848
|
+
{ identifier: "gpt-image-2-6-sunburst:medium:2K:svg-max", credits: 101, note: "SVG max, medium, 2K" },
|
|
849
|
+
{ identifier: "gpt-image-2-6-sunburst:medium:4K:svg-max", credits: 128, note: "SVG max, medium, 4K" }
|
|
777
850
|
],
|
|
778
851
|
valueLabels: GPT_IMAGE_2_6_VALUE_LABELS,
|
|
779
852
|
safetyFilter: { stochastic: true, fallback: "nano-banana-pro" }
|
|
@@ -786,7 +859,7 @@ var IMAGE_MODELS = {
|
|
|
786
859
|
maker: "openai",
|
|
787
860
|
label: "GPT Image 2.6 Sunburst (I2I)",
|
|
788
861
|
series: "GPT Image",
|
|
789
|
-
description: "Precision GPT Image 2.6 edits - up to 16 input images, priced per image. Pick it for finished, detail-critical edits.",
|
|
862
|
+
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.",
|
|
790
863
|
useCases: ["edit", "high-res"],
|
|
791
864
|
features: ["reference-image"],
|
|
792
865
|
aspectRatios: GPT_IMAGE_2_6_RATIOS,
|
|
@@ -796,13 +869,19 @@ var IMAGE_MODELS = {
|
|
|
796
869
|
defaultQuality: "medium",
|
|
797
870
|
backgrounds: GPT_IMAGE_BACKGROUNDS,
|
|
798
871
|
transparentResolution: "1K",
|
|
872
|
+
outputFormats: GPT_IMAGE_2_6_FORMATS,
|
|
873
|
+
gifFrames: GPT_IMAGE_2_6_GIF_FRAMES,
|
|
874
|
+
gifFrameDurationMs: GPT_IMAGE_2_6_GIF_FRAME_DURATION,
|
|
875
|
+
svgLevels: GPT_IMAGE_2_6_SVG_LEVELS,
|
|
799
876
|
pricing: [
|
|
800
877
|
{ identifier: "gpt-image-2-6-sunburst-i2i", credits: 20, note: "medium, 1K default" },
|
|
801
878
|
{ identifier: "gpt-image-2-6-sunburst-i2i:low:1K:1ref", credits: 17, note: "low, 1K, one input image (the least)" },
|
|
802
879
|
{ identifier: "gpt-image-2-6-sunburst-i2i:medium:1K:1ref", credits: 26, note: "medium, 1K, one input image" },
|
|
803
880
|
{ identifier: "gpt-image-2-6-sunburst-i2i:high:4K:16ref", credits: 169, note: "high, 4K, sixteen input images" },
|
|
804
881
|
{ identifier: "gpt-image-2-6-sunburst-i2i:max:4K:16ref", credits: 409, note: "max, 4K, sixteen input images (the most)" },
|
|
805
|
-
{ 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" }
|
|
882
|
+
{ 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" },
|
|
883
|
+
{ identifier: "gpt-image-2-6-sunburst-i2i:medium:gif-9-12:1ref", credits: 34, note: "GIF, medium, 9 to 12 frames, one input image" },
|
|
884
|
+
{ identifier: "gpt-image-2-6-sunburst-i2i:medium:1K:svg-standard:1ref", credits: 31, note: "SVG standard, medium, 1K, one input image" }
|
|
806
885
|
],
|
|
807
886
|
valueLabels: GPT_IMAGE_2_6_VALUE_LABELS,
|
|
808
887
|
safetyFilter: { stochastic: true, fallback: "nano-banana-pro" }
|
|
@@ -827,6 +906,11 @@ var IMAGE_MODELS = {
|
|
|
827
906
|
aspectRatios: GPT_IMAGE_2_6_ECONOMY_RATIOS,
|
|
828
907
|
autoAspectFromSourceImage: true,
|
|
829
908
|
backgrounds: GPT_IMAGE_BACKGROUNDS,
|
|
909
|
+
// A GIF is priced at the flat row for now: check its price on a real run
|
|
910
|
+
// before Economy is switched back on (backend gpt-image-2-6-pricing.ts).
|
|
911
|
+
outputFormats: ["png", "gif"],
|
|
912
|
+
gifFrames: GPT_IMAGE_2_6_ECONOMY_GIF_FRAMES,
|
|
913
|
+
gifFrameDurationMs: GPT_IMAGE_2_6_GIF_FRAME_DURATION,
|
|
830
914
|
pricing: [{ identifier: "gpt-image-2-6-economy", credits: 13, note: "1K flat" }],
|
|
831
915
|
valueLabels: GPT_IMAGE_2_6_VALUE_LABELS,
|
|
832
916
|
safetyFilter: { stochastic: true, fallback: "nano-banana-pro" }
|
|
@@ -846,6 +930,7 @@ var IMAGE_MODELS = {
|
|
|
846
930
|
aspectRatios: GPT_IMAGE_2_6_ECONOMY_RATIOS,
|
|
847
931
|
autoAspectFromSourceImage: true,
|
|
848
932
|
backgrounds: GPT_IMAGE_BACKGROUNDS,
|
|
933
|
+
outputFormats: ["png"],
|
|
849
934
|
pricing: [{ identifier: "gpt-image-2-6-economy-i2i", credits: 13, note: "1K flat" }],
|
|
850
935
|
valueLabels: GPT_IMAGE_2_6_VALUE_LABELS,
|
|
851
936
|
safetyFilter: { stochastic: true, fallback: "nano-banana-pro" }
|
|
@@ -3521,6 +3606,20 @@ function sameOptionValue(a, b) {
|
|
|
3521
3606
|
const fb = Number(nb);
|
|
3522
3607
|
return Number.isFinite(fa) && Number.isFinite(fb) && fa === fb;
|
|
3523
3608
|
}
|
|
3609
|
+
var MODEL_INPUT_ADJUSTMENT_FIELDS = [
|
|
3610
|
+
"aspectRatio",
|
|
3611
|
+
"resolution",
|
|
3612
|
+
"quality",
|
|
3613
|
+
"duration",
|
|
3614
|
+
"background",
|
|
3615
|
+
"outputFormat",
|
|
3616
|
+
"gifFrames",
|
|
3617
|
+
"gifFrameDurationMs",
|
|
3618
|
+
"svgLevel"
|
|
3619
|
+
];
|
|
3620
|
+
var IMAGE_GIF_FRAME_SIZE = 512;
|
|
3621
|
+
var MASKLESS_OUTPUT_FORMATS = ["gif", "svg"];
|
|
3622
|
+
var TRANSPARENT_OUTPUT_FORMATS = ["png", "webp"];
|
|
3524
3623
|
function isAutoAspectToken(value) {
|
|
3525
3624
|
return typeof value === "string" && value.trim().toLowerCase() === "auto";
|
|
3526
3625
|
}
|
|
@@ -3598,8 +3697,24 @@ function normalizeModelInput(modelId, input, context = {}) {
|
|
|
3598
3697
|
});
|
|
3599
3698
|
return next;
|
|
3600
3699
|
};
|
|
3601
|
-
const
|
|
3602
|
-
|
|
3700
|
+
const format = normalizeOutputFormat(m, input, adjustments);
|
|
3701
|
+
out.outputFormat = format.levers.outputFormat;
|
|
3702
|
+
out.gifFrames = format.levers.gifFrames;
|
|
3703
|
+
out.gifFrameDurationMs = format.levers.gifFrameDurationMs;
|
|
3704
|
+
out.svgLevel = format.levers.svgLevel;
|
|
3705
|
+
const gif = format.levers.outputFormat === "gif";
|
|
3706
|
+
const sourceRatio = !gif && autoAspectNeedsSourceImage(modelId, input.aspectRatio) && usableSize(context.sourceImage) ? nearestCatalogAspectRatio(context.sourceImage.width, context.sourceImage.height, m.aspectRatios ?? []) : void 0;
|
|
3707
|
+
if (gif) {
|
|
3708
|
+
if (input.aspectRatio !== void 0 && input.aspectRatio !== "1:1" && !isAutoAspectToken(input.aspectRatio)) {
|
|
3709
|
+
adjustments.push({
|
|
3710
|
+
field: "aspectRatio",
|
|
3711
|
+
from: input.aspectRatio,
|
|
3712
|
+
to: "1:1",
|
|
3713
|
+
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.`
|
|
3714
|
+
});
|
|
3715
|
+
}
|
|
3716
|
+
out.aspectRatio = input.aspectRatio === void 0 ? void 0 : "1:1";
|
|
3717
|
+
} else if (sourceRatio !== void 0 && input.aspectRatio !== void 0) {
|
|
3603
3718
|
const { width, height } = context.sourceImage;
|
|
3604
3719
|
const why = m.autoAspectFromSourceImage === true ? `${m.label}'s own "auto" does not keep the photo's shape` : `${m.label} has no "auto" aspect ratio`;
|
|
3605
3720
|
adjustments.push({
|
|
@@ -3612,14 +3727,39 @@ function normalizeModelInput(modelId, input, context = {}) {
|
|
|
3612
3727
|
} else {
|
|
3613
3728
|
out.aspectRatio = snap("aspectRatio", input.aspectRatio, m.aspectRatios);
|
|
3614
3729
|
}
|
|
3615
|
-
|
|
3616
|
-
|
|
3617
|
-
|
|
3618
|
-
|
|
3619
|
-
|
|
3620
|
-
|
|
3730
|
+
if (gif) {
|
|
3731
|
+
if (input.resolution !== void 0) {
|
|
3732
|
+
adjustments.push({
|
|
3733
|
+
field: "resolution",
|
|
3734
|
+
from: input.resolution,
|
|
3735
|
+
to: void 0,
|
|
3736
|
+
reason: `A GIF from ${m.label} is ${IMAGE_GIF_FRAME_SIZE}x${IMAGE_GIF_FRAME_SIZE} a frame, so the size does not apply.`
|
|
3737
|
+
});
|
|
3738
|
+
}
|
|
3739
|
+
out.resolution = void 0;
|
|
3740
|
+
} else {
|
|
3741
|
+
out.resolution = snap(
|
|
3742
|
+
"resolution",
|
|
3743
|
+
input.resolution,
|
|
3744
|
+
m.resolutions,
|
|
3745
|
+
defaultResolutionFor(modelId)
|
|
3746
|
+
);
|
|
3747
|
+
}
|
|
3621
3748
|
out.quality = snap("quality", input.quality, m.qualities, m.defaultQuality);
|
|
3622
3749
|
out.background = snap("background", input.background, m.backgrounds);
|
|
3750
|
+
const writes = format.levers.outputFormat;
|
|
3751
|
+
if (writes !== void 0 && out.background !== void 0 && out.background !== "auto") {
|
|
3752
|
+
const dropped = writes === "svg" || out.background === "transparent" && !TRANSPARENT_OUTPUT_FORMATS.includes(writes);
|
|
3753
|
+
if (dropped) {
|
|
3754
|
+
adjustments.push({
|
|
3755
|
+
field: "background",
|
|
3756
|
+
from: out.background,
|
|
3757
|
+
to: "auto",
|
|
3758
|
+
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()}.`
|
|
3759
|
+
});
|
|
3760
|
+
out.background = "auto";
|
|
3761
|
+
}
|
|
3762
|
+
}
|
|
3623
3763
|
out.duration = m.autoDuration === true && isAutoVideoDuration(input.duration) ? input.duration : snap("duration", input.duration, m.durations);
|
|
3624
3764
|
const sized = resolutionAtAspectRatio(modelId, out.aspectRatio, out.resolution);
|
|
3625
3765
|
if (out.resolution !== void 0 && sized !== void 0 && sized !== out.resolution) {
|
|
@@ -3654,6 +3794,81 @@ function normalizeModelInput(modelId, input, context = {}) {
|
|
|
3654
3794
|
}
|
|
3655
3795
|
return out;
|
|
3656
3796
|
}
|
|
3797
|
+
function normalizeOutputFormat(m, input, adjustments) {
|
|
3798
|
+
if (input.outputFormat === void 0) return { levers: {} };
|
|
3799
|
+
const asked = input.outputFormat.trim().toLowerCase();
|
|
3800
|
+
const value = asked === "jpg" ? "jpeg" : asked;
|
|
3801
|
+
const formats = m.outputFormats;
|
|
3802
|
+
if (!formats || formats.length === 0) {
|
|
3803
|
+
adjustments.push({
|
|
3804
|
+
field: "outputFormat",
|
|
3805
|
+
from: input.outputFormat,
|
|
3806
|
+
to: void 0,
|
|
3807
|
+
reason: `${m.label} has no outputFormat setting \u2014 the value was dropped.`
|
|
3808
|
+
});
|
|
3809
|
+
return { levers: {} };
|
|
3810
|
+
}
|
|
3811
|
+
let outputFormat = formats.find((f) => f === value);
|
|
3812
|
+
if (outputFormat === void 0) {
|
|
3813
|
+
outputFormat = formats[0];
|
|
3814
|
+
adjustments.push({
|
|
3815
|
+
field: "outputFormat",
|
|
3816
|
+
from: input.outputFormat,
|
|
3817
|
+
to: outputFormat,
|
|
3818
|
+
reason: `${m.label} does not write "${input.outputFormat}" \u2014 using "${outputFormat}" instead. Supported: ${formats.join(", ")}.`
|
|
3819
|
+
});
|
|
3820
|
+
}
|
|
3821
|
+
if (outputFormat === "gif") {
|
|
3822
|
+
return { levers: { outputFormat, gifFrames: gifFramesFor(m, input.gifFrames, adjustments), gifFrameDurationMs: gifFrameDurationFor(m, input.gifFrameDurationMs, adjustments) } };
|
|
3823
|
+
}
|
|
3824
|
+
if (outputFormat === "svg") {
|
|
3825
|
+
const levels = m.svgLevels ?? [];
|
|
3826
|
+
const askedLevel = input.svgLevel?.trim().toLowerCase();
|
|
3827
|
+
let svgLevel = askedLevel === void 0 ? levels[0] : levels.find((l) => l === askedLevel);
|
|
3828
|
+
if (input.svgLevel !== void 0 && svgLevel === void 0 && levels.length > 0) {
|
|
3829
|
+
svgLevel = levels[0];
|
|
3830
|
+
adjustments.push({
|
|
3831
|
+
field: "svgLevel",
|
|
3832
|
+
from: input.svgLevel,
|
|
3833
|
+
to: svgLevel,
|
|
3834
|
+
reason: `${m.label} does not draw an SVG at level "${input.svgLevel}" \u2014 using "${svgLevel}" instead. Supported: ${levels.join(", ")}.`
|
|
3835
|
+
});
|
|
3836
|
+
}
|
|
3837
|
+
return { levers: { outputFormat, ...svgLevel !== void 0 && { svgLevel } } };
|
|
3838
|
+
}
|
|
3839
|
+
return { levers: { outputFormat } };
|
|
3840
|
+
}
|
|
3841
|
+
function gifFramesFor(m, asked, adjustments) {
|
|
3842
|
+
const spec = m.gifFrames;
|
|
3843
|
+
if (!spec) return asked;
|
|
3844
|
+
if (asked === void 0 || !Number.isFinite(asked)) return spec.default;
|
|
3845
|
+
const inRange = Math.min(Math.max(Math.round(asked), spec.min), spec.max);
|
|
3846
|
+
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;
|
|
3847
|
+
if (frames !== asked) {
|
|
3848
|
+
adjustments.push({
|
|
3849
|
+
field: "gifFrames",
|
|
3850
|
+
from: asked,
|
|
3851
|
+
to: frames,
|
|
3852
|
+
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}.`
|
|
3853
|
+
});
|
|
3854
|
+
}
|
|
3855
|
+
return frames;
|
|
3856
|
+
}
|
|
3857
|
+
function gifFrameDurationFor(m, asked, adjustments) {
|
|
3858
|
+
const spec = m.gifFrameDurationMs;
|
|
3859
|
+
if (!spec) return asked;
|
|
3860
|
+
if (asked === void 0 || !Number.isFinite(asked)) return spec.default;
|
|
3861
|
+
const ms = Math.min(Math.max(Math.round(asked / spec.step) * spec.step, spec.min), spec.max);
|
|
3862
|
+
if (ms !== asked) {
|
|
3863
|
+
adjustments.push({
|
|
3864
|
+
field: "gifFrameDurationMs",
|
|
3865
|
+
from: asked,
|
|
3866
|
+
to: ms,
|
|
3867
|
+
reason: `${m.label} shows each GIF frame ${spec.min} to ${spec.max} ms, in steps of ${spec.step} \u2014 using ${ms}.`
|
|
3868
|
+
});
|
|
3869
|
+
}
|
|
3870
|
+
return ms;
|
|
3871
|
+
}
|
|
3657
3872
|
var PASSTHROUGH_ASPECT_TOKENS = /* @__PURE__ */ new Set(["auto", "adaptive"]);
|
|
3658
3873
|
var RESOLUTION_BAND_PIXELS = {
|
|
3659
3874
|
"2k": 1440,
|
|
@@ -3881,6 +4096,34 @@ function backgroundOptionsByKind(kind) {
|
|
|
3881
4096
|
}
|
|
3882
4097
|
return out;
|
|
3883
4098
|
}
|
|
4099
|
+
var IMAGE_OUTPUT_FORMAT_LABELS = {
|
|
4100
|
+
png: "PNG",
|
|
4101
|
+
jpeg: "JPEG",
|
|
4102
|
+
webp: "WebP",
|
|
4103
|
+
gif: "GIF (animated)",
|
|
4104
|
+
svg: "SVG (vector)"
|
|
4105
|
+
};
|
|
4106
|
+
var IMAGE_SVG_LEVEL_LABELS = {
|
|
4107
|
+
standard: "SVG Standard",
|
|
4108
|
+
detailed: "SVG Detailed",
|
|
4109
|
+
max: "SVG Max"
|
|
4110
|
+
};
|
|
4111
|
+
function outputFormatOptionsByKind(kind) {
|
|
4112
|
+
const out = {};
|
|
4113
|
+
for (const m of Object.values(MODEL_CATALOG)) {
|
|
4114
|
+
if (m.kind !== kind || !m.outputFormats || m.outputFormats.length < 2) continue;
|
|
4115
|
+
out[m.id] = m.outputFormats.map((v) => ({ value: v, label: IMAGE_OUTPUT_FORMAT_LABELS[v] ?? v }));
|
|
4116
|
+
}
|
|
4117
|
+
return out;
|
|
4118
|
+
}
|
|
4119
|
+
function svgLevelOptionsByKind(kind) {
|
|
4120
|
+
const out = {};
|
|
4121
|
+
for (const m of Object.values(MODEL_CATALOG)) {
|
|
4122
|
+
if (m.kind !== kind || !m.outputFormats?.includes("svg") || !m.svgLevels) continue;
|
|
4123
|
+
out[m.id] = m.svgLevels.map((v) => ({ value: v, label: IMAGE_SVG_LEVEL_LABELS[v] ?? v }));
|
|
4124
|
+
}
|
|
4125
|
+
return out;
|
|
4126
|
+
}
|
|
3884
4127
|
function buildModelMenu(kind, allowlist) {
|
|
3885
4128
|
const resByModel = resolutionOptionsByKind(kind);
|
|
3886
4129
|
const arByModel = aspectRatioOptionsByKind(kind);
|
|
@@ -3921,7 +4164,12 @@ function modelIdsByKindMode(kind, modes, opts = {}) {
|
|
|
3921
4164
|
}
|
|
3922
4165
|
|
|
3923
4166
|
exports.FLUX2_RES_MP = FLUX2_RES_MP;
|
|
4167
|
+
exports.IMAGE_GIF_FRAME_SIZE = IMAGE_GIF_FRAME_SIZE;
|
|
4168
|
+
exports.IMAGE_OUTPUT_FORMAT_LABELS = IMAGE_OUTPUT_FORMAT_LABELS;
|
|
4169
|
+
exports.IMAGE_SVG_LEVEL_LABELS = IMAGE_SVG_LEVEL_LABELS;
|
|
4170
|
+
exports.MASKLESS_OUTPUT_FORMATS = MASKLESS_OUTPUT_FORMATS;
|
|
3924
4171
|
exports.MODEL_CATALOG = MODEL_CATALOG;
|
|
4172
|
+
exports.MODEL_INPUT_ADJUSTMENT_FIELDS = MODEL_INPUT_ADJUSTMENT_FIELDS;
|
|
3925
4173
|
exports.MODEL_KINDS = MODEL_KINDS;
|
|
3926
4174
|
exports.MODEL_MAKERS = MODEL_MAKERS;
|
|
3927
4175
|
exports.MODEL_RECOMMENDATIONS = MODEL_RECOMMENDATIONS;
|
|
@@ -3932,6 +4180,7 @@ exports.SEEDANCE_DRAFT_FINALIZE_RESOLUTION = SEEDANCE_DRAFT_FINALIZE_RESOLUTION;
|
|
|
3932
4180
|
exports.SEEDANCE_DRAFT_MODELS = SEEDANCE_DRAFT_MODELS;
|
|
3933
4181
|
exports.SEEDANCE_DRAFT_RESOLUTION = SEEDANCE_DRAFT_RESOLUTION;
|
|
3934
4182
|
exports.SPEECH_UNIT_PRICE_NOTE = SPEECH_UNIT_PRICE_NOTE;
|
|
4183
|
+
exports.TRANSPARENT_OUTPUT_FORMATS = TRANSPARENT_OUTPUT_FORMATS;
|
|
3935
4184
|
exports.VIDEO_DURATION_AUTO = VIDEO_DURATION_AUTO;
|
|
3936
4185
|
exports.aspectRatioOptionsByKind = aspectRatioOptionsByKind;
|
|
3937
4186
|
exports.autoAspectNeedsSourceImage = autoAspectNeedsSourceImage;
|
|
@@ -3963,12 +4212,14 @@ exports.modelsWithFeature = modelsWithFeature;
|
|
|
3963
4212
|
exports.nearestCatalogAspectRatio = nearestCatalogAspectRatio;
|
|
3964
4213
|
exports.normalizeModelInput = normalizeModelInput;
|
|
3965
4214
|
exports.normalizeVideoRequestParams = normalizeVideoRequestParams;
|
|
4215
|
+
exports.outputFormatOptionsByKind = outputFormatOptionsByKind;
|
|
3966
4216
|
exports.qualityOptionsByKind = qualityOptionsByKind;
|
|
3967
4217
|
exports.resolutionAtAspectRatio = resolutionAtAspectRatio;
|
|
3968
4218
|
exports.resolutionOptionsByKind = resolutionOptionsByKind;
|
|
3969
4219
|
exports.resolutionsAtAspectRatio = resolutionsAtAspectRatio;
|
|
3970
4220
|
exports.seedanceDraftFinalizeBillableSec = seedanceDraftFinalizeBillableSec;
|
|
3971
4221
|
exports.seedanceDraftFinalizeCreditId = seedanceDraftFinalizeCreditId;
|
|
4222
|
+
exports.svgLevelOptionsByKind = svgLevelOptionsByKind;
|
|
3972
4223
|
exports.validateModelInput = validateModelInput;
|
|
3973
|
-
//# sourceMappingURL=chunk-
|
|
3974
|
-
//# sourceMappingURL=chunk-
|
|
4224
|
+
//# sourceMappingURL=chunk-A6HRY3WF.cjs.map
|
|
4225
|
+
//# sourceMappingURL=chunk-A6HRY3WF.cjs.map
|