@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
@@ -0,0 +1,1435 @@
1
+ {
2
+ "$comment": "The quote before a run of the seven steps whose run measures the file it is given — Video SFX, Video Mask, Video Depth, Pitch & Tempo, Dubbing, and Video Upscale on each of its two measuring models (`topaz`, and `nodaroUpscale`, the per-second model) — read by BOTH estimates over the same graphs through the one measured walk (`measuredWireLengthSec`, @nodaro/render-rules) with each step's slack (`MEASURED_INPUT_PLANNED_CLIP_SLACK_SEC`: 0.1 s on each clip a node makes for the five that measure the container, one 24 fps frame for both Video Upscale steps: one hold counts the video stream's frames, the other bills the clip's seconds rounded up, so any slack under a second is the same figure there): the editor's (frontend getModelIdentifier for the row steps, PRICING_UNIT_ESTIMATORS for Dubbing and both Video Upscale providers — the node's pill, its Run button, the confirm and the workflow badge) and the server's workflow estimate (CreditsService.estimateWorkflowCreditsAt, the step's own line). Each case wires its sources into the step `c`; an edge with no `target` goes into `c` on the step's input (`@input`: `video`, Pitch & Tempo's `in`; `handles` overrides it). `steps` limits a case to some steps (default every step but `lipSync`, a Lip Sync priced by the seconds of its audio, which only the cases that list it name; its figure is the billed seconds, `null` a length nothing knows before the run: the server quotes the most a run takes, the editor a 15 s estimate marked ≈). Expected figures: the row's seconds for Video SFX (`replicate-mmaudio:<N>s`), Video Mask (`<provider>-video:<N>s`) and Video Depth (`video-depth-anything:<N>s`); the started minutes for Pitch & Tempo (`pitch-tempo:<N>m`) and Dubbing (target `es`); the Topaz units (a 1080p target, 30 fps, a 16:9 frame); the seconds `nodaroUpscale` bills (at least 1): 0 for a clip the graph KNOWS is past its 60-second limit (an upload, a measured Library clip, a take's record — the run refuses it before anything is held, and no estimate prices it), and the 60 seconds a run bills at most for a PLANNED length past it, which is an upper bound and no proof the run refuses it. An input whose length nothing can tell before the run is quoted at the step's cap for Video SFX, Video Mask, Video Depth and Pitch & Tempo, and at a minimum for Dubbing (1 minute) and both Video Upscale providers (a 10-second clip) — those runs measure their input and are charged its real length. `whole` = a whole run (the editor's whole-run set, the server with no run set); `alone` = the step's own Run and its pill (editor) and a run of `c` alone (server); `partial` = exactly that run set on both sides.",
3
+ "cases": [
4
+ {
5
+ "name": "1. Generate Video on Kling 4.0 set to 5 s, never run: 5 s planned plus the slack (5.1 s; 5.042 s on the stream for Topaz)",
6
+ "nodes": [
7
+ {
8
+ "id": "g",
9
+ "type": "generate-video",
10
+ "data": {
11
+ "provider": "kling-4",
12
+ "duration": 5
13
+ }
14
+ }
15
+ ],
16
+ "edges": [
17
+ {
18
+ "source": "g",
19
+ "targetHandle": "@input"
20
+ }
21
+ ],
22
+ "expected": {
23
+ "whole": {
24
+ "videoSfx": 8,
25
+ "videoMask": 10,
26
+ "videoDepth": 6,
27
+ "pitchTempo": 1,
28
+ "dubbing": 1,
29
+ "topaz": 4,
30
+ "nodaroUpscale": 6
31
+ },
32
+ "alone": {
33
+ "videoSfx": 8,
34
+ "videoMask": 10,
35
+ "videoDepth": 6,
36
+ "pitchTempo": 1,
37
+ "dubbing": 1,
38
+ "topaz": 4,
39
+ "nodaroUpscale": 6
40
+ }
41
+ }
42
+ },
43
+ {
44
+ "name": "2. Generate Video set to 10 s: 10.1 s",
45
+ "nodes": [
46
+ {
47
+ "id": "g",
48
+ "type": "generate-video",
49
+ "data": {
50
+ "provider": "kling-4",
51
+ "duration": 10
52
+ }
53
+ }
54
+ ],
55
+ "edges": [
56
+ {
57
+ "source": "g",
58
+ "targetHandle": "@input"
59
+ }
60
+ ],
61
+ "expected": {
62
+ "whole": {
63
+ "videoSfx": 15,
64
+ "videoMask": 15,
65
+ "videoDepth": 11,
66
+ "pitchTempo": 1,
67
+ "dubbing": 1,
68
+ "topaz": 7,
69
+ "nodaroUpscale": 11
70
+ },
71
+ "alone": {
72
+ "videoSfx": 15,
73
+ "videoMask": 15,
74
+ "videoDepth": 11,
75
+ "pitchTempo": 1,
76
+ "dubbing": 1,
77
+ "topaz": 7,
78
+ "nodaroUpscale": 11
79
+ }
80
+ }
81
+ },
82
+ {
83
+ "name": "3. Generate Video set to 15 s, Video SFX's 15-second boundary: 15.1 s is the 30-second row, as a clip a frame past 15 s is charged",
84
+ "nodes": [
85
+ {
86
+ "id": "g",
87
+ "type": "generate-video",
88
+ "data": {
89
+ "provider": "kling-4",
90
+ "duration": 15
91
+ }
92
+ }
93
+ ],
94
+ "edges": [
95
+ {
96
+ "source": "g",
97
+ "targetHandle": "@input"
98
+ }
99
+ ],
100
+ "expected": {
101
+ "whole": {
102
+ "videoSfx": 30,
103
+ "videoMask": 30,
104
+ "videoDepth": 16,
105
+ "pitchTempo": 1,
106
+ "dubbing": 1,
107
+ "topaz": 10,
108
+ "nodaroUpscale": 16
109
+ },
110
+ "alone": {
111
+ "videoSfx": 30,
112
+ "videoMask": 30,
113
+ "videoDepth": 16,
114
+ "pitchTempo": 1,
115
+ "dubbing": 1,
116
+ "topaz": 10,
117
+ "nodaroUpscale": 16
118
+ }
119
+ }
120
+ },
121
+ {
122
+ "name": "4. Auto on Seedance 2.5: its longest clip, 30 s, plus the slack",
123
+ "nodes": [
124
+ {
125
+ "id": "g",
126
+ "type": "generate-video",
127
+ "data": {
128
+ "provider": "seedance-2-5",
129
+ "duration": -1
130
+ }
131
+ }
132
+ ],
133
+ "edges": [
134
+ {
135
+ "source": "g",
136
+ "targetHandle": "@input"
137
+ }
138
+ ],
139
+ "expected": {
140
+ "whole": {
141
+ "videoSfx": 60,
142
+ "videoMask": 60,
143
+ "videoDepth": 31,
144
+ "pitchTempo": 1,
145
+ "dubbing": 1,
146
+ "topaz": 19,
147
+ "nodaroUpscale": 31
148
+ },
149
+ "alone": {
150
+ "videoSfx": 60,
151
+ "videoMask": 60,
152
+ "videoDepth": 31,
153
+ "pitchTempo": 1,
154
+ "dubbing": 1,
155
+ "topaz": 19,
156
+ "nodaroUpscale": 31
157
+ }
158
+ }
159
+ },
160
+ {
161
+ "name": "5. A 10 s upload extended by 5 s on Seedance 2.5: the source plus what it adds, 15 s, plus the slack",
162
+ "nodes": [
163
+ {
164
+ "id": "u",
165
+ "type": "upload-video",
166
+ "data": {
167
+ "url": "https://cdn.example/up.mp4",
168
+ "generatedResults": [
169
+ {
170
+ "url": "https://cdn.example/up.mp4",
171
+ "duration": 10
172
+ }
173
+ ],
174
+ "activeResultIndex": 0
175
+ }
176
+ },
177
+ {
178
+ "id": "x",
179
+ "type": "extend-video",
180
+ "data": {
181
+ "provider": "seedance-2-5-extend",
182
+ "duration": 5
183
+ }
184
+ }
185
+ ],
186
+ "edges": [
187
+ {
188
+ "source": "u",
189
+ "target": "x",
190
+ "targetHandle": "video"
191
+ },
192
+ {
193
+ "source": "x",
194
+ "targetHandle": "@input"
195
+ }
196
+ ],
197
+ "expected": {
198
+ "whole": {
199
+ "videoSfx": 30,
200
+ "videoMask": 30,
201
+ "videoDepth": 16,
202
+ "pitchTempo": 1,
203
+ "dubbing": 1,
204
+ "topaz": 10,
205
+ "nodaroUpscale": 16
206
+ },
207
+ "alone": {
208
+ "videoSfx": 30,
209
+ "videoMask": 30,
210
+ "videoDepth": 16,
211
+ "pitchTempo": 1,
212
+ "dubbing": 1,
213
+ "topaz": 10,
214
+ "nodaroUpscale": 16
215
+ }
216
+ }
217
+ },
218
+ {
219
+ "name": "6. A 10 s upload: its recorded length, no slack",
220
+ "nodes": [
221
+ {
222
+ "id": "u",
223
+ "type": "upload-video",
224
+ "data": {
225
+ "url": "https://cdn.example/up.mp4",
226
+ "generatedResults": [
227
+ {
228
+ "url": "https://cdn.example/up.mp4",
229
+ "duration": 10
230
+ }
231
+ ],
232
+ "activeResultIndex": 0
233
+ }
234
+ }
235
+ ],
236
+ "edges": [
237
+ {
238
+ "source": "u",
239
+ "targetHandle": "@input"
240
+ }
241
+ ],
242
+ "expected": {
243
+ "whole": {
244
+ "videoSfx": 15,
245
+ "videoMask": 10,
246
+ "videoDepth": 10,
247
+ "pitchTempo": 1,
248
+ "dubbing": 1,
249
+ "topaz": 7,
250
+ "nodaroUpscale": 10
251
+ },
252
+ "alone": {
253
+ "videoSfx": 15,
254
+ "videoMask": 10,
255
+ "videoDepth": 10,
256
+ "pitchTempo": 1,
257
+ "dubbing": 1,
258
+ "topaz": 7,
259
+ "nodaroUpscale": 10
260
+ }
261
+ }
262
+ },
263
+ {
264
+ "name": "7. A Library clip measured at upload, 12.5 s: its recorded length, no slack",
265
+ "nodes": [
266
+ {
267
+ "id": "l",
268
+ "type": "upload-video",
269
+ "data": {
270
+ "url": "https://cdn.example/lib.mp4",
271
+ "assetId": "a1",
272
+ "generatedResults": [
273
+ {
274
+ "url": "https://cdn.example/lib.mp4",
275
+ "duration": 12.5
276
+ }
277
+ ],
278
+ "activeResultIndex": 0
279
+ }
280
+ }
281
+ ],
282
+ "edges": [
283
+ {
284
+ "source": "l",
285
+ "targetHandle": "@input"
286
+ }
287
+ ],
288
+ "expected": {
289
+ "whole": {
290
+ "videoSfx": 15,
291
+ "videoMask": 15,
292
+ "videoDepth": 13,
293
+ "pitchTempo": 1,
294
+ "dubbing": 1,
295
+ "topaz": 8,
296
+ "nodaroUpscale": 13
297
+ },
298
+ "alone": {
299
+ "videoSfx": 15,
300
+ "videoMask": 15,
301
+ "videoDepth": 13,
302
+ "pitchTempo": 1,
303
+ "dubbing": 1,
304
+ "topaz": 8,
305
+ "nodaroUpscale": 13
306
+ }
307
+ }
308
+ },
309
+ {
310
+ "name": "8. A Library clip with no recorded length: unknown — the cap for four steps; Dubbing (1 minute) and Topaz (a 10 s clip) keep their minimum, the run charges what it measures",
311
+ "nodes": [
312
+ {
313
+ "id": "l",
314
+ "type": "upload-video",
315
+ "data": {
316
+ "url": "https://cdn.example/lib.mp4",
317
+ "assetId": "a2",
318
+ "generatedResults": [
319
+ {
320
+ "url": "https://cdn.example/lib.mp4"
321
+ }
322
+ ],
323
+ "activeResultIndex": 0
324
+ }
325
+ }
326
+ ],
327
+ "edges": [
328
+ {
329
+ "source": "l",
330
+ "targetHandle": "@input"
331
+ }
332
+ ],
333
+ "expected": {
334
+ "whole": {
335
+ "videoSfx": 300,
336
+ "videoMask": 300,
337
+ "videoDepth": 300,
338
+ "pitchTempo": 30,
339
+ "dubbing": 1,
340
+ "topaz": 7,
341
+ "nodaroUpscale": 10
342
+ },
343
+ "alone": {
344
+ "videoSfx": 300,
345
+ "videoMask": 300,
346
+ "videoDepth": 300,
347
+ "pitchTempo": 30,
348
+ "dubbing": 1,
349
+ "topaz": 7,
350
+ "nodaroUpscale": 10
351
+ }
352
+ }
353
+ },
354
+ {
355
+ "name": "9. A 10 s upload extended on the default (VEO) extend: a length nothing declares, unknown — never the 8 seconds it adds",
356
+ "nodes": [
357
+ {
358
+ "id": "u",
359
+ "type": "upload-video",
360
+ "data": {
361
+ "url": "https://cdn.example/up.mp4",
362
+ "generatedResults": [
363
+ {
364
+ "url": "https://cdn.example/up.mp4",
365
+ "duration": 10
366
+ }
367
+ ],
368
+ "activeResultIndex": 0
369
+ }
370
+ },
371
+ {
372
+ "id": "x",
373
+ "type": "extend-video",
374
+ "data": {
375
+ "duration": 8
376
+ }
377
+ }
378
+ ],
379
+ "edges": [
380
+ {
381
+ "source": "u",
382
+ "target": "x",
383
+ "targetHandle": "video"
384
+ },
385
+ {
386
+ "source": "x",
387
+ "targetHandle": "@input"
388
+ }
389
+ ],
390
+ "expected": {
391
+ "whole": {
392
+ "videoSfx": 300,
393
+ "videoMask": 300,
394
+ "videoDepth": 300,
395
+ "pitchTempo": 30,
396
+ "dubbing": 1,
397
+ "topaz": 7,
398
+ "nodaroUpscale": 10
399
+ },
400
+ "alone": {
401
+ "videoSfx": 300,
402
+ "videoMask": 300,
403
+ "videoDepth": 300,
404
+ "pitchTempo": 30,
405
+ "dubbing": 1,
406
+ "topaz": 7,
407
+ "nodaroUpscale": 10
408
+ }
409
+ }
410
+ },
411
+ {
412
+ "name": "10. Generate Video now set to 10 s, holding an old 5.042 s take: a whole run plans 10 s; the step alone is handed the take",
413
+ "nodes": [
414
+ {
415
+ "id": "g",
416
+ "type": "generate-video",
417
+ "data": {
418
+ "provider": "kling-4",
419
+ "duration": 10,
420
+ "generatedResults": [
421
+ {
422
+ "url": "https://cdn.example/old.mp4",
423
+ "duration": 5.042
424
+ }
425
+ ],
426
+ "activeResultIndex": 0
427
+ }
428
+ }
429
+ ],
430
+ "edges": [
431
+ {
432
+ "source": "g",
433
+ "targetHandle": "@input"
434
+ }
435
+ ],
436
+ "expected": {
437
+ "whole": {
438
+ "videoSfx": 15,
439
+ "videoMask": 15,
440
+ "videoDepth": 11,
441
+ "pitchTempo": 1,
442
+ "dubbing": 1,
443
+ "topaz": 7,
444
+ "nodaroUpscale": 11
445
+ },
446
+ "alone": {
447
+ "videoSfx": 8,
448
+ "videoMask": 5,
449
+ "videoDepth": 5,
450
+ "pitchTempo": 1,
451
+ "dubbing": 1,
452
+ "topaz": 4,
453
+ "nodaroUpscale": 6
454
+ }
455
+ }
456
+ },
457
+ {
458
+ "name": "11. A FROZEN generation holding a 5.042 s take, now set to 10 s: it never runs, so its take, no slack",
459
+ "nodes": [
460
+ {
461
+ "id": "g",
462
+ "type": "generate-video",
463
+ "data": {
464
+ "provider": "kling-4",
465
+ "duration": 10,
466
+ "skipped": true,
467
+ "generatedResults": [
468
+ {
469
+ "url": "https://cdn.example/old.mp4",
470
+ "duration": 5.042
471
+ }
472
+ ],
473
+ "activeResultIndex": 0
474
+ }
475
+ }
476
+ ],
477
+ "edges": [
478
+ {
479
+ "source": "g",
480
+ "targetHandle": "@input"
481
+ }
482
+ ],
483
+ "expected": {
484
+ "whole": {
485
+ "videoSfx": 8,
486
+ "videoMask": 5,
487
+ "videoDepth": 5,
488
+ "pitchTempo": 1,
489
+ "dubbing": 1,
490
+ "topaz": 4,
491
+ "nodaroUpscale": 6
492
+ },
493
+ "alone": {
494
+ "videoSfx": 8,
495
+ "videoMask": 5,
496
+ "videoDepth": 5,
497
+ "pitchTempo": 1,
498
+ "dubbing": 1,
499
+ "topaz": 4,
500
+ "nodaroUpscale": 6
501
+ }
502
+ }
503
+ },
504
+ {
505
+ "name": "12. Generate Video Pro set to 60 s, stitched to 61 s: past a whole minute; for `nodaroUpscale` a planned length past the 60-second limit, quoted at it",
506
+ "nodes": [
507
+ {
508
+ "id": "g",
509
+ "type": "generate-video-pro",
510
+ "data": {
511
+ "duration": 60
512
+ }
513
+ }
514
+ ],
515
+ "edges": [
516
+ {
517
+ "source": "g",
518
+ "targetHandle": "@input"
519
+ }
520
+ ],
521
+ "expected": {
522
+ "whole": {
523
+ "videoSfx": 120,
524
+ "videoMask": 90,
525
+ "videoDepth": 62,
526
+ "pitchTempo": 2,
527
+ "dubbing": 2,
528
+ "topaz": 38,
529
+ "nodaroUpscale": 60
530
+ },
531
+ "alone": {
532
+ "videoSfx": 120,
533
+ "videoMask": 90,
534
+ "videoDepth": 62,
535
+ "pitchTempo": 2,
536
+ "dubbing": 2,
537
+ "topaz": 38,
538
+ "nodaroUpscale": 60
539
+ }
540
+ }
541
+ },
542
+ {
543
+ "name": "13. Generation (now 10 s, take 5.042 s) → Resize (take 7.5 s) → the step: a whole run plans 10 s; alone, the Resize's take; a run of {Resize, step}, the generation's take carried through",
544
+ "nodes": [
545
+ {
546
+ "id": "g",
547
+ "type": "generate-video",
548
+ "data": {
549
+ "provider": "kling-4",
550
+ "duration": 10,
551
+ "generatedResults": [
552
+ {
553
+ "url": "https://cdn.example/old.mp4",
554
+ "duration": 5.042
555
+ }
556
+ ],
557
+ "activeResultIndex": 0
558
+ }
559
+ },
560
+ {
561
+ "id": "r",
562
+ "type": "resize-video",
563
+ "data": {
564
+ "generatedResults": [
565
+ {
566
+ "url": "https://cdn.example/r.mp4",
567
+ "duration": 7.5
568
+ }
569
+ ],
570
+ "activeResultIndex": 0
571
+ }
572
+ }
573
+ ],
574
+ "edges": [
575
+ {
576
+ "source": "g",
577
+ "target": "r",
578
+ "targetHandle": "video"
579
+ },
580
+ {
581
+ "source": "r",
582
+ "targetHandle": "@input"
583
+ }
584
+ ],
585
+ "expected": {
586
+ "whole": {
587
+ "videoSfx": 15,
588
+ "videoMask": 15,
589
+ "videoDepth": 11,
590
+ "pitchTempo": 1,
591
+ "dubbing": 1,
592
+ "topaz": 7,
593
+ "nodaroUpscale": 11
594
+ },
595
+ "alone": {
596
+ "videoSfx": 8,
597
+ "videoMask": 10,
598
+ "videoDepth": 8,
599
+ "pitchTempo": 1,
600
+ "dubbing": 1,
601
+ "topaz": 5,
602
+ "nodaroUpscale": 8
603
+ }
604
+ },
605
+ "partial": {
606
+ "runSet": [
607
+ "r",
608
+ "c"
609
+ ],
610
+ "expected": {
611
+ "videoSfx": 8,
612
+ "videoMask": 5,
613
+ "videoDepth": 5,
614
+ "pitchTempo": 1,
615
+ "dubbing": 1,
616
+ "topaz": 4,
617
+ "nodaroUpscale": 6
618
+ }
619
+ }
620
+ },
621
+ {
622
+ "name": "14. Loop ×2 of a 5 s generation: each copy carries the clip's slack (10.2 s)",
623
+ "nodes": [
624
+ {
625
+ "id": "g",
626
+ "type": "generate-video",
627
+ "data": {
628
+ "provider": "kling-4",
629
+ "duration": 5
630
+ }
631
+ },
632
+ {
633
+ "id": "p",
634
+ "type": "loop-video",
635
+ "data": {
636
+ "mode": "repeat",
637
+ "repeatCount": 2
638
+ }
639
+ }
640
+ ],
641
+ "edges": [
642
+ {
643
+ "source": "g",
644
+ "target": "p",
645
+ "targetHandle": "video"
646
+ },
647
+ {
648
+ "source": "p",
649
+ "targetHandle": "@input"
650
+ }
651
+ ],
652
+ "expected": {
653
+ "whole": {
654
+ "videoSfx": 15,
655
+ "videoMask": 15,
656
+ "videoDepth": 11,
657
+ "pitchTempo": 1,
658
+ "dubbing": 1,
659
+ "topaz": 7,
660
+ "nodaroUpscale": 11
661
+ },
662
+ "alone": {
663
+ "videoSfx": 15,
664
+ "videoMask": 15,
665
+ "videoDepth": 11,
666
+ "pitchTempo": 1,
667
+ "dubbing": 1,
668
+ "topaz": 7,
669
+ "nodaroUpscale": 11
670
+ }
671
+ }
672
+ },
673
+ {
674
+ "name": "15. An uploaded audio of 75 s into Pitch & Tempo and Dubbing's audio input: its recorded length",
675
+ "steps": [
676
+ "pitchTempo",
677
+ "dubbing"
678
+ ],
679
+ "handles": {
680
+ "dubbing": "audio"
681
+ },
682
+ "nodes": [
683
+ {
684
+ "id": "a",
685
+ "type": "upload-audio",
686
+ "data": {
687
+ "url": "https://cdn.example/v.mp3",
688
+ "metadata": {
689
+ "durationSeconds": 75
690
+ }
691
+ }
692
+ }
693
+ ],
694
+ "edges": [
695
+ {
696
+ "source": "a",
697
+ "targetHandle": "@input"
698
+ }
699
+ ],
700
+ "expected": {
701
+ "whole": {
702
+ "pitchTempo": 2,
703
+ "dubbing": 2
704
+ },
705
+ "alone": {
706
+ "pitchTempo": 2,
707
+ "dubbing": 2
708
+ }
709
+ }
710
+ },
711
+ {
712
+ "name": "16. Text to Speech holding a 4 s take: a whole run re-runs it, a length nothing knows before the run (unknown); the step alone is handed the take",
713
+ "steps": [
714
+ "pitchTempo",
715
+ "dubbing"
716
+ ],
717
+ "handles": {
718
+ "dubbing": "audio"
719
+ },
720
+ "nodes": [
721
+ {
722
+ "id": "t",
723
+ "type": "text-to-speech",
724
+ "data": {
725
+ "text": "hello",
726
+ "generatedResults": [
727
+ {
728
+ "url": "https://cdn.example/t.mp3",
729
+ "duration": 4
730
+ }
731
+ ],
732
+ "activeResultIndex": 0
733
+ }
734
+ }
735
+ ],
736
+ "edges": [
737
+ {
738
+ "source": "t",
739
+ "targetHandle": "@input"
740
+ }
741
+ ],
742
+ "expected": {
743
+ "whole": {
744
+ "pitchTempo": 30,
745
+ "dubbing": 1
746
+ },
747
+ "alone": {
748
+ "pitchTempo": 1,
749
+ "dubbing": 1
750
+ }
751
+ }
752
+ },
753
+ {
754
+ "name": "17. A generation set to 15 s holding a take with no recorded length (a fixed-length run records none, so the take was made at its settings): the step alone is handed that take, 15 s plus the slack, as a whole run plans",
755
+ "nodes": [
756
+ {
757
+ "id": "g",
758
+ "type": "generate-video",
759
+ "data": {
760
+ "provider": "kling-4",
761
+ "duration": 15,
762
+ "generatedResults": [
763
+ {
764
+ "url": "https://cdn.example/take.mp4"
765
+ }
766
+ ],
767
+ "activeResultIndex": 0
768
+ }
769
+ }
770
+ ],
771
+ "edges": [
772
+ {
773
+ "source": "g",
774
+ "targetHandle": "@input"
775
+ }
776
+ ],
777
+ "expected": {
778
+ "whole": {
779
+ "videoSfx": 30,
780
+ "videoMask": 30,
781
+ "videoDepth": 16,
782
+ "pitchTempo": 1,
783
+ "dubbing": 1,
784
+ "topaz": 10,
785
+ "nodaroUpscale": 16
786
+ },
787
+ "alone": {
788
+ "videoSfx": 30,
789
+ "videoMask": 30,
790
+ "videoDepth": 16,
791
+ "pitchTempo": 1,
792
+ "dubbing": 1,
793
+ "topaz": 10,
794
+ "nodaroUpscale": 16
795
+ }
796
+ }
797
+ },
798
+ {
799
+ "name": "18. Four Seedance 2.5 generations at 15 s → Combine Videos → the step: a planned 60.17 s (a frame of slack on each clip, the joins' trims not taken off) is an upper bound, not proof the run refuses it, so Nodaro Video Upscale is quoted at its 60-second limit",
800
+ "steps": [
801
+ "nodaroUpscale"
802
+ ],
803
+ "nodes": [
804
+ {
805
+ "id": "g1",
806
+ "type": "generate-video",
807
+ "data": {
808
+ "provider": "seedance-2-5",
809
+ "duration": 15
810
+ }
811
+ },
812
+ {
813
+ "id": "g2",
814
+ "type": "generate-video",
815
+ "data": {
816
+ "provider": "seedance-2-5",
817
+ "duration": 15
818
+ }
819
+ },
820
+ {
821
+ "id": "g3",
822
+ "type": "generate-video",
823
+ "data": {
824
+ "provider": "seedance-2-5",
825
+ "duration": 15
826
+ }
827
+ },
828
+ {
829
+ "id": "g4",
830
+ "type": "generate-video",
831
+ "data": {
832
+ "provider": "seedance-2-5",
833
+ "duration": 15
834
+ }
835
+ },
836
+ {
837
+ "id": "k",
838
+ "type": "combine-videos",
839
+ "data": {}
840
+ }
841
+ ],
842
+ "edges": [
843
+ {
844
+ "source": "g1",
845
+ "target": "k",
846
+ "targetHandle": "videos"
847
+ },
848
+ {
849
+ "source": "g2",
850
+ "target": "k",
851
+ "targetHandle": "videos"
852
+ },
853
+ {
854
+ "source": "g3",
855
+ "target": "k",
856
+ "targetHandle": "videos"
857
+ },
858
+ {
859
+ "source": "g4",
860
+ "target": "k",
861
+ "targetHandle": "videos"
862
+ },
863
+ {
864
+ "source": "k",
865
+ "targetHandle": "@input"
866
+ }
867
+ ],
868
+ "expected": {
869
+ "whole": {
870
+ "nodaroUpscale": 60
871
+ },
872
+ "alone": {
873
+ "nodaroUpscale": 60
874
+ }
875
+ }
876
+ },
877
+ {
878
+ "name": "19. A 75 s upload: a length the graph knows is past the 60-second limit, so the run refuses it and no estimate prices it",
879
+ "steps": [
880
+ "nodaroUpscale"
881
+ ],
882
+ "nodes": [
883
+ {
884
+ "id": "u",
885
+ "type": "upload-video",
886
+ "data": {
887
+ "url": "https://cdn.example/up75.mp4",
888
+ "generatedResults": [
889
+ {
890
+ "url": "https://cdn.example/up75.mp4",
891
+ "duration": 75
892
+ }
893
+ ],
894
+ "activeResultIndex": 0
895
+ }
896
+ }
897
+ ],
898
+ "edges": [
899
+ {
900
+ "source": "u",
901
+ "targetHandle": "@input"
902
+ }
903
+ ],
904
+ "expected": {
905
+ "whole": {
906
+ "nodaroUpscale": 0
907
+ },
908
+ "alone": {
909
+ "nodaroUpscale": 0
910
+ }
911
+ }
912
+ },
913
+ {
914
+ "name": "20. Lip Sync (OmniHuman 2.0, per second of its audio) on a 7.3 s audio upload: its recorded length, billed as 8 s",
915
+ "steps": [
916
+ "lipSync"
917
+ ],
918
+ "handles": {
919
+ "lipSync": "audio"
920
+ },
921
+ "nodes": [
922
+ {
923
+ "id": "a",
924
+ "type": "upload-audio",
925
+ "data": {
926
+ "url": "https://cdn.example/v.mp3",
927
+ "metadata": {
928
+ "durationSeconds": 7.3
929
+ }
930
+ }
931
+ }
932
+ ],
933
+ "edges": [
934
+ {
935
+ "source": "a",
936
+ "targetHandle": "@input"
937
+ }
938
+ ],
939
+ "expected": {
940
+ "whole": {
941
+ "lipSync": 8
942
+ },
943
+ "alone": {
944
+ "lipSync": 8
945
+ }
946
+ }
947
+ },
948
+ {
949
+ "name": "21. Lip Sync on a Text to Speech holding a 5 s take: a whole run makes the voice again, priced from that take as a minimum (the run charges the audio it measures); the step alone is handed the take, 5 s",
950
+ "steps": [
951
+ "lipSync"
952
+ ],
953
+ "handles": {
954
+ "lipSync": "audio"
955
+ },
956
+ "nodes": [
957
+ {
958
+ "id": "t",
959
+ "type": "text-to-speech",
960
+ "data": {
961
+ "text": "hello there",
962
+ "generatedResults": [
963
+ {
964
+ "url": "https://cdn.example/t.mp3",
965
+ "duration": 5
966
+ }
967
+ ],
968
+ "activeResultIndex": 0
969
+ }
970
+ }
971
+ ],
972
+ "edges": [
973
+ {
974
+ "source": "t",
975
+ "targetHandle": "@input"
976
+ }
977
+ ],
978
+ "expected": {
979
+ "whole": {
980
+ "lipSync": 5
981
+ },
982
+ "alone": {
983
+ "lipSync": 5
984
+ }
985
+ }
986
+ },
987
+ {
988
+ "name": "22. Lip Sync on a Text to Speech holding a 10 s take: the same, 10 s, a minimum on a whole run",
989
+ "steps": [
990
+ "lipSync"
991
+ ],
992
+ "handles": {
993
+ "lipSync": "audio"
994
+ },
995
+ "nodes": [
996
+ {
997
+ "id": "t",
998
+ "type": "text-to-speech",
999
+ "data": {
1000
+ "text": "hello there",
1001
+ "generatedResults": [
1002
+ {
1003
+ "url": "https://cdn.example/t.mp3",
1004
+ "duration": 10
1005
+ }
1006
+ ],
1007
+ "activeResultIndex": 0
1008
+ }
1009
+ }
1010
+ ],
1011
+ "edges": [
1012
+ {
1013
+ "source": "t",
1014
+ "targetHandle": "@input"
1015
+ }
1016
+ ],
1017
+ "expected": {
1018
+ "whole": {
1019
+ "lipSync": 10
1020
+ },
1021
+ "alone": {
1022
+ "lipSync": 10
1023
+ }
1024
+ }
1025
+ },
1026
+ {
1027
+ "name": "23. Lip Sync on a FROZEN Text to Speech holding a 4.2 s take: it never runs, so its take on every run set, billed as 5 s",
1028
+ "steps": [
1029
+ "lipSync"
1030
+ ],
1031
+ "handles": {
1032
+ "lipSync": "audio"
1033
+ },
1034
+ "nodes": [
1035
+ {
1036
+ "id": "t",
1037
+ "type": "text-to-speech",
1038
+ "data": {
1039
+ "text": "hello there",
1040
+ "skipped": true,
1041
+ "generatedResults": [
1042
+ {
1043
+ "url": "https://cdn.example/t.mp3",
1044
+ "duration": 4.2
1045
+ }
1046
+ ],
1047
+ "activeResultIndex": 0
1048
+ }
1049
+ }
1050
+ ],
1051
+ "edges": [
1052
+ {
1053
+ "source": "t",
1054
+ "targetHandle": "@input"
1055
+ }
1056
+ ],
1057
+ "expected": {
1058
+ "whole": {
1059
+ "lipSync": 5
1060
+ },
1061
+ "alone": {
1062
+ "lipSync": 5
1063
+ }
1064
+ }
1065
+ },
1066
+ {
1067
+ "name": "24. Lip Sync on an audio upload with no recorded length: unknown",
1068
+ "steps": [
1069
+ "lipSync"
1070
+ ],
1071
+ "handles": {
1072
+ "lipSync": "audio"
1073
+ },
1074
+ "nodes": [
1075
+ {
1076
+ "id": "a",
1077
+ "type": "upload-audio",
1078
+ "data": {
1079
+ "url": "https://cdn.example/nolen.mp3"
1080
+ }
1081
+ }
1082
+ ],
1083
+ "edges": [
1084
+ {
1085
+ "source": "a",
1086
+ "targetHandle": "@input"
1087
+ }
1088
+ ],
1089
+ "expected": {
1090
+ "whole": {
1091
+ "lipSync": null
1092
+ },
1093
+ "alone": {
1094
+ "lipSync": null
1095
+ }
1096
+ }
1097
+ },
1098
+ {
1099
+ "name": "25. Lip Sync on the sound of a clip made in the run, set to 5 s: 5 s planned plus the container slack, billed as 6 s, as a file a few hundredths over 5 s is",
1100
+ "steps": [
1101
+ "lipSync"
1102
+ ],
1103
+ "handles": {
1104
+ "lipSync": "audio"
1105
+ },
1106
+ "nodes": [
1107
+ {
1108
+ "id": "g",
1109
+ "type": "generate-video",
1110
+ "data": {
1111
+ "provider": "kling-4",
1112
+ "duration": 5
1113
+ }
1114
+ }
1115
+ ],
1116
+ "edges": [
1117
+ {
1118
+ "source": "g",
1119
+ "targetHandle": "@input"
1120
+ }
1121
+ ],
1122
+ "expected": {
1123
+ "whole": {
1124
+ "lipSync": 6
1125
+ },
1126
+ "alone": {
1127
+ "lipSync": 6
1128
+ }
1129
+ }
1130
+ },
1131
+ {
1132
+ "name": "26. Lip Sync on the sound of a clip made in the run, set to 10 s: 11 s",
1133
+ "steps": [
1134
+ "lipSync"
1135
+ ],
1136
+ "handles": {
1137
+ "lipSync": "audio"
1138
+ },
1139
+ "nodes": [
1140
+ {
1141
+ "id": "g",
1142
+ "type": "generate-video",
1143
+ "data": {
1144
+ "provider": "kling-4",
1145
+ "duration": 10
1146
+ }
1147
+ }
1148
+ ],
1149
+ "edges": [
1150
+ {
1151
+ "source": "g",
1152
+ "targetHandle": "@input"
1153
+ }
1154
+ ],
1155
+ "expected": {
1156
+ "whole": {
1157
+ "lipSync": 11
1158
+ },
1159
+ "alone": {
1160
+ "lipSync": 11
1161
+ }
1162
+ }
1163
+ },
1164
+ {
1165
+ "name": "27. Lip Sync on a 2.5 s audio upload: shorter audio is padded to the model's 4 s minimum",
1166
+ "steps": [
1167
+ "lipSync"
1168
+ ],
1169
+ "handles": {
1170
+ "lipSync": "audio"
1171
+ },
1172
+ "nodes": [
1173
+ {
1174
+ "id": "a",
1175
+ "type": "upload-audio",
1176
+ "data": {
1177
+ "url": "https://cdn.example/short.mp3",
1178
+ "metadata": {
1179
+ "durationSeconds": 2.5
1180
+ }
1181
+ }
1182
+ }
1183
+ ],
1184
+ "edges": [
1185
+ {
1186
+ "source": "a",
1187
+ "targetHandle": "@input"
1188
+ }
1189
+ ],
1190
+ "expected": {
1191
+ "whole": {
1192
+ "lipSync": 4
1193
+ },
1194
+ "alone": {
1195
+ "lipSync": 4
1196
+ }
1197
+ }
1198
+ },
1199
+ {
1200
+ "name": "28. A render that does not run again, holding a cut recorded at 59.5 s (its EDL's length; the file measures at or past it): known and within the 60 s limit, priced; a whole run renders it again, an estimate",
1201
+ "steps": [
1202
+ "nodaroUpscale"
1203
+ ],
1204
+ "nodes": [
1205
+ {
1206
+ "id": "r",
1207
+ "type": "apply-edl",
1208
+ "data": {
1209
+ "generatedResults": [
1210
+ {
1211
+ "url": "https://cdn.example/cut.mp4",
1212
+ "duration": 59.5
1213
+ }
1214
+ ],
1215
+ "activeResultIndex": 0
1216
+ }
1217
+ }
1218
+ ],
1219
+ "edges": [
1220
+ {
1221
+ "source": "r",
1222
+ "targetHandle": "@input"
1223
+ }
1224
+ ],
1225
+ "expected": {
1226
+ "whole": {
1227
+ "nodaroUpscale": 60
1228
+ },
1229
+ "alone": {
1230
+ "nodaroUpscale": 60
1231
+ }
1232
+ }
1233
+ },
1234
+ {
1235
+ "name": "29. A render that does not run again, holding a cut recorded at 75 s: a length the graph knows is past the limit, so the run refuses it and no estimate prices it",
1236
+ "steps": [
1237
+ "nodaroUpscale"
1238
+ ],
1239
+ "nodes": [
1240
+ {
1241
+ "id": "r",
1242
+ "type": "apply-edl",
1243
+ "data": {
1244
+ "generatedResults": [
1245
+ {
1246
+ "url": "https://cdn.example/cut.mp4",
1247
+ "duration": 75
1248
+ }
1249
+ ],
1250
+ "activeResultIndex": 0
1251
+ }
1252
+ }
1253
+ ],
1254
+ "edges": [
1255
+ {
1256
+ "source": "r",
1257
+ "targetHandle": "@input"
1258
+ }
1259
+ ],
1260
+ "expected": {
1261
+ "whole": {
1262
+ "nodaroUpscale": 60
1263
+ },
1264
+ "alone": {
1265
+ "nodaroUpscale": 0
1266
+ }
1267
+ }
1268
+ },
1269
+ {
1270
+ "name": "30. Lip Sync after a Voice Changer of an 8 s upload: the changed voice is a new file, 8 s plus the container slack, billed as 9 s",
1271
+ "steps": [
1272
+ "lipSync"
1273
+ ],
1274
+ "handles": {
1275
+ "lipSync": "audio"
1276
+ },
1277
+ "nodes": [
1278
+ {
1279
+ "id": "a",
1280
+ "type": "upload-audio",
1281
+ "data": {
1282
+ "url": "https://cdn.example/v8.mp3",
1283
+ "metadata": {
1284
+ "durationSeconds": 8
1285
+ }
1286
+ }
1287
+ },
1288
+ {
1289
+ "id": "v",
1290
+ "type": "voice-changer",
1291
+ "data": {}
1292
+ }
1293
+ ],
1294
+ "edges": [
1295
+ {
1296
+ "source": "a",
1297
+ "target": "v",
1298
+ "targetHandle": "audio"
1299
+ },
1300
+ {
1301
+ "source": "v",
1302
+ "targetHandle": "@input"
1303
+ }
1304
+ ],
1305
+ "expected": {
1306
+ "whole": {
1307
+ "lipSync": 9
1308
+ },
1309
+ "alone": {
1310
+ "lipSync": 9
1311
+ }
1312
+ }
1313
+ },
1314
+ {
1315
+ "name": "31. Lip Sync after an Adjust Volume of an 8 s upload: re-rendered, 8 s plus the container slack, billed as 9 s",
1316
+ "steps": [
1317
+ "lipSync"
1318
+ ],
1319
+ "handles": {
1320
+ "lipSync": "audio"
1321
+ },
1322
+ "nodes": [
1323
+ {
1324
+ "id": "a",
1325
+ "type": "upload-audio",
1326
+ "data": {
1327
+ "url": "https://cdn.example/v8.mp3",
1328
+ "metadata": {
1329
+ "durationSeconds": 8
1330
+ }
1331
+ }
1332
+ },
1333
+ {
1334
+ "id": "v",
1335
+ "type": "adjust-volume",
1336
+ "data": {}
1337
+ }
1338
+ ],
1339
+ "edges": [
1340
+ {
1341
+ "source": "a",
1342
+ "target": "v",
1343
+ "targetHandle": "audio"
1344
+ },
1345
+ {
1346
+ "source": "v",
1347
+ "targetHandle": "@input"
1348
+ }
1349
+ ],
1350
+ "expected": {
1351
+ "whole": {
1352
+ "lipSync": 9
1353
+ },
1354
+ "alone": {
1355
+ "lipSync": 9
1356
+ }
1357
+ }
1358
+ },
1359
+ {
1360
+ "name": "32. Lip Sync on a Text to Dialogue holding a 33 s take: a whole run makes it again, priced from that take as a minimum; alone, the take",
1361
+ "steps": [
1362
+ "lipSync"
1363
+ ],
1364
+ "handles": {
1365
+ "lipSync": "audio"
1366
+ },
1367
+ "nodes": [
1368
+ {
1369
+ "id": "t",
1370
+ "type": "text-to-dialogue",
1371
+ "data": {
1372
+ "dialogue": [
1373
+ {
1374
+ "text": "hi"
1375
+ }
1376
+ ],
1377
+ "generatedResults": [
1378
+ {
1379
+ "url": "https://cdn.example/d.mp3",
1380
+ "duration": 33
1381
+ }
1382
+ ],
1383
+ "activeResultIndex": 0
1384
+ }
1385
+ }
1386
+ ],
1387
+ "edges": [
1388
+ {
1389
+ "source": "t",
1390
+ "targetHandle": "@input"
1391
+ }
1392
+ ],
1393
+ "expected": {
1394
+ "whole": {
1395
+ "lipSync": 33
1396
+ },
1397
+ "alone": {
1398
+ "lipSync": 33
1399
+ }
1400
+ }
1401
+ },
1402
+ {
1403
+ "name": "33. Lip Sync on a Text to Speech with no take yet: a length nothing knows before the run",
1404
+ "steps": [
1405
+ "lipSync"
1406
+ ],
1407
+ "handles": {
1408
+ "lipSync": "audio"
1409
+ },
1410
+ "nodes": [
1411
+ {
1412
+ "id": "t",
1413
+ "type": "text-to-speech",
1414
+ "data": {
1415
+ "text": "hello there"
1416
+ }
1417
+ }
1418
+ ],
1419
+ "edges": [
1420
+ {
1421
+ "source": "t",
1422
+ "targetHandle": "@input"
1423
+ }
1424
+ ],
1425
+ "expected": {
1426
+ "whole": {
1427
+ "lipSync": null
1428
+ },
1429
+ "alone": {
1430
+ "lipSync": null
1431
+ }
1432
+ }
1433
+ }
1434
+ ]
1435
+ }