@nodaro/shared 3.63.0 → 3.64.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 (209) hide show
  1. package/dist/{chunk-AE3AAJ4O.js → chunk-36VWLB4J.js} +3 -3
  2. package/dist/{chunk-AE3AAJ4O.js.map → chunk-36VWLB4J.js.map} +1 -1
  3. package/dist/{chunk-HWQ2SYNA.js → chunk-3AYM47GW.js} +5 -5
  4. package/dist/{chunk-HWQ2SYNA.js.map → chunk-3AYM47GW.js.map} +1 -1
  5. package/dist/{chunk-CZ5IQB3L.js → chunk-3KTWYYCN.js} +8 -5
  6. package/dist/chunk-3KTWYYCN.js.map +1 -0
  7. package/dist/{chunk-4MMZD63H.js → chunk-4IUE2JB7.js} +3 -3
  8. package/dist/{chunk-4MMZD63H.js.map → chunk-4IUE2JB7.js.map} +1 -1
  9. package/dist/{chunk-M5OCFGHF.cjs → chunk-5OBTGNUQ.cjs} +296 -25
  10. package/dist/chunk-5OBTGNUQ.cjs.map +1 -0
  11. package/dist/{chunk-ZPE2ZTJ4.cjs → chunk-67CMMTLN.cjs} +4 -4
  12. package/dist/{chunk-ZPE2ZTJ4.cjs.map → chunk-67CMMTLN.cjs.map} +1 -1
  13. package/dist/{chunk-WRSWH7US.cjs → chunk-6BRWPJPP.cjs} +17 -2
  14. package/dist/chunk-6BRWPJPP.cjs.map +1 -0
  15. package/dist/{chunk-HBXF6RUU.js → chunk-6YIV37V7.js} +4 -4
  16. package/dist/{chunk-HBXF6RUU.js.map → chunk-6YIV37V7.js.map} +1 -1
  17. package/dist/{chunk-F6WGGYQW.cjs → chunk-7AJGUI7L.cjs} +37 -15
  18. package/dist/chunk-7AJGUI7L.cjs.map +1 -0
  19. package/dist/{chunk-KCZHQH2O.js → chunk-7KQ6W5DS.js} +4 -4
  20. package/dist/{chunk-KCZHQH2O.js.map → chunk-7KQ6W5DS.js.map} +1 -1
  21. package/dist/{chunk-TM5JYSJF.cjs → chunk-ACZZHHFZ.cjs} +72 -33
  22. package/dist/chunk-ACZZHHFZ.cjs.map +1 -0
  23. package/dist/{chunk-Y35JQPT6.cjs → chunk-AZNZ5WNZ.cjs} +42 -42
  24. package/dist/{chunk-Y35JQPT6.cjs.map → chunk-AZNZ5WNZ.cjs.map} +1 -1
  25. package/dist/{chunk-HSHCCBIV.js → chunk-BQYCZLMF.js} +16 -3
  26. package/dist/chunk-BQYCZLMF.js.map +1 -0
  27. package/dist/{chunk-GMBDLNLD.cjs → chunk-CHS2SIP6.cjs} +183 -60
  28. package/dist/chunk-CHS2SIP6.cjs.map +1 -0
  29. package/dist/{chunk-77WU3V3J.cjs → chunk-CHTZZRAL.cjs} +6 -6
  30. package/dist/{chunk-77WU3V3J.cjs.map → chunk-CHTZZRAL.cjs.map} +1 -1
  31. package/dist/{chunk-WZVIBAKN.cjs → chunk-D4KWNDPH.cjs} +12 -12
  32. package/dist/{chunk-WZVIBAKN.cjs.map → chunk-D4KWNDPH.cjs.map} +1 -1
  33. package/dist/{chunk-PSKZKLDG.js → chunk-DZ4IOP3Q.js} +288 -26
  34. package/dist/chunk-DZ4IOP3Q.js.map +1 -0
  35. package/dist/{chunk-XGVJGNZW.cjs → chunk-EXEVT6D2.cjs} +15 -5
  36. package/dist/chunk-EXEVT6D2.cjs.map +1 -0
  37. package/dist/{chunk-X5BAFW3Q.cjs → chunk-FHGRKQVZ.cjs} +8 -8
  38. package/dist/{chunk-X5BAFW3Q.cjs.map → chunk-FHGRKQVZ.cjs.map} +1 -1
  39. package/dist/{chunk-GSKLPI3J.cjs → chunk-GTWUS6MQ.cjs} +118 -61
  40. package/dist/chunk-GTWUS6MQ.cjs.map +1 -0
  41. package/dist/{chunk-Q6IES3U2.js → chunk-H5KHWTAE.js} +5 -2
  42. package/dist/chunk-H5KHWTAE.js.map +1 -0
  43. package/dist/{chunk-V5EEQR2U.cjs → chunk-HDPJNNMF.cjs} +21 -21
  44. package/dist/{chunk-V5EEQR2U.cjs.map → chunk-HDPJNNMF.cjs.map} +1 -1
  45. package/dist/{chunk-6M563QE6.js → chunk-IYSOVS7O.js} +55 -23
  46. package/dist/chunk-IYSOVS7O.js.map +1 -0
  47. package/dist/{chunk-XGGZWA4A.cjs → chunk-J6B7J73J.cjs} +52 -49
  48. package/dist/chunk-J6B7J73J.cjs.map +1 -0
  49. package/dist/{chunk-MD4XHED4.js → chunk-KB2SQAR3.js} +3 -3
  50. package/dist/{chunk-MD4XHED4.js.map → chunk-KB2SQAR3.js.map} +1 -1
  51. package/dist/{chunk-BLJUCPMV.cjs → chunk-KSHAAPQF.cjs} +5 -2
  52. package/dist/chunk-KSHAAPQF.cjs.map +1 -0
  53. package/dist/{chunk-6TGB7ECA.cjs → chunk-O4RPXBDZ.cjs} +12 -8
  54. package/dist/chunk-O4RPXBDZ.cjs.map +1 -0
  55. package/dist/{chunk-YUER7TJG.js → chunk-OBOOHG3N.js} +13 -4
  56. package/dist/chunk-OBOOHG3N.js.map +1 -0
  57. package/dist/{chunk-6BZC2ZHC.cjs → chunk-OOZW2MM6.cjs} +9 -9
  58. package/dist/{chunk-6BZC2ZHC.cjs.map → chunk-OOZW2MM6.cjs.map} +1 -1
  59. package/dist/{chunk-A2PX5IRC.cjs → chunk-PERUFUVH.cjs} +13 -13
  60. package/dist/{chunk-A2PX5IRC.cjs.map → chunk-PERUFUVH.cjs.map} +1 -1
  61. package/dist/{chunk-3K24DWOH.js → chunk-PJJAZQVZ.js} +3 -3
  62. package/dist/{chunk-3K24DWOH.js.map → chunk-PJJAZQVZ.js.map} +1 -1
  63. package/dist/{chunk-EPXGG27L.js → chunk-Q2Y4JHF7.js} +5 -5
  64. package/dist/{chunk-EPXGG27L.js.map → chunk-Q2Y4JHF7.js.map} +1 -1
  65. package/dist/{chunk-KMGCHV6O.js → chunk-QYU7J5EQ.js} +37 -15
  66. package/dist/chunk-QYU7J5EQ.js.map +1 -0
  67. package/dist/{chunk-IY3Y462W.js → chunk-S3UGLZSF.js} +3 -3
  68. package/dist/{chunk-IY3Y462W.js.map → chunk-S3UGLZSF.js.map} +1 -1
  69. package/dist/{chunk-34QLPTSA.js → chunk-SHH2T4CR.js} +3 -3
  70. package/dist/{chunk-34QLPTSA.js.map → chunk-SHH2T4CR.js.map} +1 -1
  71. package/dist/{chunk-L2TVY6XN.cjs → chunk-SPAHI7DY.cjs} +4 -4
  72. package/dist/{chunk-L2TVY6XN.cjs.map → chunk-SPAHI7DY.cjs.map} +1 -1
  73. package/dist/{chunk-YX6TFX7H.js → chunk-SXHHLZ22.js} +66 -11
  74. package/dist/chunk-SXHHLZ22.js.map +1 -0
  75. package/dist/{chunk-LMAQUR55.cjs → chunk-T2OVDF2M.cjs} +6 -6
  76. package/dist/{chunk-LMAQUR55.cjs.map → chunk-T2OVDF2M.cjs.map} +1 -1
  77. package/dist/{chunk-2QKF7M2Z.js → chunk-TAPBDT47.js} +3 -3
  78. package/dist/{chunk-2QKF7M2Z.js.map → chunk-TAPBDT47.js.map} +1 -1
  79. package/dist/{chunk-BMJVKYVB.js → chunk-TPQJKS7D.js} +109 -7
  80. package/dist/chunk-TPQJKS7D.js.map +1 -0
  81. package/dist/{chunk-63H4C56Q.cjs → chunk-TQW3R44P.cjs} +8 -8
  82. package/dist/{chunk-63H4C56Q.cjs.map → chunk-TQW3R44P.cjs.map} +1 -1
  83. package/dist/{chunk-4DVWXEB6.js → chunk-TTGZ2L3O.js} +3 -3
  84. package/dist/{chunk-4DVWXEB6.js.map → chunk-TTGZ2L3O.js.map} +1 -1
  85. package/dist/{chunk-XBTYGQ6Z.js → chunk-VPTA4Z7G.js} +8 -5
  86. package/dist/chunk-VPTA4Z7G.js.map +1 -0
  87. package/dist/{chunk-6XUG4L7X.cjs → chunk-VZ6TE23U.cjs} +6 -6
  88. package/dist/{chunk-6XUG4L7X.cjs.map → chunk-VZ6TE23U.cjs.map} +1 -1
  89. package/dist/{chunk-LH72PQO2.cjs → chunk-W6VJAUGM.cjs} +114 -45
  90. package/dist/chunk-W6VJAUGM.cjs.map +1 -0
  91. package/dist/{chunk-OV3JTKBY.js → chunk-W7KHHNZR.js} +74 -17
  92. package/dist/chunk-W7KHHNZR.js.map +1 -0
  93. package/dist/{chunk-2PU3AGGS.cjs → chunk-YQV53HRR.cjs} +7 -7
  94. package/dist/{chunk-2PU3AGGS.cjs.map → chunk-YQV53HRR.cjs.map} +1 -1
  95. package/dist/{chunk-FXGNRYQQ.js → chunk-ZI3QDUHO.js} +3 -3
  96. package/dist/{chunk-FXGNRYQQ.js.map → chunk-ZI3QDUHO.js.map} +1 -1
  97. package/dist/entries/apps.cjs +43 -42
  98. package/dist/entries/apps.js +8 -7
  99. package/dist/entries/captions.cjs +38 -30
  100. package/dist/entries/captions.d.cts +47 -1
  101. package/dist/entries/captions.d.ts +47 -1
  102. package/dist/entries/captions.js +1 -1
  103. package/dist/entries/credits.cjs +303 -191
  104. package/dist/entries/credits.d.cts +219 -15
  105. package/dist/entries/credits.d.ts +219 -15
  106. package/dist/entries/credits.js +11 -11
  107. package/dist/entries/llm-models.cjs +62 -62
  108. package/dist/entries/llm-models.d.cts +29 -7
  109. package/dist/entries/llm-models.d.ts +29 -7
  110. package/dist/entries/llm-models.js +2 -2
  111. package/dist/entries/model-catalog.cjs +149 -109
  112. package/dist/entries/model-catalog.d.cts +64 -7
  113. package/dist/entries/model-catalog.d.ts +64 -7
  114. package/dist/entries/model-catalog.js +4 -4
  115. package/dist/entries/models.cjs +394 -346
  116. package/dist/entries/models.d.cts +4 -4
  117. package/dist/entries/models.d.ts +4 -4
  118. package/dist/entries/models.js +5 -5
  119. package/dist/entries/nodes.cjs +220 -211
  120. package/dist/entries/nodes.d.cts +46 -3
  121. package/dist/entries/nodes.d.ts +46 -3
  122. package/dist/entries/nodes.js +10 -9
  123. package/dist/entries/pipeline.cjs +156 -152
  124. package/dist/entries/pipeline.d.cts +13 -3
  125. package/dist/entries/pipeline.d.ts +13 -3
  126. package/dist/entries/pipeline.js +3 -3
  127. package/dist/entries/social.cjs +177 -177
  128. package/dist/entries/social.js +2 -2
  129. package/dist/entries/ugc.cjs +71 -71
  130. package/dist/entries/ugc.js +4 -4
  131. package/dist/entries/video.cjs +145 -145
  132. package/dist/entries/video.js +6 -6
  133. package/dist/entries/workflow.cjs +150 -150
  134. package/dist/entries/workflow.d.cts +1 -1
  135. package/dist/entries/workflow.d.ts +1 -1
  136. package/dist/entries/workflow.js +2 -2
  137. package/dist/index.cjs +1879 -1659
  138. package/dist/index.d.cts +7 -7
  139. package/dist/index.d.ts +7 -7
  140. package/dist/index.js +25 -25
  141. package/dist/{model-catalog-C_Eo35tL.d.cts → model-catalog-Cf9fkEUp.d.cts} +15 -2
  142. package/dist/{model-catalog-C_Eo35tL.d.ts → model-catalog-Cf9fkEUp.d.ts} +15 -2
  143. package/dist/{model-constants-DWcxOmaY.d.cts → model-constants-BxjiWVQ9.d.ts} +89 -19
  144. package/dist/{model-constants-Bg4ccSQb.d.ts → model-constants-C_Nyft_i.d.cts} +89 -19
  145. package/package.json +1 -1
  146. package/src/__tests__/add-captions-nemotron-pricing.test.ts +111 -0
  147. package/src/__tests__/extend-providers.test.ts +266 -26
  148. package/src/__tests__/fixtures/mask-composite-quote-parity.json +1 -1
  149. package/src/__tests__/fixtures/measured-input-quote-parity.json +1435 -0
  150. package/src/__tests__/fixtures/planned-length-quote-parity.json +1866 -0
  151. package/src/__tests__/fixtures/video-utility-quote-parity.json +2343 -0
  152. package/src/__tests__/flux-3-klein.test.ts +203 -0
  153. package/src/__tests__/gpt-image-2-6-formats.test.ts +3 -1
  154. package/src/__tests__/llm-models.test.ts +7 -9
  155. package/src/__tests__/llm-price-key.test.ts +12 -0
  156. package/src/__tests__/model-makers.test.ts +3 -0
  157. package/src/__tests__/node-runtime-keys.test.ts +7 -0
  158. package/src/__tests__/normalize-node-params.test.ts +147 -1
  159. package/src/__tests__/retired-lip-sync-providers.test.ts +43 -0
  160. package/src/__tests__/seedance-extend-source-credit-id.test.ts +89 -0
  161. package/src/__tests__/sequence-execution.test.ts +22 -1
  162. package/src/__tests__/suno-credit-type.test.ts +21 -2
  163. package/src/__tests__/transcribe-capabilities.test.ts +4 -2
  164. package/src/__tests__/video-analysis-catalog-sync.test.ts +4 -2
  165. package/src/__tests__/video-analysis-pricing.test.ts +10 -9
  166. package/src/caption-styles.ts +62 -0
  167. package/src/credit-estimators/add-captions-nemotron.ts +73 -0
  168. package/src/credit-estimators/index.ts +10 -0
  169. package/src/credit-identifiers.ts +249 -13
  170. package/src/entries/captions.ts +2 -0
  171. package/src/entries/credits.ts +25 -1
  172. package/src/entries/model-catalog.ts +13 -0
  173. package/src/entries/models.ts +15 -0
  174. package/src/entries/nodes.ts +2 -0
  175. package/src/entries/pipeline.ts +1 -1
  176. package/src/flux-3-klein.ts +69 -0
  177. package/src/input-image-pricing.ts +23 -6
  178. package/src/llm-models.ts +60 -16
  179. package/src/model-catalog.ts +280 -25
  180. package/src/model-constants.ts +146 -17
  181. package/src/node-default-mappings.ts +3 -0
  182. package/src/node-runtime-keys.ts +3 -0
  183. package/src/normalize-node-params.ts +123 -2
  184. package/src/seedance-extend-rate.ts +116 -0
  185. package/src/sequence-execution.ts +24 -0
  186. package/src/transcribe-preflight.ts +23 -0
  187. package/src/video-analysis-pricing.ts +28 -15
  188. package/dist/chunk-6M563QE6.js.map +0 -1
  189. package/dist/chunk-6TGB7ECA.cjs.map +0 -1
  190. package/dist/chunk-BLJUCPMV.cjs.map +0 -1
  191. package/dist/chunk-BMJVKYVB.js.map +0 -1
  192. package/dist/chunk-CZ5IQB3L.js.map +0 -1
  193. package/dist/chunk-F6WGGYQW.cjs.map +0 -1
  194. package/dist/chunk-GMBDLNLD.cjs.map +0 -1
  195. package/dist/chunk-GSKLPI3J.cjs.map +0 -1
  196. package/dist/chunk-HSHCCBIV.js.map +0 -1
  197. package/dist/chunk-KMGCHV6O.js.map +0 -1
  198. package/dist/chunk-LH72PQO2.cjs.map +0 -1
  199. package/dist/chunk-M5OCFGHF.cjs.map +0 -1
  200. package/dist/chunk-OV3JTKBY.js.map +0 -1
  201. package/dist/chunk-PSKZKLDG.js.map +0 -1
  202. package/dist/chunk-Q6IES3U2.js.map +0 -1
  203. package/dist/chunk-TM5JYSJF.cjs.map +0 -1
  204. package/dist/chunk-WRSWH7US.cjs.map +0 -1
  205. package/dist/chunk-XBTYGQ6Z.js.map +0 -1
  206. package/dist/chunk-XGGZWA4A.cjs.map +0 -1
  207. package/dist/chunk-XGVJGNZW.cjs.map +0 -1
  208. package/dist/chunk-YUER7TJG.js.map +0 -1
  209. package/dist/chunk-YX6TFX7H.js.map +0 -1
@@ -1,5 +1,5 @@
1
1
  import { isGptImage26Tiered, isGptImage26I2i, GPT_IMAGE_2_6_MOODBOARD_MAX_IMAGES } from './chunk-RGNHHIMN.js';
2
- import { isMinimaxH3Image, isSeedream55, isMinimaxH3ImageI2i, isSeedream55I2i, getModel } from './chunk-PSKZKLDG.js';
2
+ import { isMinimaxH3Image, isSeedream55, isMinimaxH3ImageI2i, isSeedream55I2i, isFlux3Klein, getModel } from './chunk-DZ4IOP3Q.js';
3
3
 
4
4
  // src/input-image-pricing.ts
5
5
  function isPricedPerInputImage(model) {
@@ -8,8 +8,11 @@ function isPricedPerInputImage(model) {
8
8
  function isPricedPerInputImageEdit(model) {
9
9
  return typeof model === "string" && (isGptImage26I2i(model) || isMinimaxH3ImageI2i(model) || isSeedream55I2i(model));
10
10
  }
11
+ function priceReadsInputImages(model) {
12
+ return isPricedPerInputImage(model) || isFlux3Klein(model);
13
+ }
11
14
  function pricedSentImages(provider, references, baseImageUrl) {
12
- const countsBase = isPricedPerInputImage(provider) && typeof baseImageUrl === "string" && baseImageUrl.length > 0 && !references.includes(baseImageUrl);
15
+ const countsBase = priceReadsInputImages(provider) && typeof baseImageUrl === "string" && baseImageUrl.length > 0 && !references.includes(baseImageUrl);
13
16
  return references.length + (countsBase ? 1 : 0);
14
17
  }
15
18
  function namesMoodboard(direction) {
@@ -37,6 +40,6 @@ function safetyRetryPolicy(modelId) {
37
40
  return { maxAttempts: 2 };
38
41
  }
39
42
 
40
- export { isPricedPerInputImage, isPricedPerInputImageEdit, pricedEstimatedImages, pricedSentImages, safetyRetryPolicy };
41
- //# sourceMappingURL=chunk-CZ5IQB3L.js.map
42
- //# sourceMappingURL=chunk-CZ5IQB3L.js.map
43
+ export { isPricedPerInputImage, isPricedPerInputImageEdit, priceReadsInputImages, pricedEstimatedImages, pricedSentImages, safetyRetryPolicy };
44
+ //# sourceMappingURL=chunk-3KTWYYCN.js.map
45
+ //# sourceMappingURL=chunk-3KTWYYCN.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/input-image-pricing.ts","../src/safety-retry-policy.ts"],"names":[],"mappings":";;;;AAkBO,SAAS,sBAAsB,KAAA,EAAyB;AAC7D,EAAA,OAAO,OAAO,KAAA,KAAU,QAAA,KAAa,kBAAA,CAAmB,KAAK,KAAK,gBAAA,CAAiB,KAAK,CAAA,IAAK,YAAA,CAAa,KAAK,CAAA,CAAA;AACjH;AAGO,SAAS,0BAA0B,KAAA,EAAyB;AACjE,EAAA,OAAO,OAAO,KAAA,KAAU,QAAA,KAAa,eAAA,CAAgB,KAAK,KAAK,mBAAA,CAAoB,KAAK,CAAA,IAAK,eAAA,CAAgB,KAAK,CAAA,CAAA;AACpH;AAWO,SAAS,sBAAsB,KAAA,EAAyB;AAC7D,EAAA,OAAO,qBAAA,CAAsB,KAAK,CAAA,IAAK,YAAA,CAAa,KAAK,CAAA;AAC3D;AASO,SAAS,gBAAA,CACd,QAAA,EACA,UAAA,EACA,YAAA,EACQ;AACR,EAAA,MAAM,UAAA,GACJ,qBAAA,CAAsB,QAAQ,CAAA,IAC9B,OAAO,YAAA,KAAiB,QAAA,IACxB,YAAA,CAAa,MAAA,GAAS,CAAA,IACtB,CAAC,UAAA,CAAW,SAAS,YAAY,CAAA;AACnC,EAAA,OAAO,UAAA,CAAW,MAAA,IAAU,UAAA,GAAa,CAAA,GAAI,CAAA,CAAA;AAC/C;AAEA,SAAS,eAAe,SAAA,EAA6B;AACnD,EAAA,IAAI,SAAA,KAAc,IAAA,IAAQ,OAAO,SAAA,KAAc,UAAU,OAAO,KAAA;AAChE,EAAA,MAAM,QAAS,SAAA,CAAsC,KAAA;AACrD,EAAA,OAAA,CAAQ,MAAM,OAAA,CAAQ,KAAK,IAAI,KAAA,GAAQ,CAAC,KAAK,CAAA,EAAG,IAAA;AAAA,IAC9C,CAAC,KAAA,KAAU,OAAO,UAAU,QAAA,IAAY,KAAA,CAAM,WAAW,YAAY;AAAA,GACvE;AACF;AAQO,SAAS,qBAAA,CACd,KAAA,EACA,IAAA,EACA,WAAA,EACQ;AACR,EAAA,MAAM,MAAA,GAAS,CAAC,CAAA,KAAgB,KAAA,CAAM,QAAQ,CAAC,CAAA,GAAI,EAAE,MAAA,GAAS,CAAA;AAC9D,EAAA,MAAM,MAAA,GAAS,CAAC,CAAA,KAAgB,OAAO,MAAM,QAAA,IAAY,CAAA,CAAE,MAAA,GAAS,CAAA,GAAI,CAAA,GAAI,CAAA;AAC5E,EAAA,OACE,MAAA,CAAO,IAAA,CAAK,kBAAkB,CAAA,GAC9B,OAAO,IAAA,CAAK,sBAAsB,CAAA,GAClC,MAAA,CAAO,KAAK,SAAS,CAAA,GACrB,MAAA,CAAO,IAAA,CAAK,iBAAiB,CAAA,GAC7B,MAAA,CAAO,IAAA,CAAK,YAAY,CAAA,GACxB,MAAA,CAAO,IAAA,CAAK,cAAc,IAC1B,WAAA,IACC,cAAA,CAAe,IAAA,CAAK,SAAS,IAAI,kCAAA,GAAqC,CAAA,CAAA,IACtE,yBAAA,CAA0B,KAAK,IAAI,CAAA,GAAI,CAAA,CAAA;AAE5C;;;AClEO,SAAS,kBAAkB,OAAA,EAAoC;AACpE,EAAA,MAAM,KAAA,GAAQ,SAAS,OAAO,CAAA;AAC9B,EAAA,MAAM,eAAe,KAAA,EAAO,YAAA;AAC5B,EAAA,IAAI,CAAC,YAAA,EAAc,UAAA,EAAY,OAAO,EAAE,aAAa,CAAA,EAAE;AAEvD,EAAA,MAAM,WAAW,YAAA,CAAa,QAAA;AAC9B,EAAA,IAAI,QAAA,IAAY,QAAA,CAAS,QAAQ,CAAA,EAAG;AAClC,IAAA,OAAO,EAAE,WAAA,EAAa,CAAA,EAAG,QAAA,EAAS;AAAA,EACpC;AACA,EAAA,OAAO,EAAE,aAAa,CAAA,EAAE;AAC1B","file":"chunk-3KTWYYCN.js","sourcesContent":["/**\n * The image models whose price depends on how many input images a run sends:\n * GPT Image 2.6 Flare and Sunburst, MiniMax H3 Image and Seedream 5.5. Every place that\n * prices a run counts those images through here, so a model that joins\n * `isPricedPerInputImage` is counted on every path at once. FLUX 3 Klein is\n * counted the same way (`priceReadsInputImages`): its price does not move with\n * the images, but whether any go decides the id it runs, and is priced, on.\n */\nimport {\n GPT_IMAGE_2_6_MOODBOARD_MAX_IMAGES,\n isGptImage26I2i,\n isGptImage26Tiered,\n} from \"./gpt-image-2-6.js\"\nimport { isMinimaxH3Image, isMinimaxH3ImageI2i } from \"./minimax-h3-image.js\"\nimport { isSeedream55, isSeedream55I2i } from \"./seedream-5-5.js\"\nimport { isFlux3Klein } from \"./flux-3-klein.js\"\n\n/** True for a model whose price counts the input images a run sends. */\nexport function isPricedPerInputImage(model: unknown): boolean {\n return typeof model === \"string\" && (isGptImage26Tiered(model) || isMinimaxH3Image(model) || isSeedream55(model))\n}\n\n/** True for the edit id of such a model: it always sends at least its source. */\nexport function isPricedPerInputImageEdit(model: unknown): boolean {\n return typeof model === \"string\" && (isGptImage26I2i(model) || isMinimaxH3ImageI2i(model) || isSeedream55I2i(model))\n}\n\n/**\n * True for a model whose price id reads the input images a run sends: one\n * priced per input image ({@link isPricedPerInputImage}), or FLUX 3 Klein, which\n * runs on its edit id whenever an image goes (its text-to-image endpoint takes\n * none) and is priced on that id, at the same price. Every place that prices a\n * run counts the images through {@link pricedSentImages} and\n * {@link pricedEstimatedImages} for such a model, so the id priced is the id\n * the provider runs.\n */\nexport function priceReadsInputImages(model: unknown): boolean {\n return isPricedPerInputImage(model) || isFlux3Klein(model)\n}\n\n/**\n * The images a Generate Image run sends its provider: its references and, when\n * it edits a base image, that image too (the worker puts it first, unless it is\n * already one of the references). The base is counted only on a model whose\n * price reads the images ({@link priceReadsInputImages}); any other model is\n * priced, and held to its image limit, on its references alone, as before.\n */\nexport function pricedSentImages(\n provider: string | undefined,\n references: readonly string[],\n baseImageUrl: unknown,\n): number {\n const countsBase =\n priceReadsInputImages(provider) &&\n typeof baseImageUrl === \"string\" &&\n baseImageUrl.length > 0 &&\n !references.includes(baseImageUrl)\n return references.length + (countsBase ? 1 : 0)\n}\n\nfunction namesMoodboard(direction: unknown): boolean {\n if (direction === null || typeof direction !== \"object\") return false\n const style = (direction as Record<string, unknown>).style\n return (Array.isArray(style) ? style : [style]).some(\n (value) => typeof value === \"string\" && value.startsWith(\"moodboard:\"),\n )\n}\n\n/**\n * The input images a workflow estimate counts for one node on a model whose\n * price reads them ({@link priceReadsInputImages}): every list on the node, its source or base image, what is\n * wired in, a moodboard its direction names (at the most a moodboard holds),\n * and an edit model's own source. An estimate may over-quote, never under.\n */\nexport function pricedEstimatedImages(\n model: string,\n data: Record<string, unknown>,\n wiredImages: number,\n): number {\n const listed = (v: unknown) => (Array.isArray(v) ? v.length : 0)\n const single = (v: unknown) => (typeof v === \"string\" && v.length > 0 ? 1 : 0)\n return (\n listed(data.referenceImageUrls) +\n listed(data.characterDefinitionIds) +\n listed(data.extraRefs) +\n single(data.referenceImageUrl) +\n single(data.baseImageUrl) +\n single(data.sourceImageUrl) +\n wiredImages +\n (namesMoodboard(data.direction) ? GPT_IMAGE_2_6_MOODBOARD_MAX_IMAGES : 0) +\n (isPricedPerInputImageEdit(model) ? 1 : 0)\n )\n}\n","import { getModel } from \"./model-catalog.js\"\n\n/**\n * Retry/fallback behavior derived from a catalog entry's `safetyFilter`\n * flag (see `ModelCatalogEntry.safetyFilter` in `model-catalog.ts`).\n */\nexport interface SafetyRetryPolicy {\n /** 2 when the model declares `safetyFilter.stochastic`, else 1. */\n maxAttempts: 1 | 2\n /**\n * Catalog model id to offer when the retry also blocks. Only present\n * when the entry declares one AND it resolves to a real catalog entry.\n */\n fallback?: string\n}\n\n/**\n * The provider's safety filter is known to be non-deterministic on some\n * catalog models — a benign prompt can trip it once and pass on an\n * identical retry. For those models the platform retries a blocked\n * request once (`maxAttempts: 2`) before giving up; `fallback` names the\n * catalog model to offer the user when the retry also blocks.\n *\n * Every model not flagged this way — including an unrecognized id —\n * gets a single attempt and no fallback.\n */\nexport function safetyRetryPolicy(modelId: string): SafetyRetryPolicy {\n const entry = getModel(modelId)\n const safetyFilter = entry?.safetyFilter\n if (!safetyFilter?.stochastic) return { maxAttempts: 1 }\n\n const fallback = safetyFilter.fallback\n if (fallback && getModel(fallback)) {\n return { maxAttempts: 2, fallback }\n }\n return { maxAttempts: 2 }\n}\n"]}
@@ -1,4 +1,4 @@
1
- import { LLM_FEATURE_DEFAULTS } from './chunk-KMGCHV6O.js';
1
+ import { LLM_FEATURE_DEFAULTS } from './chunk-QYU7J5EQ.js';
2
2
 
3
3
  // src/script-model.ts
4
4
  var SCRIPT_LEGACY_PROVIDER_MODELS = {
@@ -12,5 +12,5 @@ function resolveScriptModelId(provider, llmModel) {
12
12
  }
13
13
 
14
14
  export { SCRIPT_LEGACY_PROVIDER_MODELS, resolveScriptModelId };
15
- //# sourceMappingURL=chunk-4MMZD63H.js.map
16
- //# sourceMappingURL=chunk-4MMZD63H.js.map
15
+ //# sourceMappingURL=chunk-4IUE2JB7.js.map
16
+ //# sourceMappingURL=chunk-4IUE2JB7.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/script-model.ts"],"names":[],"mappings":";;;AAWO,IAAM,6BAAA,GAA0E;AAAA,EACrF,MAAA,EAAQ,kBAAA;AAAA,EACR,MAAA,EAAQ,mBAAA;AAAA,EACR,GAAA,EAAK;AACP;AAEO,SAAS,oBAAA,CAAqB,UAAmB,QAAA,EAA2B;AACjF,EAAA,MAAM,MAAA,GAAS,YAAY,MAAA,CAAO,MAAA,CAAO,+BAA+B,QAAQ,CAAA,GAAI,6BAAA,CAA8B,QAA0B,CAAA,GAAI,MAAA;AAChJ,EAAA,OAAO,QAAA,IAAY,MAAA,IAAU,oBAAA,CAAqB,iBAAiB,CAAA;AACrE","file":"chunk-4MMZD63H.js","sourcesContent":["/**\n * The model a Generate Script call runs on, in one place: an explicit\n * `llmModel`, else a legacy script `provider` alias (nodes saved before the\n * per-model picker), else the feature's default. The route validates against\n * it, the worker runs it, and the server's estimate and the editor's price it —\n * one rule, so none of them can name a different model.\n */\nimport { LLM_FEATURE_DEFAULTS } from \"./llm-models.js\"\nimport type { ScriptProvider } from \"./model-constants.js\"\n\n/** Legacy provider names → the LLM model ids they ran. */\nexport const SCRIPT_LEGACY_PROVIDER_MODELS: Readonly<Record<ScriptProvider, string>> = {\n gemini: \"gemini-3.6-flash\",\n claude: \"claude-sonnet-4.6\",\n gpt: \"gpt-5.2\",\n}\n\nexport function resolveScriptModelId(provider?: string, llmModel?: string): string {\n const legacy = provider && Object.hasOwn(SCRIPT_LEGACY_PROVIDER_MODELS, provider) ? SCRIPT_LEGACY_PROVIDER_MODELS[provider as ScriptProvider] : undefined\n return llmModel || legacy || LLM_FEATURE_DEFAULTS[\"generate-script\"]\n}\n"]}
1
+ {"version":3,"sources":["../src/script-model.ts"],"names":[],"mappings":";;;AAWO,IAAM,6BAAA,GAA0E;AAAA,EACrF,MAAA,EAAQ,kBAAA;AAAA,EACR,MAAA,EAAQ,mBAAA;AAAA,EACR,GAAA,EAAK;AACP;AAEO,SAAS,oBAAA,CAAqB,UAAmB,QAAA,EAA2B;AACjF,EAAA,MAAM,MAAA,GAAS,YAAY,MAAA,CAAO,MAAA,CAAO,+BAA+B,QAAQ,CAAA,GAAI,6BAAA,CAA8B,QAA0B,CAAA,GAAI,MAAA;AAChJ,EAAA,OAAO,QAAA,IAAY,MAAA,IAAU,oBAAA,CAAqB,iBAAiB,CAAA;AACrE","file":"chunk-4IUE2JB7.js","sourcesContent":["/**\n * The model a Generate Script call runs on, in one place: an explicit\n * `llmModel`, else a legacy script `provider` alias (nodes saved before the\n * per-model picker), else the feature's default. The route validates against\n * it, the worker runs it, and the server's estimate and the editor's price it —\n * one rule, so none of them can name a different model.\n */\nimport { LLM_FEATURE_DEFAULTS } from \"./llm-models.js\"\nimport type { ScriptProvider } from \"./model-constants.js\"\n\n/** Legacy provider names → the LLM model ids they ran. */\nexport const SCRIPT_LEGACY_PROVIDER_MODELS: Readonly<Record<ScriptProvider, string>> = {\n gemini: \"gemini-3.6-flash\",\n claude: \"claude-sonnet-4.6\",\n gpt: \"gpt-5.2\",\n}\n\nexport function resolveScriptModelId(provider?: string, llmModel?: string): string {\n const legacy = provider && Object.hasOwn(SCRIPT_LEGACY_PROVIDER_MODELS, provider) ? SCRIPT_LEGACY_PROVIDER_MODELS[provider as ScriptProvider] : undefined\n return llmModel || legacy || LLM_FEATURE_DEFAULTS[\"generate-script\"]\n}\n"]}
@@ -102,6 +102,29 @@ function seedream55Resolution(resolution) {
102
102
  return SEEDREAM_5_5_RESOLUTIONS.find((r) => r === asked) ?? SEEDREAM_5_5_DEFAULT_RESOLUTION;
103
103
  }
104
104
 
105
+ // src/flux-3-klein.ts
106
+ var FLUX_3_KLEIN_T2I = "flux-3-klein";
107
+ var FLUX_3_KLEIN_I2I = "flux-3-klein-i2i";
108
+ var FLUX_3_KLEIN_RESOLUTIONS = ["1K", "2K", "4K"];
109
+ var FLUX_3_KLEIN_DEFAULT_RESOLUTION = "1K";
110
+ var FLUX_3_KLEIN_MAX_INPUT_IMAGES = 10;
111
+ function isFlux3Klein(model) {
112
+ return model === FLUX_3_KLEIN_T2I || model === FLUX_3_KLEIN_I2I;
113
+ }
114
+ function isFlux3KleinI2i(model) {
115
+ return model === FLUX_3_KLEIN_I2I;
116
+ }
117
+ function flux3KleinResolution(resolution) {
118
+ const asked = typeof resolution === "string" ? resolution.trim().toUpperCase() : "";
119
+ return FLUX_3_KLEIN_RESOLUTIONS.find((r) => r === asked) ?? FLUX_3_KLEIN_DEFAULT_RESOLUTION;
120
+ }
121
+ function flux3KleinCreditId(provider, resolution, referenceImageCount) {
122
+ const size = flux3KleinResolution(resolution);
123
+ const images = Number.isFinite(referenceImageCount) ? Math.trunc(referenceImageCount) : 0;
124
+ const model = provider === FLUX_3_KLEIN_I2I || images > 0 ? FLUX_3_KLEIN_I2I : FLUX_3_KLEIN_T2I;
125
+ return `${model}:${size}`;
126
+ }
127
+
105
128
  // src/model-catalog.ts
106
129
  var SPEECH_UNIT_PRICE_NOTE = "per started 100 characters, at least 8 units \u2014 where length pricing is on; a request costs at most its units \xD7 this";
107
130
  var MODEL_MAKERS = {
@@ -110,6 +133,7 @@ var MODEL_MAKERS = {
110
133
  bytedance: { name: "ByteDance" },
111
134
  elevenlabs: { name: "ElevenLabs" },
112
135
  google: { name: "Google" },
136
+ heygen: { name: "HeyGen" },
113
137
  ideogram: { name: "Ideogram" },
114
138
  kuaishou: { name: "Kuaishou" },
115
139
  lightricks: { name: "Lightricks" },
@@ -252,6 +276,9 @@ var MINIMAX_H3_IMAGE_RATIOS = ["1:1", "16:9", "9:16", "4:3", "3:4", "3:2", "2:3"
252
276
  var SEEDREAM_5_5_I2I_RATIOS = ["auto", ...SEEDREAM_RATIOS];
253
277
  var SEEDREAM_5_5_BACKGROUNDS = ["auto", "opaque", "transparent"];
254
278
  var SEEDREAM_5_5_FORMATS = ["png", "jpeg"];
279
+ var FLUX_3_KLEIN_RATIOS = ["1:1", "4:3", "3:4", "3:2", "2:3", "16:9", "9:16", "21:9", "9:21"];
280
+ var FLUX_3_KLEIN_I2I_RATIOS = [...FLUX_3_KLEIN_RATIOS, "auto"];
281
+ var FLUX_3_KLEIN_FORMATS = ["png", "jpeg"];
255
282
  var Z_IMAGE_RATIOS = ["1:1", "16:9", "9:16", "4:3", "3:4"];
256
283
  var VIDEO_RATIOS_HV = ["16:9", "9:16"];
257
284
  var VIDEO_RATIOS_HVS = ["16:9", "9:16", "1:1"];
@@ -475,6 +502,63 @@ var IMAGE_MODELS = {
475
502
  aspectRatios: KONTEXT_RATIOS,
476
503
  pricing: [{ identifier: "flux-kontext-max", credits: 25 }]
477
504
  },
505
+ // ── FLUX 3 Klein ──
506
+ // The light model of Black Forest Labs' FLUX 3 (KIE `flux-3/klein-text-to-image`
507
+ // and `flux-3/klein-edit-image`). A different model from FLUX 2 Klein
508
+ // (`flux-2-klein`, below). A prompt runs the text-to-image id; with reference
509
+ // images the run moves to the edit id (`T2I_TO_I2I_VARIANT`). Priced by size
510
+ // alone, the same on both ids: reference images cost nothing
511
+ // (`flux3KleinCreditId`). Both schemas list a closed set of ratios and text to
512
+ // image has no "auto", so both entries declare `strictAspectRatios`. PNG (the
513
+ // default) or JPEG, as its siblings write (decided 2026-11-12); KIE's WebP is
514
+ // not offered. KIE's prompt enhancement is left on (never sent), and its
515
+ // custom width/height and several pictures per request are not offered.
516
+ // See: docs.kie.ai/market/flux3/klein-text-to-image.md
517
+ // docs.kie.ai/market/flux3/klein-edit-image.md
518
+ "flux-3-klein": {
519
+ id: "flux-3-klein",
520
+ kind: "image",
521
+ modes: ["t2i"],
522
+ family: "Black Forest Labs",
523
+ maker: "black-forest-labs",
524
+ label: "FLUX 3 Klein",
525
+ series: "Flux",
526
+ description: "FLUX 3 Klein - the light model of FLUX 3: fast and low cost, at 1K by default, 2K or 4K, in nine shapes, PNG or JPEG. Add images and it edits from up to 10 references, at the same price.",
527
+ useCases: ["fast", "drafts", "iteration", "realistic"],
528
+ features: ["reference-image"],
529
+ aspectRatios: FLUX_3_KLEIN_RATIOS,
530
+ strictAspectRatios: true,
531
+ resolutions: FLUX_3_KLEIN_RESOLUTIONS,
532
+ outputFormats: FLUX_3_KLEIN_FORMATS,
533
+ pricing: [
534
+ { identifier: "flux-3-klein", credits: 4, note: "1K default" },
535
+ { identifier: "flux-3-klein:1K", credits: 4, note: "1K" },
536
+ { identifier: "flux-3-klein:2K", credits: 7, note: "2K" },
537
+ { identifier: "flux-3-klein:4K", credits: 17, note: "4K" }
538
+ ]
539
+ },
540
+ "flux-3-klein-i2i": {
541
+ id: "flux-3-klein-i2i",
542
+ kind: "image",
543
+ modes: ["i2i"],
544
+ family: "Black Forest Labs",
545
+ maker: "black-forest-labs",
546
+ label: "FLUX 3 Klein (I2I)",
547
+ series: "Flux",
548
+ description: "FLUX 3 Klein edits - fast, low-cost changes from 1 to 10 reference images, which cost nothing extra. 1K by default, 2K or 4K, PNG or JPEG; auto keeps the first image's shape.",
549
+ useCases: ["edit", "iteration", "multi-reference", "fast"],
550
+ features: ["reference-image"],
551
+ aspectRatios: FLUX_3_KLEIN_I2I_RATIOS,
552
+ strictAspectRatios: true,
553
+ resolutions: FLUX_3_KLEIN_RESOLUTIONS,
554
+ outputFormats: FLUX_3_KLEIN_FORMATS,
555
+ pricing: [
556
+ { identifier: "flux-3-klein-i2i", credits: 4, note: "1K default" },
557
+ { identifier: "flux-3-klein-i2i:1K", credits: 4, note: "1K" },
558
+ { identifier: "flux-3-klein-i2i:2K", credits: 7, note: "2K" },
559
+ { identifier: "flux-3-klein-i2i:4K", credits: 17, note: "4K" }
560
+ ]
561
+ },
478
562
  // ── Replicate "Open" (uncensored) — run direct via Replicate, not KIE ──
479
563
  "flux-2-klein": {
480
564
  id: "flux-2-klein",
@@ -2945,8 +3029,11 @@ var VIDEO_MODELS = {
2945
3029
  useCases: ["extend"],
2946
3030
  pricing: [{ identifier: "runway-extend", credits: 320 }]
2947
3031
  },
2948
- // Seedance extends ANY video, one provider per model. Each is priced on its
2949
- // own rows (`tailExtendCreditId`), one per second added and resolution.
3032
+ // Seedance extends ANY video, one provider per model. Seedance 2.5 is charged
3033
+ // per second of video sent (the source's last 10 s, all of a shorter one)
3034
+ // and added, at its resolution's row, the price of two seconds (decided
3035
+ // 2026-11-12). Seedance 2.0 is priced on its own rows
3036
+ // (`tailExtendCreditId`), one per second added and resolution.
2950
3037
  // The earlier single id `seedance-2-extend` is retired and runs as Seedance 2.5.
2951
3038
  "seedance-2-5-extend": {
2952
3039
  id: "seedance-2-5-extend",
@@ -2956,15 +3043,18 @@ var VIDEO_MODELS = {
2956
3043
  maker: "bytedance",
2957
3044
  label: "Seedance 2.5 Extend",
2958
3045
  series: "Seedance",
2959
- description: "Extend ANY video with Seedance 2.5: 4\u201330s continuation (audio included), stitched into one seamless clip.",
3046
+ description: "Extend ANY video with Seedance 2.5: a 4\u201330s continuation (audio included) of the source's last 10 seconds, joined onto it. Charged per second of video sent and added; the figure is the default run, 8s added at 720p to a source of 10s or more.",
2960
3047
  useCases: ["extend"],
2961
3048
  durations: [4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30],
2962
3049
  defaultDuration: 8,
2963
3050
  resolutions: ["480p", "720p", "1080p"],
2964
3051
  pricing: [
2965
- { identifier: "seedance-2-5-extend:8s:720p", credits: 950, note: "default 8s 720p \u2014 see :Ns:res variants for exact" },
2966
- { identifier: "seedance-2-5-extend:8s:480p", credits: 425, note: "8s 480p" },
2967
- { identifier: "seedance-2-5-extend:8s:1080p", credits: 2375, note: "8s 1080p" }
3052
+ // The default run (8 s added to a source of 10 s or more: 18 s sent and
3053
+ // added, 9 units of the two-second row) at each resolution. A run is
3054
+ // charged its own seconds: `seedance-2-5-extend:<res>:per-2s` × (sent + added) ÷ 2.
3055
+ { identifier: "seedance-2-5-extend:720p:per-2s:9u", credits: 1710, note: "default run: 8s added at 720p to a source of 10s or more \u2014 priced per second sent and added" },
3056
+ { identifier: "seedance-2-5-extend:480p:per-2s:9u", credits: 765, note: "8s added at 480p to a source of 10s or more" },
3057
+ { identifier: "seedance-2-5-extend:1080p:per-2s:9u", credits: 4275, note: "8s added at 1080p to a source of 10s or more" }
2968
3058
  ]
2969
3059
  },
2970
3060
  "seedance-2-0-extend": {
@@ -3009,6 +3099,63 @@ var VIDEO_MODELS = {
3009
3099
  { identifier: "kling-4-extend:5s:1080p", credits: 638, note: "5s 1080p" }
3010
3100
  ]
3011
3101
  },
3102
+ // PixVerse V6 extends ANY video natively (no tail recipe): the whole source
3103
+ // goes to its extend, which returns it with the new seconds joined on; the
3104
+ // run keeps the user's own source and joins only the new seconds to it. Its
3105
+ // own entry, so a deployment can withhold it apart from PixVerse V6 Max, and
3106
+ // its own rows (`pixverseExtendCreditId`): one per second added and quality,
3107
+ // `:audio` with sound (on unless turned off). `resolutions` is ascending
3108
+ // (repo convention); the default quality (720p) is the extend's own, as on
3109
+ // the other extend entries (`pixverseExtendQuality`), never declared here.
3110
+ "pixverse-v6-extend": {
3111
+ id: "pixverse-v6-extend",
3112
+ kind: "video",
3113
+ modes: ["extend"],
3114
+ family: "PixVerse",
3115
+ maker: "pixverse",
3116
+ label: "PixVerse V6 Extend",
3117
+ series: "PixVerse",
3118
+ description: "Extend ANY video with PixVerse V6: 1\u201315s continuation at 360p to 1080p, with optional sound, joined onto your original clip.",
3119
+ useCases: ["extend"],
3120
+ durations: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15],
3121
+ defaultDuration: 5,
3122
+ resolutions: ["360p", "540p", "720p", "1080p"],
3123
+ pricing: [
3124
+ { identifier: "pixverse-v6-extend:5s:720p:audio", credits: 120, note: "default 5s 720p with sound \u2014 see :Ns:quality and :Ns:quality:audio variants for exact" },
3125
+ { identifier: "pixverse-v6-extend:5s:720p", credits: 90, note: "5s 720p, no sound" },
3126
+ { identifier: "pixverse-v6-extend:5s:540p:audio", credits: 90, note: "5s 540p with sound" },
3127
+ { identifier: "pixverse-v6-extend:1s:360p", credits: 10, note: "1s 360p, no sound (min)" },
3128
+ { identifier: "pixverse-v6-extend:15s:1080p:audio", credits: 690, note: "15s 1080p with sound (max)" }
3129
+ ]
3130
+ },
3131
+ // Grok extends only its OWN clips: a completed Grok Imagine text-to-video
3132
+ // or image-to-video run of the same user, named by its task (KIE takes no
3133
+ // clip URL and no other model's task). It adds 6 or 10 s and returns the
3134
+ // source with them joined on, delivered as it is. Billed at the SOURCE's
3135
+ // resolution, which is never a lever — so no `resolutions` here: the run is
3136
+ // priced on the row the source check answers (`grokExtendCreditId`), and a
3137
+ // run whose source is not known yet is quoted at the dearer 720p row, the
3138
+ // row this entry leads with. Its own entry, so a deployment can withhold it
3139
+ // apart from Grok Imagine.
3140
+ "grok-extend": {
3141
+ id: "grok-extend",
3142
+ kind: "video",
3143
+ modes: ["extend"],
3144
+ family: "xAI",
3145
+ maker: "xai",
3146
+ label: "Grok Imagine Extend",
3147
+ series: "Grok",
3148
+ description: "Extend a Grok Imagine video you made here (from text or an image) by 6 or 10 seconds, at the video's own resolution (480p or 720p).",
3149
+ useCases: ["extend"],
3150
+ durations: [6, 10],
3151
+ defaultDuration: 6,
3152
+ pricing: [
3153
+ { identifier: "grok-extend:6s:720p", credits: 70, note: "6s from a 720p source (the quote while the source is not known)" },
3154
+ { identifier: "grok-extend:6s:480p", credits: 40, note: "6s from a 480p source" },
3155
+ { identifier: "grok-extend:10s:480p", credits: 60, note: "10s from a 480p source" },
3156
+ { identifier: "grok-extend:10s:720p", credits: 120, note: "10s from a 720p source" }
3157
+ ]
3158
+ },
3012
3159
  "veo-1080p": {
3013
3160
  id: "veo-1080p",
3014
3161
  kind: "video",
@@ -3313,6 +3460,61 @@ var VIDEO_MODELS = {
3313
3460
  { identifier: "volcengine-lipsync:300s", credits: 6e3, note: "5-min ceiling" }
3314
3461
  ]
3315
3462
  },
3463
+ // LatentSync, HeyGen Lipsync Precision and Lipsync 2 Pro run on Replicate
3464
+ // (providers/replicate/lip-sync.ts). Listed so a deployment's model
3465
+ // restriction can name them (decided 2026-11-12); what they are sent and
3466
+ // charged did not change. They take no size: the result keeps the size of the
3467
+ // video they are given.
3468
+ "latentsync": {
3469
+ id: "latentsync",
3470
+ kind: "video",
3471
+ modes: ["lip-sync"],
3472
+ family: "LatentSync",
3473
+ maker: "bytedance",
3474
+ label: "LatentSync",
3475
+ series: "LatentSync",
3476
+ description: "Diffusion lip sync on an existing video \u2014 strong on singing and expressive vocals. Video input.",
3477
+ useCases: ["lip-sync", "dubbing", "video-to-video"],
3478
+ pricing: [{ identifier: "latentsync", credits: 7 }]
3479
+ },
3480
+ "heygen-lipsync-precision": {
3481
+ id: "heygen-lipsync-precision",
3482
+ kind: "video",
3483
+ modes: ["lip-sync"],
3484
+ family: "HeyGen",
3485
+ maker: "heygen",
3486
+ label: "HeyGen Lipsync Precision",
3487
+ series: "HeyGen",
3488
+ description: "Dub existing footage with precise lip sync to a new audio track. Video input, billed per second.",
3489
+ useCases: ["lip-sync", "dubbing", "video-to-video"],
3490
+ pricing: [
3491
+ { identifier: "heygen-lipsync-precision", credits: 10010, note: "5-min ceiling (no duration given)" },
3492
+ { identifier: "heygen-lipsync-precision:15s", credits: 510 },
3493
+ { identifier: "heygen-lipsync-precision:30s", credits: 1010 },
3494
+ { identifier: "heygen-lipsync-precision:60s", credits: 2010 },
3495
+ { identifier: "heygen-lipsync-precision:120s", credits: 4010 },
3496
+ { identifier: "heygen-lipsync-precision:300s", credits: 10010, note: "5-min ceiling" }
3497
+ ]
3498
+ },
3499
+ "lipsync-2-pro": {
3500
+ id: "lipsync-2-pro",
3501
+ kind: "video",
3502
+ modes: ["lip-sync"],
3503
+ family: "Sync",
3504
+ maker: "sync-labs",
3505
+ label: "Lipsync 2 Pro",
3506
+ series: "Sync",
3507
+ description: "Studio-grade lip sync on existing footage, re-synced to a new audio track. Video input, billed per second.",
3508
+ useCases: ["lip-sync", "dubbing", "video-to-video", "premium"],
3509
+ pricing: [
3510
+ { identifier: "lipsync-2-pro", credits: 12490, note: "5-min ceiling (no duration given)" },
3511
+ { identifier: "lipsync-2-pro:15s", credits: 630 },
3512
+ { identifier: "lipsync-2-pro:30s", credits: 1250 },
3513
+ { identifier: "lipsync-2-pro:60s", credits: 2500 },
3514
+ { identifier: "lipsync-2-pro:120s", credits: 5e3 },
3515
+ { identifier: "lipsync-2-pro:300s", credits: 12490, note: "5-min ceiling" }
3516
+ ]
3517
+ },
3316
3518
  // ── Video Depth ── (video-depth node; priced by the input clip's length via
3317
3519
  // videoDepthCreditId in video-depth.ts — `<provider>:<n>s`, one row per whole
3318
3520
  // second of the clip (`pricedClipSeconds`), representative rows below: `:1s` …
@@ -3358,8 +3560,8 @@ var VIDEO_MODELS = {
3358
3560
  // structural credit formula lives in video-analysis-pricing.ts. Composite id
3359
3561
  // shape `video-analysis:<model>:<bucket>s` mirrors volcengine-lipsync: bare
3360
3562
  // row = per-model namespace root at the 10-min ceiling, plus one row per bucket.)
3361
- "gemini-3-flash-video-analysis": {
3362
- id: "gemini-3-flash-video-analysis",
3563
+ "gemini-3.8-flash-video-analysis": {
3564
+ id: "gemini-3.8-flash-video-analysis",
3363
3565
  kind: "video",
3364
3566
  modes: ["video-analysis"],
3365
3567
  family: "Nodaro",
@@ -3368,6 +3570,24 @@ var VIDEO_MODELS = {
3368
3570
  series: "Video Analysis",
3369
3571
  description: "Analyze a video into a structured shot list (scenes, camera, audio) \u2014 fast, economy tier. Billed per duration bucket.",
3370
3572
  useCases: ["video-analysis", "shot-list", "fast"],
3573
+ pricing: [
3574
+ { identifier: "video-analysis:gemini-3.8-flash", credits: 880, note: "10-min ceiling (no duration given)" },
3575
+ { identifier: "video-analysis:gemini-3.8-flash:60s", credits: 186 },
3576
+ { identifier: "video-analysis:gemini-3.8-flash:180s", credits: 193 },
3577
+ { identifier: "video-analysis:gemini-3.8-flash:360s", credits: 534 },
3578
+ { identifier: "video-analysis:gemini-3.8-flash:600s", credits: 880, note: "10-min ceiling" }
3579
+ ]
3580
+ },
3581
+ "gemini-3-flash-video-analysis": {
3582
+ id: "gemini-3-flash-video-analysis",
3583
+ kind: "video",
3584
+ modes: ["video-analysis"],
3585
+ family: "Nodaro",
3586
+ maker: "nodaro",
3587
+ label: "Video Analysis (Fast \u2014 previous)",
3588
+ series: "Video Analysis",
3589
+ description: "Previous fast-tier analysis model (backed the fast tier until 2026-11-13). Kept so stored raw-model configs keep running and keep pricing under their own identifier; their runs are served by the current fast model.",
3590
+ useCases: ["video-analysis", "shot-list", "fast"],
3371
3591
  pricing: [
3372
3592
  { identifier: "video-analysis:gemini-3-flash", credits: 848, note: "10-min ceiling (no duration given)" },
3373
3593
  { identifier: "video-analysis:gemini-3-flash:60s", credits: 181 },
@@ -3426,11 +3646,11 @@ var VIDEO_MODELS = {
3426
3646
  description: "Our most advanced analysis tier \u2014 multiple analysis engines combined into one result for maximum completeness and accuracy. Billed per duration bucket.",
3427
3647
  useCases: ["video-analysis", "shot-list", "premium", "most-complete"],
3428
3648
  pricing: [
3429
- { identifier: "video-analysis:mixed", credits: 1177, note: "10-min ceiling (no duration given)" },
3430
- { identifier: "video-analysis:mixed:60s", credits: 270 },
3431
- { identifier: "video-analysis:mixed:180s", credits: 291 },
3432
- { identifier: "video-analysis:mixed:360s", credits: 729 },
3433
- { identifier: "video-analysis:mixed:600s", credits: 1177, note: "10-min ceiling" }
3649
+ { identifier: "video-analysis:mixed", credits: 1209, note: "10-min ceiling (no duration given)" },
3650
+ { identifier: "video-analysis:mixed:60s", credits: 275 },
3651
+ { identifier: "video-analysis:mixed:180s", credits: 298 },
3652
+ { identifier: "video-analysis:mixed:360s", credits: 748 },
3653
+ { identifier: "video-analysis:mixed:600s", credits: 1209, note: "10-min ceiling" }
3434
3654
  ]
3435
3655
  },
3436
3656
  // SMART — the accuracy tier. Since the 2026-08-03 hybrid re-plan it is a
@@ -3449,11 +3669,11 @@ var VIDEO_MODELS = {
3449
3669
  description: "Highest-accuracy analysis \u2014 a hybrid pass that blends a native skeleton read with several donor analysis rolls, then always refines the merged result to find shot boundaries and identify the cast by appearance. Best choice when the shot list will drive regeneration. Billed per duration bucket.",
3450
3670
  useCases: ["video-analysis", "shot-list", "premium", "most-accurate"],
3451
3671
  pricing: [
3452
- { identifier: "video-analysis:smart", credits: 2076, note: "10-min ceiling (no duration given)" },
3453
- { identifier: "video-analysis:smart:60s", credits: 413 },
3454
- { identifier: "video-analysis:smart:180s", credits: 503 },
3455
- { identifier: "video-analysis:smart:360s", credits: 1267 },
3456
- { identifier: "video-analysis:smart:600s", credits: 2076, note: "10-min ceiling" }
3672
+ { identifier: "video-analysis:smart", credits: 2097, note: "10-min ceiling (no duration given)" },
3673
+ { identifier: "video-analysis:smart:60s", credits: 416 },
3674
+ { identifier: "video-analysis:smart:180s", credits: 508 },
3675
+ { identifier: "video-analysis:smart:360s", credits: 1280 },
3676
+ { identifier: "video-analysis:smart:600s", credits: 2097, note: "10-min ceiling" }
3457
3677
  ]
3458
3678
  },
3459
3679
  // ── AI Audit (`video-audit`) ── a SEPARATE node from video-analysis (own
@@ -3498,11 +3718,11 @@ var VIDEO_MODELS = {
3498
3718
  description: "Same video-verified audit as AI Audit, but auto-runs a fast analysis first when none is wired in, then applies corrections under guards and returns a disclosed report. Billed per duration bucket.",
3499
3719
  useCases: ["video-audit", "qa", "shot-list", "verification", "auto-analysis"],
3500
3720
  pricing: [
3501
- { identifier: "video-audit:auto", credits: 1921, note: "10-min ceiling (no duration given)" },
3502
- { identifier: "video-audit:auto:60s", credits: 396 },
3503
- { identifier: "video-audit:auto:180s", credits: 475 },
3504
- { identifier: "video-audit:auto:360s", credits: 1178 },
3505
- { identifier: "video-audit:auto:600s", credits: 1921, note: "10-min ceiling" }
3721
+ { identifier: "video-audit:auto", credits: 1953, note: "10-min ceiling (no duration given)" },
3722
+ { identifier: "video-audit:auto:60s", credits: 401 },
3723
+ { identifier: "video-audit:auto:180s", credits: 483 },
3724
+ { identifier: "video-audit:auto:360s", credits: 1197 },
3725
+ { identifier: "video-audit:auto:600s", credits: 1953, note: "10-min ceiling" }
3506
3726
  ]
3507
3727
  }
3508
3728
  };
@@ -3953,6 +4173,48 @@ var AUDIO_MODELS = {
3953
4173
  useCases: ["music", "song", "vocals"],
3954
4174
  pricing: [{ identifier: "suno", credits: 30, note: "per generation" }]
3955
4175
  },
4176
+ // Suno v4.5, v4.5 All and v4.5+ (decided 2026-11-12): listed so a
4177
+ // deployment's model restriction can name them, each with a price row of its
4178
+ // own (SUNO_VERSION_CREDIT_KEYS) at the price those runs were charged before.
4179
+ "suno-v4_5": {
4180
+ id: "suno-v4_5",
4181
+ kind: "audio",
4182
+ modes: ["music"],
4183
+ family: "Suno",
4184
+ maker: "suno",
4185
+ label: "Suno v4.5",
4186
+ series: "Suno",
4187
+ dataValue: "V4_5",
4188
+ description: "Suno v4.5 \u2014 improved quality and coherence over v4.",
4189
+ useCases: ["music", "song", "vocals"],
4190
+ pricing: [{ identifier: "suno-v4_5", credits: 30, note: "per generation" }]
4191
+ },
4192
+ "suno-v4_5all": {
4193
+ id: "suno-v4_5all",
4194
+ kind: "audio",
4195
+ modes: ["music"],
4196
+ family: "Suno",
4197
+ maker: "suno",
4198
+ label: "Suno v4.5 All",
4199
+ series: "Suno",
4200
+ dataValue: "V4_5ALL",
4201
+ description: "Suno v4.5 All \u2014 full instrument and vocal generation.",
4202
+ useCases: ["music", "song", "vocals"],
4203
+ pricing: [{ identifier: "suno-v4_5all", credits: 30, note: "per generation" }]
4204
+ },
4205
+ "suno-v4_5plus": {
4206
+ id: "suno-v4_5plus",
4207
+ kind: "audio",
4208
+ modes: ["music"],
4209
+ family: "Suno",
4210
+ maker: "suno",
4211
+ label: "Suno v4.5 Plus",
4212
+ series: "Suno",
4213
+ dataValue: "V4_5PLUS",
4214
+ description: "Suno v4.5 Plus \u2014 richer production than v4.5.",
4215
+ useCases: ["music", "song", "vocals"],
4216
+ pricing: [{ identifier: "suno-v4_5plus", credits: 30, note: "per generation" }]
4217
+ },
3956
4218
  "suno-v5": {
3957
4219
  id: "suno-v5",
3958
4220
  kind: "audio",
@@ -4769,6 +5031,11 @@ function modelIdsByKindMode(kind, modes, opts = {}) {
4769
5031
 
4770
5032
  exports.CONTAINER_OVERHANG_SEC = CONTAINER_OVERHANG_SEC;
4771
5033
  exports.FLUX2_RES_MP = FLUX2_RES_MP;
5034
+ exports.FLUX_3_KLEIN_DEFAULT_RESOLUTION = FLUX_3_KLEIN_DEFAULT_RESOLUTION;
5035
+ exports.FLUX_3_KLEIN_I2I = FLUX_3_KLEIN_I2I;
5036
+ exports.FLUX_3_KLEIN_MAX_INPUT_IMAGES = FLUX_3_KLEIN_MAX_INPUT_IMAGES;
5037
+ exports.FLUX_3_KLEIN_RESOLUTIONS = FLUX_3_KLEIN_RESOLUTIONS;
5038
+ exports.FLUX_3_KLEIN_T2I = FLUX_3_KLEIN_T2I;
4772
5039
  exports.IMAGE_GIF_FRAME_SIZE = IMAGE_GIF_FRAME_SIZE;
4773
5040
  exports.IMAGE_OUTPUT_FORMAT_LABELS = IMAGE_OUTPUT_FORMAT_LABELS;
4774
5041
  exports.IMAGE_SVG_LEVEL_LABELS = IMAGE_SVG_LEVEL_LABELS;
@@ -4808,6 +5075,8 @@ exports.durationsByMode = durationsByMode;
4808
5075
  exports.editPlanSourceDurationSec = editPlanSourceDurationSec;
4809
5076
  exports.extractVideoDurationFromNode = extractVideoDurationFromNode;
4810
5077
  exports.fitAspectRatioToModel = fitAspectRatioToModel;
5078
+ exports.flux3KleinCreditId = flux3KleinCreditId;
5079
+ exports.flux3KleinResolution = flux3KleinResolution;
4811
5080
  exports.getAspectRatioOptions = getAspectRatioOptions;
4812
5081
  exports.getCreditRange = getCreditRange;
4813
5082
  exports.getDurationsForModel = getDurationsForModel;
@@ -4820,6 +5089,8 @@ exports.hasFeature = hasFeature;
4820
5089
  exports.isAutoAspectToken = isAutoAspectToken;
4821
5090
  exports.isAutoVideoDuration = isAutoVideoDuration;
4822
5091
  exports.isFlux2Model = isFlux2Model;
5092
+ exports.isFlux3Klein = isFlux3Klein;
5093
+ exports.isFlux3KleinI2i = isFlux3KleinI2i;
4823
5094
  exports.isMinimaxH3Image = isMinimaxH3Image;
4824
5095
  exports.isMinimaxH3ImageI2i = isMinimaxH3ImageI2i;
4825
5096
  exports.isModelMakerId = isModelMakerId;
@@ -4851,5 +5122,5 @@ exports.sourceImageSizeNeeded = sourceImageSizeNeeded;
4851
5122
  exports.svgLevelOptionsByKind = svgLevelOptionsByKind;
4852
5123
  exports.validateModelInput = validateModelInput;
4853
5124
  exports.videoAutoAspectRunsAt = videoAutoAspectRunsAt;
4854
- //# sourceMappingURL=chunk-M5OCFGHF.cjs.map
4855
- //# sourceMappingURL=chunk-M5OCFGHF.cjs.map
5125
+ //# sourceMappingURL=chunk-5OBTGNUQ.cjs.map
5126
+ //# sourceMappingURL=chunk-5OBTGNUQ.cjs.map