@nodaro/shared 3.58.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.
Files changed (172) hide show
  1. package/dist/{chunk-OWNPYQSH.cjs → chunk-4GGLKRYI.cjs} +16 -3
  2. package/dist/chunk-4GGLKRYI.cjs.map +1 -0
  3. package/dist/{chunk-5PJC4ZWO.cjs → chunk-5G23AJBU.cjs} +6 -6
  4. package/dist/{chunk-5PJC4ZWO.cjs.map → chunk-5G23AJBU.cjs.map} +1 -1
  5. package/dist/{chunk-IKOKRJDI.cjs → chunk-5HK5Z5OB.cjs} +4 -4
  6. package/dist/{chunk-IKOKRJDI.cjs.map → chunk-5HK5Z5OB.cjs.map} +1 -1
  7. package/dist/{chunk-WLFT5UVV.cjs → chunk-5Y42RIGY.cjs} +8 -8
  8. package/dist/{chunk-WLFT5UVV.cjs.map → chunk-5Y42RIGY.cjs.map} +1 -1
  9. package/dist/{chunk-L26G7B27.js → chunk-6AJOTEVC.js} +3 -3
  10. package/dist/{chunk-L26G7B27.js.map → chunk-6AJOTEVC.js.map} +1 -1
  11. package/dist/{chunk-OMUYZKRB.js → chunk-6Q6SI7AG.js} +3 -3
  12. package/dist/{chunk-OMUYZKRB.js.map → chunk-6Q6SI7AG.js.map} +1 -1
  13. package/dist/{chunk-4ZZ6SVIQ.cjs → chunk-A6HRY3WF.cjs} +269 -37
  14. package/dist/chunk-A6HRY3WF.cjs.map +1 -0
  15. package/dist/{chunk-ZX6RRM6R.cjs → chunk-AXT7YNOR.cjs} +51 -51
  16. package/dist/{chunk-ZX6RRM6R.cjs.map → chunk-AXT7YNOR.cjs.map} +1 -1
  17. package/dist/{chunk-ODTZV3BW.js → chunk-AZGONXWV.js} +4 -4
  18. package/dist/{chunk-ODTZV3BW.js.map → chunk-AZGONXWV.js.map} +1 -1
  19. package/dist/{chunk-S5VBJJUT.cjs → chunk-BDXXOEBZ.cjs} +80 -57
  20. package/dist/chunk-BDXXOEBZ.cjs.map +1 -0
  21. package/dist/{chunk-QPBBIRLF.cjs → chunk-BGIJO5V4.cjs} +39 -39
  22. package/dist/{chunk-QPBBIRLF.cjs.map → chunk-BGIJO5V4.cjs.map} +1 -1
  23. package/dist/{chunk-NZRG5CXQ.cjs → chunk-BLJUCPMV.cjs} +5 -2
  24. package/dist/chunk-BLJUCPMV.cjs.map +1 -0
  25. package/dist/{chunk-KYHDKKUJ.cjs → chunk-BXNPO3PL.cjs} +8 -8
  26. package/dist/{chunk-KYHDKKUJ.cjs.map → chunk-BXNPO3PL.cjs.map} +1 -1
  27. package/dist/{chunk-S7FCFQ6X.js → chunk-CF4S4N5X.js} +16 -4
  28. package/dist/chunk-CF4S4N5X.js.map +1 -0
  29. package/dist/{chunk-4UUX62S3.cjs → chunk-CIOXUPCJ.cjs} +12 -12
  30. package/dist/{chunk-4UUX62S3.cjs.map → chunk-CIOXUPCJ.cjs.map} +1 -1
  31. package/dist/{chunk-5UVBFY2G.cjs → chunk-DQIJPDHC.cjs} +11 -11
  32. package/dist/{chunk-5UVBFY2G.cjs.map → chunk-DQIJPDHC.cjs.map} +1 -1
  33. package/dist/{chunk-UMPZR56R.js → chunk-DS2TOM32.js} +3 -3
  34. package/dist/{chunk-UMPZR56R.js.map → chunk-DS2TOM32.js.map} +1 -1
  35. package/dist/{chunk-K6UMB37V.js → chunk-EN2YI5TV.js} +3 -3
  36. package/dist/{chunk-K6UMB37V.js.map → chunk-EN2YI5TV.js.map} +1 -1
  37. package/dist/{chunk-SEQ5L72K.js → chunk-G6GMY5BC.js} +21 -4
  38. package/dist/chunk-G6GMY5BC.js.map +1 -0
  39. package/dist/chunk-G7ZYZQKO.cjs +27 -0
  40. package/dist/{chunk-QCW6J6BQ.cjs.map → chunk-G7ZYZQKO.cjs.map} +1 -1
  41. package/dist/{chunk-WBERPAXE.cjs → chunk-GNPJ2JLE.cjs} +6 -6
  42. package/dist/{chunk-WBERPAXE.cjs.map → chunk-GNPJ2JLE.cjs.map} +1 -1
  43. package/dist/{chunk-VZXRDSWA.cjs → chunk-GWBQ3GPO.cjs} +43 -21
  44. package/dist/chunk-GWBQ3GPO.cjs.map +1 -0
  45. package/dist/{chunk-DCP7JFSE.cjs → chunk-HDHLZK7C.cjs} +5 -5
  46. package/dist/{chunk-DCP7JFSE.cjs.map → chunk-HDHLZK7C.cjs.map} +1 -1
  47. package/dist/{chunk-QVPIO2NU.cjs → chunk-HNEF2N5C.cjs} +5 -5
  48. package/dist/{chunk-QVPIO2NU.cjs.map → chunk-HNEF2N5C.cjs.map} +1 -1
  49. package/dist/{chunk-7JM5EZF3.cjs → chunk-HOKWJXHA.cjs} +13 -13
  50. package/dist/{chunk-7JM5EZF3.cjs.map → chunk-HOKWJXHA.cjs.map} +1 -1
  51. package/dist/{chunk-FVKCNAEQ.js → chunk-HP3YIWNJ.js} +9 -4
  52. package/dist/chunk-HP3YIWNJ.js.map +1 -0
  53. package/dist/{chunk-UJJUX6NW.cjs → chunk-HW6TLOK4.cjs} +9 -3
  54. package/dist/chunk-HW6TLOK4.cjs.map +1 -0
  55. package/dist/{chunk-A5ESI2NY.js → chunk-ICDLYU4I.js} +9 -9
  56. package/dist/{chunk-A5ESI2NY.js.map → chunk-ICDLYU4I.js.map} +1 -1
  57. package/dist/{chunk-JUEFRVHZ.js → chunk-IV6IDECY.js} +4 -4
  58. package/dist/{chunk-JUEFRVHZ.js.map → chunk-IV6IDECY.js.map} +1 -1
  59. package/dist/{chunk-HEUWAIXG.js → chunk-JKZVRKN3.js} +36 -14
  60. package/dist/chunk-JKZVRKN3.js.map +1 -0
  61. package/dist/{chunk-ZMH56CLL.js → chunk-KJZVQIN4.js} +3 -3
  62. package/dist/{chunk-ZMH56CLL.js.map → chunk-KJZVQIN4.js.map} +1 -1
  63. package/dist/{chunk-6CYS7VRH.js → chunk-KOLC7AF2.js} +262 -38
  64. package/dist/chunk-KOLC7AF2.js.map +1 -0
  65. package/dist/{chunk-CNSRCZYY.js → chunk-LN3EVFRS.js} +5 -5
  66. package/dist/{chunk-CNSRCZYY.js.map → chunk-LN3EVFRS.js.map} +1 -1
  67. package/dist/{chunk-DC2QPACA.js → chunk-MHY47BLL.js} +4 -4
  68. package/dist/{chunk-DC2QPACA.js.map → chunk-MHY47BLL.js.map} +1 -1
  69. package/dist/{chunk-AWS4BWEC.js → chunk-Q6IES3U2.js} +5 -2
  70. package/dist/chunk-Q6IES3U2.js.map +1 -0
  71. package/dist/{chunk-PK4ZR2SK.cjs → chunk-RRPPXZ36.cjs} +4 -4
  72. package/dist/{chunk-PK4ZR2SK.cjs.map → chunk-RRPPXZ36.cjs.map} +1 -1
  73. package/dist/{chunk-6TFWFYYI.js → chunk-SCYBGTX6.js} +3 -3
  74. package/dist/{chunk-6TFWFYYI.js.map → chunk-SCYBGTX6.js.map} +1 -1
  75. package/dist/{chunk-I7NG2D6X.cjs → chunk-SKFJIFEV.cjs} +21 -21
  76. package/dist/{chunk-I7NG2D6X.cjs.map → chunk-SKFJIFEV.cjs.map} +1 -1
  77. package/dist/{chunk-VVGSIWNL.js → chunk-TZ42IVSF.js} +4 -4
  78. package/dist/{chunk-VVGSIWNL.js.map → chunk-TZ42IVSF.js.map} +1 -1
  79. package/dist/{chunk-IQBIH3AE.js → chunk-URLDVK67.js} +3 -3
  80. package/dist/{chunk-IQBIH3AE.js.map → chunk-URLDVK67.js.map} +1 -1
  81. package/dist/{chunk-IOET54EV.js → chunk-VB2ARGQ6.js} +35 -3
  82. package/dist/chunk-VB2ARGQ6.js.map +1 -0
  83. package/dist/{chunk-BSENM6HM.js → chunk-VYQ25YQF.js} +3 -3
  84. package/dist/{chunk-BSENM6HM.js.map → chunk-VYQ25YQF.js.map} +1 -1
  85. package/dist/{chunk-QSWUSXRL.cjs → chunk-WGKAOUEQ.cjs} +41 -2
  86. package/dist/chunk-WGKAOUEQ.cjs.map +1 -0
  87. package/dist/{chunk-M7SMSAOU.js → chunk-YHVEZVAO.js} +4 -4
  88. package/dist/{chunk-M7SMSAOU.js.map → chunk-YHVEZVAO.js.map} +1 -1
  89. package/dist/entries/apps.cjs +43 -43
  90. package/dist/entries/apps.js +8 -8
  91. package/dist/entries/credits.cjs +155 -151
  92. package/dist/entries/credits.d.cts +32 -3
  93. package/dist/entries/credits.d.ts +32 -3
  94. package/dist/entries/credits.js +8 -8
  95. package/dist/entries/edl.cjs +63 -59
  96. package/dist/entries/edl.d.cts +15 -1
  97. package/dist/entries/edl.d.ts +15 -1
  98. package/dist/entries/edl.js +1 -1
  99. package/dist/entries/llm-models.d.cts +1 -1
  100. package/dist/entries/llm-models.d.ts +1 -1
  101. package/dist/entries/model-catalog.cjs +144 -84
  102. package/dist/entries/model-catalog.d.cts +4 -47
  103. package/dist/entries/model-catalog.d.ts +4 -47
  104. package/dist/entries/model-catalog.js +5 -5
  105. package/dist/entries/models.cjs +308 -288
  106. package/dist/entries/models.d.cts +3 -3
  107. package/dist/entries/models.d.ts +3 -3
  108. package/dist/entries/models.js +4 -4
  109. package/dist/entries/nodes.cjs +208 -208
  110. package/dist/entries/nodes.d.cts +1 -1
  111. package/dist/entries/nodes.d.ts +1 -1
  112. package/dist/entries/nodes.js +10 -10
  113. package/dist/entries/pipeline.cjs +152 -152
  114. package/dist/entries/pipeline.d.cts +1 -1
  115. package/dist/entries/pipeline.d.ts +1 -1
  116. package/dist/entries/pipeline.js +3 -3
  117. package/dist/entries/runtime-config.cjs +32 -28
  118. package/dist/entries/runtime-config.d.cts +24 -2
  119. package/dist/entries/runtime-config.d.ts +24 -2
  120. package/dist/entries/runtime-config.js +1 -1
  121. package/dist/entries/ugc.cjs +71 -71
  122. package/dist/entries/ugc.js +4 -4
  123. package/dist/entries/video.cjs +117 -117
  124. package/dist/entries/video.js +4 -4
  125. package/dist/entries/workflow.cjs +147 -147
  126. package/dist/entries/workflow.d.cts +8 -0
  127. package/dist/entries/workflow.d.ts +8 -0
  128. package/dist/entries/workflow.js +2 -2
  129. package/dist/gpt-image-2-6-BeZdT-pW.d.cts +98 -0
  130. package/dist/gpt-image-2-6-BeZdT-pW.d.ts +98 -0
  131. package/dist/index.cjs +1412 -1320
  132. package/dist/index.d.cts +7 -6
  133. package/dist/index.d.ts +7 -6
  134. package/dist/index.js +22 -22
  135. package/dist/{model-catalog-CCsA1isC.d.ts → model-catalog-D6Es7VG-.d.cts} +59 -3
  136. package/dist/{model-catalog-CCsA1isC.d.cts → model-catalog-D6Es7VG-.d.ts} +59 -3
  137. package/dist/{model-constants-BtXkUsX3.d.cts → model-constants-22k3fjp1.d.cts} +22 -1
  138. package/dist/{model-constants-BtXkUsX3.d.ts → model-constants-22k3fjp1.d.ts} +22 -1
  139. package/package.json +1 -1
  140. package/src/__tests__/camera-switch-contract.test.ts +12 -3
  141. package/src/__tests__/credit-identifiers.test.ts +18 -9
  142. package/src/__tests__/gpt-image-2-6-formats.test.ts +171 -0
  143. package/src/__tests__/gpt-image-2-size-rules.test.ts +80 -0
  144. package/src/__tests__/normalize-model-input.test.ts +10 -10
  145. package/src/__tests__/runtime-config.test.ts +28 -0
  146. package/src/camera-switch-contract.ts +13 -1
  147. package/src/credit-identifiers.ts +63 -3
  148. package/src/entries/credits.ts +1 -0
  149. package/src/entries/model-catalog.ts +17 -0
  150. package/src/entries/models.ts +7 -0
  151. package/src/entries/runtime-config.ts +1 -0
  152. package/src/gpt-image-2-6.ts +72 -0
  153. package/src/model-catalog.ts +350 -40
  154. package/src/model-constants.ts +40 -0
  155. package/src/node-execution-state.ts +8 -0
  156. package/src/node-runtime-keys.ts +3 -0
  157. package/src/runtime-config/contract.ts +34 -0
  158. package/dist/chunk-4ZZ6SVIQ.cjs.map +0 -1
  159. package/dist/chunk-6CYS7VRH.js.map +0 -1
  160. package/dist/chunk-AWS4BWEC.js.map +0 -1
  161. package/dist/chunk-FVKCNAEQ.js.map +0 -1
  162. package/dist/chunk-HEUWAIXG.js.map +0 -1
  163. package/dist/chunk-IOET54EV.js.map +0 -1
  164. package/dist/chunk-NZRG5CXQ.cjs.map +0 -1
  165. package/dist/chunk-OWNPYQSH.cjs.map +0 -1
  166. package/dist/chunk-QCW6J6BQ.cjs +0 -27
  167. package/dist/chunk-QSWUSXRL.cjs.map +0 -1
  168. package/dist/chunk-S5VBJJUT.cjs.map +0 -1
  169. package/dist/chunk-S7FCFQ6X.js.map +0 -1
  170. package/dist/chunk-SEQ5L72K.js.map +0 -1
  171. package/dist/chunk-UJJUX6NW.cjs.map +0 -1
  172. package/dist/chunk-VZXRDSWA.cjs.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 sourceRatio = autoAspectNeedsSourceImage(modelId, input.aspectRatio) && usableSize(context.sourceImage) ? nearestCatalogAspectRatio(context.sourceImage.width, context.sourceImage.height, m.aspectRatios ?? []) : void 0;
3602
- if (sourceRatio !== void 0 && input.aspectRatio !== void 0) {
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
- out.resolution = snap(
3616
- "resolution",
3617
- input.resolution,
3618
- m.resolutions,
3619
- defaultResolutionFor(modelId)
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) {
@@ -3632,25 +3772,6 @@ function normalizeModelInput(modelId, input, context = {}) {
3632
3772
  });
3633
3773
  out.resolution = sized;
3634
3774
  }
3635
- if (modelId === "gpt-image-2" || modelId === "gpt-image-2-i2i") {
3636
- if (out.aspectRatio === "auto" && out.resolution !== void 0 && out.resolution !== "1K") {
3637
- adjustments.push({
3638
- field: "resolution",
3639
- from: out.resolution,
3640
- to: "1K",
3641
- reason: `${m.label} only renders 1K at the "auto" aspect ratio.`
3642
- });
3643
- out.resolution = "1K";
3644
- } else if (out.aspectRatio === "1:1" && out.resolution === "4K") {
3645
- adjustments.push({
3646
- field: "resolution",
3647
- from: "4K",
3648
- to: "2K",
3649
- reason: `${m.label} cannot render 4K at a 1:1 aspect ratio.`
3650
- });
3651
- out.resolution = "2K";
3652
- }
3653
- }
3654
3775
  if (out.background === "transparent" && m.transparentResolution !== void 0 && out.resolution !== void 0 && out.resolution !== m.transparentResolution) {
3655
3776
  adjustments.push({
3656
3777
  field: "resolution",
@@ -3673,6 +3794,81 @@ function normalizeModelInput(modelId, input, context = {}) {
3673
3794
  }
3674
3795
  return out;
3675
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
+ }
3676
3872
  var PASSTHROUGH_ASPECT_TOKENS = /* @__PURE__ */ new Set(["auto", "adaptive"]);
3677
3873
  var RESOLUTION_BAND_PIXELS = {
3678
3874
  "2k": 1440,
@@ -3900,6 +4096,34 @@ function backgroundOptionsByKind(kind) {
3900
4096
  }
3901
4097
  return out;
3902
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
+ }
3903
4127
  function buildModelMenu(kind, allowlist) {
3904
4128
  const resByModel = resolutionOptionsByKind(kind);
3905
4129
  const arByModel = aspectRatioOptionsByKind(kind);
@@ -3940,7 +4164,12 @@ function modelIdsByKindMode(kind, modes, opts = {}) {
3940
4164
  }
3941
4165
 
3942
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;
3943
4171
  exports.MODEL_CATALOG = MODEL_CATALOG;
4172
+ exports.MODEL_INPUT_ADJUSTMENT_FIELDS = MODEL_INPUT_ADJUSTMENT_FIELDS;
3944
4173
  exports.MODEL_KINDS = MODEL_KINDS;
3945
4174
  exports.MODEL_MAKERS = MODEL_MAKERS;
3946
4175
  exports.MODEL_RECOMMENDATIONS = MODEL_RECOMMENDATIONS;
@@ -3951,6 +4180,7 @@ exports.SEEDANCE_DRAFT_FINALIZE_RESOLUTION = SEEDANCE_DRAFT_FINALIZE_RESOLUTION;
3951
4180
  exports.SEEDANCE_DRAFT_MODELS = SEEDANCE_DRAFT_MODELS;
3952
4181
  exports.SEEDANCE_DRAFT_RESOLUTION = SEEDANCE_DRAFT_RESOLUTION;
3953
4182
  exports.SPEECH_UNIT_PRICE_NOTE = SPEECH_UNIT_PRICE_NOTE;
4183
+ exports.TRANSPARENT_OUTPUT_FORMATS = TRANSPARENT_OUTPUT_FORMATS;
3954
4184
  exports.VIDEO_DURATION_AUTO = VIDEO_DURATION_AUTO;
3955
4185
  exports.aspectRatioOptionsByKind = aspectRatioOptionsByKind;
3956
4186
  exports.autoAspectNeedsSourceImage = autoAspectNeedsSourceImage;
@@ -3982,12 +4212,14 @@ exports.modelsWithFeature = modelsWithFeature;
3982
4212
  exports.nearestCatalogAspectRatio = nearestCatalogAspectRatio;
3983
4213
  exports.normalizeModelInput = normalizeModelInput;
3984
4214
  exports.normalizeVideoRequestParams = normalizeVideoRequestParams;
4215
+ exports.outputFormatOptionsByKind = outputFormatOptionsByKind;
3985
4216
  exports.qualityOptionsByKind = qualityOptionsByKind;
3986
4217
  exports.resolutionAtAspectRatio = resolutionAtAspectRatio;
3987
4218
  exports.resolutionOptionsByKind = resolutionOptionsByKind;
3988
4219
  exports.resolutionsAtAspectRatio = resolutionsAtAspectRatio;
3989
4220
  exports.seedanceDraftFinalizeBillableSec = seedanceDraftFinalizeBillableSec;
3990
4221
  exports.seedanceDraftFinalizeCreditId = seedanceDraftFinalizeCreditId;
4222
+ exports.svgLevelOptionsByKind = svgLevelOptionsByKind;
3991
4223
  exports.validateModelInput = validateModelInput;
3992
- //# sourceMappingURL=chunk-4ZZ6SVIQ.cjs.map
3993
- //# sourceMappingURL=chunk-4ZZ6SVIQ.cjs.map
4224
+ //# sourceMappingURL=chunk-A6HRY3WF.cjs.map
4225
+ //# sourceMappingURL=chunk-A6HRY3WF.cjs.map