@nodaro/shared 3.63.0 → 3.64.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (209) hide show
  1. package/dist/{chunk-AE3AAJ4O.js → chunk-36VWLB4J.js} +3 -3
  2. package/dist/{chunk-AE3AAJ4O.js.map → chunk-36VWLB4J.js.map} +1 -1
  3. package/dist/{chunk-HWQ2SYNA.js → chunk-3AYM47GW.js} +5 -5
  4. package/dist/{chunk-HWQ2SYNA.js.map → chunk-3AYM47GW.js.map} +1 -1
  5. package/dist/{chunk-CZ5IQB3L.js → chunk-3KTWYYCN.js} +8 -5
  6. package/dist/chunk-3KTWYYCN.js.map +1 -0
  7. package/dist/{chunk-4MMZD63H.js → chunk-4IUE2JB7.js} +3 -3
  8. package/dist/{chunk-4MMZD63H.js.map → chunk-4IUE2JB7.js.map} +1 -1
  9. package/dist/{chunk-M5OCFGHF.cjs → chunk-5OBTGNUQ.cjs} +296 -25
  10. package/dist/chunk-5OBTGNUQ.cjs.map +1 -0
  11. package/dist/{chunk-ZPE2ZTJ4.cjs → chunk-67CMMTLN.cjs} +4 -4
  12. package/dist/{chunk-ZPE2ZTJ4.cjs.map → chunk-67CMMTLN.cjs.map} +1 -1
  13. package/dist/{chunk-WRSWH7US.cjs → chunk-6BRWPJPP.cjs} +17 -2
  14. package/dist/chunk-6BRWPJPP.cjs.map +1 -0
  15. package/dist/{chunk-HBXF6RUU.js → chunk-6YIV37V7.js} +4 -4
  16. package/dist/{chunk-HBXF6RUU.js.map → chunk-6YIV37V7.js.map} +1 -1
  17. package/dist/{chunk-F6WGGYQW.cjs → chunk-7AJGUI7L.cjs} +37 -15
  18. package/dist/chunk-7AJGUI7L.cjs.map +1 -0
  19. package/dist/{chunk-KCZHQH2O.js → chunk-7KQ6W5DS.js} +4 -4
  20. package/dist/{chunk-KCZHQH2O.js.map → chunk-7KQ6W5DS.js.map} +1 -1
  21. package/dist/{chunk-TM5JYSJF.cjs → chunk-ACZZHHFZ.cjs} +72 -33
  22. package/dist/chunk-ACZZHHFZ.cjs.map +1 -0
  23. package/dist/{chunk-Y35JQPT6.cjs → chunk-AZNZ5WNZ.cjs} +42 -42
  24. package/dist/{chunk-Y35JQPT6.cjs.map → chunk-AZNZ5WNZ.cjs.map} +1 -1
  25. package/dist/{chunk-HSHCCBIV.js → chunk-BQYCZLMF.js} +16 -3
  26. package/dist/chunk-BQYCZLMF.js.map +1 -0
  27. package/dist/{chunk-GMBDLNLD.cjs → chunk-CHS2SIP6.cjs} +183 -60
  28. package/dist/chunk-CHS2SIP6.cjs.map +1 -0
  29. package/dist/{chunk-77WU3V3J.cjs → chunk-CHTZZRAL.cjs} +6 -6
  30. package/dist/{chunk-77WU3V3J.cjs.map → chunk-CHTZZRAL.cjs.map} +1 -1
  31. package/dist/{chunk-WZVIBAKN.cjs → chunk-D4KWNDPH.cjs} +12 -12
  32. package/dist/{chunk-WZVIBAKN.cjs.map → chunk-D4KWNDPH.cjs.map} +1 -1
  33. package/dist/{chunk-PSKZKLDG.js → chunk-DZ4IOP3Q.js} +288 -26
  34. package/dist/chunk-DZ4IOP3Q.js.map +1 -0
  35. package/dist/{chunk-XGVJGNZW.cjs → chunk-EXEVT6D2.cjs} +15 -5
  36. package/dist/chunk-EXEVT6D2.cjs.map +1 -0
  37. package/dist/{chunk-X5BAFW3Q.cjs → chunk-FHGRKQVZ.cjs} +8 -8
  38. package/dist/{chunk-X5BAFW3Q.cjs.map → chunk-FHGRKQVZ.cjs.map} +1 -1
  39. package/dist/{chunk-GSKLPI3J.cjs → chunk-GTWUS6MQ.cjs} +118 -61
  40. package/dist/chunk-GTWUS6MQ.cjs.map +1 -0
  41. package/dist/{chunk-Q6IES3U2.js → chunk-H5KHWTAE.js} +5 -2
  42. package/dist/chunk-H5KHWTAE.js.map +1 -0
  43. package/dist/{chunk-V5EEQR2U.cjs → chunk-HDPJNNMF.cjs} +21 -21
  44. package/dist/{chunk-V5EEQR2U.cjs.map → chunk-HDPJNNMF.cjs.map} +1 -1
  45. package/dist/{chunk-6M563QE6.js → chunk-IYSOVS7O.js} +55 -23
  46. package/dist/chunk-IYSOVS7O.js.map +1 -0
  47. package/dist/{chunk-XGGZWA4A.cjs → chunk-J6B7J73J.cjs} +52 -49
  48. package/dist/chunk-J6B7J73J.cjs.map +1 -0
  49. package/dist/{chunk-MD4XHED4.js → chunk-KB2SQAR3.js} +3 -3
  50. package/dist/{chunk-MD4XHED4.js.map → chunk-KB2SQAR3.js.map} +1 -1
  51. package/dist/{chunk-BLJUCPMV.cjs → chunk-KSHAAPQF.cjs} +5 -2
  52. package/dist/chunk-KSHAAPQF.cjs.map +1 -0
  53. package/dist/{chunk-6TGB7ECA.cjs → chunk-O4RPXBDZ.cjs} +12 -8
  54. package/dist/chunk-O4RPXBDZ.cjs.map +1 -0
  55. package/dist/{chunk-YUER7TJG.js → chunk-OBOOHG3N.js} +13 -4
  56. package/dist/chunk-OBOOHG3N.js.map +1 -0
  57. package/dist/{chunk-6BZC2ZHC.cjs → chunk-OOZW2MM6.cjs} +9 -9
  58. package/dist/{chunk-6BZC2ZHC.cjs.map → chunk-OOZW2MM6.cjs.map} +1 -1
  59. package/dist/{chunk-A2PX5IRC.cjs → chunk-PERUFUVH.cjs} +13 -13
  60. package/dist/{chunk-A2PX5IRC.cjs.map → chunk-PERUFUVH.cjs.map} +1 -1
  61. package/dist/{chunk-3K24DWOH.js → chunk-PJJAZQVZ.js} +3 -3
  62. package/dist/{chunk-3K24DWOH.js.map → chunk-PJJAZQVZ.js.map} +1 -1
  63. package/dist/{chunk-EPXGG27L.js → chunk-Q2Y4JHF7.js} +5 -5
  64. package/dist/{chunk-EPXGG27L.js.map → chunk-Q2Y4JHF7.js.map} +1 -1
  65. package/dist/{chunk-KMGCHV6O.js → chunk-QYU7J5EQ.js} +37 -15
  66. package/dist/chunk-QYU7J5EQ.js.map +1 -0
  67. package/dist/{chunk-IY3Y462W.js → chunk-S3UGLZSF.js} +3 -3
  68. package/dist/{chunk-IY3Y462W.js.map → chunk-S3UGLZSF.js.map} +1 -1
  69. package/dist/{chunk-34QLPTSA.js → chunk-SHH2T4CR.js} +3 -3
  70. package/dist/{chunk-34QLPTSA.js.map → chunk-SHH2T4CR.js.map} +1 -1
  71. package/dist/{chunk-L2TVY6XN.cjs → chunk-SPAHI7DY.cjs} +4 -4
  72. package/dist/{chunk-L2TVY6XN.cjs.map → chunk-SPAHI7DY.cjs.map} +1 -1
  73. package/dist/{chunk-YX6TFX7H.js → chunk-SXHHLZ22.js} +66 -11
  74. package/dist/chunk-SXHHLZ22.js.map +1 -0
  75. package/dist/{chunk-LMAQUR55.cjs → chunk-T2OVDF2M.cjs} +6 -6
  76. package/dist/{chunk-LMAQUR55.cjs.map → chunk-T2OVDF2M.cjs.map} +1 -1
  77. package/dist/{chunk-2QKF7M2Z.js → chunk-TAPBDT47.js} +3 -3
  78. package/dist/{chunk-2QKF7M2Z.js.map → chunk-TAPBDT47.js.map} +1 -1
  79. package/dist/{chunk-BMJVKYVB.js → chunk-TPQJKS7D.js} +109 -7
  80. package/dist/chunk-TPQJKS7D.js.map +1 -0
  81. package/dist/{chunk-63H4C56Q.cjs → chunk-TQW3R44P.cjs} +8 -8
  82. package/dist/{chunk-63H4C56Q.cjs.map → chunk-TQW3R44P.cjs.map} +1 -1
  83. package/dist/{chunk-4DVWXEB6.js → chunk-TTGZ2L3O.js} +3 -3
  84. package/dist/{chunk-4DVWXEB6.js.map → chunk-TTGZ2L3O.js.map} +1 -1
  85. package/dist/{chunk-XBTYGQ6Z.js → chunk-VPTA4Z7G.js} +8 -5
  86. package/dist/chunk-VPTA4Z7G.js.map +1 -0
  87. package/dist/{chunk-6XUG4L7X.cjs → chunk-VZ6TE23U.cjs} +6 -6
  88. package/dist/{chunk-6XUG4L7X.cjs.map → chunk-VZ6TE23U.cjs.map} +1 -1
  89. package/dist/{chunk-LH72PQO2.cjs → chunk-W6VJAUGM.cjs} +114 -45
  90. package/dist/chunk-W6VJAUGM.cjs.map +1 -0
  91. package/dist/{chunk-OV3JTKBY.js → chunk-W7KHHNZR.js} +74 -17
  92. package/dist/chunk-W7KHHNZR.js.map +1 -0
  93. package/dist/{chunk-2PU3AGGS.cjs → chunk-YQV53HRR.cjs} +7 -7
  94. package/dist/{chunk-2PU3AGGS.cjs.map → chunk-YQV53HRR.cjs.map} +1 -1
  95. package/dist/{chunk-FXGNRYQQ.js → chunk-ZI3QDUHO.js} +3 -3
  96. package/dist/{chunk-FXGNRYQQ.js.map → chunk-ZI3QDUHO.js.map} +1 -1
  97. package/dist/entries/apps.cjs +43 -42
  98. package/dist/entries/apps.js +8 -7
  99. package/dist/entries/captions.cjs +38 -30
  100. package/dist/entries/captions.d.cts +47 -1
  101. package/dist/entries/captions.d.ts +47 -1
  102. package/dist/entries/captions.js +1 -1
  103. package/dist/entries/credits.cjs +303 -191
  104. package/dist/entries/credits.d.cts +219 -15
  105. package/dist/entries/credits.d.ts +219 -15
  106. package/dist/entries/credits.js +11 -11
  107. package/dist/entries/llm-models.cjs +62 -62
  108. package/dist/entries/llm-models.d.cts +29 -7
  109. package/dist/entries/llm-models.d.ts +29 -7
  110. package/dist/entries/llm-models.js +2 -2
  111. package/dist/entries/model-catalog.cjs +149 -109
  112. package/dist/entries/model-catalog.d.cts +64 -7
  113. package/dist/entries/model-catalog.d.ts +64 -7
  114. package/dist/entries/model-catalog.js +4 -4
  115. package/dist/entries/models.cjs +394 -346
  116. package/dist/entries/models.d.cts +4 -4
  117. package/dist/entries/models.d.ts +4 -4
  118. package/dist/entries/models.js +5 -5
  119. package/dist/entries/nodes.cjs +220 -211
  120. package/dist/entries/nodes.d.cts +46 -3
  121. package/dist/entries/nodes.d.ts +46 -3
  122. package/dist/entries/nodes.js +10 -9
  123. package/dist/entries/pipeline.cjs +156 -152
  124. package/dist/entries/pipeline.d.cts +13 -3
  125. package/dist/entries/pipeline.d.ts +13 -3
  126. package/dist/entries/pipeline.js +3 -3
  127. package/dist/entries/social.cjs +177 -177
  128. package/dist/entries/social.js +2 -2
  129. package/dist/entries/ugc.cjs +71 -71
  130. package/dist/entries/ugc.js +4 -4
  131. package/dist/entries/video.cjs +145 -145
  132. package/dist/entries/video.js +6 -6
  133. package/dist/entries/workflow.cjs +150 -150
  134. package/dist/entries/workflow.d.cts +1 -1
  135. package/dist/entries/workflow.d.ts +1 -1
  136. package/dist/entries/workflow.js +2 -2
  137. package/dist/index.cjs +1879 -1659
  138. package/dist/index.d.cts +7 -7
  139. package/dist/index.d.ts +7 -7
  140. package/dist/index.js +25 -25
  141. package/dist/{model-catalog-C_Eo35tL.d.cts → model-catalog-Cf9fkEUp.d.cts} +15 -2
  142. package/dist/{model-catalog-C_Eo35tL.d.ts → model-catalog-Cf9fkEUp.d.ts} +15 -2
  143. package/dist/{model-constants-DWcxOmaY.d.cts → model-constants-BxjiWVQ9.d.ts} +89 -19
  144. package/dist/{model-constants-Bg4ccSQb.d.ts → model-constants-C_Nyft_i.d.cts} +89 -19
  145. package/package.json +1 -1
  146. package/src/__tests__/add-captions-nemotron-pricing.test.ts +111 -0
  147. package/src/__tests__/extend-providers.test.ts +266 -26
  148. package/src/__tests__/fixtures/mask-composite-quote-parity.json +1 -1
  149. package/src/__tests__/fixtures/measured-input-quote-parity.json +1435 -0
  150. package/src/__tests__/fixtures/planned-length-quote-parity.json +1866 -0
  151. package/src/__tests__/fixtures/video-utility-quote-parity.json +2343 -0
  152. package/src/__tests__/flux-3-klein.test.ts +203 -0
  153. package/src/__tests__/gpt-image-2-6-formats.test.ts +3 -1
  154. package/src/__tests__/llm-models.test.ts +7 -9
  155. package/src/__tests__/llm-price-key.test.ts +12 -0
  156. package/src/__tests__/model-makers.test.ts +3 -0
  157. package/src/__tests__/node-runtime-keys.test.ts +7 -0
  158. package/src/__tests__/normalize-node-params.test.ts +147 -1
  159. package/src/__tests__/retired-lip-sync-providers.test.ts +43 -0
  160. package/src/__tests__/seedance-extend-source-credit-id.test.ts +89 -0
  161. package/src/__tests__/sequence-execution.test.ts +22 -1
  162. package/src/__tests__/suno-credit-type.test.ts +21 -2
  163. package/src/__tests__/transcribe-capabilities.test.ts +4 -2
  164. package/src/__tests__/video-analysis-catalog-sync.test.ts +4 -2
  165. package/src/__tests__/video-analysis-pricing.test.ts +10 -9
  166. package/src/caption-styles.ts +62 -0
  167. package/src/credit-estimators/add-captions-nemotron.ts +73 -0
  168. package/src/credit-estimators/index.ts +10 -0
  169. package/src/credit-identifiers.ts +249 -13
  170. package/src/entries/captions.ts +2 -0
  171. package/src/entries/credits.ts +25 -1
  172. package/src/entries/model-catalog.ts +13 -0
  173. package/src/entries/models.ts +15 -0
  174. package/src/entries/nodes.ts +2 -0
  175. package/src/entries/pipeline.ts +1 -1
  176. package/src/flux-3-klein.ts +69 -0
  177. package/src/input-image-pricing.ts +23 -6
  178. package/src/llm-models.ts +60 -16
  179. package/src/model-catalog.ts +280 -25
  180. package/src/model-constants.ts +146 -17
  181. package/src/node-default-mappings.ts +3 -0
  182. package/src/node-runtime-keys.ts +3 -0
  183. package/src/normalize-node-params.ts +123 -2
  184. package/src/seedance-extend-rate.ts +116 -0
  185. package/src/sequence-execution.ts +24 -0
  186. package/src/transcribe-preflight.ts +23 -0
  187. package/src/video-analysis-pricing.ts +28 -15
  188. package/dist/chunk-6M563QE6.js.map +0 -1
  189. package/dist/chunk-6TGB7ECA.cjs.map +0 -1
  190. package/dist/chunk-BLJUCPMV.cjs.map +0 -1
  191. package/dist/chunk-BMJVKYVB.js.map +0 -1
  192. package/dist/chunk-CZ5IQB3L.js.map +0 -1
  193. package/dist/chunk-F6WGGYQW.cjs.map +0 -1
  194. package/dist/chunk-GMBDLNLD.cjs.map +0 -1
  195. package/dist/chunk-GSKLPI3J.cjs.map +0 -1
  196. package/dist/chunk-HSHCCBIV.js.map +0 -1
  197. package/dist/chunk-KMGCHV6O.js.map +0 -1
  198. package/dist/chunk-LH72PQO2.cjs.map +0 -1
  199. package/dist/chunk-M5OCFGHF.cjs.map +0 -1
  200. package/dist/chunk-OV3JTKBY.js.map +0 -1
  201. package/dist/chunk-PSKZKLDG.js.map +0 -1
  202. package/dist/chunk-Q6IES3U2.js.map +0 -1
  203. package/dist/chunk-TM5JYSJF.cjs.map +0 -1
  204. package/dist/chunk-WRSWH7US.cjs.map +0 -1
  205. package/dist/chunk-XBTYGQ6Z.js.map +0 -1
  206. package/dist/chunk-XGGZWA4A.cjs.map +0 -1
  207. package/dist/chunk-XGVJGNZW.cjs.map +0 -1
  208. package/dist/chunk-YUER7TJG.js.map +0 -1
  209. package/dist/chunk-YX6TFX7H.js.map +0 -1
@@ -1,6 +1,6 @@
1
- import { cy as VideoAudioRequest, bD as SeedanceExtendProvider, bY as TailExtendProvider } from '../model-constants-DWcxOmaY.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-C_Eo35tL.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. */
@@ -307,22 +307,148 @@ declare function seedanceVideoEditCreditId(provider: string, resolution?: string
307
307
  */
308
308
  declare function tailExtendResolution(provider: TailExtendProvider, resolution?: unknown): string;
309
309
  /**
310
- * The credit identifier one tail-recipe Extend Video run is priced at — the
311
- * one builder every surface that prices it reads (the route's guard and
312
- * reservation, the workflow reservation and estimate, the editor), so none of
313
- * them can name a different row.
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.
314
361
  *
315
362
  * The seconds added snap into the provider's catalog `durations` (its catalog
316
363
  * `defaultDuration` when unset, through {@link pricedOutputDurationSec}); the
317
- * resolution is {@link tailExtendResolution}'s. Each provider has its own
318
- * rows, one per second of its window and resolution: `<provider>:<N>s:<res>`
319
- * (`seedance-2-5-extend` 4–30 s, `seedance-2-0-extend` 4–15 s, both at
320
- * 480p / 720p / 1080p; `kling-4-extend` 3–30 s at 720p / 1080p).
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}.
321
374
  *
322
375
  * A retired id (`seedance-2-extend`) is not a {@link TailExtendProvider}:
323
- * pass a stored or sent provider through `canonicalVideoProvider` first.
376
+ * pass a stored or sent provider through `canonicalVideoProvider` first
377
+ * ({@link buildVideoCreditModelIdentifier} does).
324
378
  */
325
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;
326
452
  /** @deprecated Use {@link tailExtendResolution}, which also answers for Kling 4 Extend. */
327
453
  declare function seedanceExtendResolution(provider: SeedanceExtendProvider, resolution?: unknown): string;
328
454
  /** @deprecated Use {@link tailExtendCreditId}, which also answers for Kling 4 Extend. */
@@ -493,8 +619,8 @@ declare function speakerViewCreditId(quality: unknown, tier?: unknown): SpeakerV
493
619
  * satisfies the B3 egress invariant.
494
620
  *
495
621
  * The version → key map is {@link SUNO_VERSION_CREDIT_KEYS}; a version with no
496
- * entry (V4 / V4_5 / V4_5ALL / V4_5PLUS) falls back to the operation key, and a
497
- * 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.
498
624
  */
499
625
  declare function sunoCreditType(model: string | undefined, operation: string): string;
500
626
  /**
@@ -507,6 +633,57 @@ declare function sunoCreditType(model: string | undefined, operation: string): s
507
633
  */
508
634
  declare const SUNO_VERSION_CREDIT_KEYS: Readonly<Record<string, string>>;
509
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
+
510
687
  /**
511
688
  * Pure credit estimators for video-utility nodes (loop-video, trim-video,
512
689
  * combine-videos, assemble-narrated-video). Used by frontend (Run-button
@@ -1020,6 +1197,33 @@ declare function parseNemotronTranscribeCreditId(id: string): {
1020
1197
  */
1021
1198
  declare function nemotronTranscribeBaseCredits(ratePerBlock: number, minutes: number): number;
1022
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
+
1023
1227
  declare const VIDEO_OVERLAY_PRICING: {
1024
1228
  /** An image-only run: one flat row. */
1025
1229
  readonly IMAGE_CREDIT_ID: "video-overlay";
@@ -1658,7 +1862,7 @@ declare function videoAnalysisNumWindows(bucketSec: number): number;
1658
1862
  * safety margin — internals stay private in the plugin).
1659
1863
  * - `video-audit:auto:<bucket>s` — no analysis wired; the node auto-runs a
1660
1864
  * fast-tier analysis first. Exactly the base family's price PLUS the
1661
- * `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`
1662
1866
  * at the SAME bucket — summed in the plugin's generator/formula, never
1663
1867
  * hand-added here (see the single-source assertion in
1664
1868
  * video-analysis-pricing.test.ts).
@@ -1742,4 +1946,4 @@ declare function contentIdeasCreditId(count: unknown, llmModel?: unknown, reason
1742
1946
  /** Every credit id the two nodes can bill — for price tables and guards. */
1743
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"];
1744
1948
 
1745
- 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_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, 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, lipSyncAudioRateOf, lipSyncBilledSeconds, lipSyncEstimateSeconds, lipSyncFifteenSecondCreditId, ltxExtendDurationSec, ltxRetakeDurationSec, motionTransferResolution, nemotronTranscribeBaseCredits, nemotronTranscribeCreditId, nemotronTranscribeQuoteCreditId, nemotronTranscribeStartedMinutes, normalizedImageGenModelId, parseNemotronTranscribeCreditId, 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, tailExtendCreditId, tailExtendResolution, 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 };
@@ -1,6 +1,6 @@
1
- import { cy as VideoAudioRequest, bD as SeedanceExtendProvider, bY as TailExtendProvider } from '../model-constants-Bg4ccSQb.js';
1
+ import { cG as VideoAudioRequest, i as CatalogExtendProvider, bL as SeedanceExtendProvider, c4 as TailExtendProvider } from '../model-constants-BxjiWVQ9.js';
2
2
  import { I as ImageFormatLevers } from '../gpt-image-2-6-jIRQBRag.js';
3
- import { j as ModelInputAdjustment, x as SourceImageSize } from '../model-catalog-C_Eo35tL.js';
3
+ import { j as ModelInputAdjustment, x as SourceImageSize } from '../model-catalog-Cf9fkEUp.js';
4
4
  import 'zod';
5
5
 
6
6
  /** Milli-credits per credit — the intermediate rounding resolution. */
@@ -307,22 +307,148 @@ declare function seedanceVideoEditCreditId(provider: string, resolution?: string
307
307
  */
308
308
  declare function tailExtendResolution(provider: TailExtendProvider, resolution?: unknown): string;
309
309
  /**
310
- * The credit identifier one tail-recipe Extend Video run is priced at — the
311
- * one builder every surface that prices it reads (the route's guard and
312
- * reservation, the workflow reservation and estimate, the editor), so none of
313
- * them can name a different row.
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.
314
361
  *
315
362
  * The seconds added snap into the provider's catalog `durations` (its catalog
316
363
  * `defaultDuration` when unset, through {@link pricedOutputDurationSec}); the
317
- * resolution is {@link tailExtendResolution}'s. Each provider has its own
318
- * rows, one per second of its window and resolution: `<provider>:<N>s:<res>`
319
- * (`seedance-2-5-extend` 4–30 s, `seedance-2-0-extend` 4–15 s, both at
320
- * 480p / 720p / 1080p; `kling-4-extend` 3–30 s at 720p / 1080p).
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}.
321
374
  *
322
375
  * A retired id (`seedance-2-extend`) is not a {@link TailExtendProvider}:
323
- * pass a stored or sent provider through `canonicalVideoProvider` first.
376
+ * pass a stored or sent provider through `canonicalVideoProvider` first
377
+ * ({@link buildVideoCreditModelIdentifier} does).
324
378
  */
325
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;
326
452
  /** @deprecated Use {@link tailExtendResolution}, which also answers for Kling 4 Extend. */
327
453
  declare function seedanceExtendResolution(provider: SeedanceExtendProvider, resolution?: unknown): string;
328
454
  /** @deprecated Use {@link tailExtendCreditId}, which also answers for Kling 4 Extend. */
@@ -493,8 +619,8 @@ declare function speakerViewCreditId(quality: unknown, tier?: unknown): SpeakerV
493
619
  * satisfies the B3 egress invariant.
494
620
  *
495
621
  * The version → key map is {@link SUNO_VERSION_CREDIT_KEYS}; a version with no
496
- * entry (V4 / V4_5 / V4_5ALL / V4_5PLUS) falls back to the operation key, and a
497
- * 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.
498
624
  */
499
625
  declare function sunoCreditType(model: string | undefined, operation: string): string;
500
626
  /**
@@ -507,6 +633,57 @@ declare function sunoCreditType(model: string | undefined, operation: string): s
507
633
  */
508
634
  declare const SUNO_VERSION_CREDIT_KEYS: Readonly<Record<string, string>>;
509
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
+
510
687
  /**
511
688
  * Pure credit estimators for video-utility nodes (loop-video, trim-video,
512
689
  * combine-videos, assemble-narrated-video). Used by frontend (Run-button
@@ -1020,6 +1197,33 @@ declare function parseNemotronTranscribeCreditId(id: string): {
1020
1197
  */
1021
1198
  declare function nemotronTranscribeBaseCredits(ratePerBlock: number, minutes: number): number;
1022
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
+
1023
1227
  declare const VIDEO_OVERLAY_PRICING: {
1024
1228
  /** An image-only run: one flat row. */
1025
1229
  readonly IMAGE_CREDIT_ID: "video-overlay";
@@ -1658,7 +1862,7 @@ declare function videoAnalysisNumWindows(bucketSec: number): number;
1658
1862
  * safety margin — internals stay private in the plugin).
1659
1863
  * - `video-audit:auto:<bucket>s` — no analysis wired; the node auto-runs a
1660
1864
  * fast-tier analysis first. Exactly the base family's price PLUS the
1661
- * `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`
1662
1866
  * at the SAME bucket — summed in the plugin's generator/formula, never
1663
1867
  * hand-added here (see the single-source assertion in
1664
1868
  * video-analysis-pricing.test.ts).
@@ -1742,4 +1946,4 @@ declare function contentIdeasCreditId(count: unknown, llmModel?: unknown, reason
1742
1946
  /** Every credit id the two nodes can bill — for price tables and guards. */
1743
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"];
1744
1948
 
1745
- 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_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, 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, lipSyncAudioRateOf, lipSyncBilledSeconds, lipSyncEstimateSeconds, lipSyncFifteenSecondCreditId, ltxExtendDurationSec, ltxRetakeDurationSec, motionTransferResolution, nemotronTranscribeBaseCredits, nemotronTranscribeCreditId, nemotronTranscribeQuoteCreditId, nemotronTranscribeStartedMinutes, normalizedImageGenModelId, parseNemotronTranscribeCreditId, 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, tailExtendCreditId, tailExtendResolution, 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 };