@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
@@ -62,14 +62,14 @@ function modelMakerOf(entry) {
62
62
  }
63
63
  var MODEL_RECOMMENDATIONS = [
64
64
  // image
65
- { 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." },
65
+ { 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." },
66
66
  // Notes name the RANKING, not the price — the price sits in the generated
67
67
  // table directly below them and in `pricing`, so restating it here just
68
68
  // creates a copy that rots (this one said "1 credit" long after it was 2).
69
69
  { intent: "cheapest realistic image", modelIds: ["z-image", "qwen", "imagen4-fast"], note: "Z-Image is the cheapest. Qwen / Imagen4 Fast for slightly higher quality." },
70
- { 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." },
71
- { 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." },
72
- { 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)." },
70
+ { 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." },
71
+ { 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." },
72
+ { 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)." },
73
73
  { intent: "background removal / cutout", modelIds: ["recraft-remove-bg"], note: "Cheap, no prompt needed." },
74
74
  // video
75
75
  { 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." },
@@ -104,6 +104,43 @@ var GPT_IMAGE_2_5_RATIOS = [
104
104
  "9:8",
105
105
  "8:9"
106
106
  ];
107
+ var GPT_IMAGE_2_6_RATIOS = [
108
+ "auto",
109
+ "1:1",
110
+ "3:2",
111
+ "2:3",
112
+ "4:3",
113
+ "3:4",
114
+ "5:4",
115
+ "4:5",
116
+ "16:9",
117
+ "9:16",
118
+ "2:1",
119
+ "1:2",
120
+ "21:9",
121
+ "9:21",
122
+ "3:1",
123
+ "1:3"
124
+ ];
125
+ var GPT_IMAGE_2_6_ECONOMY_RATIOS = ["auto", "1:1", "16:9", "9:16", "3:2", "2:3", "21:9", "4:3"];
126
+ var GPT_IMAGE_2_6_VALUE_LABELS = {
127
+ "3:2": "3:2 (Landscape)",
128
+ "2:3": "2:3 (Portrait)",
129
+ "5:4": "5:4 (Near-square)",
130
+ "4:5": "4:5 (Near-square)",
131
+ "2:1": "2:1 (Wide)",
132
+ "1:2": "1:2 (Vertical)",
133
+ "9:21": "9:21 (Ultra-tall)",
134
+ "3:1": "3:1 (Banner)",
135
+ "1:3": "1:3 (Vertical banner)",
136
+ // Auto takes the shared label; it is an aspect ratio on these models too.
137
+ "low": "Low",
138
+ "medium": "Medium",
139
+ "high": "High",
140
+ "xhigh": "Extra High",
141
+ "max": "Max"
142
+ };
143
+ var GPT_IMAGE_BACKGROUNDS = ["auto", "opaque", "transparent"];
107
144
  var IMAGEN4_RATIOS = ["1:1", "16:9", "9:16", "4:3", "3:4"];
108
145
  var IDEOGRAM_RATIOS = ["1:1", "16:9", "9:16", "4:3", "3:4"];
109
146
  var SEEDREAM_RATIOS = ["1:1", "16:9", "9:16", "4:3", "3:4", "3:2", "2:3", "21:9"];
@@ -338,8 +375,8 @@ var IMAGE_MODELS = {
338
375
  maker: "black-forest-labs",
339
376
  label: "Flux 2 Klein (Open)",
340
377
  series: "Flux",
341
- description: "Open Flux 2 9B from BFL \u2014 fast, no safety filter. Runs direct on Replicate.",
342
- useCases: ["realistic", "fast", "unfiltered"],
378
+ description: "Open Flux 2 9B from BFL \u2014 fast. Runs direct on Replicate.",
379
+ useCases: ["realistic", "fast"],
343
380
  features: ["reference-image"],
344
381
  aspectRatios: FLUX_RATIOS,
345
382
  resolutions: ["0.5 MP", "1 MP", "2 MP", "4 MP"],
@@ -360,8 +397,8 @@ var IMAGE_MODELS = {
360
397
  maker: "black-forest-labs",
361
398
  label: "Kontext Multi (Open)",
362
399
  series: "Flux",
363
- description: "Multi-image Flux Kontext Pro via Replicate \u2014 up to 4 input images, no safety filter.",
364
- useCases: ["edit", "multi-reference", "unfiltered"],
400
+ description: "Multi-image Flux Kontext Pro via Replicate \u2014 up to 4 input images.",
401
+ useCases: ["edit", "multi-reference"],
365
402
  features: ["reference-image"],
366
403
  aspectRatios: KONTEXT_RATIOS,
367
404
  pricing: [{ identifier: "kontext-multi", credits: 30 }]
@@ -374,8 +411,8 @@ var IMAGE_MODELS = {
374
411
  maker: "black-forest-labs",
375
412
  label: "Flux 2 Pro (Safety Tolerance)",
376
413
  series: "Flux",
377
- 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.",
378
- useCases: ["realistic", "high-quality", "unfiltered", "reference"],
414
+ description: "BFL Flux 2 Pro flagship via Replicate. Accepts up to 4 reference images.",
415
+ useCases: ["realistic", "high-quality", "reference"],
379
416
  features: ["reference-image"],
380
417
  aspectRatios: FLUX_RATIOS,
381
418
  resolutions: ["0.5 MP", "1 MP", "2 MP", "4 MP"],
@@ -396,8 +433,8 @@ var IMAGE_MODELS = {
396
433
  maker: "black-forest-labs",
397
434
  label: "Flux 2 Max (Safety Tolerance)",
398
435
  series: "Flux",
399
- 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.",
400
- useCases: ["realistic", "high-quality", "unfiltered", "multi-reference"],
436
+ 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.",
437
+ useCases: ["realistic", "high-quality", "multi-reference"],
401
438
  features: ["reference-image"],
402
439
  aspectRatios: FLUX_RATIOS,
403
440
  resolutions: ["0.5 MP", "1 MP", "2 MP", "4 MP"],
@@ -505,6 +542,9 @@ var IMAGE_MODELS = {
505
542
  features: ["reference-image"],
506
543
  aspectRatios: GPT_IMAGE_2_5_RATIOS,
507
544
  resolutions: ["1K", "2K", "4K"],
545
+ backgrounds: GPT_IMAGE_BACKGROUNDS,
546
+ transparentResolution: "1K",
547
+ backgroundOnlyAtTransparentResolution: true,
508
548
  pricing: [
509
549
  { identifier: "gpt-image-2-5-flare", credits: 15, note: "1K default" },
510
550
  { identifier: "gpt-image-2-5-flare:2K", credits: 25, note: "2K" },
@@ -533,6 +573,9 @@ var IMAGE_MODELS = {
533
573
  features: ["reference-image"],
534
574
  aspectRatios: GPT_IMAGE_2_5_RATIOS,
535
575
  resolutions: ["1K", "2K", "4K"],
576
+ backgrounds: GPT_IMAGE_BACKGROUNDS,
577
+ transparentResolution: "1K",
578
+ backgroundOnlyAtTransparentResolution: true,
536
579
  pricing: [
537
580
  { identifier: "gpt-image-2-5-flare-i2i", credits: 15, note: "1K default" },
538
581
  { identifier: "gpt-image-2-5-flare-i2i:2K", credits: 25, note: "2K" },
@@ -561,6 +604,9 @@ var IMAGE_MODELS = {
561
604
  features: ["reference-image"],
562
605
  aspectRatios: GPT_IMAGE_2_5_RATIOS,
563
606
  resolutions: ["1K", "2K", "4K"],
607
+ backgrounds: GPT_IMAGE_BACKGROUNDS,
608
+ transparentResolution: "1K",
609
+ backgroundOnlyAtTransparentResolution: true,
564
610
  pricing: [
565
611
  { identifier: "gpt-image-2-5-sunburst", credits: 15, note: "1K default" },
566
612
  { identifier: "gpt-image-2-5-sunburst:2K", credits: 25, note: "2K" },
@@ -589,6 +635,9 @@ var IMAGE_MODELS = {
589
635
  features: ["reference-image"],
590
636
  aspectRatios: GPT_IMAGE_2_5_RATIOS,
591
637
  resolutions: ["1K", "2K", "4K"],
638
+ backgrounds: GPT_IMAGE_BACKGROUNDS,
639
+ transparentResolution: "1K",
640
+ backgroundOnlyAtTransparentResolution: true,
592
641
  pricing: [
593
642
  { identifier: "gpt-image-2-5-sunburst-i2i", credits: 15, note: "1K default" },
594
643
  { identifier: "gpt-image-2-5-sunburst-i2i:2K", credits: 25, note: "2K" },
@@ -604,6 +653,185 @@ var IMAGE_MODELS = {
604
653
  },
605
654
  safetyFilter: { stochastic: true, fallback: "nano-banana-pro" }
606
655
  },
656
+ "gpt-image-2-6-flare": {
657
+ id: "gpt-image-2-6-flare",
658
+ kind: "image",
659
+ modes: ["t2i"],
660
+ family: "OpenAI",
661
+ maker: "openai",
662
+ label: "GPT Image 2.6 Flare",
663
+ series: "GPT Image",
664
+ 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.",
665
+ useCases: ["typography", "high-res", "general", "draft"],
666
+ features: ["reference-image"],
667
+ aspectRatios: GPT_IMAGE_2_6_RATIOS,
668
+ resolutions: ["1K", "2K", "4K"],
669
+ qualities: ["auto", "low", "medium", "high", "xhigh", "max"],
670
+ defaultQuality: "medium",
671
+ backgrounds: GPT_IMAGE_BACKGROUNDS,
672
+ transparentResolution: "1K",
673
+ pricing: [
674
+ { identifier: "gpt-image-2-6-flare", credits: 20, note: "medium, 1K default" },
675
+ { identifier: "gpt-image-2-6-flare:low:1K", credits: 12, note: "low, 1K" },
676
+ { identifier: "gpt-image-2-6-flare:low:2K", credits: 23, note: "low, 2K" },
677
+ { identifier: "gpt-image-2-6-flare:low:4K", credits: 38, note: "low, 4K" },
678
+ { identifier: "gpt-image-2-6-flare:medium:1K", credits: 20, note: "medium, 1K" },
679
+ { identifier: "gpt-image-2-6-flare:medium:2K", credits: 40, note: "medium, 2K" },
680
+ { identifier: "gpt-image-2-6-flare:medium:4K", credits: 67, note: "medium, 4K" },
681
+ { identifier: "gpt-image-2-6-flare:high:1K", credits: 24, note: "high, 1K" },
682
+ { identifier: "gpt-image-2-6-flare:high:2K", credits: 49, note: "high, 2K" },
683
+ { identifier: "gpt-image-2-6-flare:high:4K", credits: 81, note: "high, 4K" },
684
+ { identifier: "gpt-image-2-6-flare:xhigh:1K", credits: 43, note: "extra high, 1K" },
685
+ { identifier: "gpt-image-2-6-flare:xhigh:2K", credits: 86, note: "extra high, 2K" },
686
+ { identifier: "gpt-image-2-6-flare:xhigh:4K", credits: 143, note: "extra high, 4K" },
687
+ { identifier: "gpt-image-2-6-flare:max:1K", credits: 96, note: "max, 1K" },
688
+ { identifier: "gpt-image-2-6-flare:max:2K", credits: 193, note: "max, 2K" },
689
+ { identifier: "gpt-image-2-6-flare:max:4K", credits: 321, note: "max, 4K" },
690
+ { identifier: "gpt-image-2-6-flare:auto:1K", credits: 96, note: "auto, 1K: the most it can cost, settled on what it really cost" },
691
+ { identifier: "gpt-image-2-6-flare:auto:2K", credits: 193, note: "auto, 2K: the most it can cost, settled on what it really cost" },
692
+ { identifier: "gpt-image-2-6-flare:auto:4K", credits: 321, note: "auto, 4K: the most it can cost, settled on what it really cost" }
693
+ ],
694
+ valueLabels: GPT_IMAGE_2_6_VALUE_LABELS,
695
+ safetyFilter: { stochastic: true, fallback: "nano-banana-pro" }
696
+ },
697
+ "gpt-image-2-6-flare-i2i": {
698
+ id: "gpt-image-2-6-flare-i2i",
699
+ kind: "image",
700
+ modes: ["i2i"],
701
+ family: "OpenAI",
702
+ maker: "openai",
703
+ label: "GPT Image 2.6 Flare (I2I)",
704
+ series: "GPT Image",
705
+ description: "Fast GPT Image 2.6 edits - up to 16 input images, priced per image. Pick it while iterating.",
706
+ useCases: ["edit", "high-res"],
707
+ features: ["reference-image"],
708
+ aspectRatios: GPT_IMAGE_2_6_RATIOS,
709
+ resolutions: ["1K", "2K", "4K"],
710
+ qualities: ["auto", "low", "medium", "high", "xhigh", "max"],
711
+ defaultQuality: "medium",
712
+ backgrounds: GPT_IMAGE_BACKGROUNDS,
713
+ transparentResolution: "1K",
714
+ pricing: [
715
+ { identifier: "gpt-image-2-6-flare-i2i", credits: 20, note: "medium, 1K default" },
716
+ { identifier: "gpt-image-2-6-flare-i2i:low:1K:1ref", credits: 17, note: "low, 1K, one input image (the least)" },
717
+ { identifier: "gpt-image-2-6-flare-i2i:medium:1K:1ref", credits: 26, note: "medium, 1K, one input image" },
718
+ { identifier: "gpt-image-2-6-flare-i2i:high:4K:16ref", credits: 169, note: "high, 4K, sixteen input images" },
719
+ { identifier: "gpt-image-2-6-flare-i2i:max:4K:16ref", credits: 409, note: "max, 4K, sixteen input images (the most)" },
720
+ { 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" }
721
+ ],
722
+ valueLabels: GPT_IMAGE_2_6_VALUE_LABELS,
723
+ safetyFilter: { stochastic: true, fallback: "nano-banana-pro" }
724
+ },
725
+ "gpt-image-2-6-sunburst": {
726
+ id: "gpt-image-2-6-sunburst",
727
+ kind: "image",
728
+ modes: ["t2i"],
729
+ family: "OpenAI",
730
+ maker: "openai",
731
+ label: "GPT Image 2.6 Sunburst",
732
+ series: "GPT Image",
733
+ 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.",
734
+ useCases: ["typography", "high-res", "general"],
735
+ features: ["reference-image"],
736
+ aspectRatios: GPT_IMAGE_2_6_RATIOS,
737
+ resolutions: ["1K", "2K", "4K"],
738
+ qualities: ["auto", "low", "medium", "high", "xhigh", "max"],
739
+ defaultQuality: "medium",
740
+ backgrounds: GPT_IMAGE_BACKGROUNDS,
741
+ transparentResolution: "1K",
742
+ pricing: [
743
+ { identifier: "gpt-image-2-6-sunburst", credits: 20, note: "medium, 1K default" },
744
+ { identifier: "gpt-image-2-6-sunburst:low:1K", credits: 12, note: "low, 1K" },
745
+ { identifier: "gpt-image-2-6-sunburst:low:2K", credits: 23, note: "low, 2K" },
746
+ { identifier: "gpt-image-2-6-sunburst:low:4K", credits: 38, note: "low, 4K" },
747
+ { identifier: "gpt-image-2-6-sunburst:medium:1K", credits: 20, note: "medium, 1K" },
748
+ { identifier: "gpt-image-2-6-sunburst:medium:2K", credits: 40, note: "medium, 2K" },
749
+ { identifier: "gpt-image-2-6-sunburst:medium:4K", credits: 67, note: "medium, 4K" },
750
+ { identifier: "gpt-image-2-6-sunburst:high:1K", credits: 24, note: "high, 1K" },
751
+ { identifier: "gpt-image-2-6-sunburst:high:2K", credits: 49, note: "high, 2K" },
752
+ { identifier: "gpt-image-2-6-sunburst:high:4K", credits: 81, note: "high, 4K" },
753
+ { identifier: "gpt-image-2-6-sunburst:xhigh:1K", credits: 43, note: "extra high, 1K" },
754
+ { identifier: "gpt-image-2-6-sunburst:xhigh:2K", credits: 86, note: "extra high, 2K" },
755
+ { identifier: "gpt-image-2-6-sunburst:xhigh:4K", credits: 143, note: "extra high, 4K" },
756
+ { identifier: "gpt-image-2-6-sunburst:max:1K", credits: 96, note: "max, 1K" },
757
+ { identifier: "gpt-image-2-6-sunburst:max:2K", credits: 193, note: "max, 2K" },
758
+ { identifier: "gpt-image-2-6-sunburst:max:4K", credits: 321, note: "max, 4K" },
759
+ { identifier: "gpt-image-2-6-sunburst:auto:1K", credits: 96, note: "auto, 1K: the most it can cost, settled on what it really cost" },
760
+ { identifier: "gpt-image-2-6-sunburst:auto:2K", credits: 193, note: "auto, 2K: the most it can cost, settled on what it really cost" },
761
+ { identifier: "gpt-image-2-6-sunburst:auto:4K", credits: 321, note: "auto, 4K: the most it can cost, settled on what it really cost" }
762
+ ],
763
+ valueLabels: GPT_IMAGE_2_6_VALUE_LABELS,
764
+ safetyFilter: { stochastic: true, fallback: "nano-banana-pro" }
765
+ },
766
+ "gpt-image-2-6-sunburst-i2i": {
767
+ id: "gpt-image-2-6-sunburst-i2i",
768
+ kind: "image",
769
+ modes: ["i2i"],
770
+ family: "OpenAI",
771
+ maker: "openai",
772
+ label: "GPT Image 2.6 Sunburst (I2I)",
773
+ series: "GPT Image",
774
+ description: "Precision GPT Image 2.6 edits - up to 16 input images, priced per image. Pick it for finished, detail-critical edits.",
775
+ useCases: ["edit", "high-res"],
776
+ features: ["reference-image"],
777
+ aspectRatios: GPT_IMAGE_2_6_RATIOS,
778
+ resolutions: ["1K", "2K", "4K"],
779
+ qualities: ["auto", "low", "medium", "high", "xhigh", "max"],
780
+ defaultQuality: "medium",
781
+ backgrounds: GPT_IMAGE_BACKGROUNDS,
782
+ transparentResolution: "1K",
783
+ pricing: [
784
+ { identifier: "gpt-image-2-6-sunburst-i2i", credits: 20, note: "medium, 1K default" },
785
+ { identifier: "gpt-image-2-6-sunburst-i2i:low:1K:1ref", credits: 17, note: "low, 1K, one input image (the least)" },
786
+ { identifier: "gpt-image-2-6-sunburst-i2i:medium:1K:1ref", credits: 26, note: "medium, 1K, one input image" },
787
+ { identifier: "gpt-image-2-6-sunburst-i2i:high:4K:16ref", credits: 169, note: "high, 4K, sixteen input images" },
788
+ { identifier: "gpt-image-2-6-sunburst-i2i:max:4K:16ref", credits: 409, note: "max, 4K, sixteen input images (the most)" },
789
+ { 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" }
790
+ ],
791
+ valueLabels: GPT_IMAGE_2_6_VALUE_LABELS,
792
+ safetyFilter: { stochastic: true, fallback: "nano-banana-pro" }
793
+ },
794
+ // Economy is withheld since 2026-11-09: KIE answers every Economy request with
795
+ // an internal error, on its own playground too. Migration 611 switched the two
796
+ // ids off (`model_pricing.is_enabled`), which hides them from every menu and
797
+ // refuses a run. Turning the two rows on at /admin/models brings them back;
798
+ // `docsHidden` keeps them out of the docs until it is removed here.
799
+ "gpt-image-2-6-economy": {
800
+ id: "gpt-image-2-6-economy",
801
+ kind: "image",
802
+ modes: ["t2i"],
803
+ family: "OpenAI",
804
+ maker: "openai",
805
+ label: "GPT Image 2.6 Economy",
806
+ docsHidden: true,
807
+ series: "GPT Image",
808
+ description: "The same GPT Image 2.6 at a flat low price, 1K only - pick it for volume.",
809
+ useCases: ["general", "draft"],
810
+ features: ["reference-image"],
811
+ aspectRatios: GPT_IMAGE_2_6_ECONOMY_RATIOS,
812
+ backgrounds: GPT_IMAGE_BACKGROUNDS,
813
+ pricing: [{ identifier: "gpt-image-2-6-economy", credits: 13, note: "1K flat" }],
814
+ valueLabels: GPT_IMAGE_2_6_VALUE_LABELS,
815
+ safetyFilter: { stochastic: true, fallback: "nano-banana-pro" }
816
+ },
817
+ "gpt-image-2-6-economy-i2i": {
818
+ id: "gpt-image-2-6-economy-i2i",
819
+ kind: "image",
820
+ modes: ["i2i"],
821
+ family: "OpenAI",
822
+ maker: "openai",
823
+ label: "GPT Image 2.6 Economy (I2I)",
824
+ docsHidden: true,
825
+ series: "GPT Image",
826
+ description: "Flat-price GPT Image 2.6 edits, 1K only, up to 16 input images - pick it for volume.",
827
+ useCases: ["edit", "draft"],
828
+ features: ["reference-image"],
829
+ aspectRatios: GPT_IMAGE_2_6_ECONOMY_RATIOS,
830
+ backgrounds: GPT_IMAGE_BACKGROUNDS,
831
+ pricing: [{ identifier: "gpt-image-2-6-economy-i2i", credits: 13, note: "1K flat" }],
832
+ valueLabels: GPT_IMAGE_2_6_VALUE_LABELS,
833
+ safetyFilter: { stochastic: true, fallback: "nano-banana-pro" }
834
+ },
607
835
  // ── Ideogram ──
608
836
  // Ideogram models use a `rendering_speed` (TURBO / BALANCED / QUALITY)
609
837
  // dimension that's distinct from the `quality` lever — frontend exposes
@@ -3317,7 +3545,8 @@ function normalizeModelInput(modelId, input, context = {}) {
3317
3545
  m.resolutions,
3318
3546
  defaultResolutionFor(modelId)
3319
3547
  );
3320
- out.quality = snap("quality", input.quality, m.qualities);
3548
+ out.quality = snap("quality", input.quality, m.qualities, m.defaultQuality);
3549
+ out.background = snap("background", input.background, m.backgrounds);
3321
3550
  out.duration = m.autoDuration === true && isAutoVideoDuration(input.duration) ? input.duration : snap("duration", input.duration, m.durations);
3322
3551
  if (modelId === "gpt-image-2" || modelId === "gpt-image-2-i2i") {
3323
3552
  if (out.aspectRatio === "auto" && out.resolution !== void 0 && out.resolution !== "1K") {
@@ -3338,6 +3567,26 @@ function normalizeModelInput(modelId, input, context = {}) {
3338
3567
  out.resolution = "2K";
3339
3568
  }
3340
3569
  }
3570
+ if (out.background === "transparent" && m.transparentResolution !== void 0 && out.resolution !== void 0 && out.resolution !== m.transparentResolution) {
3571
+ adjustments.push({
3572
+ field: "resolution",
3573
+ from: out.resolution,
3574
+ to: m.transparentResolution,
3575
+ reason: `${m.label} only renders a transparent background at ${m.transparentResolution}.`
3576
+ });
3577
+ out.resolution = m.transparentResolution;
3578
+ }
3579
+ if (m.backgroundOnlyAtTransparentResolution && out.background !== void 0 && out.resolution !== void 0 && out.resolution !== m.transparentResolution) {
3580
+ if (out.background !== "auto") {
3581
+ adjustments.push({
3582
+ field: "background",
3583
+ from: out.background,
3584
+ to: void 0,
3585
+ reason: `${m.label} only takes a background setting at ${m.transparentResolution}.`
3586
+ });
3587
+ }
3588
+ out.background = void 0;
3589
+ }
3341
3590
  return out;
3342
3591
  }
3343
3592
  var PASSTHROUGH_ASPECT_TOKENS = /* @__PURE__ */ new Set(["auto", "adaptive"]);
@@ -3470,6 +3719,7 @@ var MODEL_VALUE_LABELS = {
3470
3719
  "2k": "2K",
3471
3720
  "8K": "8K (Ultra)",
3472
3721
  // qualities
3722
+ "low": "Low (Fast)",
3473
3723
  "medium": "Medium (Balanced)",
3474
3724
  "high": "High (Detailed)",
3475
3725
  "basic": "Basic (2K)",
@@ -3557,6 +3807,15 @@ function qualityOptionsByKind(kind) {
3557
3807
  }
3558
3808
  return out;
3559
3809
  }
3810
+ function backgroundOptionsByKind(kind) {
3811
+ const out = {};
3812
+ for (const m of Object.values(MODEL_CATALOG)) {
3813
+ if (m.kind !== kind) continue;
3814
+ if (!m.backgrounds) continue;
3815
+ out[m.id] = m.backgrounds.map((v) => ({ value: v, label: decorateLabel(m, v) }));
3816
+ }
3817
+ return out;
3818
+ }
3560
3819
  function buildModelMenu(kind, allowlist) {
3561
3820
  const resByModel = resolutionOptionsByKind(kind);
3562
3821
  const arByModel = aspectRatioOptionsByKind(kind);
@@ -3587,7 +3846,7 @@ function creditRangesAll() {
3587
3846
  }
3588
3847
  function modelIdsByKindMode(kind, modes, opts = {}) {
3589
3848
  const includeHidden = opts.includeHidden === true;
3590
- 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();
3849
+ 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();
3591
3850
  if (ids.length === 0) {
3592
3851
  throw new Error(
3593
3852
  `modelIdsByKindMode: no models match kind=${kind ?? "*"} modes=[${modes.join(",")}]`
@@ -3596,6 +3855,6 @@ function modelIdsByKindMode(kind, modes, opts = {}) {
3596
3855
  return ids;
3597
3856
  }
3598
3857
 
3599
- export { FLUX2_RES_MP, MODEL_CATALOG, MODEL_KINDS, MODEL_MAKERS, MODEL_RECOMMENDATIONS, SEEDANCE_DRAFT_FINALIZE_MAX_SEC, SEEDANCE_DRAFT_FINALIZE_MIN_SEC, SEEDANCE_DRAFT_FINALIZE_PROVIDER, SEEDANCE_DRAFT_FINALIZE_RESOLUTION, SEEDANCE_DRAFT_MODELS, SEEDANCE_DRAFT_RESOLUTION, SPEECH_UNIT_PRICE_NOTE, VIDEO_DURATION_AUTO, aspectRatioOptionsByKind, autoAspectNeedsSourceImage, buildModelMenu, creditRangesAll, defaultResolutionFor, durationsByMode, fitAspectRatioToModel, getAspectRatioOptions, getCreditRange, getDurationsForModel, getModel, getQualityOptions, getResolutionOptions, groupByFamily, groupByKindAndFamily, hasFeature, isAutoAspectToken, isAutoVideoDuration, isFlux2Model, isModelMakerId, isSeedanceDraftCapable, listModels, modelIdsByKindMode, modelMakerOf, modelTakesSeed, modelsWithFeature, nearestCatalogAspectRatio, normalizeModelInput, normalizeVideoRequestParams, qualityOptionsByKind, resolutionOptionsByKind, seedanceDraftFinalizeBillableSec, seedanceDraftFinalizeCreditId, validateModelInput };
3600
- //# sourceMappingURL=chunk-3CHOZ573.js.map
3601
- //# sourceMappingURL=chunk-3CHOZ573.js.map
3858
+ export { FLUX2_RES_MP, MODEL_CATALOG, MODEL_KINDS, MODEL_MAKERS, MODEL_RECOMMENDATIONS, SEEDANCE_DRAFT_FINALIZE_MAX_SEC, SEEDANCE_DRAFT_FINALIZE_MIN_SEC, SEEDANCE_DRAFT_FINALIZE_PROVIDER, SEEDANCE_DRAFT_FINALIZE_RESOLUTION, SEEDANCE_DRAFT_MODELS, SEEDANCE_DRAFT_RESOLUTION, SPEECH_UNIT_PRICE_NOTE, VIDEO_DURATION_AUTO, aspectRatioOptionsByKind, autoAspectNeedsSourceImage, backgroundOptionsByKind, buildModelMenu, creditRangesAll, defaultResolutionFor, durationsByMode, fitAspectRatioToModel, getAspectRatioOptions, getCreditRange, getDurationsForModel, getModel, getQualityOptions, getResolutionOptions, groupByFamily, groupByKindAndFamily, hasFeature, isAutoAspectToken, isAutoVideoDuration, isFlux2Model, isModelMakerId, isSeedanceDraftCapable, listModels, modelIdsByKindMode, modelMakerOf, modelTakesSeed, modelsWithFeature, nearestCatalogAspectRatio, normalizeModelInput, normalizeVideoRequestParams, qualityOptionsByKind, resolutionOptionsByKind, seedanceDraftFinalizeBillableSec, seedanceDraftFinalizeCreditId, validateModelInput };
3859
+ //# sourceMappingURL=chunk-2AR3OXAA.js.map
3860
+ //# sourceMappingURL=chunk-2AR3OXAA.js.map