@nodaro/shared 3.54.1 → 3.56.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 (195) hide show
  1. package/dist/{chunk-3CHOZ573.js → chunk-2AR3OXAA.js} +276 -17
  2. package/dist/chunk-2AR3OXAA.js.map +1 -0
  3. package/dist/{chunk-ZKHQSG76.js → chunk-2J6NTA5I.js} +4 -4
  4. package/dist/{chunk-ZKHQSG76.js.map → chunk-2J6NTA5I.js.map} +1 -1
  5. package/dist/{chunk-AGTCHDG5.cjs → chunk-33P5FI2U.cjs} +6 -6
  6. package/dist/{chunk-AGTCHDG5.cjs.map → chunk-33P5FI2U.cjs.map} +1 -1
  7. package/dist/{chunk-HG3KKCJJ.js → chunk-4JODLC2N.js} +3 -3
  8. package/dist/{chunk-HG3KKCJJ.js.map → chunk-4JODLC2N.js.map} +1 -1
  9. package/dist/{chunk-N3WL6IOJ.js → chunk-4O5STV7N.js} +55 -5
  10. package/dist/chunk-4O5STV7N.js.map +1 -0
  11. package/dist/chunk-4ONS6QRT.js +42 -0
  12. package/dist/chunk-4ONS6QRT.js.map +1 -0
  13. package/dist/{chunk-E4YES25K.js → chunk-55FQBILM.js} +4 -4
  14. package/dist/{chunk-E4YES25K.js.map → chunk-55FQBILM.js.map} +1 -1
  15. package/dist/{chunk-ZWB3NG4M.js → chunk-62ZQQA7L.js} +3 -3
  16. package/dist/{chunk-ZWB3NG4M.js.map → chunk-62ZQQA7L.js.map} +1 -1
  17. package/dist/{chunk-HEF4BIMA.js → chunk-6GGHM33Z.js} +4 -4
  18. package/dist/{chunk-HEF4BIMA.js.map → chunk-6GGHM33Z.js.map} +1 -1
  19. package/dist/{chunk-KMSEU6FK.js → chunk-7DGJDISO.js} +3 -3
  20. package/dist/{chunk-KMSEU6FK.js.map → chunk-7DGJDISO.js.map} +1 -1
  21. package/dist/{chunk-2OYV6K7D.cjs → chunk-7JM5EZF3.cjs} +13 -13
  22. package/dist/{chunk-2OYV6K7D.cjs.map → chunk-7JM5EZF3.cjs.map} +1 -1
  23. package/dist/{chunk-QP5JLSCJ.cjs → chunk-AFQFGZN7.cjs} +30 -3
  24. package/dist/chunk-AFQFGZN7.cjs.map +1 -0
  25. package/dist/chunk-AKDJKMAL.cjs +48 -0
  26. package/dist/chunk-AKDJKMAL.cjs.map +1 -0
  27. package/dist/{chunk-HZL7QMXK.js → chunk-AWS4BWEC.js} +7 -3
  28. package/dist/chunk-AWS4BWEC.js.map +1 -0
  29. package/dist/{chunk-5DVDHL7Y.js → chunk-AZDVL7IM.js} +20 -6
  30. package/dist/chunk-AZDVL7IM.js.map +1 -0
  31. package/dist/{chunk-2R74OU76.cjs → chunk-CGZLENU4.cjs} +276 -16
  32. package/dist/chunk-CGZLENU4.cjs.map +1 -0
  33. package/dist/{chunk-G7IUQKRU.cjs → chunk-CLKU3ZIU.cjs} +51 -51
  34. package/dist/{chunk-G7IUQKRU.cjs.map → chunk-CLKU3ZIU.cjs.map} +1 -1
  35. package/dist/{chunk-MCIBQ5BF.js → chunk-DURFRWAW.js} +9 -9
  36. package/dist/{chunk-MCIBQ5BF.js.map → chunk-DURFRWAW.js.map} +1 -1
  37. package/dist/{chunk-C5S75476.js → chunk-EAKO7PGC.js} +8 -4
  38. package/dist/{chunk-C5S75476.js.map → chunk-EAKO7PGC.js.map} +1 -1
  39. package/dist/{chunk-IPCWYKX5.cjs → chunk-EWARI452.cjs} +60 -46
  40. package/dist/chunk-EWARI452.cjs.map +1 -0
  41. package/dist/{chunk-C6IQCKJT.cjs → chunk-FCQYMPUQ.cjs} +4 -4
  42. package/dist/{chunk-C6IQCKJT.cjs.map → chunk-FCQYMPUQ.cjs.map} +1 -1
  43. package/dist/{chunk-CZCOL3M5.js → chunk-G4XWVWRI.js} +25 -4
  44. package/dist/chunk-G4XWVWRI.js.map +1 -0
  45. package/dist/{chunk-WVACGZYV.cjs → chunk-H7VMJBNZ.cjs} +8 -8
  46. package/dist/{chunk-WVACGZYV.cjs.map → chunk-H7VMJBNZ.cjs.map} +1 -1
  47. package/dist/{chunk-SEEQ3H22.cjs → chunk-HWJE4FNS.cjs} +59 -6
  48. package/dist/chunk-HWJE4FNS.cjs.map +1 -0
  49. package/dist/{chunk-3633VD2M.cjs → chunk-IKP4GOWZ.cjs} +8 -8
  50. package/dist/{chunk-3633VD2M.cjs.map → chunk-IKP4GOWZ.cjs.map} +1 -1
  51. package/dist/{chunk-5R6LTKE5.cjs → chunk-ILMHITHK.cjs} +5 -5
  52. package/dist/{chunk-5R6LTKE5.cjs.map → chunk-ILMHITHK.cjs.map} +1 -1
  53. package/dist/chunk-IOET54EV.js +39 -0
  54. package/dist/chunk-IOET54EV.js.map +1 -0
  55. package/dist/{chunk-ZAK276QF.js → chunk-JHTYULY2.js} +4 -4
  56. package/dist/{chunk-ZAK276QF.js.map → chunk-JHTYULY2.js.map} +1 -1
  57. package/dist/{chunk-OVIIJVXH.cjs → chunk-JO3XSUO2.cjs} +21 -21
  58. package/dist/{chunk-OVIIJVXH.cjs.map → chunk-JO3XSUO2.cjs.map} +1 -1
  59. package/dist/{chunk-UWMXMLMV.js → chunk-MROKQP4U.js} +3 -3
  60. package/dist/{chunk-UWMXMLMV.js.map → chunk-MROKQP4U.js.map} +1 -1
  61. package/dist/{chunk-J4CVGAAV.cjs → chunk-NZRG5CXQ.cjs} +7 -2
  62. package/dist/chunk-NZRG5CXQ.cjs.map +1 -0
  63. package/dist/{chunk-KM35K2M5.cjs → chunk-O7DXNX5J.cjs} +92 -25
  64. package/dist/chunk-O7DXNX5J.cjs.map +1 -0
  65. package/dist/chunk-OWNPYQSH.cjs +283 -0
  66. package/dist/chunk-OWNPYQSH.cjs.map +1 -0
  67. package/dist/{chunk-FIYVKW7F.cjs → chunk-PFXPAWPQ.cjs} +12 -12
  68. package/dist/{chunk-FIYVKW7F.cjs.map → chunk-PFXPAWPQ.cjs.map} +1 -1
  69. package/dist/chunk-QSWUSXRL.cjs +53 -0
  70. package/dist/chunk-QSWUSXRL.cjs.map +1 -0
  71. package/dist/{chunk-MGJR5OXO.js → chunk-RX7WII6I.js} +5 -5
  72. package/dist/{chunk-MGJR5OXO.js.map → chunk-RX7WII6I.js.map} +1 -1
  73. package/dist/chunk-S7FCFQ6X.js +255 -0
  74. package/dist/chunk-S7FCFQ6X.js.map +1 -0
  75. package/dist/{chunk-YBZQXZ6A.js → chunk-ST4WQ6ND.js} +68 -8
  76. package/dist/chunk-ST4WQ6ND.js.map +1 -0
  77. package/dist/{chunk-LKCPFD5X.js → chunk-SWVGHAYO.js} +5 -3
  78. package/dist/chunk-SWVGHAYO.js.map +1 -0
  79. package/dist/{chunk-MTUNORQB.cjs → chunk-TSKYEREJ.cjs} +11 -11
  80. package/dist/{chunk-MTUNORQB.cjs.map → chunk-TSKYEREJ.cjs.map} +1 -1
  81. package/dist/{chunk-LYWJAXPT.js → chunk-UMPZR56R.js} +3 -3
  82. package/dist/{chunk-LYWJAXPT.js.map → chunk-UMPZR56R.js.map} +1 -1
  83. package/dist/{chunk-6HUWQLF2.cjs → chunk-WKCFTWLO.cjs} +6 -6
  84. package/dist/{chunk-6HUWQLF2.cjs.map → chunk-WKCFTWLO.cjs.map} +1 -1
  85. package/dist/chunk-XPUGMYAJ.cjs +27 -0
  86. package/dist/{chunk-HD45Y7QU.cjs.map → chunk-XPUGMYAJ.cjs.map} +1 -1
  87. package/dist/{chunk-G5NTNQ7W.cjs → chunk-XROE3CAS.cjs} +5 -3
  88. package/dist/chunk-XROE3CAS.cjs.map +1 -0
  89. package/dist/{chunk-SZUDEFX2.cjs → chunk-ZXDH3L3P.cjs} +43 -39
  90. package/dist/{chunk-SZUDEFX2.cjs.map → chunk-ZXDH3L3P.cjs.map} +1 -1
  91. package/dist/{chunk-25KAGSPT.js → chunk-ZYITB47P.js} +3 -3
  92. package/dist/{chunk-25KAGSPT.js.map → chunk-ZYITB47P.js.map} +1 -1
  93. package/dist/entries/apps.cjs +43 -42
  94. package/dist/entries/apps.js +8 -7
  95. package/dist/entries/credits.cjs +151 -150
  96. package/dist/entries/credits.d.cts +4 -1
  97. package/dist/entries/credits.d.ts +4 -1
  98. package/dist/entries/credits.js +8 -7
  99. package/dist/entries/entities.cjs +125 -125
  100. package/dist/entries/entities.d.cts +1 -1
  101. package/dist/entries/entities.d.ts +1 -1
  102. package/dist/entries/entities.js +1 -1
  103. package/dist/entries/llm-models.d.cts +1 -1
  104. package/dist/entries/llm-models.d.ts +1 -1
  105. package/dist/entries/media.cjs +80 -56
  106. package/dist/entries/media.d.cts +49 -3
  107. package/dist/entries/media.d.ts +49 -3
  108. package/dist/entries/media.js +1 -1
  109. package/dist/entries/model-catalog.cjs +127 -66
  110. package/dist/entries/model-catalog.d.cts +61 -9
  111. package/dist/entries/model-catalog.d.ts +61 -9
  112. package/dist/entries/model-catalog.js +5 -4
  113. package/dist/entries/models.cjs +304 -276
  114. package/dist/entries/models.d.cts +3 -3
  115. package/dist/entries/models.d.ts +3 -3
  116. package/dist/entries/models.js +4 -4
  117. package/dist/entries/nodes.cjs +208 -207
  118. package/dist/entries/nodes.d.cts +1 -1
  119. package/dist/entries/nodes.d.ts +1 -1
  120. package/dist/entries/nodes.js +10 -9
  121. package/dist/entries/organizations.d.cts +9 -1
  122. package/dist/entries/organizations.d.ts +9 -1
  123. package/dist/entries/pipeline.cjs +161 -149
  124. package/dist/entries/pipeline.d.cts +165 -26
  125. package/dist/entries/pipeline.d.ts +165 -26
  126. package/dist/entries/pipeline.js +3 -3
  127. package/dist/entries/runtime-config.cjs +116 -0
  128. package/dist/entries/runtime-config.cjs.map +1 -0
  129. package/dist/entries/runtime-config.d.cts +308 -0
  130. package/dist/entries/runtime-config.d.ts +308 -0
  131. package/dist/entries/runtime-config.js +3 -0
  132. package/dist/entries/runtime-config.js.map +1 -0
  133. package/dist/entries/ugc.cjs +71 -71
  134. package/dist/entries/ugc.js +4 -4
  135. package/dist/entries/video.cjs +117 -117
  136. package/dist/entries/video.js +4 -4
  137. package/dist/entries/workflow.cjs +150 -146
  138. package/dist/entries/workflow.d.cts +8 -1
  139. package/dist/entries/workflow.d.ts +8 -1
  140. package/dist/entries/workflow.js +2 -2
  141. package/dist/index.cjs +3169 -2931
  142. package/dist/index.d.cts +7 -6
  143. package/dist/index.d.ts +7 -6
  144. package/dist/index.js +24 -22
  145. package/dist/{model-catalog-Dm2UiwUe.d.ts → model-catalog-vQ3NWn24.d.cts} +33 -2
  146. package/dist/{model-catalog-Dm2UiwUe.d.cts → model-catalog-vQ3NWn24.d.ts} +33 -2
  147. package/dist/{model-constants-DZUGVDOw.d.ts → model-constants-QZVHZX25.d.cts} +35 -6
  148. package/dist/{model-constants-DZUGVDOw.d.cts → model-constants-QZVHZX25.d.ts} +35 -6
  149. package/package.json +6 -1
  150. package/src/__tests__/fixtures/root-exports.baseline.json +2 -0
  151. package/src/__tests__/gpt-image-2-6.test.ts +277 -0
  152. package/src/__tests__/image-model-roles.test.ts +28 -9
  153. package/src/__tests__/runtime-config.test.ts +398 -0
  154. package/src/__tests__/video-face-mesh.test.ts +45 -2
  155. package/src/__tests__/voice-library-values.test.ts +24 -0
  156. package/src/credit-identifiers.ts +42 -0
  157. package/src/entries/model-catalog.ts +17 -0
  158. package/src/entries/models.ts +9 -0
  159. package/src/entries/runtime-config.ts +51 -0
  160. package/src/entries/workflow.ts +1 -1
  161. package/src/gpt-image-2-6.ts +104 -0
  162. package/src/i18n/style.ko.ts +2 -2
  163. package/src/i18n/style.pt-BR.ts +14 -14
  164. package/src/image-model-roles.ts +31 -10
  165. package/src/index.ts +1 -0
  166. package/src/model-catalog.ts +302 -14
  167. package/src/model-constants.ts +84 -3
  168. package/src/node-default-mappings.ts +4 -0
  169. package/src/node-refs.ts +11 -0
  170. package/src/organizations/views.ts +9 -1
  171. package/src/pipeline-types.ts +2 -0
  172. package/src/reference-board-templates.ts +2 -0
  173. package/src/runtime-config/contract.ts +492 -0
  174. package/src/runtime-config/worlds.ts +77 -0
  175. package/src/video-face-mesh.ts +72 -4
  176. package/src/voices.ts +175 -2
  177. package/dist/chunk-2R74OU76.cjs.map +0 -1
  178. package/dist/chunk-3CHOZ573.js.map +0 -1
  179. package/dist/chunk-5DVDHL7Y.js.map +0 -1
  180. package/dist/chunk-ATWLKUAI.cjs +0 -34
  181. package/dist/chunk-ATWLKUAI.cjs.map +0 -1
  182. package/dist/chunk-CZCOL3M5.js.map +0 -1
  183. package/dist/chunk-DUL5ZLTJ.js +0 -29
  184. package/dist/chunk-DUL5ZLTJ.js.map +0 -1
  185. package/dist/chunk-G5NTNQ7W.cjs.map +0 -1
  186. package/dist/chunk-HD45Y7QU.cjs +0 -27
  187. package/dist/chunk-HZL7QMXK.js.map +0 -1
  188. package/dist/chunk-IPCWYKX5.cjs.map +0 -1
  189. package/dist/chunk-J4CVGAAV.cjs.map +0 -1
  190. package/dist/chunk-KM35K2M5.cjs.map +0 -1
  191. package/dist/chunk-LKCPFD5X.js.map +0 -1
  192. package/dist/chunk-N3WL6IOJ.js.map +0 -1
  193. package/dist/chunk-QP5JLSCJ.cjs.map +0 -1
  194. package/dist/chunk-SEEQ3H22.cjs.map +0 -1
  195. package/dist/chunk-YBZQXZ6A.js.map +0 -1
@@ -64,14 +64,14 @@ function modelMakerOf(entry) {
64
64
  }
65
65
  var MODEL_RECOMMENDATIONS = [
66
66
  // image
67
- { intent: "best for typography / logos / text-heavy", modelIds: ["gpt-image-2", "gpt-image-2-5-flare"], note: "GPT Image 2 for exact copy, labels and non-Latin text; GPT Image 2.5 Flare is close and faster." },
67
+ { intent: "best for typography / logos / text-heavy", modelIds: ["gpt-image-2", "gpt-image-2-6-flare"], note: "GPT Image 2 for exact copy, labels and non-Latin text; GPT Image 2.6 Flare for posters and layouts, and faster." },
68
68
  // Notes name the RANKING, not the price — the price sits in the generated
69
69
  // table directly below them and in `pricing`, so restating it here just
70
70
  // creates a copy that rots (this one said "1 credit" long after it was 2).
71
71
  { intent: "cheapest realistic image", modelIds: ["z-image", "qwen", "imagen4-fast"], note: "Z-Image is the cheapest. Qwen / Imagen4 Fast for slightly higher quality." },
72
- { intent: "highest fidelity image", modelIds: ["gpt-image-2", "gpt-image-2-5-sunburst", "imagen4-ultra"], note: "GPT Image 2 for characters and identity; GPT Image 2.5 Sunburst for wide or in-between ratios GPT Image 2 can't draw." },
73
- { intent: "image edit / restyle", modelIds: ["gpt-image-2-5-flare-i2i", "gpt-image-2-i2i", "seedream-5-pro-i2i"], note: "GPT Image 2.5 Flare keeps pose, framing and product detail; GPT Image 2 i2i for identity-critical edits; Seedream 5 Pro for instruction-based edits." },
74
- { intent: "highest-resolution image", modelIds: ["topaz-image-upscale", "gpt-image-2", "gpt-image-2-5-sunburst"], note: "Generate at the model's top tier, then Topaz upscale 4x (Topaz's only lever is the 1x/2x/4x factor)." },
72
+ { intent: "highest fidelity image", modelIds: ["gpt-image-2", "gpt-image-2-6-sunburst", "imagen4-ultra"], note: "GPT Image 2 for characters and identity; GPT Image 2.6 Sunburst for wide or in-between ratios GPT Image 2 can't draw." },
73
+ { intent: "image edit / restyle", modelIds: ["gpt-image-2-6-flare-i2i", "gpt-image-2-i2i", "seedream-5-pro-i2i"], note: "GPT Image 2.6 Flare changes what you ask and keeps the rest; GPT Image 2 i2i for identity-critical edits; Seedream 5 Pro for instruction-based edits." },
74
+ { intent: "highest-resolution image", modelIds: ["topaz-image-upscale", "gpt-image-2", "gpt-image-2-6-sunburst"], note: "Generate at the model's top tier, then Topaz upscale 4x (Topaz's only lever is the 1x/2x/4x factor)." },
75
75
  { intent: "background removal / cutout", modelIds: ["recraft-remove-bg"], note: "Cheap, no prompt needed." },
76
76
  // video
77
77
  { intent: "best cinematic video", modelIds: ["veo3", "kling-3.0", "seedance-2"], note: "VEO 3.1 Quality for premium narrative; Kling 3.0 for music-synced motion; Seedance 2 for reference-driven consistency." },
@@ -106,6 +106,43 @@ var GPT_IMAGE_2_5_RATIOS = [
106
106
  "9:8",
107
107
  "8:9"
108
108
  ];
109
+ var GPT_IMAGE_2_6_RATIOS = [
110
+ "auto",
111
+ "1:1",
112
+ "3:2",
113
+ "2:3",
114
+ "4:3",
115
+ "3:4",
116
+ "5:4",
117
+ "4:5",
118
+ "16:9",
119
+ "9:16",
120
+ "2:1",
121
+ "1:2",
122
+ "21:9",
123
+ "9:21",
124
+ "3:1",
125
+ "1:3"
126
+ ];
127
+ var GPT_IMAGE_2_6_ECONOMY_RATIOS = ["auto", "1:1", "16:9", "9:16", "3:2", "2:3", "21:9", "4:3"];
128
+ var GPT_IMAGE_2_6_VALUE_LABELS = {
129
+ "3:2": "3:2 (Landscape)",
130
+ "2:3": "2:3 (Portrait)",
131
+ "5:4": "5:4 (Near-square)",
132
+ "4:5": "4:5 (Near-square)",
133
+ "2:1": "2:1 (Wide)",
134
+ "1:2": "1:2 (Vertical)",
135
+ "9:21": "9:21 (Ultra-tall)",
136
+ "3:1": "3:1 (Banner)",
137
+ "1:3": "1:3 (Vertical banner)",
138
+ // Auto takes the shared label; it is an aspect ratio on these models too.
139
+ "low": "Low",
140
+ "medium": "Medium",
141
+ "high": "High",
142
+ "xhigh": "Extra High",
143
+ "max": "Max"
144
+ };
145
+ var GPT_IMAGE_BACKGROUNDS = ["auto", "opaque", "transparent"];
109
146
  var IMAGEN4_RATIOS = ["1:1", "16:9", "9:16", "4:3", "3:4"];
110
147
  var IDEOGRAM_RATIOS = ["1:1", "16:9", "9:16", "4:3", "3:4"];
111
148
  var SEEDREAM_RATIOS = ["1:1", "16:9", "9:16", "4:3", "3:4", "3:2", "2:3", "21:9"];
@@ -340,8 +377,8 @@ var IMAGE_MODELS = {
340
377
  maker: "black-forest-labs",
341
378
  label: "Flux 2 Klein (Open)",
342
379
  series: "Flux",
343
- description: "Open Flux 2 9B from BFL \u2014 fast, no safety filter. Runs direct on Replicate.",
344
- useCases: ["realistic", "fast", "unfiltered"],
380
+ description: "Open Flux 2 9B from BFL \u2014 fast. Runs direct on Replicate.",
381
+ useCases: ["realistic", "fast"],
345
382
  features: ["reference-image"],
346
383
  aspectRatios: FLUX_RATIOS,
347
384
  resolutions: ["0.5 MP", "1 MP", "2 MP", "4 MP"],
@@ -362,8 +399,8 @@ var IMAGE_MODELS = {
362
399
  maker: "black-forest-labs",
363
400
  label: "Kontext Multi (Open)",
364
401
  series: "Flux",
365
- description: "Multi-image Flux Kontext Pro via Replicate \u2014 up to 4 input images, no safety filter.",
366
- useCases: ["edit", "multi-reference", "unfiltered"],
402
+ description: "Multi-image Flux Kontext Pro via Replicate \u2014 up to 4 input images.",
403
+ useCases: ["edit", "multi-reference"],
367
404
  features: ["reference-image"],
368
405
  aspectRatios: KONTEXT_RATIOS,
369
406
  pricing: [{ identifier: "kontext-multi", credits: 30 }]
@@ -376,8 +413,8 @@ var IMAGE_MODELS = {
376
413
  maker: "black-forest-labs",
377
414
  label: "Flux 2 Pro (Safety Tolerance)",
378
415
  series: "Flux",
379
- description: "BFL Flux 2 Pro flagship via Replicate \u2014 exposes the `safety_tolerance` lever pinned to 5 (max for Pro). Accepts up to 4 reference images.",
380
- useCases: ["realistic", "high-quality", "unfiltered", "reference"],
416
+ description: "BFL Flux 2 Pro flagship via Replicate. Accepts up to 4 reference images.",
417
+ useCases: ["realistic", "high-quality", "reference"],
381
418
  features: ["reference-image"],
382
419
  aspectRatios: FLUX_RATIOS,
383
420
  resolutions: ["0.5 MP", "1 MP", "2 MP", "4 MP"],
@@ -398,8 +435,8 @@ var IMAGE_MODELS = {
398
435
  maker: "black-forest-labs",
399
436
  label: "Flux 2 Max (Safety Tolerance)",
400
437
  series: "Flux",
401
- description: "BFL Flux 2 Max \u2014 even larger sibling of Pro via Replicate, safety_tolerance=5, up to 8 reference images. Variable pricing by MP and ref count.",
402
- useCases: ["realistic", "high-quality", "unfiltered", "multi-reference"],
438
+ description: "BFL Flux 2 Max \u2014 even larger sibling of Pro via Replicate, up to 8 reference images. Variable pricing by MP and ref count.",
439
+ useCases: ["realistic", "high-quality", "multi-reference"],
403
440
  features: ["reference-image"],
404
441
  aspectRatios: FLUX_RATIOS,
405
442
  resolutions: ["0.5 MP", "1 MP", "2 MP", "4 MP"],
@@ -507,6 +544,9 @@ var IMAGE_MODELS = {
507
544
  features: ["reference-image"],
508
545
  aspectRatios: GPT_IMAGE_2_5_RATIOS,
509
546
  resolutions: ["1K", "2K", "4K"],
547
+ backgrounds: GPT_IMAGE_BACKGROUNDS,
548
+ transparentResolution: "1K",
549
+ backgroundOnlyAtTransparentResolution: true,
510
550
  pricing: [
511
551
  { identifier: "gpt-image-2-5-flare", credits: 15, note: "1K default" },
512
552
  { identifier: "gpt-image-2-5-flare:2K", credits: 25, note: "2K" },
@@ -535,6 +575,9 @@ var IMAGE_MODELS = {
535
575
  features: ["reference-image"],
536
576
  aspectRatios: GPT_IMAGE_2_5_RATIOS,
537
577
  resolutions: ["1K", "2K", "4K"],
578
+ backgrounds: GPT_IMAGE_BACKGROUNDS,
579
+ transparentResolution: "1K",
580
+ backgroundOnlyAtTransparentResolution: true,
538
581
  pricing: [
539
582
  { identifier: "gpt-image-2-5-flare-i2i", credits: 15, note: "1K default" },
540
583
  { identifier: "gpt-image-2-5-flare-i2i:2K", credits: 25, note: "2K" },
@@ -563,6 +606,9 @@ var IMAGE_MODELS = {
563
606
  features: ["reference-image"],
564
607
  aspectRatios: GPT_IMAGE_2_5_RATIOS,
565
608
  resolutions: ["1K", "2K", "4K"],
609
+ backgrounds: GPT_IMAGE_BACKGROUNDS,
610
+ transparentResolution: "1K",
611
+ backgroundOnlyAtTransparentResolution: true,
566
612
  pricing: [
567
613
  { identifier: "gpt-image-2-5-sunburst", credits: 15, note: "1K default" },
568
614
  { identifier: "gpt-image-2-5-sunburst:2K", credits: 25, note: "2K" },
@@ -591,6 +637,9 @@ var IMAGE_MODELS = {
591
637
  features: ["reference-image"],
592
638
  aspectRatios: GPT_IMAGE_2_5_RATIOS,
593
639
  resolutions: ["1K", "2K", "4K"],
640
+ backgrounds: GPT_IMAGE_BACKGROUNDS,
641
+ transparentResolution: "1K",
642
+ backgroundOnlyAtTransparentResolution: true,
594
643
  pricing: [
595
644
  { identifier: "gpt-image-2-5-sunburst-i2i", credits: 15, note: "1K default" },
596
645
  { identifier: "gpt-image-2-5-sunburst-i2i:2K", credits: 25, note: "2K" },
@@ -606,6 +655,185 @@ var IMAGE_MODELS = {
606
655
  },
607
656
  safetyFilter: { stochastic: true, fallback: "nano-banana-pro" }
608
657
  },
658
+ "gpt-image-2-6-flare": {
659
+ id: "gpt-image-2-6-flare",
660
+ kind: "image",
661
+ modes: ["t2i"],
662
+ family: "OpenAI",
663
+ maker: "openai",
664
+ label: "GPT Image 2.6 Flare",
665
+ series: "GPT Image",
666
+ 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.",
667
+ useCases: ["typography", "high-res", "general", "draft"],
668
+ features: ["reference-image"],
669
+ aspectRatios: GPT_IMAGE_2_6_RATIOS,
670
+ resolutions: ["1K", "2K", "4K"],
671
+ qualities: ["auto", "low", "medium", "high", "xhigh", "max"],
672
+ defaultQuality: "medium",
673
+ backgrounds: GPT_IMAGE_BACKGROUNDS,
674
+ transparentResolution: "1K",
675
+ pricing: [
676
+ { identifier: "gpt-image-2-6-flare", credits: 20, note: "medium, 1K default" },
677
+ { identifier: "gpt-image-2-6-flare:low:1K", credits: 12, note: "low, 1K" },
678
+ { identifier: "gpt-image-2-6-flare:low:2K", credits: 23, note: "low, 2K" },
679
+ { identifier: "gpt-image-2-6-flare:low:4K", credits: 38, note: "low, 4K" },
680
+ { identifier: "gpt-image-2-6-flare:medium:1K", credits: 20, note: "medium, 1K" },
681
+ { identifier: "gpt-image-2-6-flare:medium:2K", credits: 40, note: "medium, 2K" },
682
+ { identifier: "gpt-image-2-6-flare:medium:4K", credits: 67, note: "medium, 4K" },
683
+ { identifier: "gpt-image-2-6-flare:high:1K", credits: 24, note: "high, 1K" },
684
+ { identifier: "gpt-image-2-6-flare:high:2K", credits: 49, note: "high, 2K" },
685
+ { identifier: "gpt-image-2-6-flare:high:4K", credits: 81, note: "high, 4K" },
686
+ { identifier: "gpt-image-2-6-flare:xhigh:1K", credits: 43, note: "extra high, 1K" },
687
+ { identifier: "gpt-image-2-6-flare:xhigh:2K", credits: 86, note: "extra high, 2K" },
688
+ { identifier: "gpt-image-2-6-flare:xhigh:4K", credits: 143, note: "extra high, 4K" },
689
+ { identifier: "gpt-image-2-6-flare:max:1K", credits: 96, note: "max, 1K" },
690
+ { identifier: "gpt-image-2-6-flare:max:2K", credits: 193, note: "max, 2K" },
691
+ { identifier: "gpt-image-2-6-flare:max:4K", credits: 321, note: "max, 4K" },
692
+ { identifier: "gpt-image-2-6-flare:auto:1K", credits: 96, note: "auto, 1K: the most it can cost, settled on what it really cost" },
693
+ { identifier: "gpt-image-2-6-flare:auto:2K", credits: 193, note: "auto, 2K: the most it can cost, settled on what it really cost" },
694
+ { identifier: "gpt-image-2-6-flare:auto:4K", credits: 321, note: "auto, 4K: the most it can cost, settled on what it really cost" }
695
+ ],
696
+ valueLabels: GPT_IMAGE_2_6_VALUE_LABELS,
697
+ safetyFilter: { stochastic: true, fallback: "nano-banana-pro" }
698
+ },
699
+ "gpt-image-2-6-flare-i2i": {
700
+ id: "gpt-image-2-6-flare-i2i",
701
+ kind: "image",
702
+ modes: ["i2i"],
703
+ family: "OpenAI",
704
+ maker: "openai",
705
+ label: "GPT Image 2.6 Flare (I2I)",
706
+ series: "GPT Image",
707
+ description: "Fast GPT Image 2.6 edits - up to 16 input images, priced per image. Pick it while iterating.",
708
+ useCases: ["edit", "high-res"],
709
+ features: ["reference-image"],
710
+ aspectRatios: GPT_IMAGE_2_6_RATIOS,
711
+ resolutions: ["1K", "2K", "4K"],
712
+ qualities: ["auto", "low", "medium", "high", "xhigh", "max"],
713
+ defaultQuality: "medium",
714
+ backgrounds: GPT_IMAGE_BACKGROUNDS,
715
+ transparentResolution: "1K",
716
+ pricing: [
717
+ { identifier: "gpt-image-2-6-flare-i2i", credits: 20, note: "medium, 1K default" },
718
+ { identifier: "gpt-image-2-6-flare-i2i:low:1K:1ref", credits: 17, note: "low, 1K, one input image (the least)" },
719
+ { identifier: "gpt-image-2-6-flare-i2i:medium:1K:1ref", credits: 26, note: "medium, 1K, one input image" },
720
+ { identifier: "gpt-image-2-6-flare-i2i:high:4K:16ref", credits: 169, note: "high, 4K, sixteen input images" },
721
+ { identifier: "gpt-image-2-6-flare-i2i:max:4K:16ref", credits: 409, note: "max, 4K, sixteen input images (the most)" },
722
+ { 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" }
723
+ ],
724
+ valueLabels: GPT_IMAGE_2_6_VALUE_LABELS,
725
+ safetyFilter: { stochastic: true, fallback: "nano-banana-pro" }
726
+ },
727
+ "gpt-image-2-6-sunburst": {
728
+ id: "gpt-image-2-6-sunburst",
729
+ kind: "image",
730
+ modes: ["t2i"],
731
+ family: "OpenAI",
732
+ maker: "openai",
733
+ label: "GPT Image 2.6 Sunburst",
734
+ series: "GPT Image",
735
+ 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.",
736
+ useCases: ["typography", "high-res", "general"],
737
+ features: ["reference-image"],
738
+ aspectRatios: GPT_IMAGE_2_6_RATIOS,
739
+ resolutions: ["1K", "2K", "4K"],
740
+ qualities: ["auto", "low", "medium", "high", "xhigh", "max"],
741
+ defaultQuality: "medium",
742
+ backgrounds: GPT_IMAGE_BACKGROUNDS,
743
+ transparentResolution: "1K",
744
+ pricing: [
745
+ { identifier: "gpt-image-2-6-sunburst", credits: 20, note: "medium, 1K default" },
746
+ { identifier: "gpt-image-2-6-sunburst:low:1K", credits: 12, note: "low, 1K" },
747
+ { identifier: "gpt-image-2-6-sunburst:low:2K", credits: 23, note: "low, 2K" },
748
+ { identifier: "gpt-image-2-6-sunburst:low:4K", credits: 38, note: "low, 4K" },
749
+ { identifier: "gpt-image-2-6-sunburst:medium:1K", credits: 20, note: "medium, 1K" },
750
+ { identifier: "gpt-image-2-6-sunburst:medium:2K", credits: 40, note: "medium, 2K" },
751
+ { identifier: "gpt-image-2-6-sunburst:medium:4K", credits: 67, note: "medium, 4K" },
752
+ { identifier: "gpt-image-2-6-sunburst:high:1K", credits: 24, note: "high, 1K" },
753
+ { identifier: "gpt-image-2-6-sunburst:high:2K", credits: 49, note: "high, 2K" },
754
+ { identifier: "gpt-image-2-6-sunburst:high:4K", credits: 81, note: "high, 4K" },
755
+ { identifier: "gpt-image-2-6-sunburst:xhigh:1K", credits: 43, note: "extra high, 1K" },
756
+ { identifier: "gpt-image-2-6-sunburst:xhigh:2K", credits: 86, note: "extra high, 2K" },
757
+ { identifier: "gpt-image-2-6-sunburst:xhigh:4K", credits: 143, note: "extra high, 4K" },
758
+ { identifier: "gpt-image-2-6-sunburst:max:1K", credits: 96, note: "max, 1K" },
759
+ { identifier: "gpt-image-2-6-sunburst:max:2K", credits: 193, note: "max, 2K" },
760
+ { identifier: "gpt-image-2-6-sunburst:max:4K", credits: 321, note: "max, 4K" },
761
+ { identifier: "gpt-image-2-6-sunburst:auto:1K", credits: 96, note: "auto, 1K: the most it can cost, settled on what it really cost" },
762
+ { identifier: "gpt-image-2-6-sunburst:auto:2K", credits: 193, note: "auto, 2K: the most it can cost, settled on what it really cost" },
763
+ { identifier: "gpt-image-2-6-sunburst:auto:4K", credits: 321, note: "auto, 4K: the most it can cost, settled on what it really cost" }
764
+ ],
765
+ valueLabels: GPT_IMAGE_2_6_VALUE_LABELS,
766
+ safetyFilter: { stochastic: true, fallback: "nano-banana-pro" }
767
+ },
768
+ "gpt-image-2-6-sunburst-i2i": {
769
+ id: "gpt-image-2-6-sunburst-i2i",
770
+ kind: "image",
771
+ modes: ["i2i"],
772
+ family: "OpenAI",
773
+ maker: "openai",
774
+ label: "GPT Image 2.6 Sunburst (I2I)",
775
+ series: "GPT Image",
776
+ description: "Precision GPT Image 2.6 edits - up to 16 input images, priced per image. Pick it for finished, detail-critical edits.",
777
+ useCases: ["edit", "high-res"],
778
+ features: ["reference-image"],
779
+ aspectRatios: GPT_IMAGE_2_6_RATIOS,
780
+ resolutions: ["1K", "2K", "4K"],
781
+ qualities: ["auto", "low", "medium", "high", "xhigh", "max"],
782
+ defaultQuality: "medium",
783
+ backgrounds: GPT_IMAGE_BACKGROUNDS,
784
+ transparentResolution: "1K",
785
+ pricing: [
786
+ { identifier: "gpt-image-2-6-sunburst-i2i", credits: 20, note: "medium, 1K default" },
787
+ { identifier: "gpt-image-2-6-sunburst-i2i:low:1K:1ref", credits: 17, note: "low, 1K, one input image (the least)" },
788
+ { identifier: "gpt-image-2-6-sunburst-i2i:medium:1K:1ref", credits: 26, note: "medium, 1K, one input image" },
789
+ { identifier: "gpt-image-2-6-sunburst-i2i:high:4K:16ref", credits: 169, note: "high, 4K, sixteen input images" },
790
+ { identifier: "gpt-image-2-6-sunburst-i2i:max:4K:16ref", credits: 409, note: "max, 4K, sixteen input images (the most)" },
791
+ { 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" }
792
+ ],
793
+ valueLabels: GPT_IMAGE_2_6_VALUE_LABELS,
794
+ safetyFilter: { stochastic: true, fallback: "nano-banana-pro" }
795
+ },
796
+ // Economy is withheld since 2026-11-09: KIE answers every Economy request with
797
+ // an internal error, on its own playground too. Migration 611 switched the two
798
+ // ids off (`model_pricing.is_enabled`), which hides them from every menu and
799
+ // refuses a run. Turning the two rows on at /admin/models brings them back;
800
+ // `docsHidden` keeps them out of the docs until it is removed here.
801
+ "gpt-image-2-6-economy": {
802
+ id: "gpt-image-2-6-economy",
803
+ kind: "image",
804
+ modes: ["t2i"],
805
+ family: "OpenAI",
806
+ maker: "openai",
807
+ label: "GPT Image 2.6 Economy",
808
+ docsHidden: true,
809
+ series: "GPT Image",
810
+ description: "The same GPT Image 2.6 at a flat low price, 1K only - pick it for volume.",
811
+ useCases: ["general", "draft"],
812
+ features: ["reference-image"],
813
+ aspectRatios: GPT_IMAGE_2_6_ECONOMY_RATIOS,
814
+ backgrounds: GPT_IMAGE_BACKGROUNDS,
815
+ pricing: [{ identifier: "gpt-image-2-6-economy", credits: 13, note: "1K flat" }],
816
+ valueLabels: GPT_IMAGE_2_6_VALUE_LABELS,
817
+ safetyFilter: { stochastic: true, fallback: "nano-banana-pro" }
818
+ },
819
+ "gpt-image-2-6-economy-i2i": {
820
+ id: "gpt-image-2-6-economy-i2i",
821
+ kind: "image",
822
+ modes: ["i2i"],
823
+ family: "OpenAI",
824
+ maker: "openai",
825
+ label: "GPT Image 2.6 Economy (I2I)",
826
+ docsHidden: true,
827
+ series: "GPT Image",
828
+ description: "Flat-price GPT Image 2.6 edits, 1K only, up to 16 input images - pick it for volume.",
829
+ useCases: ["edit", "draft"],
830
+ features: ["reference-image"],
831
+ aspectRatios: GPT_IMAGE_2_6_ECONOMY_RATIOS,
832
+ backgrounds: GPT_IMAGE_BACKGROUNDS,
833
+ pricing: [{ identifier: "gpt-image-2-6-economy-i2i", credits: 13, note: "1K flat" }],
834
+ valueLabels: GPT_IMAGE_2_6_VALUE_LABELS,
835
+ safetyFilter: { stochastic: true, fallback: "nano-banana-pro" }
836
+ },
609
837
  // ── Ideogram ──
610
838
  // Ideogram models use a `rendering_speed` (TURBO / BALANCED / QUALITY)
611
839
  // dimension that's distinct from the `quality` lever — frontend exposes
@@ -3319,7 +3547,8 @@ function normalizeModelInput(modelId, input, context = {}) {
3319
3547
  m.resolutions,
3320
3548
  defaultResolutionFor(modelId)
3321
3549
  );
3322
- out.quality = snap("quality", input.quality, m.qualities);
3550
+ out.quality = snap("quality", input.quality, m.qualities, m.defaultQuality);
3551
+ out.background = snap("background", input.background, m.backgrounds);
3323
3552
  out.duration = m.autoDuration === true && isAutoVideoDuration(input.duration) ? input.duration : snap("duration", input.duration, m.durations);
3324
3553
  if (modelId === "gpt-image-2" || modelId === "gpt-image-2-i2i") {
3325
3554
  if (out.aspectRatio === "auto" && out.resolution !== void 0 && out.resolution !== "1K") {
@@ -3340,6 +3569,26 @@ function normalizeModelInput(modelId, input, context = {}) {
3340
3569
  out.resolution = "2K";
3341
3570
  }
3342
3571
  }
3572
+ if (out.background === "transparent" && m.transparentResolution !== void 0 && out.resolution !== void 0 && out.resolution !== m.transparentResolution) {
3573
+ adjustments.push({
3574
+ field: "resolution",
3575
+ from: out.resolution,
3576
+ to: m.transparentResolution,
3577
+ reason: `${m.label} only renders a transparent background at ${m.transparentResolution}.`
3578
+ });
3579
+ out.resolution = m.transparentResolution;
3580
+ }
3581
+ if (m.backgroundOnlyAtTransparentResolution && out.background !== void 0 && out.resolution !== void 0 && out.resolution !== m.transparentResolution) {
3582
+ if (out.background !== "auto") {
3583
+ adjustments.push({
3584
+ field: "background",
3585
+ from: out.background,
3586
+ to: void 0,
3587
+ reason: `${m.label} only takes a background setting at ${m.transparentResolution}.`
3588
+ });
3589
+ }
3590
+ out.background = void 0;
3591
+ }
3343
3592
  return out;
3344
3593
  }
3345
3594
  var PASSTHROUGH_ASPECT_TOKENS = /* @__PURE__ */ new Set(["auto", "adaptive"]);
@@ -3472,6 +3721,7 @@ var MODEL_VALUE_LABELS = {
3472
3721
  "2k": "2K",
3473
3722
  "8K": "8K (Ultra)",
3474
3723
  // qualities
3724
+ "low": "Low (Fast)",
3475
3725
  "medium": "Medium (Balanced)",
3476
3726
  "high": "High (Detailed)",
3477
3727
  "basic": "Basic (2K)",
@@ -3559,6 +3809,15 @@ function qualityOptionsByKind(kind) {
3559
3809
  }
3560
3810
  return out;
3561
3811
  }
3812
+ function backgroundOptionsByKind(kind) {
3813
+ const out = {};
3814
+ for (const m of Object.values(MODEL_CATALOG)) {
3815
+ if (m.kind !== kind) continue;
3816
+ if (!m.backgrounds) continue;
3817
+ out[m.id] = m.backgrounds.map((v) => ({ value: v, label: decorateLabel(m, v) }));
3818
+ }
3819
+ return out;
3820
+ }
3562
3821
  function buildModelMenu(kind, allowlist) {
3563
3822
  const resByModel = resolutionOptionsByKind(kind);
3564
3823
  const arByModel = aspectRatioOptionsByKind(kind);
@@ -3589,7 +3848,7 @@ function creditRangesAll() {
3589
3848
  }
3590
3849
  function modelIdsByKindMode(kind, modes, opts = {}) {
3591
3850
  const includeHidden = opts.includeHidden === true;
3592
- const ids = Object.values(MODEL_CATALOG).filter((m) => kind === null ? true : m.kind === kind).filter((m) => m.modes.some((md) => modes.includes(md))).filter((m) => includeHidden || !m.mcpHidden).map((m) => m.id).sort();
3851
+ const ids = Object.values(MODEL_CATALOG).filter((m) => kind === null ? true : m.kind === kind).filter((m) => m.modes.some((md) => modes.includes(md))).filter((m) => includeHidden || !m.mcpHidden).filter((m) => !m.docsHidden).map((m) => m.id).sort();
3593
3852
  if (ids.length === 0) {
3594
3853
  throw new Error(
3595
3854
  `modelIdsByKindMode: no models match kind=${kind ?? "*"} modes=[${modes.join(",")}]`
@@ -3613,6 +3872,7 @@ exports.SPEECH_UNIT_PRICE_NOTE = SPEECH_UNIT_PRICE_NOTE;
3613
3872
  exports.VIDEO_DURATION_AUTO = VIDEO_DURATION_AUTO;
3614
3873
  exports.aspectRatioOptionsByKind = aspectRatioOptionsByKind;
3615
3874
  exports.autoAspectNeedsSourceImage = autoAspectNeedsSourceImage;
3875
+ exports.backgroundOptionsByKind = backgroundOptionsByKind;
3616
3876
  exports.buildModelMenu = buildModelMenu;
3617
3877
  exports.creditRangesAll = creditRangesAll;
3618
3878
  exports.defaultResolutionFor = defaultResolutionFor;
@@ -3645,5 +3905,5 @@ exports.resolutionOptionsByKind = resolutionOptionsByKind;
3645
3905
  exports.seedanceDraftFinalizeBillableSec = seedanceDraftFinalizeBillableSec;
3646
3906
  exports.seedanceDraftFinalizeCreditId = seedanceDraftFinalizeCreditId;
3647
3907
  exports.validateModelInput = validateModelInput;
3648
- //# sourceMappingURL=chunk-2R74OU76.cjs.map
3649
- //# sourceMappingURL=chunk-2R74OU76.cjs.map
3908
+ //# sourceMappingURL=chunk-CGZLENU4.cjs.map
3909
+ //# sourceMappingURL=chunk-CGZLENU4.cjs.map