@nodaro/shared 3.62.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 (264) hide show
  1. package/dist/{chunk-C7POAYFE.js → chunk-36VWLB4J.js} +3 -3
  2. package/dist/{chunk-C7POAYFE.js.map → chunk-36VWLB4J.js.map} +1 -1
  3. package/dist/{chunk-S24ZBUB4.js → chunk-3AYM47GW.js} +6 -32
  4. package/dist/chunk-3AYM47GW.js.map +1 -0
  5. package/dist/{chunk-YCXRSWCQ.js → chunk-3KTWYYCN.js} +8 -5
  6. package/dist/chunk-3KTWYYCN.js.map +1 -0
  7. package/dist/{chunk-ZES6EZC4.js → chunk-4IUE2JB7.js} +3 -3
  8. package/dist/{chunk-ZES6EZC4.js.map → chunk-4IUE2JB7.js.map} +1 -1
  9. package/dist/{chunk-MYJQELFN.cjs → chunk-5OBTGNUQ.cjs} +547 -29
  10. package/dist/chunk-5OBTGNUQ.cjs.map +1 -0
  11. package/dist/{chunk-TWF2OSH4.cjs → chunk-67CMMTLN.cjs} +4 -4
  12. package/dist/{chunk-TWF2OSH4.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-S5TMRJMX.js → chunk-6YIV37V7.js} +4 -4
  16. package/dist/{chunk-S5TMRJMX.js.map → chunk-6YIV37V7.js.map} +1 -1
  17. package/dist/{chunk-3M4BNKFJ.cjs → chunk-7AJGUI7L.cjs} +202 -16
  18. package/dist/chunk-7AJGUI7L.cjs.map +1 -0
  19. package/dist/{chunk-JZGZ26YB.js → chunk-7KQ6W5DS.js} +4 -4
  20. package/dist/{chunk-JZGZ26YB.js.map → chunk-7KQ6W5DS.js.map} +1 -1
  21. package/dist/{chunk-IWWVPR3W.cjs → chunk-ACZZHHFZ.cjs} +149 -34
  22. package/dist/chunk-ACZZHHFZ.cjs.map +1 -0
  23. package/dist/{chunk-2W745U4A.cjs → chunk-AZNZ5WNZ.cjs} +42 -70
  24. package/dist/chunk-AZNZ5WNZ.cjs.map +1 -0
  25. package/dist/{chunk-HSHCCBIV.js → chunk-BQYCZLMF.js} +16 -3
  26. package/dist/chunk-BQYCZLMF.js.map +1 -0
  27. package/dist/chunk-CHS2SIP6.cjs +504 -0
  28. package/dist/chunk-CHS2SIP6.cjs.map +1 -0
  29. package/dist/{chunk-CIPPPT7E.cjs → chunk-CHTZZRAL.cjs} +6 -6
  30. package/dist/{chunk-CIPPPT7E.cjs.map → chunk-CHTZZRAL.cjs.map} +1 -1
  31. package/dist/{chunk-AOJ6B7K4.cjs → chunk-D4KWNDPH.cjs} +12 -12
  32. package/dist/chunk-D4KWNDPH.cjs.map +1 -0
  33. package/dist/{chunk-5YYN5X57.js → chunk-DZ4IOP3Q.js} +536 -30
  34. package/dist/chunk-DZ4IOP3Q.js.map +1 -0
  35. package/dist/{chunk-VACPZPUA.cjs → chunk-EXEVT6D2.cjs} +15 -5
  36. package/dist/chunk-EXEVT6D2.cjs.map +1 -0
  37. package/dist/{chunk-5M43XMRB.cjs → chunk-FHGRKQVZ.cjs} +8 -8
  38. package/dist/{chunk-5M43XMRB.cjs.map → chunk-FHGRKQVZ.cjs.map} +1 -1
  39. package/dist/{chunk-KJSRPHJ2.cjs → chunk-GTWUS6MQ.cjs} +165 -54
  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-G3KVK7OU.cjs → chunk-HDPJNNMF.cjs} +21 -21
  44. package/dist/{chunk-G3KVK7OU.cjs.map → chunk-HDPJNNMF.cjs.map} +1 -1
  45. package/dist/{chunk-3OYO3XCC.js → chunk-IYSOVS7O.js} +118 -24
  46. package/dist/chunk-IYSOVS7O.js.map +1 -0
  47. package/dist/{chunk-AFYTX4AI.cjs → chunk-J6B7J73J.cjs} +110 -50
  48. package/dist/chunk-J6B7J73J.cjs.map +1 -0
  49. package/dist/{chunk-I2RQB7VG.js → chunk-KB2SQAR3.js} +3 -3
  50. package/dist/{chunk-I2RQB7VG.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-6G7NN4S4.js → chunk-NIAFR5EE.js} +2 -2
  54. package/dist/chunk-NIAFR5EE.js.map +1 -0
  55. package/dist/{chunk-CF4S4N5X.js → chunk-O2QOBA6Q.js} +2 -2
  56. package/dist/{chunk-CF4S4N5X.js.map → chunk-O2QOBA6Q.js.map} +1 -1
  57. package/dist/{chunk-IDTKF5EX.cjs → chunk-O4RPXBDZ.cjs} +12 -8
  58. package/dist/chunk-O4RPXBDZ.cjs.map +1 -0
  59. package/dist/{chunk-4GGLKRYI.cjs → chunk-O6TBB4IF.cjs} +2 -2
  60. package/dist/{chunk-4GGLKRYI.cjs.map → chunk-O6TBB4IF.cjs.map} +1 -1
  61. package/dist/{chunk-PTD6EDUU.js → chunk-OBOOHG3N.js} +13 -4
  62. package/dist/chunk-OBOOHG3N.js.map +1 -0
  63. package/dist/{chunk-2D5LQFV4.cjs → chunk-OOZW2MM6.cjs} +9 -9
  64. package/dist/{chunk-2D5LQFV4.cjs.map → chunk-OOZW2MM6.cjs.map} +1 -1
  65. package/dist/{chunk-A2PX5IRC.cjs → chunk-PERUFUVH.cjs} +13 -13
  66. package/dist/{chunk-A2PX5IRC.cjs.map → chunk-PERUFUVH.cjs.map} +1 -1
  67. package/dist/{chunk-G4U3HW6W.js → chunk-PJJAZQVZ.js} +3 -3
  68. package/dist/{chunk-G4U3HW6W.js.map → chunk-PJJAZQVZ.js.map} +1 -1
  69. package/dist/{chunk-E2HZTGYX.js → chunk-Q2Y4JHF7.js} +7 -7
  70. package/dist/chunk-Q2Y4JHF7.js.map +1 -0
  71. package/dist/{chunk-FVII3KHN.js → chunk-QYU7J5EQ.js} +198 -17
  72. package/dist/chunk-QYU7J5EQ.js.map +1 -0
  73. package/dist/{chunk-JJNNM23P.js → chunk-S3UGLZSF.js} +3 -3
  74. package/dist/{chunk-JJNNM23P.js.map → chunk-S3UGLZSF.js.map} +1 -1
  75. package/dist/{chunk-CC4V2B7S.js → chunk-SHH2T4CR.js} +3 -3
  76. package/dist/{chunk-CC4V2B7S.js.map → chunk-SHH2T4CR.js.map} +1 -1
  77. package/dist/{chunk-4ZEFP2FQ.cjs → chunk-SPAHI7DY.cjs} +4 -4
  78. package/dist/{chunk-4ZEFP2FQ.cjs.map → chunk-SPAHI7DY.cjs.map} +1 -1
  79. package/dist/{chunk-Y6X7UJSD.js → chunk-SXHHLZ22.js} +122 -15
  80. package/dist/chunk-SXHHLZ22.js.map +1 -0
  81. package/dist/{chunk-HRY7KGAE.cjs → chunk-T2OVDF2M.cjs} +6 -6
  82. package/dist/{chunk-HRY7KGAE.cjs.map → chunk-T2OVDF2M.cjs.map} +1 -1
  83. package/dist/{chunk-2QKF7M2Z.js → chunk-TAPBDT47.js} +3 -3
  84. package/dist/{chunk-2QKF7M2Z.js.map → chunk-TAPBDT47.js.map} +1 -1
  85. package/dist/{chunk-NGKKNSK6.js → chunk-TPQJKS7D.js} +139 -16
  86. package/dist/chunk-TPQJKS7D.js.map +1 -0
  87. package/dist/{chunk-N7OUQK7E.cjs → chunk-TQW3R44P.cjs} +8 -8
  88. package/dist/{chunk-N7OUQK7E.cjs.map → chunk-TQW3R44P.cjs.map} +1 -1
  89. package/dist/{chunk-GSFB537T.js → chunk-TTGZ2L3O.js} +23 -4
  90. package/dist/chunk-TTGZ2L3O.js.map +1 -0
  91. package/dist/{chunk-SYWR5G3T.js → chunk-VPTA4Z7G.js} +54 -7
  92. package/dist/chunk-VPTA4Z7G.js.map +1 -0
  93. package/dist/{chunk-2HZGDZZN.cjs → chunk-VZ6TE23U.cjs} +6 -6
  94. package/dist/{chunk-2HZGDZZN.cjs.map → chunk-VZ6TE23U.cjs.map} +1 -1
  95. package/dist/{chunk-TRVWMKNE.cjs → chunk-W6VJAUGM.cjs} +285 -64
  96. package/dist/chunk-W6VJAUGM.cjs.map +1 -0
  97. package/dist/{chunk-UDDVDQMF.js → chunk-W7KHHNZR.js} +235 -37
  98. package/dist/chunk-W7KHHNZR.js.map +1 -0
  99. package/dist/{chunk-KYMHFVAZ.cjs → chunk-Y4GCJJPF.cjs} +2 -2
  100. package/dist/chunk-Y4GCJJPF.cjs.map +1 -0
  101. package/dist/{chunk-6CSXMWL4.cjs → chunk-YQV53HRR.cjs} +27 -4
  102. package/dist/chunk-YQV53HRR.cjs.map +1 -0
  103. package/dist/{chunk-7FCTCWHD.js → chunk-ZI3QDUHO.js} +3 -3
  104. package/dist/{chunk-7FCTCWHD.js.map → chunk-ZI3QDUHO.js.map} +1 -1
  105. package/dist/entries/apps.cjs +43 -42
  106. package/dist/entries/apps.js +8 -7
  107. package/dist/entries/captions.cjs +38 -30
  108. package/dist/entries/captions.d.cts +47 -1
  109. package/dist/entries/captions.d.ts +47 -1
  110. package/dist/entries/captions.js +1 -1
  111. package/dist/entries/credits.cjs +354 -174
  112. package/dist/entries/credits.d.cts +378 -27
  113. package/dist/entries/credits.d.ts +378 -27
  114. package/dist/entries/credits.js +11 -11
  115. package/dist/entries/llm-models.cjs +77 -57
  116. package/dist/entries/llm-models.d.cts +108 -7
  117. package/dist/entries/llm-models.d.ts +108 -7
  118. package/dist/entries/llm-models.js +2 -2
  119. package/dist/entries/media.cjs +63 -63
  120. package/dist/entries/media.d.cts +8 -0
  121. package/dist/entries/media.d.ts +8 -0
  122. package/dist/entries/media.js +1 -1
  123. package/dist/entries/model-catalog.cjs +161 -105
  124. package/dist/entries/model-catalog.d.cts +109 -22
  125. package/dist/entries/model-catalog.d.ts +109 -22
  126. package/dist/entries/model-catalog.js +4 -4
  127. package/dist/entries/models.cjs +466 -322
  128. package/dist/entries/models.d.cts +71 -5
  129. package/dist/entries/models.d.ts +71 -5
  130. package/dist/entries/models.js +5 -5
  131. package/dist/entries/nodes.cjs +226 -209
  132. package/dist/entries/nodes.d.cts +66 -7
  133. package/dist/entries/nodes.d.ts +66 -7
  134. package/dist/entries/nodes.js +10 -9
  135. package/dist/entries/pipeline.cjs +156 -152
  136. package/dist/entries/pipeline.d.cts +14 -4
  137. package/dist/entries/pipeline.d.ts +14 -4
  138. package/dist/entries/pipeline.js +3 -3
  139. package/dist/entries/runtime-config.cjs +29 -29
  140. package/dist/entries/runtime-config.d.cts +10 -7
  141. package/dist/entries/runtime-config.d.ts +10 -7
  142. package/dist/entries/runtime-config.js +1 -1
  143. package/dist/entries/social.cjs +177 -177
  144. package/dist/entries/social.js +2 -2
  145. package/dist/entries/types.d.cts +8 -0
  146. package/dist/entries/types.d.ts +8 -0
  147. package/dist/entries/ugc.cjs +71 -71
  148. package/dist/entries/ugc.js +4 -4
  149. package/dist/entries/video.cjs +154 -150
  150. package/dist/entries/video.d.cts +11 -2
  151. package/dist/entries/video.d.ts +11 -2
  152. package/dist/entries/video.js +6 -6
  153. package/dist/entries/workflow.cjs +150 -150
  154. package/dist/entries/workflow.d.cts +1 -1
  155. package/dist/entries/workflow.d.ts +1 -1
  156. package/dist/entries/workflow.js +2 -2
  157. package/dist/index.cjs +2136 -1704
  158. package/dist/index.d.cts +10 -10
  159. package/dist/index.d.ts +10 -10
  160. package/dist/index.js +27 -27
  161. package/dist/{model-catalog-CCEcv08q.d.ts → model-catalog-Cf9fkEUp.d.cts} +45 -2
  162. package/dist/{model-catalog-CCEcv08q.d.cts → model-catalog-Cf9fkEUp.d.ts} +45 -2
  163. package/dist/{model-constants-B88p6XR0.d.ts → model-constants-BxjiWVQ9.d.ts} +215 -32
  164. package/dist/{model-constants-Cf3zaITt.d.cts → model-constants-C_Nyft_i.d.cts} +215 -32
  165. package/package.json +1 -1
  166. package/src/__tests__/add-captions-nemotron-pricing.test.ts +111 -0
  167. package/src/__tests__/credit-identifiers.test.ts +29 -0
  168. package/src/__tests__/extend-providers.test.ts +359 -39
  169. package/src/__tests__/fixtures/mask-composite-quote-parity.json +1 -1
  170. package/src/__tests__/fixtures/measured-input-quote-parity.json +1435 -0
  171. package/src/__tests__/fixtures/planned-length-quote-parity.json +1866 -0
  172. package/src/__tests__/fixtures/video-utility-quote-parity.json +2343 -0
  173. package/src/__tests__/flux-3-klein.test.ts +203 -0
  174. package/src/__tests__/gpt-image-2-6-formats.test.ts +3 -1
  175. package/src/__tests__/gvp-supported-providers.test.ts +27 -2
  176. package/src/__tests__/lip-sync-audio-rate.test.ts +74 -0
  177. package/src/__tests__/lip-sync-levers.test.ts +31 -0
  178. package/src/__tests__/llm-models.test.ts +139 -12
  179. package/src/__tests__/llm-price-key.test.ts +164 -1
  180. package/src/__tests__/model-makers.test.ts +3 -0
  181. package/src/__tests__/nemotron-transcribe-pricing.test.ts +61 -0
  182. package/src/__tests__/node-runtime-keys.test.ts +7 -0
  183. package/src/__tests__/normalize-node-params.test.ts +172 -1
  184. package/src/__tests__/pixverse-v6-max-catalog.test.ts +271 -0
  185. package/src/__tests__/prompt-length-limits.test.ts +4 -0
  186. package/src/__tests__/retired-lip-sync-providers.test.ts +43 -0
  187. package/src/__tests__/seedance-extend-source-credit-id.test.ts +89 -0
  188. package/src/__tests__/seedance-task-type.test.ts +13 -3
  189. package/src/__tests__/sequence-execution.test.ts +22 -1
  190. package/src/__tests__/suno-credit-type.test.ts +21 -2
  191. package/src/__tests__/transcribe-capabilities.test.ts +41 -2
  192. package/src/__tests__/transcribe-preflight.test.ts +50 -1
  193. package/src/__tests__/video-analysis-catalog-sync.test.ts +4 -2
  194. package/src/__tests__/video-analysis-pricing.test.ts +10 -9
  195. package/src/__tests__/video-audio-capability.test.ts +35 -6
  196. package/src/__tests__/video-resolution-billed-as-named.test.ts +30 -0
  197. package/src/__tests__/video-upscale-params.test.ts +62 -0
  198. package/src/caption-styles.ts +62 -0
  199. package/src/catalog-projection.ts +8 -0
  200. package/src/credit-estimators/add-captions-nemotron.ts +73 -0
  201. package/src/credit-estimators/index.ts +20 -0
  202. package/src/credit-estimators/nemotron-transcribe.ts +87 -0
  203. package/src/credit-identifiers.ts +351 -41
  204. package/src/entries/captions.ts +2 -0
  205. package/src/entries/credits.ts +37 -2
  206. package/src/entries/llm-models.ts +6 -0
  207. package/src/entries/model-catalog.ts +22 -0
  208. package/src/entries/models.ts +50 -0
  209. package/src/entries/nodes.ts +4 -0
  210. package/src/entries/pipeline.ts +1 -1
  211. package/src/entries/video.ts +1 -1
  212. package/src/flux-3-klein.ts +69 -0
  213. package/src/freecut-protocol.ts +8 -0
  214. package/src/input-image-pricing.ts +23 -6
  215. package/src/lip-sync-levers.ts +56 -0
  216. package/src/lip-sync-pricing.ts +91 -1
  217. package/src/llm-models.ts +305 -16
  218. package/src/model-catalog.ts +529 -28
  219. package/src/model-constants.ts +417 -41
  220. package/src/model-tree.ts +2 -1
  221. package/src/nodaro-video-upscale.ts +48 -0
  222. package/src/node-default-mappings.ts +6 -0
  223. package/src/node-runtime-keys.ts +3 -0
  224. package/src/normalize-node-params.ts +172 -3
  225. package/src/runtime-config/contract.ts +10 -7
  226. package/src/seedance-draft.ts +2 -1
  227. package/src/seedance-extend-rate.ts +116 -0
  228. package/src/sequence-execution.ts +24 -0
  229. package/src/transcribe-preflight.ts +81 -7
  230. package/src/video-analysis-pricing.ts +28 -15
  231. package/src/video-duration.ts +9 -0
  232. package/src/video-ui-defaults.ts +5 -3
  233. package/src/video-upscale-params.ts +67 -0
  234. package/dist/chunk-2W745U4A.cjs.map +0 -1
  235. package/dist/chunk-3M4BNKFJ.cjs.map +0 -1
  236. package/dist/chunk-3OYO3XCC.js.map +0 -1
  237. package/dist/chunk-5YYN5X57.js.map +0 -1
  238. package/dist/chunk-6CSXMWL4.cjs.map +0 -1
  239. package/dist/chunk-6G7NN4S4.js.map +0 -1
  240. package/dist/chunk-AFYTX4AI.cjs.map +0 -1
  241. package/dist/chunk-AOJ6B7K4.cjs.map +0 -1
  242. package/dist/chunk-BLJUCPMV.cjs.map +0 -1
  243. package/dist/chunk-E2HZTGYX.js.map +0 -1
  244. package/dist/chunk-FVII3KHN.js.map +0 -1
  245. package/dist/chunk-GSFB537T.js.map +0 -1
  246. package/dist/chunk-HSHCCBIV.js.map +0 -1
  247. package/dist/chunk-IDTKF5EX.cjs.map +0 -1
  248. package/dist/chunk-IWWVPR3W.cjs.map +0 -1
  249. package/dist/chunk-KJSRPHJ2.cjs.map +0 -1
  250. package/dist/chunk-KYMHFVAZ.cjs.map +0 -1
  251. package/dist/chunk-MYJQELFN.cjs.map +0 -1
  252. package/dist/chunk-NGKKNSK6.js.map +0 -1
  253. package/dist/chunk-PTD6EDUU.js.map +0 -1
  254. package/dist/chunk-Q6IES3U2.js.map +0 -1
  255. package/dist/chunk-QWYFHQYK.cjs +0 -357
  256. package/dist/chunk-QWYFHQYK.cjs.map +0 -1
  257. package/dist/chunk-S24ZBUB4.js.map +0 -1
  258. package/dist/chunk-SYWR5G3T.js.map +0 -1
  259. package/dist/chunk-TRVWMKNE.cjs.map +0 -1
  260. package/dist/chunk-UDDVDQMF.js.map +0 -1
  261. package/dist/chunk-VACPZPUA.cjs.map +0 -1
  262. package/dist/chunk-WRSWH7US.cjs.map +0 -1
  263. package/dist/chunk-Y6X7UJSD.js.map +0 -1
  264. package/dist/chunk-YCXRSWCQ.js.map +0 -1
@@ -188,7 +188,9 @@ export const MAX_IMAGE_PROMPT_CHARS_BY_PROVIDER: Record<string, number> = {
188
188
  // docs.kie.ai/market/minimax-h3/text-to-image + image-edit),
189
189
  // seedream-5-5, seedream-5-5-i2i (both "5–5000 characters"; the minimum is
190
190
  // MIN_IMAGE_PROMPT_CHARS_BY_PROVIDER below;
191
- // docs.kie.ai/market/seedream/5-5-text-to-image + 5-5-image-to-image).
191
+ // docs.kie.ai/market/seedream/5-5-text-to-image + 5-5-image-to-image),
192
+ // flux-3-klein, flux-3-klein-i2i (both "1–5000 characters";
193
+ // docs.kie.ai/market/flux3/klein-text-to-image + klein-edit-image).
192
194
  // grok-i2i: doc states 390000 (78× its t2i sibling) — treated as a KIE schema
193
195
  // typo and left at the 5000 default per the sanity-cap decision.
194
196
  // UNVERIFIED (no limit stated in schema) → 5000 default: flux-kontext(-max)
@@ -304,6 +306,19 @@ export const LLM_TEXT_INPUT_MAX = 100_000
304
306
  */
305
307
  export const LLM_STRUCTURED_SYSTEM_MAX = 200_000
306
308
 
309
+ /** Kling 4.0's prompt limit, 8000 chars on both endpoints
310
+ * (docs.kie.ai/market/kling/v4-reference-to-video and /v4-keyframe-to-video). */
311
+ const KLING_4_PROMPT_MAX = 8000
312
+
313
+ /**
314
+ * The characters a Kling 4 Extend run puts around the user's prompt on its
315
+ * way to Kling 4.0: the continuation wrapper before it, and the opening-frame
316
+ * sentence (after a blank line) that the reference endpoint adds for the
317
+ * source's last frame. Held to the text the run really sends by
318
+ * `backend/src/lib/__tests__/extend-recipe.test.ts`.
319
+ */
320
+ const KLING_4_EXTEND_PROMPT_OVERHEAD = 131
321
+
307
322
  /**
308
323
  * Per-provider maximum VIDEO prompt length (chars), VERIFIED against each model's
309
324
  * official docs.kie.ai schema (2026-06). Absent → {@link VIDEO_PROMPT_MAX} (8000)
@@ -345,11 +360,21 @@ export const MAX_VIDEO_PROMPT_CHARS_BY_PROVIDER: Record<string, number> = {
345
360
  "vidu-q4": 20000,
346
361
  // Kling 4.0 — 8000 chars on both endpoints
347
362
  // (docs.kie.ai/market/kling/v4-reference-to-video and /v4-keyframe-to-video).
348
- "kling-4": 8000,
349
- "kling-4-keyframes": 8000,
363
+ "kling-4": KLING_4_PROMPT_MAX,
364
+ "kling-4-keyframes": KLING_4_PROMPT_MAX,
365
+ // Kling 4 Extend generates on Kling 4.0's reference endpoint, its user's
366
+ // prompt wrapped: the room the wrapping takes is left out, so a prompt at
367
+ // the cap (its "Avoid: …" clause last) reaches Kling 4.0 whole.
368
+ "kling-4-extend": KLING_4_PROMPT_MAX - KLING_4_EXTEND_PROMPT_OVERHEAD,
350
369
  // Kling 4.0 Flash — 8000 chars on both endpoints
351
370
  // (docs.kie.ai/market/kling/v4-flash-reference-to-video and /v4-flash-keyframe-to-video).
352
371
  "kling-4-flash": 8000,
372
+ // PixVerse V6 Max — 1-5000 chars on both endpoints
373
+ // (docs.kie.ai/market/pixverse/v6-max-text-to-video and /v6-max-image-to-video).
374
+ "pixverse-v6-max": 5000,
375
+ // PixVerse V6 Extend — 3-5000 chars (docs.kie.ai/market/pixverse/extend);
376
+ // its prompt is sent as written, so the whole cap is the user's.
377
+ "pixverse-v6-extend": 5000,
353
378
  "bytedance-lite": 10000,
354
379
  "bytedance-pro": 10000,
355
380
  "bytedance-pro-fast": 10000,
@@ -375,6 +400,9 @@ export const MAX_VIDEO_PROMPT_CHARS_BY_PROVIDER: Record<string, number> = {
375
400
  "happyhorse-ref2v": 5000,
376
401
  "happyhorse-edit": 5000,
377
402
  "runway-kie": 1800,
403
+ // OmniHuman 2.0 (lip-sync) — "Up to 300 characters" (maxLength 300 in KIE's
404
+ // omnihuman-2-0 schema, read 2026-11-11). Cut to it before the request.
405
+ "omnihuman-2-0": 300,
378
406
  // NB: `wan-2.7` / `wan-2.7-pro` are IMAGE models (see the image registry), not
379
407
  // video. The motion-transfer route's prompt is capped at the motion-control
380
408
  // limit (2500) inside the route itself — its provider values are the shared
@@ -640,6 +668,7 @@ export const MODELS_WITH_REFERENCE_IMAGE_SUPPORT = new Set([
640
668
  "seedream-5-5",
641
669
  "flux",
642
670
  "flux-flex",
671
+ "flux-3-klein",
643
672
  // Image editing / image-to-image (reference = source image)
644
673
  "nano-banana-edit",
645
674
  "gpt-image-i2i",
@@ -664,6 +693,7 @@ export const MODELS_WITH_REFERENCE_IMAGE_SUPPORT = new Set([
664
693
  "seedream-5-flash-i2i",
665
694
  "minimax-h3-image-i2i",
666
695
  "seedream-5-5-i2i",
696
+ "flux-3-klein-i2i",
667
697
  "grok-i2i",
668
698
  // Upscale / background ops (source acts as the reference)
669
699
  "recraft-remove-bg",
@@ -711,6 +741,9 @@ export const T2I_TO_I2I_VARIANT: Record<string, string> = {
711
741
  "seedream-5-5": "seedream-5-5-i2i",
712
742
  "flux": "flux-pro-i2i",
713
743
  "flux-flex": "flux-i2i",
744
+ // FLUX 3 Klein's text-to-image endpoint takes no image at all: its edit
745
+ // endpoint reads them (the provider swaps too).
746
+ "flux-3-klein": "flux-3-klein-i2i",
714
747
  }
715
748
 
716
749
  /**
@@ -753,6 +786,8 @@ export const REF_IMAGE_MAX_LIMITS: Record<string, number> = {
753
786
  "minimax-h3-image-i2i": 16,
754
787
  // Seedream 5.5 takes 1–10 `image_urls` (docs.kie.ai/market/seedream/5-5-image-to-image).
755
788
  "seedream-5-5-i2i": 10,
789
+ // FLUX 3 Klein's edit takes 1–10 `image_urls` (docs.kie.ai/market/flux3/klein-edit-image).
790
+ "flux-3-klein-i2i": 10,
756
791
  // Single-source i2i (one input image)
757
792
  "flux-kontext": 1,
758
793
  "flux-kontext-max": 1,
@@ -816,8 +851,8 @@ export const DEFAULT_REQUEST_IMAGE_LIMIT = 14
816
851
  * {@link DEFAULT_REQUEST_IMAGE_LIMIT}. Separate from
817
852
  * {@link REF_IMAGE_MAX_LIMITS}, the cap the canvas and the assembler honour: the
818
853
  * routes have their own ceiling, and it moves per model only here. GPT Image
819
- * 2.6 takes more; a model priced per input image whose provider takes fewer
820
- * (Seedream 5.5: 10) is held to its own, so a request is refused before it is
854
+ * 2.6 takes more; a model whose provider takes fewer (Seedream 5.5 and FLUX 3
855
+ * Klein: 10) is held to its own, so a request is refused before it is
821
856
  * reserved instead of failing at the provider.
822
857
  */
823
858
  const REQUEST_IMAGE_LIMITS: Record<string, number> = {
@@ -825,6 +860,7 @@ const REQUEST_IMAGE_LIMITS: Record<string, number> = {
825
860
  "gpt-image-2-6-sunburst-i2i": 16,
826
861
  "minimax-h3-image-i2i": 16,
827
862
  "seedream-5-5-i2i": 10,
863
+ "flux-3-klein-i2i": 10,
828
864
  }
829
865
 
830
866
  /** The largest per-model limit: the outer bound of the routes' array schemas. */
@@ -873,6 +909,9 @@ export const VARIABLE_PRICING_MODELS: Record<string, "quality" | "resolution" |
873
909
  // Also priced per reference image on an edit (`minimaxH3ImageCreditId`).
874
910
  "minimax-h3-image": "resolution",
875
911
  "minimax-h3-image-i2i": "resolution",
912
+ // By size alone, the same on both ids (`flux3KleinCreditId`).
913
+ "flux-3-klein": "resolution",
914
+ "flux-3-klein-i2i": "resolution",
876
915
  }
877
916
 
878
917
 
@@ -939,6 +978,7 @@ export const IMAGE_GEN_PROVIDERS = [
939
978
  "flux-flex",
940
979
  "flux-kontext",
941
980
  "flux-kontext-max",
981
+ "flux-3-klein",
942
982
  "z-image",
943
983
  "wan-2.7",
944
984
  "wan-2.7-pro",
@@ -978,6 +1018,7 @@ export const IMAGE_I2I_PROVIDERS = [
978
1018
  "seedream-5-5-i2i",
979
1019
  "flux-kontext",
980
1020
  "flux-kontext-max",
1021
+ "flux-3-klein-i2i",
981
1022
  // Replicate Open (uncensored) — multi-image Kontext via Replicate
982
1023
  "kontext-multi",
983
1024
  // BFL Flux 2 Pro — runs through Replicate
@@ -1105,6 +1146,10 @@ export const IMAGE_TO_VIDEO_PROVIDERS = [
1105
1146
  // Kling 4.0 Flash — one id over KIE's two Flash endpoints (picked by what is
1106
1147
  // wired); both run with no image, so it is listed in both arrays too.
1107
1148
  "kling-4-flash",
1149
+ // PixVerse V6 Max — one id over KIE's image-to-video and text-to-video
1150
+ // endpoints (picked by whether a start frame is wired), so it is listed in
1151
+ // this array AND in TEXT_TO_VIDEO_PROVIDERS's main section.
1152
+ "pixverse-v6-max",
1108
1153
  "ltx-2.3-pro",
1109
1154
  "ltx-2.3-fast",
1110
1155
  // xAI Grok Imagine Video 1.5 — KIE i2v (a start image required). Also listed in
@@ -1154,6 +1199,8 @@ export const TEXT_TO_VIDEO_PROVIDERS = [
1154
1199
  "kling-4",
1155
1200
  "kling-4-keyframes",
1156
1201
  "kling-4-flash",
1202
+ // PixVerse V6 Max — a real text-to-video endpoint runs an image-less request.
1203
+ "pixverse-v6-max",
1157
1204
  "ltx-2.3-pro",
1158
1205
  "ltx-2.3-fast",
1159
1206
  // ── i2v-only providers (image required) ──────────────────────────────────
@@ -1479,6 +1526,10 @@ export const VIDEO_UPSCALE_PROVIDERS = [
1479
1526
  // Seedance 2.5 Draft finalize: re-renders a Seedance 2.5 DRAFT (by its task
1480
1527
  // id) as the same take at 1080p. See seedance-draft.ts.
1481
1528
  "seedance-2-5-hd",
1529
+ // Nodaro Video Upscale: any clip up to 60 s / 50 MB into a 1080p, 2K or 4K
1530
+ // box, priced per second. Offered only where the deployment serves it (see
1531
+ // nodaro-video-upscale.ts).
1532
+ "nodaro-video-upscale",
1482
1533
  ] as const
1483
1534
  export type VideoUpscaleProvider = typeof VIDEO_UPSCALE_PROVIDERS[number]
1484
1535
 
@@ -1489,10 +1540,21 @@ export const EXTEND_VIDEO_PROVIDERS = [
1489
1540
  "ltx-2.3-pro",
1490
1541
  // Seedance extends ANY video, one provider per model: Seedance 2.5 (4–30 s
1491
1542
  // added) and Seedance 2.0 (4–15 s), each priced on its own rows
1492
- // (`seedanceExtendCreditId`). The earlier single id `seedance-2-extend` is
1543
+ // (`tailExtendCreditId`). The earlier single id `seedance-2-extend` is
1493
1544
  // retired (RETIRED_VIDEO_PROVIDERS) and runs as Seedance 2.5.
1494
1545
  "seedance-2-5-extend",
1495
1546
  "seedance-2-0-extend",
1547
+ // Kling 4 extends ANY video the same way (3–30 s added, 720p / 1080p, its
1548
+ // sound always on), generated on Kling 4.0 and priced on its own rows.
1549
+ "kling-4-extend",
1550
+ // PixVerse V6 extends ANY video natively (1–15 s added, 360p–1080p, a sound
1551
+ // switch): the whole source goes in and comes back with the new seconds
1552
+ // joined on, of which only the new ones are kept. Priced on its own rows.
1553
+ "pixverse-v6-extend",
1554
+ // Grok extends only its OWN clips (a Grok Imagine text-to-video or
1555
+ // image-to-video run of the same user), named by their task: 6 or 10 s
1556
+ // added at the source's resolution, delivered as Grok returns it.
1557
+ "grok-extend",
1496
1558
  ] as const
1497
1559
  export type ExtendVideoProvider = typeof EXTEND_VIDEO_PROVIDERS[number]
1498
1560
 
@@ -1502,12 +1564,98 @@ const SEEDANCE_EXTEND_PROVIDERS: readonly SeedanceExtendProvider[] = ["seedance-
1502
1564
 
1503
1565
  /**
1504
1566
  * Whether a value is one of the Seedance Extend Video providers. A retired id
1505
- * answers false: pass it through {@link canonicalVideoProvider} first.
1567
+ * answers false: pass it through {@link canonicalVideoProvider} first. It
1568
+ * decides the levers only Seedance has (reference images, the sound switch);
1569
+ * the length, the resolution and the price follow {@link isTailExtendProvider}.
1506
1570
  */
1507
1571
  export function isSeedanceExtendProvider(p: unknown): p is SeedanceExtendProvider {
1508
1572
  return typeof p === "string" && (SEEDANCE_EXTEND_PROVIDERS as readonly string[]).includes(p)
1509
1573
  }
1510
1574
 
1575
+ /**
1576
+ * The Extend Video providers that continue a video from its tail: the
1577
+ * source's last frame opens the new footage and its last seconds ride as the
1578
+ * `@video_1` reference, then the two are stitched into one clip. Each has its
1579
+ * own catalog entry (its seconds added and resolutions) and price rows, one
1580
+ * per second and resolution (`tailExtendCreditId`).
1581
+ */
1582
+ export type TailExtendProvider = SeedanceExtendProvider | Extract<ExtendVideoProvider, "kling-4-extend">
1583
+ const TAIL_EXTEND_PROVIDERS: readonly TailExtendProvider[] = [...SEEDANCE_EXTEND_PROVIDERS, "kling-4-extend"]
1584
+
1585
+ /**
1586
+ * Whether a value is one of the tail-recipe Extend Video providers
1587
+ * ({@link TailExtendProvider}). A retired id answers false: pass it through
1588
+ * {@link canonicalVideoProvider} first.
1589
+ */
1590
+ export function isTailExtendProvider(p: unknown): p is TailExtendProvider {
1591
+ return typeof p === "string" && (TAIL_EXTEND_PROVIDERS as readonly string[]).includes(p)
1592
+ }
1593
+
1594
+ /**
1595
+ * PixVerse V6 Extend: a native extend, no tail recipe. The whole source goes
1596
+ * to PixVerse's own extend, which returns it with the new seconds joined on;
1597
+ * the run keeps the user's source and joins only the new seconds to it.
1598
+ */
1599
+ export type PixverseExtendProvider = Extract<ExtendVideoProvider, "pixverse-v6-extend">
1600
+ export const PIXVERSE_V6_EXTEND_PROVIDER: PixverseExtendProvider = "pixverse-v6-extend"
1601
+
1602
+ /** Whether a value is {@link PIXVERSE_V6_EXTEND_PROVIDER}. */
1603
+ export function isPixverseExtendProvider(p: unknown): p is PixverseExtendProvider {
1604
+ return p === PIXVERSE_V6_EXTEND_PROVIDER
1605
+ }
1606
+
1607
+ /**
1608
+ * The Extend Video providers whose levers come from their own catalog entry —
1609
+ * the seconds added (`durations`, `defaultDuration`) and the resolution
1610
+ * (`resolutions`) — and which are priced one row per second added and
1611
+ * resolution (`catalogExtendCreditId`): the tail recipes
1612
+ * ({@link TailExtendProvider}) and PixVerse V6. Each extends any video by URL.
1613
+ * A retired id answers false: pass it through {@link canonicalVideoProvider} first.
1614
+ */
1615
+ export type CatalogExtendProvider = TailExtendProvider | PixverseExtendProvider
1616
+
1617
+ /** Whether a value is a {@link CatalogExtendProvider}. */
1618
+ export function isCatalogExtendProvider(p: unknown): p is CatalogExtendProvider {
1619
+ return isTailExtendProvider(p) || isPixverseExtendProvider(p)
1620
+ }
1621
+
1622
+ /**
1623
+ * Whether an Extend Video provider has a sound switch (`generateAudio`, on
1624
+ * unless turned off): Seedance's, which continue the soundtrack, and PixVerse
1625
+ * V6's, whose sound is priced on its own rows. Kling 4's sound is always on.
1626
+ */
1627
+ export function extendHasSoundSwitch(p: unknown): boolean {
1628
+ return isSeedanceExtendProvider(p) || isPixverseExtendProvider(p)
1629
+ }
1630
+
1631
+ /**
1632
+ * Grok Extend: a native extend of Grok's OWN clips only — a completed Grok
1633
+ * Imagine text-to-video or image-to-video run of the same user, named by its
1634
+ * task (the upstream node hands it on, as VEO's extend takes its own). It adds
1635
+ * 6 or 10 s at the SOURCE's resolution, which is never a lever: so it is no
1636
+ * {@link CatalogExtendProvider}, and is priced by `grokExtendCreditId` on the
1637
+ * resolution the source check answers.
1638
+ */
1639
+ export type GrokExtendProvider = Extract<ExtendVideoProvider, "grok-extend">
1640
+ export const GROK_EXTEND_PROVIDER: GrokExtendProvider = "grok-extend"
1641
+
1642
+ /** Whether a value is {@link GROK_EXTEND_PROVIDER}. */
1643
+ export function isGrokExtendProvider(p: unknown): p is GrokExtendProvider {
1644
+ return p === GROK_EXTEND_PROVIDER
1645
+ }
1646
+
1647
+ /**
1648
+ * The Grok Imagine video models whose clips Grok Extend can extend: text-to-
1649
+ * video's id and image-to-video's (not Grok Imagine Video 1.5, a different
1650
+ * model on the provider's side).
1651
+ */
1652
+ export const GROK_EXTEND_SOURCE_MODELS = ["grok", "grok-i2v"] as const
1653
+
1654
+ /** Whether a model is one of {@link GROK_EXTEND_SOURCE_MODELS}. */
1655
+ export function isGrokExtendSourceModel(p: unknown): boolean {
1656
+ return typeof p === "string" && (GROK_EXTEND_SOURCE_MODELS as readonly string[]).includes(p)
1657
+ }
1658
+
1511
1659
  /** Lip sync providers */
1512
1660
  export const LIP_SYNC_PROVIDERS = [
1513
1661
  "kling-avatar",
@@ -1517,10 +1665,14 @@ export const LIP_SYNC_PROVIDERS = [
1517
1665
  // performance, per-second billed, 60s audio cap. Routes the default KIE
1518
1666
  // path (not in any replicate/fal/seedance/video-input set).
1519
1667
  "omnihuman-1-5",
1668
+ // ByteDance OmniHuman 2.0 — a different model from 1.5 (no speaker mask, no
1669
+ // resolution choice, no fast mode, no seed; 720p output). KIE image+audio
1670
+ // avatar on the default KIE path, charged per second of its audio at a rate
1671
+ // (LIP_SYNC_AUDIO_RATES), never by bucket.
1672
+ "omnihuman-2-0",
1520
1673
  "latentsync",
1521
- "wav2lip",
1522
- "video-retalking",
1523
- "sadtalker",
1674
+ // (Wav2Lip, VideoReTalking and SadTalker were retired 2026-11-12:
1675
+ // RETIRED_LIP_SYNC_PROVIDERS below.)
1524
1676
  // HeyGen Lipsync Precision + Sync Lipsync 2 Pro — Replicate-hosted, video-input
1525
1677
  // dubbing models billed per second of output. Routed through replicateLipSync;
1526
1678
  // priced per-second via buildLipSyncCreditId (see lip-sync-pricing.ts).
@@ -1552,6 +1704,34 @@ export const LIP_SYNC_PROVIDERS = [
1552
1704
  ] as const
1553
1705
  export type LipSyncProvider = typeof LIP_SYNC_PROVIDERS[number]
1554
1706
 
1707
+ /**
1708
+ * Lip Sync models the platform no longer offers (retired 2026-11-12), with the
1709
+ * name each is shown by. They left every menu, the route's accepted values and
1710
+ * the MCP tool; a request, a saved or imported workflow node or an app run that
1711
+ * still names one is refused before anything is reserved, with
1712
+ * {@link retiredLipSyncProviderMessage} — never moved to another model, whose
1713
+ * inputs and price differ. The editor shows a saved node on one as retired and
1714
+ * leaves the choice of another model to the person.
1715
+ */
1716
+ export const RETIRED_LIP_SYNC_PROVIDERS: Readonly<Record<string, string>> = {
1717
+ wav2lip: "Wav2Lip",
1718
+ "video-retalking": "VideoReTalking",
1719
+ sadtalker: "SadTalker",
1720
+ }
1721
+
1722
+ /** The name of a retired Lip Sync model, or undefined for any other value. Own keys only (the value is request input). */
1723
+ export function retiredLipSyncProviderName(provider: unknown): string | undefined {
1724
+ return typeof provider === "string" && Object.hasOwn(RETIRED_LIP_SYNC_PROVIDERS, provider)
1725
+ ? RETIRED_LIP_SYNC_PROVIDERS[provider]
1726
+ : undefined
1727
+ }
1728
+
1729
+ /** The refusal a run of a retired Lip Sync model gets, or undefined for any other value. */
1730
+ export function retiredLipSyncProviderMessage(provider: unknown): string | undefined {
1731
+ const name = retiredLipSyncProviderName(provider)
1732
+ return name === undefined ? undefined : `${name} is no longer available for Lip Sync. Pick another Lip Sync model.`
1733
+ }
1734
+
1555
1735
  /** Multimodal video models exposed via the lip-sync surface (Seedance 2 family
1556
1736
  * + MiniMax Hailuo 3). They go through the i2v provider with the audio
1557
1737
  * plumbed as `reference_audio_urls` rather than a dedicated lip-sync flow.
@@ -1564,12 +1744,10 @@ export const SEEDANCE_LIP_SYNC_PROVIDERS = new Set<string>([
1564
1744
  "minimax-h3",
1565
1745
  ])
1566
1746
 
1567
- /** Replicate-based lip-sync providers (video or image+audio via Replicate SDK) */
1747
+ /** Replicate-based lip-sync providers (video or image+audio via Replicate SDK).
1748
+ * The retired ones ran there too (`RETIRED_LIP_SYNC_PROVIDERS`). */
1568
1749
  export const REPLICATE_LIP_SYNC_PROVIDERS = new Set([
1569
1750
  "latentsync",
1570
- "wav2lip",
1571
- "video-retalking",
1572
- "sadtalker",
1573
1751
  "heygen-lipsync-precision",
1574
1752
  "lipsync-2-pro",
1575
1753
  ] as const)
@@ -1580,7 +1758,9 @@ export const FAL_LIP_SYNC_PROVIDERS = new Set([
1580
1758
  "sync-lipsync-v3",
1581
1759
  ] as const)
1582
1760
 
1583
- /** Lip-sync providers that require video input (not image) */
1761
+ /** Lip-sync providers that require video input (not image). A retired id
1762
+ * stays in this set and the next: a saved node on it keeps the handles its
1763
+ * edges attach to until the person picks another model. */
1584
1764
  export const VIDEO_INPUT_LIP_SYNC_PROVIDERS = new Set([
1585
1765
  "latentsync",
1586
1766
  "video-retalking",
@@ -1739,12 +1919,14 @@ export function resolveMusicProvider(value: unknown): MusicProvider {
1739
1919
  * (the canvas picker re-offered the two Replicate lanes in #768 while this enum
1740
1920
  * still hid them, so a single-node Run on Whisper 400'd where the same node in a
1741
1921
  * workflow Run worked). `elevenlabs-stt` stays FIRST: several call sites take
1742
- * "the first enabled word-capable provider" from this order.
1922
+ * "the first enabled word-capable provider" from this order. A new engine goes
1923
+ * at the END (Nemotron 3.5 Transcribe, 2026-11-12), so that answer never moves.
1743
1924
  */
1744
1925
  export const TRANSCRIBE_PROVIDERS = [
1745
1926
  "elevenlabs-stt",
1746
1927
  "whisper",
1747
1928
  "incredibly-fast-whisper",
1929
+ "nemotron-3-5-transcribe",
1748
1930
  ] as const
1749
1931
  export type TranscribeProvider = typeof TRANSCRIBE_PROVIDERS[number]
1750
1932
 
@@ -1760,6 +1942,7 @@ export const TRANSCRIBE_LANES = [
1760
1942
  "whisper",
1761
1943
  "incredibly-fast-whisper",
1762
1944
  "elevenlabs-stt",
1945
+ "nemotron-3-5-transcribe",
1763
1946
  ] as const
1764
1947
  export type TranscribeLane = typeof TRANSCRIBE_LANES[number]
1765
1948
 
@@ -1768,6 +1951,24 @@ export type TranscribeLane = typeof TRANSCRIBE_LANES[number]
1768
1951
  const _TRANSCRIBE_PROVIDERS_ARE_LANES: readonly TranscribeLane[] = TRANSCRIBE_PROVIDERS
1769
1952
  void _TRANSCRIBE_PROVIDERS_ARE_LANES
1770
1953
 
1954
+ /**
1955
+ * The lanes Add Captions may transcribe on (its `transcribe_provider`, on the
1956
+ * route, MCP `add_captions` and the SDK's `media.addCaptions`). Its flat render
1957
+ * price (`add-captions:kinetic`) covers the transcription on every lane but
1958
+ * Nemotron 3.5 Transcribe, which is priced by the video's length: a caption
1959
+ * run on it holds the render plus Nemotron's per-minute price as ONE charge
1960
+ * (`add-captions:kinetic:nemotron:<N>m`, decided 2026-11-13), always with word
1961
+ * timings and never a translation. A new lane here is a pricing decision, not
1962
+ * a sync.
1963
+ */
1964
+ export const CAPTION_TRANSCRIBE_LANES = [
1965
+ "whisper",
1966
+ "incredibly-fast-whisper",
1967
+ "elevenlabs-stt",
1968
+ "nemotron-3-5-transcribe",
1969
+ ] as const satisfies readonly TranscribeLane[]
1970
+ export type CaptionTranscribeLane = typeof CAPTION_TRANSCRIBE_LANES[number]
1971
+
1771
1972
  /**
1772
1973
  * What each transcription lane can actually DO. Single source of truth — never
1773
1974
  * re-derive a capability from a provider-name check.
@@ -1779,11 +1980,44 @@ void _TRANSCRIBE_PROVIDERS_ARE_LANES
1779
1980
  * for word timings yields an empty array, never an error.
1780
1981
  * - `incredibly-fast-whisper` — yes, via `timestamp: "word"`.
1781
1982
  * - `elevenlabs-stt` (direct Scribe) — always word-level, flag or not.
1983
+ * - `nemotron-3-5-transcribe` (KIE) — yes, with a speaker per word, via
1984
+ * `timestamps: true` (transcription only: never with a translation).
1985
+ *
1986
+ * `translation`: can the lane translate the speech instead of transcribing it
1987
+ * (`targetLanguage`)? Only Nemotron 3.5 Transcribe, to or from English, and
1988
+ * never together with word timings (KIE refuses the pair).
1989
+ */
1990
+ export const TRANSCRIBE_PROVIDER_CAPABILITIES: Record<TranscribeLane, { wordTimestamps: boolean; translation: boolean }> = {
1991
+ "whisper": { wordTimestamps: false, translation: false },
1992
+ "incredibly-fast-whisper": { wordTimestamps: true, translation: false },
1993
+ "elevenlabs-stt": { wordTimestamps: true, translation: false },
1994
+ "nemotron-3-5-transcribe": { wordTimestamps: true, translation: true },
1995
+ }
1996
+
1997
+ /**
1998
+ * The languages Nemotron 3.5 Transcribe translates INTO (KIE's
1999
+ * `target_language` enum, ISO 639-1). Translation is supported to or from
2000
+ * English: other speech into `en`, or English speech into any other listed
2001
+ * language. Fewer than the 40 it transcribes.
1782
2002
  */
1783
- export const TRANSCRIBE_PROVIDER_CAPABILITIES: Record<TranscribeLane, { wordTimestamps: boolean }> = {
1784
- "whisper": { wordTimestamps: false },
1785
- "incredibly-fast-whisper": { wordTimestamps: true },
1786
- "elevenlabs-stt": { wordTimestamps: true },
2003
+ export const TRANSCRIBE_TARGET_LANGUAGES = [
2004
+ "en", "zh", "ja", "ko", "fr", "de", "es", "pt", "it", "ru", "nl", "pl", "cs", "sk", "hi", "bg",
2005
+ "hr", "da", "et", "fi", "hu", "lv", "lt", "ro", "sl", "sv", "th", "uk", "ar", "el", "he", "mt",
2006
+ ] as const
2007
+ export type TranscribeTargetLanguage = typeof TRANSCRIBE_TARGET_LANGUAGES[number]
2008
+
2009
+ /** The lanes that can translate, in declaration order. */
2010
+ export function transcribeProvidersWithTranslation(): TranscribeLane[] {
2011
+ return TRANSCRIBE_LANES.filter((p) => TRANSCRIBE_PROVIDER_CAPABILITIES[p].translation)
2012
+ }
2013
+
2014
+ /**
2015
+ * Capability question for a lane id from UNTRUSTED data (node data, an
2016
+ * imported workflow, a wire body): an unknown lane answers `false`.
2017
+ */
2018
+ export function transcribeLaneSupportsTranslation(lane: string | null | undefined): boolean {
2019
+ if (!lane) return false
2020
+ return TRANSCRIBE_PROVIDER_CAPABILITIES[lane as TranscribeLane]?.translation === true
1787
2021
  }
1788
2022
 
1789
2023
  /** The lanes that can honour a word-timestamps request, in declaration order. */
@@ -1969,6 +2203,7 @@ export const IMAGE_MASK_MODE: Record<ImageGenProvider, ImageMaskMode> = {
1969
2203
  "seedream-5-flash": "prompt",
1970
2204
  "minimax-h3-image": "prompt",
1971
2205
  "seedream-5-5": "prompt",
2206
+ "flux-3-klein": "prompt",
1972
2207
  "qwen": "prompt",
1973
2208
  "flux-kontext": "prompt",
1974
2209
  "flux-kontext-max": "prompt",
@@ -2001,6 +2236,7 @@ export const SEED_SUPPORT = new Set([
2001
2236
  "flux", "flux-flex", "flux-i2i", "flux-pro-i2i", "flux-kontext", "flux-kontext-max",
2002
2237
  "flux-2-klein", "kontext-multi",
2003
2238
  "minimax-h3-image", "minimax-h3-image-i2i",
2239
+ "flux-3-klein", "flux-3-klein-i2i",
2004
2240
  ])
2005
2241
 
2006
2242
  /** Ideogram models that support rendering_speed selection (TURBO/BALANCED/QUALITY) */
@@ -2064,6 +2300,9 @@ export const DURATION_PRICED_PROVIDERS = new Set([
2064
2300
  // only Omni SKU here: the per-clip SKUs price in their own branch of
2065
2301
  // buildVideoCreditModelIdentifier.
2066
2302
  "gemini-omni-flash-1-2",
2303
+ // PixVerse V6 Max — per-second billing at four quality rates, each with and
2304
+ // without native audio (the `:audio` rows, AUDIO_ADDON_PROVIDERS).
2305
+ "pixverse-v6-max",
2067
2306
  ])
2068
2307
 
2069
2308
  /**
@@ -2319,6 +2558,36 @@ export function normalizeGrokVideo15Resolution(resolution: string | undefined):
2319
2558
  /** Most in-between frames Grok Imagine Video 1.5 takes (KIE `keyframes`). */
2320
2559
  export const GROK_VIDEO_15_MAX_MIDDLE_FRAMES = 4
2321
2560
 
2561
+ /**
2562
+ * PixVerse V6 Max — ONE Nodaro id over KIE's two V6 Max endpoints
2563
+ * (`pixverse-v6-max/image-to-video` with a start frame,
2564
+ * `pixverse-v6-max/text-to-video` without one), built by the backend's bespoke
2565
+ * runner (`kie/pixverse-v6-max.ts`).
2566
+ */
2567
+ export const PIXVERSE_V6_MAX_PROVIDER = "pixverse-v6-max"
2568
+
2569
+ export function isPixverseV6MaxProvider(provider: string | undefined): provider is "pixverse-v6-max" {
2570
+ return provider === PIXVERSE_V6_MAX_PROVIDER
2571
+ }
2572
+
2573
+ /** PixVerse V6 Max quality rendered when the param is omitted or unknown — the
2574
+ * tier the bare credit identifier prices. Never `resolutions[0]`, the 360p
2575
+ * preview tier. (KIE requires a quality; it has no default of its own.) */
2576
+ export const PIXVERSE_V6_MAX_DEFAULT_QUALITY = "720p"
2577
+
2578
+ /**
2579
+ * SINGLE normalization for the PixVerse V6 Max quality lever (KIE `quality`,
2580
+ * the platform's `resolution`). The wire enum is lowercase (`360p` | `540p` |
2581
+ * `720p` | `1080p`), the same spelling as the catalog and the credit
2582
+ * identifiers; this folds case and collapses anything else to
2583
+ * {@link PIXVERSE_V6_MAX_DEFAULT_QUALITY}. The runner sends what this returns
2584
+ * and the credit identifier bills what this returns.
2585
+ */
2586
+ export function normalizePixverseV6MaxQuality(resolution: string | undefined): "360p" | "540p" | "720p" | "1080p" {
2587
+ const r = resolution?.trim().toLowerCase()
2588
+ return r === "360p" || r === "540p" || r === "1080p" ? r : PIXVERSE_V6_MAX_DEFAULT_QUALITY
2589
+ }
2590
+
2322
2591
  /**
2323
2592
  * How many in-between frames a Grok Imagine Video 1.5 clip of `durationSec`
2324
2593
  * seconds carries. The node has no per-frame time, so the frames sit at whole
@@ -2463,6 +2732,12 @@ export const GVP_DEFAULT_PROVIDER = "seedance-2"
2463
2732
  * `seedance-2-mini` re-enters selection here (it was withdrawn by hand on
2464
2733
  * 2026-07-21). It qualifies on capability and is the cheapest Seedance-2 SKU,
2465
2734
  * which makes it the natural pick for cheap iteration on long runs.
2735
+ *
2736
+ * The ONE exception to the reference-image bar is explicit, per model: a
2737
+ * catalog `gvpWithoutReferences` (PixVerse V6 Max, decided 2026-11-12) admits
2738
+ * a model that takes a start frame but no reference images, on keyframes from
2739
+ * its start anchor or text alone. The capability bar itself is unchanged, so
2740
+ * no other start-frame-only model (wan-i2v, hailuo, bytedance) rides in.
2466
2741
  */
2467
2742
  function deriveGvpSupportedProviders(): VideoGenProvider[] {
2468
2743
  const dispatchable = new Set<string>(VIDEO_GEN_PROVIDERS as readonly string[])
@@ -2471,7 +2746,7 @@ function deriveGvpSupportedProviders(): VideoGenProvider[] {
2471
2746
  (m) =>
2472
2747
  m.kind === "video" &&
2473
2748
  (m.modes as readonly string[]).includes("i2v") &&
2474
- m.features?.includes("reference-image") === true &&
2749
+ (m.features?.includes("reference-image") === true || m.gvpWithoutReferences === true) &&
2475
2750
  (m.durations?.length ?? 0) > 0 &&
2476
2751
  // Must also be dispatchable by the unified video node — the pro route
2477
2752
  // hands the provider id straight to the app's imageToVideo.
@@ -2589,19 +2864,27 @@ export type GvpAnchorWireMode = "upfront" | "progressive" | "none"
2589
2864
  * here would mean duplicating the plugin's `MAX_SEGMENTS` cap in this repo
2590
2865
  * where nothing could keep the two in step.
2591
2866
  */
2592
- export function resolveGvpAnchorWire(choice: string | undefined): GvpAnchorWireMode | undefined {
2867
+ export function resolveGvpAnchorWire(choice: string | undefined, provider?: string): GvpAnchorWireMode | undefined {
2593
2868
  switch (choice) {
2594
2869
  case "start-end":
2595
2870
  return "upfront"
2596
2871
  case "start-only":
2597
2872
  return "progressive"
2598
2873
  case "reference":
2599
- return "none"
2874
+ // A model with no reference images has nothing to carry a reference-
2875
+ // driven shot (`gvpWithoutReferences`): it runs as Auto instead.
2876
+ return gvpTakesReferenceImages(provider) ? "none" : undefined
2600
2877
  default:
2601
2878
  return undefined
2602
2879
  }
2603
2880
  }
2604
2881
 
2882
+ /** Whether a Generate Video Pro segment can send reference images to this model. */
2883
+ function gvpTakesReferenceImages(provider: string | undefined): boolean {
2884
+ if (!provider) return true // no model named: the choice is the caller's, as before
2885
+ return MODEL_CATALOG[provider]?.gvpWithoutReferences !== true
2886
+ }
2887
+
2605
2888
  // ---------------------------------------------------------------------------
2606
2889
  // SEGMENT BOUNDS — pure catalog readers. The generate-video-pro splitter (in
2607
2890
  // three places: the plugin engine, the money closed-form, the UI estimate)
@@ -3133,6 +3416,12 @@ export const RESOLUTION_DURATION_PRICING: Record<string, readonly string[]> = {
3133
3416
  // Gemini Omni Flash 1.2 — per-second billing at four resolution rates.
3134
3417
  // Ascending; the billed default (720p) is declared in PRICING_DEFAULT_RESOLUTION.
3135
3418
  "gemini-omni-flash-1-2": ["360p", "720p", "1080p", "4k"],
3419
+ // PixVerse V6 Max — per-second billing at four quality rates on both
3420
+ // endpoints. Ascending; the billed default (720p) is declared in
3421
+ // PRICING_DEFAULT_RESOLUTION, and normalizePixverseV6MaxQuality pins the same
3422
+ // 720p at the wire. The audio state is its own `:audio` suffix
3423
+ // (AUDIO_ADDON_PROVIDERS), after the resolution.
3424
+ "pixverse-v6-max": ["360p", "540p", "720p", "1080p"],
3136
3425
  }
3137
3426
 
3138
3427
  /**
@@ -3410,6 +3699,9 @@ export function videoStartFrameOnlyProblem(
3410
3699
  export const AUDIO_ADDON_PROVIDERS = new Set([
3411
3700
  "kling-3.0",
3412
3701
  "kling",
3702
+ // PixVerse V6 Max — every (seconds × quality) row has an `:audio` twin at
3703
+ // the with-audio rate (`pixverse-v6-max:5s:720p:audio`).
3704
+ "pixverse-v6-max",
3413
3705
  ])
3414
3706
 
3415
3707
  /**
@@ -3449,8 +3741,9 @@ export type VideoAudioMode = "none" | "ambient" | "native_speech" | "audio_drive
3449
3741
  export interface VideoAudioCapability {
3450
3742
  mode: VideoAudioMode
3451
3743
  /** Provider-option field carrying the on/off toggle, when user-controllable.
3452
- * `audio` is Wan 3.0's own boolean lever (KIE `input.audio`, default true). */
3453
- field?: "generateAudio" | "sound" | "audio"
3744
+ * `audio` is Wan 3.0's own boolean lever (KIE `input.audio`, default true);
3745
+ * `generateAudioSwitch` is PixVerse V6 Max's (KIE `input.generate_audio_switch`). */
3746
+ field?: "generateAudio" | "sound" | "audio" | "generateAudioSwitch"
3454
3747
  /** Audio is always produced and can't be turned off by the user (VEO 3.x). */
3455
3748
  alwaysOn?: boolean
3456
3749
  /** Enabling audio raises the credit cost (Kling — see AUDIO_ADDON_PROVIDERS). */
@@ -3463,6 +3756,21 @@ export interface VideoAudioCapability {
3463
3756
  * (see buildVideoCreditModelIdentifier). Absent ⇒ default off.
3464
3757
  */
3465
3758
  defaultOn?: boolean
3759
+ /**
3760
+ * A cost-affecting model whose audio intent the `generateAudio` request field
3761
+ * also carries, after `sound` (PixVerse V6 Max, decided 2026-11-12: the
3762
+ * Generate Video Pro engine sends only `generateAudio`). Read through
3763
+ * {@link videoAudioIntent}, so the switch the model gets and the `:audio`
3764
+ * row the run is priced at follow the same fields. Absent on Kling, which
3765
+ * keeps reading `sound` alone.
3766
+ */
3767
+ readsGenerateAudio?: true
3768
+ }
3769
+
3770
+ /** The audio fields a video request carries: `sound` (canonical) and the older `generateAudio`. */
3771
+ export interface VideoAudioRequest {
3772
+ readonly sound?: boolean
3773
+ readonly generateAudio?: boolean
3466
3774
  }
3467
3775
 
3468
3776
  /**
@@ -3533,6 +3841,18 @@ export const VIDEO_AUDIO_CAPABILITY: Record<string, VideoAudioCapability> = {
3533
3841
  "kling-4-keyframes": { mode: "ambient", alwaysOn: true, defaultOn: true },
3534
3842
  // Kling 4.0 Flash — the same: native audio on both endpoints, no lever.
3535
3843
  "kling-4-flash": { mode: "ambient", alwaysOn: true, defaultOn: true },
3844
+ // PixVerse V6 Max — a boolean `generate_audio_switch` lever on both
3845
+ // endpoints. Cost-affecting: the with-audio rows bill at a higher per-second
3846
+ // rate (`:audio` suffix, AUDIO_ADDON_PROVIDERS), so — like Kling — only the
3847
+ // canonical `sound` intent turns it. `defaultOn`: a request that names no
3848
+ // audio setting renders AND bills audio (decided 2026-11-11; KIE's own default
3849
+ // is off, so the runner sends the switch explicitly). Classified "ambient" on
3850
+ // the Wan 3.0 rule: the schema mentions dialogue and lip-sync, but no live
3851
+ // probe has verified scripted speech, and `native_speech` would reroute the
3852
+ // Story→Video dialogue pipeline past its lip-sync pass. `readsGenerateAudio`:
3853
+ // the `generateAudio` field turns it too (after `sound`), and the price
3854
+ // follows the same resolved intent (videoAudioIntent).
3855
+ "pixverse-v6-max": { mode: "ambient", field: "generateAudioSwitch", affectsCost: true, defaultOn: true, readsGenerateAudio: true },
3536
3856
  // Gemini Omni Flash 1.2 — native audio with no on/off input in its schema.
3537
3857
  "gemini-omni-flash-1-2": { mode: "ambient", alwaysOn: true },
3538
3858
  // Gemini Omni (both SKUs — the pro `gemini-omni-video` and the faster
@@ -3601,6 +3921,33 @@ export function videoModelCanSpeakDialogue(model: string | undefined): boolean {
3601
3921
  return mode === "native_speech" || mode === "audio_driven"
3602
3922
  }
3603
3923
 
3924
+ /**
3925
+ * THE audio intent of a video request for one model — `undefined` when the
3926
+ * request expresses none (the model's own default then applies). The ONE
3927
+ * reading of the request's audio fields: {@link applyVideoAudioToggle} (what
3928
+ * the model is SENT) and `buildVideoCreditModelIdentifier` (the `:audio` row
3929
+ * it is PRICED at) both resolve through it, so the two cannot disagree.
3930
+ *
3931
+ * - A cost-affecting model reads `sound` alone (Kling: the field its `:audio`
3932
+ * surcharge has always keyed off), unless it declares `readsGenerateAudio`
3933
+ * (PixVerse V6 Max): then `sound`, else `generateAudio`.
3934
+ * - Every other model reads `sound`, else the `generateAudio` alias.
3935
+ */
3936
+ export function videoAudioIntent(provider: string | undefined, req: VideoAudioRequest | undefined): boolean | undefined {
3937
+ const cap = getVideoAudioCapability(provider)
3938
+ if (cap.affectsCost && cap.readsGenerateAudio !== true) return req?.sound
3939
+ return req?.sound ?? req?.generateAudio
3940
+ }
3941
+
3942
+ /**
3943
+ * Whether a request PRICES with audio on a cost-affecting model: its intent
3944
+ * ({@link videoAudioIntent}), else the model's own default (`defaultOn`). The
3945
+ * provider runner of such a model renders the same state.
3946
+ */
3947
+ export function videoAudioPricedOn(provider: string | undefined, req: VideoAudioRequest | undefined): boolean {
3948
+ return videoAudioIntent(provider, req) ?? (getVideoAudioCapability(provider).defaultOn === true)
3949
+ }
3950
+
3604
3951
  /**
3605
3952
  * Write the caller's neutral "enable native audio" intent onto a KIE provider
3606
3953
  * `input` under whichever field the chosen model actually reads, per
@@ -3612,12 +3959,12 @@ export function videoModelCanSpeakDialogue(model: string | undefined): boolean {
3612
3959
  * - `sound` is the canonical neutral name; `generateAudio` is accepted as a
3613
3960
  * legacy alias (the workflow node + some clients send that key). `sound` wins
3614
3961
  * if both are present.
3615
- * - **Cost-affecting models (Kling) honour ONLY the canonical `sound` lever** —
3616
- * the same field the `:audio` credit surcharge keys off (`AUDIO_ADDON_PROVIDERS`
3617
- * in `credit-identifiers.ts`). This makes a billed-but-not-generated (or
3618
- * generated-but-not-billed) divergence structurally impossible: the model and
3619
- * the surcharge read the same flag. Free models accept the `generateAudio`
3620
- * alias too, where mis-billing isn't possible.
3962
+ * - **The intent is {@link videoAudioIntent}'s** — the same reading the `:audio`
3963
+ * credit surcharge (`AUDIO_ADDON_PROVIDERS` in `credit-identifiers.ts`) is
3964
+ * built from. That makes a billed-but-not-generated (or generated-but-not-
3965
+ * billed) divergence structurally impossible: the model and the surcharge
3966
+ * read the same fields. Kling honours ONLY `sound`; PixVerse V6 Max
3967
+ * (`readsGenerateAudio`) and every free model also the `generateAudio` alias.
3621
3968
  * - No-op for `alwaysOn` models (VEO — audio can't be toggled) and silent /
3622
3969
  * unlisted models (no `field`), and when the caller expressed no intent
3623
3970
  * (leaves the model's own default in place).
@@ -3633,13 +3980,13 @@ export function applyVideoAudioToggle(
3633
3980
  ): void {
3634
3981
  const cap = getVideoAudioCapability(provider)
3635
3982
  if (!cap.field) return // alwaysOn (VEO) or silent/unlisted model — nothing to toggle
3636
- // Cost-affecting models stay on the canonical `sound` lever so the model and
3637
- // the credit surcharge can never read different flags; free models also accept
3638
- // the `generateAudio` alias. `sound` is canonical and wins when both are set.
3639
- const enabled = cap.affectsCost ? opts?.sound : (opts?.sound ?? opts?.generateAudio)
3983
+ // The one reading of the request's audio fields, shared with the credit
3984
+ // surcharge (see videoAudioIntent). `sound` is canonical and wins when both are set.
3985
+ const enabled = videoAudioIntent(provider, opts)
3640
3986
  if (enabled === undefined) return // no intent — keep the model's own default
3641
3987
  if (cap.field === "generateAudio") input.generate_audio = enabled
3642
3988
  else if (cap.field === "audio") input.audio = enabled
3989
+ else if (cap.field === "generateAudioSwitch") input.generate_audio_switch = enabled
3643
3990
  else input.sound = enabled
3644
3991
  }
3645
3992
 
@@ -3671,8 +4018,9 @@ export const VEO_RESOLUTION_TIERED_PROVIDERS = new Set<string>([
3671
4018
  * Video variable pricing config — which params affect credit cost per model.
3672
4019
  * "duration" = cost varies by video length
3673
4020
  * "duration+audio" = cost varies by length AND audio on/off
4021
+ * "duration+resolution+audio" = cost varies by length, resolution AND audio on/off
3674
4022
  */
3675
- export const VIDEO_VARIABLE_PRICING: Record<string, "duration" | "duration+audio" | "duration+mode" | "duration+resolution+ref" | "duration+resolution"> = {
4023
+ export const VIDEO_VARIABLE_PRICING: Record<string, "duration" | "duration+audio" | "duration+mode" | "duration+resolution+ref" | "duration+resolution" | "duration+resolution+audio"> = {
3676
4024
  "kling-3.0": "duration+audio",
3677
4025
  "kling-3-omni": "duration",
3678
4026
  "kling": "duration+audio",
@@ -3712,6 +4060,9 @@ export const VIDEO_VARIABLE_PRICING: Record<string, "duration" | "duration+audio
3712
4060
  // Gemini Omni Flash 1.2 — per-second at four resolution rates; a video edit
3713
4061
  // bills the same rates over the source clip.
3714
4062
  "gemini-omni-flash-1-2": "duration+resolution",
4063
+ // PixVerse V6 Max — per-second at four quality rates, each with and without
4064
+ // native audio.
4065
+ "pixverse-v6-max": "duration+resolution+audio",
3715
4066
  }
3716
4067
 
3717
4068
  /**
@@ -3802,7 +4153,11 @@ export interface SeedanceTaskTypeFacts {
3802
4153
  provider: string | undefined
3803
4154
  /** The value the request carries, unvalidated: anything but a declared value is Auto. */
3804
4155
  requested: unknown
3805
- draft: boolean
4156
+ /**
4157
+ * @deprecated Not read: a draft declares exactly as any other run does. Kept
4158
+ * so a caller that still passes it compiles; leave it out.
4159
+ */
4160
+ draft?: boolean
3806
4161
  /** Reference images only: a start or end frame is not counted. */
3807
4162
  referenceImageCount: number
3808
4163
  referenceAudioCount: number
@@ -3867,7 +4222,6 @@ function editReferenceVideosFit(referenceVideoSec: ReadonlyArray<number | undefi
3867
4222
  * LISTS, matched exactly. The list is what is honoured: a model that lists
3868
4223
  * nothing, a value it does not list (`auto`, a wrong case, a number) and a
3869
4224
  * model that lists only some values are all Auto;
3870
- * - the run is not a draft;
3871
4225
  * - it has the reference media the type needs
3872
4226
  * ({@link seedanceTaskTypeFitsMedia}): `edit` and `extend` need a
3873
4227
  * reference video;
@@ -3885,13 +4239,17 @@ function editReferenceVideosFit(referenceVideoSec: ReadonlyArray<number | undefi
3885
4239
  * Each value it changes is reported as one adjustment; a value it fills where
3886
4240
  * the request had none is not a correction and reports nothing, and neither is
3887
4241
  * a ratio that already runs at the forced one (`"Auto"` with a reference video
3888
- * runs at `"adaptive"`). Pure.
4242
+ * runs at `"adaptive"`).
4243
+ *
4244
+ * A draft (`draft: true`) is no exception: it declares, and is forced, exactly
4245
+ * as the same request without Draft (a draft and its 1080p finalize keep an
4246
+ * edit's own length and framing, measured). Pure.
3889
4247
  */
3890
4248
  export function resolveSeedanceTaskType(facts: SeedanceTaskTypeFacts): SeedanceTaskTypeResolution {
3891
4249
  const { provider, aspectRatio, duration, referenceVideoSec } = facts
3892
4250
  const unchanged: SeedanceTaskTypeResolution = { taskType: undefined, aspectRatio, duration, adjustments: [] }
3893
4251
  const taskType = listedSeedanceTaskType(provider, facts.requested)
3894
- if (!taskType || !provider || facts.draft) return unchanged
4252
+ if (!taskType || !provider) return unchanged
3895
4253
  const media = {
3896
4254
  imageCount: facts.referenceImageCount,
3897
4255
  videoCount: referenceVideoSec.length,
@@ -3992,6 +4350,10 @@ export const PRICING_DEFAULT_RESOLUTION: Record<string, string> = {
3992
4350
  // that names no resolution is judged at 480p by the free-tier check (decided
3993
4351
  // 2026-11-11) and is sent 480p by pricedVideoSelection.
3994
4352
  "grok-imagine-video-1.5": "480p",
4353
+ // PixVerse V6 Max — KIE requires a quality and has no default; the runner
4354
+ // sends 720p for an omitted or unknown one (normalizePixverseV6MaxQuality),
4355
+ // never the 360p preview tier.
4356
+ "pixverse-v6-max": "720p",
3995
4357
  }
3996
4358
 
3997
4359
  /** Gemini Omni Flash 1.2 per-second tiers — one per allowed duration (3–15s). */
@@ -4059,6 +4421,12 @@ const KLING_4_FLASH_DURATION_TIERS: Array<{ maxSeconds: number; suffix: string }
4059
4421
  (_, i) => ({ maxSeconds: i + 3, suffix: `${i + 3}s` }),
4060
4422
  )
4061
4423
 
4424
+ /** PixVerse V6 Max per-second tiers — one per allowed duration (1-15s). */
4425
+ const PIXVERSE_V6_MAX_DURATION_TIERS: Array<{ maxSeconds: number; suffix: string }> = Array.from(
4426
+ { length: 15 },
4427
+ (_, i) => ({ maxSeconds: i + 1, suffix: `${i + 1}s` }),
4428
+ )
4429
+
4062
4430
  /**
4063
4431
  * Duration tier breakpoints for variable-priced video models.
4064
4432
  * Maps provider → array of { maxSeconds, suffix } in ascending order.
@@ -4123,7 +4491,7 @@ export const VIDEO_DURATION_TIERS: Record<string, Array<{ maxSeconds: number; su
4123
4491
  ],
4124
4492
  // The length tiers of the earlier Seedance Extend rows
4125
4493
  // (`seedance-2-extend:<tier>:<res>`). No extend is priced on them any more —
4126
- // each Seedance extend provider has a row per second (`seedanceExtendCreditId`)
4494
+ // each Seedance extend provider has a row per second (`tailExtendCreditId`)
4127
4495
  // — but the rows stay, and so do their tiers.
4128
4496
  "seedance-2-extend": [
4129
4497
  { maxSeconds: 4, suffix: "4s" },
@@ -4144,6 +4512,7 @@ export const VIDEO_DURATION_TIERS: Record<string, Array<{ maxSeconds: number; su
4144
4512
  "kling-4": KLING_4_DURATION_TIERS,
4145
4513
  "kling-4-keyframes": KLING_4_DURATION_TIERS,
4146
4514
  "kling-4-flash": KLING_4_FLASH_DURATION_TIERS,
4515
+ "pixverse-v6-max": PIXVERSE_V6_MAX_DURATION_TIERS,
4147
4516
  "gemini-omni-flash-1-2": GEMINI_OMNI_12_DURATION_TIERS,
4148
4517
  // MiniMax Hailuo 3 — true per-second billing (KIE 36.5 cr/s @2K, 22.5 cr/s
4149
4518
  // @768P). One tier per allowed second (4-15s) so the composite identifier
@@ -4501,6 +4870,13 @@ export function preferredInputModeForModel(
4501
4870
 
4502
4871
  export const DEFAULT_VIDEO_PROVIDER = "seedance-2-fast"
4503
4872
 
4873
+ /**
4874
+ * The model a legacy Image to Video / Text to Video node runs when it names
4875
+ * none: the workflow run's own default for those two (Generate Video's is
4876
+ * {@link DEFAULT_VIDEO_PROVIDER}, through {@link applyDefaultVideoSelection}).
4877
+ */
4878
+ export const LEGACY_VIDEO_NODE_DEFAULT_PROVIDER = "kling"
4879
+
4504
4880
  /**
4505
4881
  * Duration paired with the default provider when BOTH provider and duration
4506
4882
  * are omitted. Pins the nothing-specified request to the default model's