@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
@@ -1,6 +1,6 @@
1
- import { bz as SeedanceExtendProvider } from '../model-constants-Cf3zaITt.cjs';
1
+ import { cG as VideoAudioRequest, i as CatalogExtendProvider, bL as SeedanceExtendProvider, c4 as TailExtendProvider } from '../model-constants-C_Nyft_i.cjs';
2
2
  import { I as ImageFormatLevers } from '../gpt-image-2-6-jIRQBRag.cjs';
3
- import { j as ModelInputAdjustment, x as SourceImageSize } from '../model-catalog-CCEcv08q.cjs';
3
+ import { j as ModelInputAdjustment, x as SourceImageSize } from '../model-catalog-Cf9fkEUp.cjs';
4
4
  import 'zod';
5
5
 
6
6
  /** Milli-credits per credit — the intermediate rounding resolution. */
@@ -245,7 +245,7 @@ declare function resolveImageGenCreditIdentifier(opts: {
245
245
  refCount: number;
246
246
  swapToI2i?: boolean;
247
247
  }): string;
248
- declare function buildVideoCreditModelIdentifier(rawProvider: string, duration?: number | string, sound?: boolean, nodeType?: "image-to-video" | "text-to-video", mode?: string, resolution?: string, hasVideoRef?: boolean): string;
248
+ declare function buildVideoCreditModelIdentifier(rawProvider: string, duration?: number | string, sound?: boolean | VideoAudioRequest, nodeType?: "image-to-video" | "text-to-video", mode?: string, resolution?: string, hasVideoRef?: boolean): string;
249
249
  /**
250
250
  * The credit identifier a video GENERATION node is quoted at — Generate Video
251
251
  * (and the legacy Image/Text to Video nodes) and the Video to Video Seedance
@@ -269,6 +269,8 @@ declare function videoGenerationCreditId(args: {
269
269
  provider: string;
270
270
  duration?: number | string;
271
271
  sound?: boolean;
272
+ /** The request's `generateAudio`, read after `sound` where the model reads it (`videoAudioIntent`). */
273
+ generateAudio?: boolean;
272
274
  nodeType?: "image-to-video" | "text-to-video";
273
275
  mode?: string;
274
276
  resolution?: string;
@@ -296,28 +298,160 @@ declare function videoGenerationCreditId(args: {
296
298
  */
297
299
  declare function seedanceVideoEditCreditId(provider: string, resolution?: string, draft?: boolean): string;
298
300
  /**
299
- * The resolution a Seedance Extend Video run is priced at, and so the one it
300
- * must render at: the requested one when it is among the provider's catalog
301
- * `resolutions`, else 720p (also when none is named). The workflow run queues
302
- * it and the worker holds the job to it, so a stored or sent resolution the
303
- * model does not offer (`4k`) can never render above the row it reserved.
304
- */
305
- declare function seedanceExtendResolution(provider: SeedanceExtendProvider, resolution?: unknown): string;
306
- /**
307
- * The credit identifier one Seedance Extend Video run is priced at — the one
308
- * builder every surface that prices it reads (the route's guard and
309
- * reservation, the workflow reservation and estimate, the editor), so none of
310
- * them can name a different row.
301
+ * The resolution a tail-recipe Extend Video run (Seedance 2.5 / 2.0, Kling 4)
302
+ * is priced at, and so the one it must render at: the requested one when it is
303
+ * among the provider's catalog `resolutions`, else 720p (also when none is
304
+ * named). The workflow run queues it and the worker holds the job to it, so a
305
+ * stored or sent resolution the model does not offer (`4k`, or `480p` on Kling
306
+ * 4) can never render above, or bill apart from, the row it reserved.
307
+ */
308
+ declare function tailExtendResolution(provider: TailExtendProvider, resolution?: unknown): string;
309
+ /**
310
+ * The rate row a Seedance 2.5 Extend run at `resolution` is charged a multiple
311
+ * of: the row of the resolution the run is priced and rendered at
312
+ * ({@link tailExtendResolution}: one the model offers, else 720p).
313
+ */
314
+ declare function seedanceExtendRateCreditId(resolution: unknown): string;
315
+ /**
316
+ * The ONE id a Seedance 2.5 Extend run on a known source is charged: the
317
+ * whole-run quote (`<rate row>:<units>u`, {@link unitQuoteCreditId}) of that
318
+ * run, which the price lookups (`GET /v1/credits/model-cost`,
319
+ * `POST /v1/credits/model-costs`) answer with exactly what the run is charged.
320
+ *
321
+ * The units are (seconds sent + seconds added) ÷ 2, by the rule the server
322
+ * charges a run by (seedance-extend-rate.ts): the seconds sent are the
323
+ * source's last {@link SEEDANCE_EXTEND_CONTEXT_MAX_SEC} seconds, or all of a
324
+ * shorter source, its picture's length read by the container-overhang rule
325
+ * (`CONTAINER_OVERHANG_SEC`: 8.04 s counts as 8 s, 8.3 s as 8.3 s); the seconds
326
+ * added snap into the catalog window as {@link tailExtendCreditId} reads them.
327
+ *
328
+ * @param sourcePictureSec the source's measured picture length, in seconds.
329
+ * Not known or unreadable (undefined, null, not a positive finite number):
330
+ * the whole window is counted — {@link seedanceExtendFullWindowCreditId},
331
+ * the most a run of that length costs.
332
+ * @param duration the seconds added (the request's `duration`).
333
+ * @param resolution the request's resolution (one the model does not offer is 720p).
334
+ * @returns the id, or `undefined` for a source the extend refuses: a measured
335
+ * picture shorter than the shortest source it takes
336
+ * (`SEEDANCE_2_R2V_MIN_REF_VIDEO_SEC`, 1.8 s, compared as measured, as the
337
+ * route and the worker compare it), whatever the seconds added. No run on
338
+ * such a source is made or charged, so there is no price to name.
339
+ */
340
+ declare function seedanceExtendSourceCreditId(sourcePictureSec: number | null | undefined, duration?: number | string, resolution?: unknown): string | undefined;
341
+ /**
342
+ * The most a Seedance 2.5 Extend run that adds `duration` seconds at
343
+ * `resolution` can cost, as ONE id: the whole-run quote
344
+ * (`<rate row>:<units>u`, {@link unitQuoteCreditId}) of a run that sends the
345
+ * whole {@link SEEDANCE_EXTEND_CONTEXT_MAX_SEC}-second window — the units are
346
+ * (10 + the seconds added) ÷ 2. A run sends at most that window, so this is
347
+ * never below what a run of that length is charged; the price lookups answer
348
+ * it at the rate row's current price. A client that knows the source names
349
+ * its run exactly with {@link seedanceExtendSourceCreditId}; this is that id
350
+ * for a source not known.
351
+ *
352
+ * The seconds added snap into the catalog window exactly as
353
+ * {@link tailExtendCreditId} reads them for every tail-recipe provider.
354
+ */
355
+ declare function seedanceExtendFullWindowCreditId(duration?: number | string, resolution?: unknown): string;
356
+ /**
357
+ * The credit identifier a client prices one tail-recipe Extend Video run at —
358
+ * the one builder every surface that prices it reads (the route's guard and
359
+ * reservation, the workflow reservation and estimate, the editor, and every
360
+ * client of this package), so none of them can name a different row.
311
361
  *
312
362
  * The seconds added snap into the provider's catalog `durations` (its catalog
313
363
  * `defaultDuration` when unset, through {@link pricedOutputDurationSec}); the
314
- * resolution is {@link seedanceExtendResolution}'s. Each provider has its own
315
- * rows, one per second of its window and resolution: `<provider>:<N>s:<res>`
316
- * (`seedance-2-5-extend` 4–30 s, `seedance-2-0-extend` 4–15 s).
317
- *
318
- * A retired id (`seedance-2-extend`) is not a {@link SeedanceExtendProvider}:
319
- * pass a stored or sent provider through `canonicalVideoProvider` first.
320
- */
364
+ * resolution is {@link tailExtendResolution}'s.
365
+ * - Seedance 2.0 Extend (4–15 s) and Kling 4 Extend (3–30 s): their own rows,
366
+ * one per second of the window and resolution, `<provider>:<N>s:<res>`
367
+ * (480p / 720p / 1080p; Kling 4 720p / 1080p) — the price a run is charged.
368
+ * - Seedance 2.5 Extend (4–30 s) is charged per second it sends and adds, and
369
+ * how much it sends depends on the source: this names the most a run of
370
+ * that length costs, the whole 10-second window sent
371
+ * ({@link seedanceExtendFullWindowCreditId},
372
+ * `seedance-2-5-extend:<res>:per-2s:<units>u`). A client that knows the
373
+ * source names the run's own id with {@link seedanceExtendSourceCreditId}.
374
+ *
375
+ * A retired id (`seedance-2-extend`) is not a {@link TailExtendProvider}:
376
+ * pass a stored or sent provider through `canonicalVideoProvider` first
377
+ * ({@link buildVideoCreditModelIdentifier} does).
378
+ */
379
+ declare function tailExtendCreditId(provider: TailExtendProvider, duration?: number | string, resolution?: string): string;
380
+ /** PixVerse V6 Extend's qualities, ascending: its catalog `resolutions`. */
381
+ type PixverseExtendQuality = "360p" | "540p" | "720p" | "1080p";
382
+ /**
383
+ * The quality a PixVerse V6 Extend run is priced at, and so the one it must
384
+ * render at: a quality it offers (360p / 540p / 720p / 1080p) as asked; 480p —
385
+ * the lowest the other extends render, which PixVerse does not — at the
386
+ * nearest it offers, 540p; anything else, or none, at 720p. The route refuses
387
+ * 480p and every other value it does not offer; a saved node, a quick-strip
388
+ * switch or a workflow written elsewhere carrying one runs, and is priced, at
389
+ * this quality instead.
390
+ */
391
+ declare function pixverseExtendQuality(resolution?: unknown): PixverseExtendQuality;
392
+ /**
393
+ * The credit identifier one PixVerse V6 Extend run is priced at:
394
+ * `pixverse-v6-extend:<N>s:<quality>`, `:audio` appended with sound. The
395
+ * seconds added snap into its catalog `durations` (1–15, its default 5 when
396
+ * unset, {@link pricedOutputDurationSec}); the quality is
397
+ * {@link pixverseExtendQuality}'s; the sound is on unless `generateAudio` is
398
+ * `false` (the editor's sound switch shows it on until it is turned off).
399
+ */
400
+ declare function pixverseExtendCreditId(duration?: number | string, resolution?: unknown, generateAudio?: boolean): string;
401
+ /**
402
+ * The resolution a catalog Extend Video run ({@link CatalogExtendProvider}) is
403
+ * priced at, and so renders at: a tail recipe's {@link tailExtendResolution},
404
+ * PixVerse V6's {@link pixverseExtendQuality}.
405
+ */
406
+ declare function catalogExtendResolution(provider: CatalogExtendProvider, resolution?: unknown): string;
407
+ /**
408
+ * The credit identifier one catalog Extend Video run is priced at — the one
409
+ * builder every surface that prices one reads (the route's guard and
410
+ * reservation, the workflow reservation and estimate, the editor): a tail
411
+ * recipe's {@link tailExtendCreditId} (no sound switch is priced there), and
412
+ * PixVerse V6's {@link pixverseExtendCreditId}.
413
+ */
414
+ declare function catalogExtendCreditId(provider: CatalogExtendProvider, duration?: number | string, resolution?: string, generateAudio?: boolean): string;
415
+ /** The source resolutions Grok Extend is priced at (one row each per length added). */
416
+ type GrokExtendSourceResolution = "480p" | "720p";
417
+ /**
418
+ * The seconds a Grok Extend run adds for a requested `duration`: 6 or 10 as
419
+ * asked, its default 6 when unset or unreadable, any other length snapped to
420
+ * the nearer of the two ({@link pricedOutputDurationSec} on its catalog
421
+ * `durations`). The route refuses any other length; a saved node, a quick-strip
422
+ * switch or a workflow written elsewhere runs, and is priced, at this one.
423
+ */
424
+ declare function grokExtendSeconds(duration: unknown): number;
425
+ /**
426
+ * The credit identifier one Grok Extend run is priced at:
427
+ * `grok-extend:<6|10>s:<480p|720p>`. The resolution is the SOURCE's — what
428
+ * Grok bills an extension at — as the source check answers it (the route's
429
+ * hold, the workflow hold); never a resolution the request names. Anything but
430
+ * `480p` (a source not known yet, an estimate) is priced at the dearer 720p
431
+ * row, so a quote never falls below the charge.
432
+ */
433
+ declare function grokExtendCreditId(duration?: unknown, sourceResolution?: unknown): string;
434
+ /**
435
+ * The source resolution a Grok Extend node is QUOTED at (its estimate, its
436
+ * editor price), read off the node wired into its `video` input: `480p` only
437
+ * when that node surely renders at 480p — a Grok Imagine video node (text- or
438
+ * image-to-video) set to 480p, which every mode sends as set — and `720p`, the
439
+ * dearer row, for anything else: nothing wired, another model, a Grok node with
440
+ * no resolution set (Grok may render it at either). The run is held and
441
+ * charged at the source's own row, read off its job.
442
+ */
443
+ declare function grokExtendWiredSourceResolution(nodeId: string | undefined, nodes: ReadonlyArray<{
444
+ readonly id?: string;
445
+ readonly type?: string;
446
+ readonly data?: unknown;
447
+ }>, edges: ReadonlyArray<{
448
+ readonly source?: string;
449
+ readonly target?: string;
450
+ readonly targetHandle?: string | null;
451
+ }> | undefined): GrokExtendSourceResolution;
452
+ /** @deprecated Use {@link tailExtendResolution}, which also answers for Kling 4 Extend. */
453
+ declare function seedanceExtendResolution(provider: SeedanceExtendProvider, resolution?: unknown): string;
454
+ /** @deprecated Use {@link tailExtendCreditId}, which also answers for Kling 4 Extend. */
321
455
  declare function seedanceExtendCreditId(provider: SeedanceExtendProvider, duration?: number | string, resolution?: string): string;
322
456
  /** What the video credit identifier PRICES for a request, for the levers whose
323
457
  * priced value must also be the value we SEND. */
@@ -388,10 +522,26 @@ declare function pricedVideoSelection(opts: {
388
522
  * "wan-animate-move" (480p default), "wan-animate-move:580p", "wan-animate-move:720p"
389
523
  *
390
524
  * @param provider - Motion control provider key ("kling" for 2.6, "kling-3.0", "wan-animate-move", "wan-animate-replace")
391
- * @param resolution - "720p" or "1080p" (Kling), "480p" or "580p" or "720p" (Wan Animate)
525
+ * @param resolution - "720p" or "1080p" (Kling), "480p" or "580p" or "720p" (Wan Animate); a size the
526
+ * model does not have is priced as the size it runs at (`motionTransferResolution`: Wan Animate's 1080p as 720p)
392
527
  * @param videoDuration - Reference video duration in seconds (defaults to 10s, unused for Wan Animate)
393
528
  */
394
529
  declare function buildMotionCreditModelIdentifier(provider: string, resolution: string, videoDuration?: number): string;
530
+ /** The size a Motion Transfer run is sent and charged at, and what moved. */
531
+ interface MotionTransferResolution {
532
+ resolution: string;
533
+ /** Empty when the size it names is the one it runs at. */
534
+ adjustments: ModelInputAdjustment[];
535
+ }
536
+ /**
537
+ * The size a Motion Transfer run is sent and charged at (decided 2026-11-12):
538
+ * the size it names, held to the catalog entry of the model its option runs
539
+ * (`normalizeModelInput`), so a size that model does not have moves to the
540
+ * entry's `defaultResolution` — a Wan Animate request at 1080p runs, and is
541
+ * charged, as 720p. The route, the workflow build, the MCP workflow writes and
542
+ * every price (through `buildMotionCreditModelIdentifier`) read this one rule.
543
+ */
544
+ declare function motionTransferResolution(provider: string, resolution: string): MotionTransferResolution;
395
545
  /**
396
546
  * The Suno operations whose credit key depends on the model VERSION.
397
547
  *
@@ -469,8 +619,8 @@ declare function speakerViewCreditId(quality: unknown, tier?: unknown): SpeakerV
469
619
  * satisfies the B3 egress invariant.
470
620
  *
471
621
  * The version → key map is {@link SUNO_VERSION_CREDIT_KEYS}; a version with no
472
- * entry (V4 / V4_5 / V4_5ALL / V4_5PLUS) falls back to the operation key, and a
473
- * non-version-priced operation is returned unchanged.
622
+ * entry (V4) falls back to the operation key, and a non-version-priced
623
+ * operation is returned unchanged.
474
624
  */
475
625
  declare function sunoCreditType(model: string | undefined, operation: string): string;
476
626
  /**
@@ -483,6 +633,57 @@ declare function sunoCreditType(model: string | undefined, operation: string): s
483
633
  */
484
634
  declare const SUNO_VERSION_CREDIT_KEYS: Readonly<Record<string, string>>;
485
635
 
636
+ /** The Extend Video provider priced by the seconds it sends. */
637
+ declare const SEEDANCE_EXTEND_SENT_PRICED_PROVIDER = "seedance-2-5-extend";
638
+ /** The Extend Video provider priced by the seconds it sends. */
639
+ type SentPricedSeedanceExtendProvider = typeof SEEDANCE_EXTEND_SENT_PRICED_PROVIDER;
640
+ /** The most of the source's end a run sends as `@video_1`, in seconds. */
641
+ declare const SEEDANCE_EXTEND_CONTEXT_MAX_SEC = 10;
642
+ /** The seconds one rate row prices. */
643
+ declare const SEEDANCE_EXTEND_RATE_SECONDS = 2;
644
+ /** The rate row of each resolution: the price of {@link SEEDANCE_EXTEND_RATE_SECONDS} seconds. */
645
+ declare const SEEDANCE_EXTEND_RATE_CREDIT_IDS: Readonly<Record<"480p" | "720p" | "1080p", string>>;
646
+ /** Is `provider` the Extend Video provider priced by the seconds it sends? A retired id answers false: pass it through `canonicalVideoProvider` first. */
647
+ declare function isSeedanceExtendPricedBySecondsSent(provider: unknown): provider is SentPricedSeedanceExtendProvider;
648
+ /** Is `id` one of the rate rows? */
649
+ declare function isSeedanceExtendRateCreditId(id: unknown): boolean;
650
+ /**
651
+ * The seconds a tail-recipe extend run (Seedance 2.5 / 2.0, Kling 4) adds for a requested `duration`: the
652
+ * seconds its price counts (`pricedOutputDurationSec`, the provider's catalog
653
+ * default when unset or unreadable), held in the provider's catalog window.
654
+ * The one reading of the length: the route queues it, the worker generates
655
+ * it, and every price and quote counts it.
656
+ */
657
+ declare function seedanceExtendAddedSec(provider: TailExtendProvider, duration: unknown): number;
658
+ /**
659
+ * A picture's measured length as the seconds it is charged as — the
660
+ * platform's container-overhang rule: at most `CONTAINER_OVERHANG_SEC` (a
661
+ * quarter second) past a whole second is that whole second (8.04 s is 8 s,
662
+ * 8.25 s is 8 s); anything else is exactly as measured (8.3 s is 8.3 s).
663
+ * Under a second there is no whole second to read it as.
664
+ */
665
+ declare function seedanceExtendSourceSec(pictureSec: number): number;
666
+ /**
667
+ * The seconds of the source a run is charged for sending: its last
668
+ * {@link SEEDANCE_EXTEND_CONTEXT_MAX_SEC}, or all of a shorter source, its
669
+ * picture's length read by the container-overhang rule
670
+ * ({@link seedanceExtendSourceSec}). A source whose length is not known (a
671
+ * quote before the upstream video exists, or a length that is not a positive
672
+ * finite number) counts the whole window: the most a run sends.
673
+ */
674
+ declare function seedanceExtendSentSec(sourcePictureSec: number | null | undefined): number;
675
+ /**
676
+ * Whether a Seedance Extend run refuses a source of this measured picture
677
+ * length: a known length (positive, finite) under the shortest source the
678
+ * extend takes, `SEEDANCE_2_R2V_MIN_REF_VIDEO_SEC`, compared as measured, as
679
+ * the route refuses it before anything is reserved and the worker before it
680
+ * generates. A length that is not known is never refused here (the run
681
+ * measures the source itself).
682
+ */
683
+ declare function seedanceExtendRefusesSource(sourcePictureSec: number | null | undefined): boolean;
684
+ /** The units of a rate row a run that sends `sentSec` and adds `addedSec` is charged. */
685
+ declare function seedanceExtendUnits(sentSec: number, addedSec: number): number;
686
+
486
687
  /**
487
688
  * Pure credit estimators for video-utility nodes (loop-video, trim-video,
488
689
  * combine-videos, assemble-narrated-video). Used by frontend (Run-button
@@ -929,6 +1130,100 @@ declare function pitchTempoBaseCredits(ratePerMinute: number, minutes: number):
929
1130
  /** The frequency ratio for a shift of `semitones` (12 = one octave up = ×2). */
930
1131
  declare function semitonesToPitchRatio(semitones: number): number;
931
1132
 
1133
+ /**
1134
+ * Nemotron 3.5 Transcribe pricing — per STARTED minute of the file (decided
1135
+ * 2026-11-12): the same price with word timings or a translation.
1136
+ *
1137
+ * The base price is 0.75 credits a minute, which no whole-credit row can hold
1138
+ * (`model_pricing.credit_cost` is an integer), so the rate row prices FOUR
1139
+ * minutes — the same trick as Nodaro Video Upscale's four-second rows. A run
1140
+ * reserves `nemotron-3-5-transcribe:<N>m` (N = started minutes, 1..60), which
1141
+ * billing prices as that row × N ÷ 4, rounded up once for the whole run, then
1142
+ * marked up once — never a row of its own, so a retune of the rate row moves
1143
+ * the route, the workflow run, the node's Run button and every estimate
1144
+ * together. The same id is built by the route (from the probed length), the
1145
+ * workflow run (the same probe) and the editor (the upstream length it knows).
1146
+ * That id is the HOLD: a run is then CHARGED for the minutes the provider
1147
+ * reports it decoded, up or down (decided 2026-11-12; backend
1148
+ * `lib/nemotron-transcribe-settle.ts`).
1149
+ *
1150
+ * Worked base prices at the row's launch value of 3 (per 4 minutes):
1151
+ * 0:45 → 1, 1:00 → 1, 1:01 → 2, 10:00 → 8, 60:00 → 45.
1152
+ * The listed (marked-up) price follows from those.
1153
+ */
1154
+ /** The engine's id — the Transcribe node's `provider`, and the bare price id. */
1155
+ declare const NEMOTRON_TRANSCRIBE_ID = "nemotron-3-5-transcribe";
1156
+ declare const NEMOTRON_TRANSCRIBE_PRICING: {
1157
+ /** The rate row: credits per {@link NEMOTRON_TRANSCRIBE_PRICING.RATE_MINUTES} minutes. Never reserved by itself. */
1158
+ readonly RATE_CREDIT_ID: "nemotron-3-5-transcribe:per-4m";
1159
+ /** The minutes the rate row prices. */
1160
+ readonly RATE_MINUTES: 4;
1161
+ /** The rate row's launch value (admin-retunable in /admin/models): 0.75 base credits a minute. */
1162
+ readonly CREDITS_PER_RATE_DEFAULT: 3;
1163
+ /** The longest file a run accepts, in seconds (KIE's 60-minute limit; the route refuses longer). */
1164
+ readonly MAX_DURATION_SEC: 3600;
1165
+ /** The most minutes a `nemotron-3-5-transcribe:<N>m` id can carry. */
1166
+ readonly MAX_MINUTES: 60;
1167
+ /** The largest file a run accepts, in bytes (KIE's 200 MB limit). */
1168
+ readonly MAX_BYTES: number;
1169
+ };
1170
+ /**
1171
+ * Started minutes of a file of `durationSec` seconds: ceil(sec / 60), at least
1172
+ * 1, at most 60. An unknown or non-positive length counts as one minute here; a
1173
+ * quote of an unknown length names 60 instead ({@link nemotronTranscribeQuoteCreditId}),
1174
+ * as does a run whose file's length cannot be read (it holds 60 minutes and
1175
+ * settles at the provider's decoded length).
1176
+ */
1177
+ declare function nemotronTranscribeStartedMinutes(durationSec: number | null | undefined): number;
1178
+ /** `nemotron-3-5-transcribe:<N>m` — the id a run on a file of `durationSec` seconds reserves. */
1179
+ declare function nemotronTranscribeCreditId(durationSec: number | null | undefined): string;
1180
+ /**
1181
+ * The id a QUOTE names for a file of `durationSec` seconds — every estimate
1182
+ * before a run. A known length is the id its run reserves. An UNKNOWN length is
1183
+ * the 60-minute id: a run measures the file before it reserves, holds 60
1184
+ * minutes for one whose length cannot be read and refuses one over 60 minutes,
1185
+ * and the provider refuses longer audio, so 60 minutes is the most any run can
1186
+ * be charged and the quote is never below the charge (Pitch & Tempo's rule).
1187
+ */
1188
+ declare function nemotronTranscribeQuoteCreditId(durationSec: number | null | undefined): string;
1189
+ /** The minutes of a `nemotron-3-5-transcribe:<N>m` id (1 ≤ N ≤ 60), or `undefined` for any other id. */
1190
+ declare function parseNemotronTranscribeCreditId(id: string): {
1191
+ minutes: number;
1192
+ } | undefined;
1193
+ /**
1194
+ * The base of a run of `minutes` started minutes from the rate row's value
1195
+ * (`ratePerBlock` credits per {@link NEMOTRON_TRANSCRIBE_PRICING.RATE_MINUTES}
1196
+ * minutes): rate × minutes ÷ 4, rounded up once for the whole run, at least 1.
1197
+ */
1198
+ declare function nemotronTranscribeBaseCredits(ratePerBlock: number, minutes: number): number;
1199
+
1200
+ /** The Remotion render's row — every Add Captions render that transcribes. */
1201
+ declare const ADD_CAPTIONS_KINETIC_CREDIT_ID = "add-captions:kinetic";
1202
+ /** The prefix of the per-minute ids a Nemotron caption run holds. */
1203
+ declare const ADD_CAPTIONS_NEMOTRON_ID_PREFIX = "add-captions:kinetic:nemotron";
1204
+ /** `add-captions:kinetic:nemotron:<N>m` for N started minutes (1..60, clamped). */
1205
+ declare function addCaptionsNemotronMinutesId(minutes: number): string;
1206
+ /** The id a Nemotron caption run on a video of `durationSec` seconds holds (its started minutes). */
1207
+ declare function addCaptionsNemotronCreditId(durationSec: number | null | undefined): string;
1208
+ /**
1209
+ * The id a QUOTE names for a video of `durationSec` seconds — every estimate
1210
+ * before a run. A known length is the id its run holds; an UNKNOWN length is
1211
+ * the 60-minute id, the most any run can be charged (a run measures the video
1212
+ * first, holds 60 minutes for one whose length cannot be read, and refuses one
1213
+ * over 60 minutes).
1214
+ */
1215
+ declare function addCaptionsNemotronQuoteCreditId(durationSec: number | null | undefined): string;
1216
+ /** The minutes of an `add-captions:kinetic:nemotron:<N>m` id (1 ≤ N ≤ 60), or `undefined` for any other id. */
1217
+ declare function parseAddCaptionsNemotronCreditId(id: string): {
1218
+ minutes: number;
1219
+ } | undefined;
1220
+ /**
1221
+ * The base of a Nemotron caption run of `minutes` started minutes: the kinetic
1222
+ * row's base plus Nemotron's per-minute base for those minutes (`ratePerBlock`
1223
+ * credits per four minutes, rounded up once). Marked up once, as one charge.
1224
+ */
1225
+ declare function addCaptionsNemotronBaseCredits(kineticBase: number, ratePerBlock: number, minutes: number): number;
1226
+
932
1227
  declare const VIDEO_OVERLAY_PRICING: {
933
1228
  /** An image-only run: one flat row. */
934
1229
  readonly IMAGE_CREDIT_ID: "video-overlay";
@@ -1097,7 +1392,56 @@ declare function calculateMonetizedCost(baseCost: number, flatFee: number, perce
1097
1392
  * (e.g. `kling-avatar:60s`) so credit reservation scales with input length.
1098
1393
  *
1099
1394
  * InfiniTalk still enforces a 15s upstream cap.
1395
+ *
1396
+ * A model listed in {@link LIP_SYNC_AUDIO_RATES} is priced differently: at a
1397
+ * per-second RATE times the seconds of its audio, never by bucket.
1398
+ */
1399
+ /**
1400
+ * A lip-sync model charged at a per-second rate: the rate's one-second price
1401
+ * row times the seconds of the audio that drives it, rounded up once and marked
1402
+ * up once by the pricing chain that charges every per-unit rate.
1100
1403
  */
1404
+ interface LipSyncAudioRate {
1405
+ /** The one-second price row (`model_pricing`, else `STATIC_CREDIT_COSTS`). */
1406
+ readonly rateId: string;
1407
+ /** The fewest seconds a run is charged. Shorter audio is padded with silence to this length before the model sees it. */
1408
+ readonly minSeconds: number;
1409
+ /** The longest audio the model takes. Longer audio is refused before anything is held. */
1410
+ readonly maxSeconds: number;
1411
+ }
1412
+ /** OmniHuman 2.0's one-second price row. */
1413
+ declare const OMNIHUMAN_2_0_PER_SECOND_CREDIT_ID = "omnihuman-2-0:per-second";
1414
+ /**
1415
+ * The lip-sync models charged per second of audio at a rate (decided
1416
+ * 2026-11-11 for OmniHuman 2.0). Every price of such a run, its quote and its
1417
+ * hold are the rate × {@link lipSyncBilledSeconds}.
1418
+ */
1419
+ declare const LIP_SYNC_AUDIO_RATES: Readonly<Record<string, LipSyncAudioRate>>;
1420
+ /** The per-second rate a lip-sync model is charged at, or undefined for every model priced another way. */
1421
+ declare function lipSyncAudioRateOf(provider: unknown): LipSyncAudioRate | undefined;
1422
+ /**
1423
+ * The seconds a run of a per-second-rate model is charged for audio measured at
1424
+ * `measuredSec`: rounded up to a whole second, and at least the rate's minimum.
1425
+ * THE one place this rounding happens — the route, the workflow run, the
1426
+ * estimates and the provider's own cost all read it. Pass the length of the
1427
+ * audio as it was given, never of a copy padded to the minimum (a padded clip
1428
+ * runs a hair past it and would round up a whole second more).
1429
+ */
1430
+ declare function lipSyncBilledSeconds(rate: LipSyncAudioRate, measuredSec: number): number;
1431
+ /**
1432
+ * The length the editor quotes a lip-sync run on while its audio's length is
1433
+ * not known yet — the 15 seconds every model priced by its audio shows then
1434
+ * (a bucketed model's `:15s` row), marked as an estimate.
1435
+ */
1436
+ declare const LIP_SYNC_UNMEASURED_ESTIMATE_SECONDS = 15;
1437
+ /**
1438
+ * The seconds an ESTIMATE prices a per-second-rate run at: the billed seconds
1439
+ * of the audio when its length is known (at most the model's maximum, the most
1440
+ * a run can be charged), else `unknownSec` — by default the maximum, so a
1441
+ * server estimate never quotes below what the run may hold; the editor passes
1442
+ * {@link LIP_SYNC_UNMEASURED_ESTIMATE_SECONDS} and shows the figure as an estimate.
1443
+ */
1444
+ declare function lipSyncEstimateSeconds(rate: LipSyncAudioRate, knownSec: number | undefined, unknownSec?: number): number;
1101
1445
  declare const LIP_SYNC_DURATION_BUCKETS: readonly [15, 30, 60, 120, 300];
1102
1446
  type LipSyncDurationBucket = typeof LIP_SYNC_DURATION_BUCKETS[number];
1103
1447
  /** Round a measured audio duration up to the next supported bucket. */
@@ -1108,6 +1452,13 @@ declare function pickLipSyncBucket(seconds: number): LipSyncDurationBucket;
1108
1452
  */
1109
1453
  declare const LIP_SYNC_MAX_AUDIO_SECONDS: Record<string, number>;
1110
1454
  declare function getLipSyncMaxAudioSeconds(provider: string): number;
1455
+ /**
1456
+ * The id whose price is a 15-second run of a lip-sync model priced by the
1457
+ * length of its audio — the bucket row of a bucketed model (`<provider>:15s`),
1458
+ * the 15-second quote of a per-second-rate model — or undefined for a model
1459
+ * with one price. A model menu shows a per-second rate from it.
1460
+ */
1461
+ declare function lipSyncFifteenSecondCreditId(provider: string): string | undefined;
1111
1462
  declare function isPerSecondLipSyncProvider(provider: string): boolean;
1112
1463
  /**
1113
1464
  * Build the credit identifier for a lip-sync request.
@@ -1511,7 +1862,7 @@ declare function videoAnalysisNumWindows(bucketSec: number): number;
1511
1862
  * safety margin — internals stay private in the plugin).
1512
1863
  * - `video-audit:auto:<bucket>s` — no analysis wired; the node auto-runs a
1513
1864
  * fast-tier analysis first. Exactly the base family's price PLUS the
1514
- * `gemini-3-flash` (legacy fast tier) row from `VIDEO_ANALYSIS_BUCKET_CREDITS`
1865
+ * fast tier's row (`gemini-3.8-flash` since 2026-11-13) from `VIDEO_ANALYSIS_BUCKET_CREDITS`
1515
1866
  * at the SAME bucket — summed in the plugin's generator/formula, never
1516
1867
  * hand-added here (see the single-source assertion in
1517
1868
  * video-analysis-pricing.test.ts).
@@ -1595,4 +1946,4 @@ declare function contentIdeasCreditId(count: unknown, llmModel?: unknown, reason
1595
1946
  /** Every credit id the two nodes can bill — for price tables and guards. */
1596
1947
  declare const CONTENT_RECIPE_IDEAS_CREDIT_IDS: readonly ["content-recipe:economy", "content-recipe", "content-recipe:premium", "content-recipe:premium-direct", "content-ideas:economy", "content-ideas", "content-ideas:premium", "content-ideas:premium-direct", "content-ideas:10:economy", "content-ideas:10", "content-ideas:10:premium", "content-ideas:10:premium-direct"];
1597
1948
 
1598
- export { AI_AVATAR_DURATION_BUCKETS, AI_AVATAR_MAX_AUDIO_SEC, AI_AVATAR_MAX_DURATION_SEC, AI_AVATAR_RESERVE_IDS, type AiAvatarDurationBucket, type AiAvatarEngine, type AiAvatarResolution, AvatarPayloadError, CINEMATIC_DEFAULT_DURATION_SEC, CINEMATIC_DEFAULT_RESOLUTION, CINEMATIC_MAX_DURATION_SEC, CINEMATIC_MAX_LOOKS, CINEMATIC_MAX_REFERENCE_IMAGES, CINEMATIC_MAX_REFERENCE_VIDEOS, CINEMATIC_MIN_DURATION_SEC, CINEMATIC_MIN_LOOKS, CINEMATIC_PROMPT_MAX, CINEMATIC_RESERVE_IDS, CONTENT_IDEAS_BRAND_MAX, CONTENT_IDEAS_DEFAULT_COUNT, CONTENT_IDEAS_LANGUAGE_MAX, CONTENT_IDEAS_MAX_COUNT, CONTENT_IDEAS_MAX_RECIPE_INPUTS, CONTENT_IDEAS_PER_CHARGE, CONTENT_RECIPE_IDEAS_CREDIT_IDS, CONTENT_RECIPE_SOURCE_MAX, CREDIT_ROUNDING_RESOLUTION, type CinematicResolution, type CombineVideosEstimatorInput, DEFAULT_VIDEO_CLIP_COST, FILM_BASE_CREDITS, type FilmCreditEstimate, IMAGE_OVERLAY_BASE_CREDITS, IMAGE_OVERLAY_VARIANT_CREDITS, KEYFRAME_CREDITS_PER_SHOT, LIP_SYNC_DURATION_BUCKETS, LIP_SYNC_MAX_AUDIO_SECONDS, LTX_EXTEND_DURATION, LTX_EXTEND_PER_SECOND_CREDIT_ID, LTX_RETAKE_MIN_DURATION_SEC, LTX_RETAKE_PER_SECOND_CREDIT_ID, type LipSyncDurationBucket, type LoopTrimEstimatorInput, type LoopVideoEstimatorInput, NODARO_IMAGE_UPSCALE_DEFAULT_FACTOR, NODARO_IMAGE_UPSCALE_FACTORS, NODARO_IMAGE_UPSCALE_MODEL_ID, type NodaroImageUpscaleFactor, type NormalizedImageGen, PAYG_RETENTION_DAYS, PITCH_TEMPO_LIMITS, PITCH_TEMPO_PRICING, type PricedVideoSelection, SPEAKER_VIEW_CREDIT_IDS, SPEAKER_VIEW_PRICE_TIERS, SPEECH_FLOOR_UNITS, SPEECH_PRICE_UNIT_CHARS, SPEECH_UNIT_CREDIT_SUFFIX, SUNO_SELECT_OPERATIONS, SUNO_VERSION_CREDIT_KEYS, SUNO_VERSION_PRICED_OPERATIONS, SWITCHX_BLOCK_FRAMES, SWITCHX_FRAME_TIERS, type SpeakerViewCreditId, type SpeakerViewPriceTier, type SpeechQuoteCreditIdParts, TEXT_TO_AUDIO_PRICING, TEXT_TO_AUDIO_SFX_CREDIT_IDS, TOPAZ_DEFAULT_UPSCALE_FACTOR, TOPAZ_UPSCALE_FACTORS, type TopazUpscaleAdjustment, type TopazUpscaleFactor, type TopazUpscaleResolution, type TrimVideoEstimatorInput, UPSCALE_FACTORS, type UnitQuoteCreditIdParts, type UpscaleFactor, VIDEO_ANALYSIS_BUCKET_CREDITS, VIDEO_ANALYSIS_BUCKET_GRACE_SEC, VIDEO_ANALYSIS_DURATION_BUCKETS, VIDEO_ANALYSIS_DURATION_TOLERANCE_SEC, VIDEO_ANALYSIS_MAX_DURATION_SEC, VIDEO_ANALYSIS_WINDOW, VIDEO_AUDIT_BUCKET_CREDITS, VIDEO_CLIP_CREDITS, VIDEO_CRITIC_CREDITS_PER_SHOT, VIDEO_OVERLAY_PRICING, VIDEO_OVERLAY_REMEASURE_SLACK_SEC, VIDEO_SFX_PRICING, VIDEO_UTIL_PRICING, VOICE_CHANGER_PRO_QUOTE_RATE_ID, type VideoClipCost, type VoiceChangerProQuoteCreditIdParts, type VoiceChangerProQuoteRespeakEngine, type VoiceChangerProQuoteSlot, aiAvatarReserveCreditId, applyEdlCreditId, assembleNarratedVideoCredits, bucketSecondsFromAuditCreditId, bucketSecondsFromCreditId, buildCreditModelIdentifier, buildLipSyncCreditId, buildMotionCreditModelIdentifier, buildVideoAnalysisCreditId, buildVideoAuditCreditId, buildVideoCreditModelIdentifier, calculateMonetizationMarkup, calculateMonetizedCost, cinematicCreditId, clampCinematicDuration, clampContentIdeasCount, contentIdeasCreditFeature, contentIdeasCreditId, contentRecipeCreditId, creditsToUsd, effectiveContentModel, estimateCombineVideosCredits, estimateFilmCredits, estimateLoopTrimAddonCredits, estimateLoopVideoCredits, estimateScriptDurationSec, estimateTrimVideoCredits, getLipSyncMaxAudioSeconds, imageFormatInputOf, imageGenAutoAspectNeedsSourceImage, imageOverlayBillableVariants, imageOverlayCredits, isPaygRetentionActive, isPerSecondLipSyncProvider, isSpeechLengthPriceId, ltxExtendDurationSec, ltxRetakeDurationSec, normalizedImageGenModelId, parsePitchTempoCreditId, parseSpeechQuoteCreditId, parseUnitQuoteCreditId, parseVoiceChangerProQuoteCreditId, pickAiAvatarBucket, pickLipSyncBucket, pickSwitchXFrameTier, pickVideoAnalysisBucket, pitchTempoBaseCredits, pitchTempoCreditId, pitchTempoQuoteCreditId, pitchTempoStartedMinutes, pricedVideoSelection, resolveAiAvatarCreditId, resolveCinematicCreditId, resolveEffectiveTier, resolveImageGenCreditIdentifier, resolveNodaroImageUpscaleFactor, resolveNormalizedImageGen, resolveStoredTier, resolveSwitchXCreditId, resolveTopazUpscale, resolveUpscaleFactor, seedanceExtendCreditId, seedanceExtendResolution, seedanceVideoEditCreditId, semitonesToPitchRatio, snappedUpscaleFactor, speakerViewCreditId, speechCredits, speechLengthPriceModel, speechPriceUnits, speechQuoteCreditId, speechUnitCreditId, speedRampCreditId, sunoCreditType, textToAudioBilledSeconds, textToAudioCreditId, unitQuoteCreditId, upscaleFactorsFor, usdToCredits, validateAiAvatarPayload, validateCinematicAvatarPayload, videoAnalysisCreditSegment, videoAnalysisNumWindows, videoAuditCreditsForBucket, videoGenerationCreditId, videoOverlayBaseTooLong, videoOverlayCreditId, videoOverlayVideoUnits, videoSfxCreditId, videoSfxQuoteCreditId, voiceChangerProQuoteCreditId };
1949
+ export { ADD_CAPTIONS_KINETIC_CREDIT_ID, ADD_CAPTIONS_NEMOTRON_ID_PREFIX, AI_AVATAR_DURATION_BUCKETS, AI_AVATAR_MAX_AUDIO_SEC, AI_AVATAR_MAX_DURATION_SEC, AI_AVATAR_RESERVE_IDS, type AiAvatarDurationBucket, type AiAvatarEngine, type AiAvatarResolution, AvatarPayloadError, CINEMATIC_DEFAULT_DURATION_SEC, CINEMATIC_DEFAULT_RESOLUTION, CINEMATIC_MAX_DURATION_SEC, CINEMATIC_MAX_LOOKS, CINEMATIC_MAX_REFERENCE_IMAGES, CINEMATIC_MAX_REFERENCE_VIDEOS, CINEMATIC_MIN_DURATION_SEC, CINEMATIC_MIN_LOOKS, CINEMATIC_PROMPT_MAX, CINEMATIC_RESERVE_IDS, CONTENT_IDEAS_BRAND_MAX, CONTENT_IDEAS_DEFAULT_COUNT, CONTENT_IDEAS_LANGUAGE_MAX, CONTENT_IDEAS_MAX_COUNT, CONTENT_IDEAS_MAX_RECIPE_INPUTS, CONTENT_IDEAS_PER_CHARGE, CONTENT_RECIPE_IDEAS_CREDIT_IDS, CONTENT_RECIPE_SOURCE_MAX, CREDIT_ROUNDING_RESOLUTION, type CinematicResolution, type CombineVideosEstimatorInput, DEFAULT_VIDEO_CLIP_COST, FILM_BASE_CREDITS, type FilmCreditEstimate, type GrokExtendSourceResolution, IMAGE_OVERLAY_BASE_CREDITS, IMAGE_OVERLAY_VARIANT_CREDITS, KEYFRAME_CREDITS_PER_SHOT, LIP_SYNC_AUDIO_RATES, LIP_SYNC_DURATION_BUCKETS, LIP_SYNC_MAX_AUDIO_SECONDS, LIP_SYNC_UNMEASURED_ESTIMATE_SECONDS, LTX_EXTEND_DURATION, LTX_EXTEND_PER_SECOND_CREDIT_ID, LTX_RETAKE_MIN_DURATION_SEC, LTX_RETAKE_PER_SECOND_CREDIT_ID, type LipSyncAudioRate, type LipSyncDurationBucket, type LoopTrimEstimatorInput, type LoopVideoEstimatorInput, type MotionTransferResolution, NEMOTRON_TRANSCRIBE_ID, NEMOTRON_TRANSCRIBE_PRICING, NODARO_IMAGE_UPSCALE_DEFAULT_FACTOR, NODARO_IMAGE_UPSCALE_FACTORS, NODARO_IMAGE_UPSCALE_MODEL_ID, type NodaroImageUpscaleFactor, type NormalizedImageGen, OMNIHUMAN_2_0_PER_SECOND_CREDIT_ID, PAYG_RETENTION_DAYS, PITCH_TEMPO_LIMITS, PITCH_TEMPO_PRICING, type PricedVideoSelection, SEEDANCE_EXTEND_CONTEXT_MAX_SEC, SEEDANCE_EXTEND_RATE_CREDIT_IDS, SEEDANCE_EXTEND_RATE_SECONDS, SEEDANCE_EXTEND_SENT_PRICED_PROVIDER, SPEAKER_VIEW_CREDIT_IDS, SPEAKER_VIEW_PRICE_TIERS, SPEECH_FLOOR_UNITS, SPEECH_PRICE_UNIT_CHARS, SPEECH_UNIT_CREDIT_SUFFIX, SUNO_SELECT_OPERATIONS, SUNO_VERSION_CREDIT_KEYS, SUNO_VERSION_PRICED_OPERATIONS, SWITCHX_BLOCK_FRAMES, SWITCHX_FRAME_TIERS, type SentPricedSeedanceExtendProvider, type SpeakerViewCreditId, type SpeakerViewPriceTier, type SpeechQuoteCreditIdParts, TEXT_TO_AUDIO_PRICING, TEXT_TO_AUDIO_SFX_CREDIT_IDS, TOPAZ_DEFAULT_UPSCALE_FACTOR, TOPAZ_UPSCALE_FACTORS, type TopazUpscaleAdjustment, type TopazUpscaleFactor, type TopazUpscaleResolution, type TrimVideoEstimatorInput, UPSCALE_FACTORS, type UnitQuoteCreditIdParts, type UpscaleFactor, VIDEO_ANALYSIS_BUCKET_CREDITS, VIDEO_ANALYSIS_BUCKET_GRACE_SEC, VIDEO_ANALYSIS_DURATION_BUCKETS, VIDEO_ANALYSIS_DURATION_TOLERANCE_SEC, VIDEO_ANALYSIS_MAX_DURATION_SEC, VIDEO_ANALYSIS_WINDOW, VIDEO_AUDIT_BUCKET_CREDITS, VIDEO_CLIP_CREDITS, VIDEO_CRITIC_CREDITS_PER_SHOT, VIDEO_OVERLAY_PRICING, VIDEO_OVERLAY_REMEASURE_SLACK_SEC, VIDEO_SFX_PRICING, VIDEO_UTIL_PRICING, VOICE_CHANGER_PRO_QUOTE_RATE_ID, type VideoClipCost, type VoiceChangerProQuoteCreditIdParts, type VoiceChangerProQuoteRespeakEngine, type VoiceChangerProQuoteSlot, addCaptionsNemotronBaseCredits, addCaptionsNemotronCreditId, addCaptionsNemotronMinutesId, addCaptionsNemotronQuoteCreditId, aiAvatarReserveCreditId, applyEdlCreditId, assembleNarratedVideoCredits, bucketSecondsFromAuditCreditId, bucketSecondsFromCreditId, buildCreditModelIdentifier, buildLipSyncCreditId, buildMotionCreditModelIdentifier, buildVideoAnalysisCreditId, buildVideoAuditCreditId, buildVideoCreditModelIdentifier, calculateMonetizationMarkup, calculateMonetizedCost, catalogExtendCreditId, catalogExtendResolution, cinematicCreditId, clampCinematicDuration, clampContentIdeasCount, contentIdeasCreditFeature, contentIdeasCreditId, contentRecipeCreditId, creditsToUsd, effectiveContentModel, estimateCombineVideosCredits, estimateFilmCredits, estimateLoopTrimAddonCredits, estimateLoopVideoCredits, estimateScriptDurationSec, estimateTrimVideoCredits, getLipSyncMaxAudioSeconds, grokExtendCreditId, grokExtendSeconds, grokExtendWiredSourceResolution, imageFormatInputOf, imageGenAutoAspectNeedsSourceImage, imageOverlayBillableVariants, imageOverlayCredits, isPaygRetentionActive, isPerSecondLipSyncProvider, isSeedanceExtendPricedBySecondsSent, isSeedanceExtendRateCreditId, isSpeechLengthPriceId, lipSyncAudioRateOf, lipSyncBilledSeconds, lipSyncEstimateSeconds, lipSyncFifteenSecondCreditId, ltxExtendDurationSec, ltxRetakeDurationSec, motionTransferResolution, nemotronTranscribeBaseCredits, nemotronTranscribeCreditId, nemotronTranscribeQuoteCreditId, nemotronTranscribeStartedMinutes, normalizedImageGenModelId, parseAddCaptionsNemotronCreditId, parseNemotronTranscribeCreditId, parsePitchTempoCreditId, parseSpeechQuoteCreditId, parseUnitQuoteCreditId, parseVoiceChangerProQuoteCreditId, pickAiAvatarBucket, pickLipSyncBucket, pickSwitchXFrameTier, pickVideoAnalysisBucket, pitchTempoBaseCredits, pitchTempoCreditId, pitchTempoQuoteCreditId, pitchTempoStartedMinutes, pixverseExtendCreditId, pixverseExtendQuality, pricedVideoSelection, resolveAiAvatarCreditId, resolveCinematicCreditId, resolveEffectiveTier, resolveImageGenCreditIdentifier, resolveNodaroImageUpscaleFactor, resolveNormalizedImageGen, resolveStoredTier, resolveSwitchXCreditId, resolveTopazUpscale, resolveUpscaleFactor, seedanceExtendAddedSec, seedanceExtendCreditId, seedanceExtendFullWindowCreditId, seedanceExtendRateCreditId, seedanceExtendRefusesSource, seedanceExtendResolution, seedanceExtendSentSec, seedanceExtendSourceCreditId, seedanceExtendSourceSec, seedanceExtendUnits, seedanceVideoEditCreditId, semitonesToPitchRatio, snappedUpscaleFactor, speakerViewCreditId, speechCredits, speechLengthPriceModel, speechPriceUnits, speechQuoteCreditId, speechUnitCreditId, speedRampCreditId, sunoCreditType, tailExtendCreditId, tailExtendResolution, textToAudioBilledSeconds, textToAudioCreditId, unitQuoteCreditId, upscaleFactorsFor, usdToCredits, validateAiAvatarPayload, validateCinematicAvatarPayload, videoAnalysisCreditSegment, videoAnalysisNumWindows, videoAuditCreditsForBucket, videoGenerationCreditId, videoOverlayBaseTooLong, videoOverlayCreditId, videoOverlayVideoUnits, videoSfxCreditId, videoSfxQuoteCreditId, voiceChangerProQuoteCreditId };