@nodaro/shared 3.62.0 → 3.63.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 (212) hide show
  1. package/dist/{chunk-6CSXMWL4.cjs → chunk-2PU3AGGS.cjs} +27 -4
  2. package/dist/chunk-2PU3AGGS.cjs.map +1 -0
  3. package/dist/{chunk-CC4V2B7S.js → chunk-34QLPTSA.js} +3 -3
  4. package/dist/{chunk-CC4V2B7S.js.map → chunk-34QLPTSA.js.map} +1 -1
  5. package/dist/{chunk-G4U3HW6W.js → chunk-3K24DWOH.js} +3 -3
  6. package/dist/{chunk-G4U3HW6W.js.map → chunk-3K24DWOH.js.map} +1 -1
  7. package/dist/{chunk-GSFB537T.js → chunk-4DVWXEB6.js} +23 -4
  8. package/dist/chunk-4DVWXEB6.js.map +1 -0
  9. package/dist/{chunk-ZES6EZC4.js → chunk-4MMZD63H.js} +3 -3
  10. package/dist/{chunk-ZES6EZC4.js.map → chunk-4MMZD63H.js.map} +1 -1
  11. package/dist/{chunk-N7OUQK7E.cjs → chunk-63H4C56Q.cjs} +8 -8
  12. package/dist/{chunk-N7OUQK7E.cjs.map → chunk-63H4C56Q.cjs.map} +1 -1
  13. package/dist/{chunk-2D5LQFV4.cjs → chunk-6BZC2ZHC.cjs} +9 -9
  14. package/dist/{chunk-2D5LQFV4.cjs.map → chunk-6BZC2ZHC.cjs.map} +1 -1
  15. package/dist/{chunk-3OYO3XCC.js → chunk-6M563QE6.js} +71 -9
  16. package/dist/chunk-6M563QE6.js.map +1 -0
  17. package/dist/{chunk-IDTKF5EX.cjs → chunk-6TGB7ECA.cjs} +7 -7
  18. package/dist/{chunk-IDTKF5EX.cjs.map → chunk-6TGB7ECA.cjs.map} +1 -1
  19. package/dist/{chunk-2HZGDZZN.cjs → chunk-6XUG4L7X.cjs} +6 -6
  20. package/dist/{chunk-2HZGDZZN.cjs.map → chunk-6XUG4L7X.cjs.map} +1 -1
  21. package/dist/{chunk-CIPPPT7E.cjs → chunk-77WU3V3J.cjs} +6 -6
  22. package/dist/{chunk-CIPPPT7E.cjs.map → chunk-77WU3V3J.cjs.map} +1 -1
  23. package/dist/{chunk-C7POAYFE.js → chunk-AE3AAJ4O.js} +3 -3
  24. package/dist/{chunk-C7POAYFE.js.map → chunk-AE3AAJ4O.js.map} +1 -1
  25. package/dist/{chunk-NGKKNSK6.js → chunk-BMJVKYVB.js} +36 -15
  26. package/dist/chunk-BMJVKYVB.js.map +1 -0
  27. package/dist/{chunk-YCXRSWCQ.js → chunk-CZ5IQB3L.js} +3 -3
  28. package/dist/{chunk-YCXRSWCQ.js.map → chunk-CZ5IQB3L.js.map} +1 -1
  29. package/dist/{chunk-E2HZTGYX.js → chunk-EPXGG27L.js} +7 -7
  30. package/dist/chunk-EPXGG27L.js.map +1 -0
  31. package/dist/{chunk-3M4BNKFJ.cjs → chunk-F6WGGYQW.cjs} +167 -3
  32. package/dist/chunk-F6WGGYQW.cjs.map +1 -0
  33. package/dist/{chunk-7FCTCWHD.js → chunk-FXGNRYQQ.js} +3 -3
  34. package/dist/{chunk-7FCTCWHD.js.map → chunk-FXGNRYQQ.js.map} +1 -1
  35. package/dist/{chunk-QWYFHQYK.cjs → chunk-GMBDLNLD.cjs} +86 -62
  36. package/dist/chunk-GMBDLNLD.cjs.map +1 -0
  37. package/dist/{chunk-KJSRPHJ2.cjs → chunk-GSKLPI3J.cjs} +100 -46
  38. package/dist/chunk-GSKLPI3J.cjs.map +1 -0
  39. package/dist/{chunk-S5TMRJMX.js → chunk-HBXF6RUU.js} +4 -4
  40. package/dist/{chunk-S5TMRJMX.js.map → chunk-HBXF6RUU.js.map} +1 -1
  41. package/dist/{chunk-S24ZBUB4.js → chunk-HWQ2SYNA.js} +6 -32
  42. package/dist/chunk-HWQ2SYNA.js.map +1 -0
  43. package/dist/{chunk-JJNNM23P.js → chunk-IY3Y462W.js} +3 -3
  44. package/dist/{chunk-JJNNM23P.js.map → chunk-IY3Y462W.js.map} +1 -1
  45. package/dist/{chunk-JZGZ26YB.js → chunk-KCZHQH2O.js} +4 -4
  46. package/dist/{chunk-JZGZ26YB.js.map → chunk-KCZHQH2O.js.map} +1 -1
  47. package/dist/{chunk-FVII3KHN.js → chunk-KMGCHV6O.js} +163 -4
  48. package/dist/chunk-KMGCHV6O.js.map +1 -0
  49. package/dist/{chunk-4ZEFP2FQ.cjs → chunk-L2TVY6XN.cjs} +4 -4
  50. package/dist/{chunk-4ZEFP2FQ.cjs.map → chunk-L2TVY6XN.cjs.map} +1 -1
  51. package/dist/{chunk-TRVWMKNE.cjs → chunk-LH72PQO2.cjs} +204 -52
  52. package/dist/chunk-LH72PQO2.cjs.map +1 -0
  53. package/dist/{chunk-HRY7KGAE.cjs → chunk-LMAQUR55.cjs} +6 -6
  54. package/dist/{chunk-HRY7KGAE.cjs.map → chunk-LMAQUR55.cjs.map} +1 -1
  55. package/dist/{chunk-MYJQELFN.cjs → chunk-M5OCFGHF.cjs} +254 -7
  56. package/dist/chunk-M5OCFGHF.cjs.map +1 -0
  57. package/dist/{chunk-I2RQB7VG.js → chunk-MD4XHED4.js} +3 -3
  58. package/dist/{chunk-I2RQB7VG.js.map → chunk-MD4XHED4.js.map} +1 -1
  59. package/dist/{chunk-6G7NN4S4.js → chunk-NIAFR5EE.js} +2 -2
  60. package/dist/chunk-NIAFR5EE.js.map +1 -0
  61. package/dist/{chunk-CF4S4N5X.js → chunk-O2QOBA6Q.js} +2 -2
  62. package/dist/{chunk-CF4S4N5X.js.map → chunk-O2QOBA6Q.js.map} +1 -1
  63. package/dist/{chunk-4GGLKRYI.cjs → chunk-O6TBB4IF.cjs} +2 -2
  64. package/dist/{chunk-4GGLKRYI.cjs.map → chunk-O6TBB4IF.cjs.map} +1 -1
  65. package/dist/{chunk-UDDVDQMF.js → chunk-OV3JTKBY.js} +166 -25
  66. package/dist/chunk-OV3JTKBY.js.map +1 -0
  67. package/dist/{chunk-5YYN5X57.js → chunk-PSKZKLDG.js} +252 -8
  68. package/dist/chunk-PSKZKLDG.js.map +1 -0
  69. package/dist/{chunk-IWWVPR3W.cjs → chunk-TM5JYSJF.cjs} +95 -19
  70. package/dist/chunk-TM5JYSJF.cjs.map +1 -0
  71. package/dist/{chunk-G3KVK7OU.cjs → chunk-V5EEQR2U.cjs} +21 -21
  72. package/dist/{chunk-G3KVK7OU.cjs.map → chunk-V5EEQR2U.cjs.map} +1 -1
  73. package/dist/{chunk-AOJ6B7K4.cjs → chunk-WZVIBAKN.cjs} +12 -12
  74. package/dist/chunk-WZVIBAKN.cjs.map +1 -0
  75. package/dist/{chunk-5M43XMRB.cjs → chunk-X5BAFW3Q.cjs} +8 -8
  76. package/dist/{chunk-5M43XMRB.cjs.map → chunk-X5BAFW3Q.cjs.map} +1 -1
  77. package/dist/{chunk-SYWR5G3T.js → chunk-XBTYGQ6Z.js} +51 -7
  78. package/dist/chunk-XBTYGQ6Z.js.map +1 -0
  79. package/dist/{chunk-AFYTX4AI.cjs → chunk-XGGZWA4A.cjs} +107 -50
  80. package/dist/chunk-XGGZWA4A.cjs.map +1 -0
  81. package/dist/{chunk-VACPZPUA.cjs → chunk-XGVJGNZW.cjs} +5 -5
  82. package/dist/{chunk-VACPZPUA.cjs.map → chunk-XGVJGNZW.cjs.map} +1 -1
  83. package/dist/{chunk-2W745U4A.cjs → chunk-Y35JQPT6.cjs} +42 -70
  84. package/dist/chunk-Y35JQPT6.cjs.map +1 -0
  85. package/dist/{chunk-KYMHFVAZ.cjs → chunk-Y4GCJJPF.cjs} +2 -2
  86. package/dist/chunk-Y4GCJJPF.cjs.map +1 -0
  87. package/dist/{chunk-PTD6EDUU.js → chunk-YUER7TJG.js} +3 -3
  88. package/dist/{chunk-PTD6EDUU.js.map → chunk-YUER7TJG.js.map} +1 -1
  89. package/dist/{chunk-Y6X7UJSD.js → chunk-YX6TFX7H.js} +66 -14
  90. package/dist/chunk-YX6TFX7H.js.map +1 -0
  91. package/dist/{chunk-TWF2OSH4.cjs → chunk-ZPE2ZTJ4.cjs} +4 -4
  92. package/dist/{chunk-TWF2OSH4.cjs.map → chunk-ZPE2ZTJ4.cjs.map} +1 -1
  93. package/dist/entries/apps.cjs +42 -42
  94. package/dist/entries/apps.js +7 -7
  95. package/dist/entries/credits.cjs +237 -169
  96. package/dist/entries/credits.d.cts +163 -16
  97. package/dist/entries/credits.d.ts +163 -16
  98. package/dist/entries/credits.js +10 -10
  99. package/dist/entries/llm-models.cjs +77 -57
  100. package/dist/entries/llm-models.d.cts +85 -6
  101. package/dist/entries/llm-models.d.ts +85 -6
  102. package/dist/entries/llm-models.js +2 -2
  103. package/dist/entries/media.cjs +63 -63
  104. package/dist/entries/media.d.cts +8 -0
  105. package/dist/entries/media.d.ts +8 -0
  106. package/dist/entries/media.js +1 -1
  107. package/dist/entries/model-catalog.cjs +121 -105
  108. package/dist/entries/model-catalog.d.cts +48 -18
  109. package/dist/entries/model-catalog.d.ts +48 -18
  110. package/dist/entries/model-catalog.js +4 -4
  111. package/dist/entries/models.cjs +418 -322
  112. package/dist/entries/models.d.cts +71 -5
  113. package/dist/entries/models.d.ts +71 -5
  114. package/dist/entries/models.js +5 -5
  115. package/dist/entries/nodes.cjs +216 -208
  116. package/dist/entries/nodes.d.cts +22 -6
  117. package/dist/entries/nodes.d.ts +22 -6
  118. package/dist/entries/nodes.js +8 -8
  119. package/dist/entries/pipeline.cjs +152 -152
  120. package/dist/entries/pipeline.d.cts +3 -3
  121. package/dist/entries/pipeline.d.ts +3 -3
  122. package/dist/entries/pipeline.js +3 -3
  123. package/dist/entries/runtime-config.cjs +29 -29
  124. package/dist/entries/runtime-config.d.cts +10 -7
  125. package/dist/entries/runtime-config.d.ts +10 -7
  126. package/dist/entries/runtime-config.js +1 -1
  127. package/dist/entries/social.cjs +177 -177
  128. package/dist/entries/social.js +2 -2
  129. package/dist/entries/types.d.cts +8 -0
  130. package/dist/entries/types.d.ts +8 -0
  131. package/dist/entries/ugc.cjs +71 -71
  132. package/dist/entries/ugc.js +4 -4
  133. package/dist/entries/video.cjs +154 -150
  134. package/dist/entries/video.d.cts +11 -2
  135. package/dist/entries/video.d.ts +11 -2
  136. package/dist/entries/video.js +6 -6
  137. package/dist/entries/workflow.d.cts +1 -1
  138. package/dist/entries/workflow.d.ts +1 -1
  139. package/dist/index.cjs +1727 -1515
  140. package/dist/index.d.cts +8 -8
  141. package/dist/index.d.ts +8 -8
  142. package/dist/index.js +23 -23
  143. package/dist/{model-catalog-CCEcv08q.d.cts → model-catalog-C_Eo35tL.d.cts} +30 -0
  144. package/dist/{model-catalog-CCEcv08q.d.ts → model-catalog-C_Eo35tL.d.ts} +30 -0
  145. package/dist/{model-constants-Cf3zaITt.d.cts → model-constants-Bg4ccSQb.d.ts} +138 -25
  146. package/dist/{model-constants-B88p6XR0.d.ts → model-constants-DWcxOmaY.d.cts} +138 -25
  147. package/package.json +1 -1
  148. package/src/__tests__/credit-identifiers.test.ts +29 -0
  149. package/src/__tests__/extend-providers.test.ts +106 -26
  150. package/src/__tests__/gvp-supported-providers.test.ts +27 -2
  151. package/src/__tests__/lip-sync-audio-rate.test.ts +74 -0
  152. package/src/__tests__/lip-sync-levers.test.ts +31 -0
  153. package/src/__tests__/llm-models.test.ts +132 -3
  154. package/src/__tests__/llm-price-key.test.ts +152 -1
  155. package/src/__tests__/nemotron-transcribe-pricing.test.ts +61 -0
  156. package/src/__tests__/normalize-node-params.test.ts +25 -0
  157. package/src/__tests__/pixverse-v6-max-catalog.test.ts +271 -0
  158. package/src/__tests__/prompt-length-limits.test.ts +4 -0
  159. package/src/__tests__/seedance-task-type.test.ts +13 -3
  160. package/src/__tests__/transcribe-capabilities.test.ts +39 -2
  161. package/src/__tests__/transcribe-preflight.test.ts +50 -1
  162. package/src/__tests__/video-audio-capability.test.ts +35 -6
  163. package/src/__tests__/video-resolution-billed-as-named.test.ts +30 -0
  164. package/src/__tests__/video-upscale-params.test.ts +62 -0
  165. package/src/catalog-projection.ts +8 -0
  166. package/src/credit-estimators/index.ts +10 -0
  167. package/src/credit-estimators/nemotron-transcribe.ts +87 -0
  168. package/src/credit-identifiers.ts +109 -35
  169. package/src/entries/credits.ts +12 -1
  170. package/src/entries/llm-models.ts +6 -0
  171. package/src/entries/model-catalog.ts +9 -0
  172. package/src/entries/models.ts +35 -0
  173. package/src/entries/nodes.ts +2 -0
  174. package/src/entries/video.ts +1 -1
  175. package/src/freecut-protocol.ts +8 -0
  176. package/src/lip-sync-levers.ts +56 -0
  177. package/src/lip-sync-pricing.ts +91 -1
  178. package/src/llm-models.ts +249 -4
  179. package/src/model-catalog.ts +250 -4
  180. package/src/model-constants.ts +277 -30
  181. package/src/model-tree.ts +2 -1
  182. package/src/nodaro-video-upscale.ts +48 -0
  183. package/src/node-default-mappings.ts +3 -0
  184. package/src/normalize-node-params.ts +49 -1
  185. package/src/runtime-config/contract.ts +10 -7
  186. package/src/seedance-draft.ts +2 -1
  187. package/src/transcribe-preflight.ts +58 -7
  188. package/src/video-duration.ts +9 -0
  189. package/src/video-ui-defaults.ts +5 -3
  190. package/src/video-upscale-params.ts +67 -0
  191. package/dist/chunk-2W745U4A.cjs.map +0 -1
  192. package/dist/chunk-3M4BNKFJ.cjs.map +0 -1
  193. package/dist/chunk-3OYO3XCC.js.map +0 -1
  194. package/dist/chunk-5YYN5X57.js.map +0 -1
  195. package/dist/chunk-6CSXMWL4.cjs.map +0 -1
  196. package/dist/chunk-6G7NN4S4.js.map +0 -1
  197. package/dist/chunk-AFYTX4AI.cjs.map +0 -1
  198. package/dist/chunk-AOJ6B7K4.cjs.map +0 -1
  199. package/dist/chunk-E2HZTGYX.js.map +0 -1
  200. package/dist/chunk-FVII3KHN.js.map +0 -1
  201. package/dist/chunk-GSFB537T.js.map +0 -1
  202. package/dist/chunk-IWWVPR3W.cjs.map +0 -1
  203. package/dist/chunk-KJSRPHJ2.cjs.map +0 -1
  204. package/dist/chunk-KYMHFVAZ.cjs.map +0 -1
  205. package/dist/chunk-MYJQELFN.cjs.map +0 -1
  206. package/dist/chunk-NGKKNSK6.js.map +0 -1
  207. package/dist/chunk-QWYFHQYK.cjs.map +0 -1
  208. package/dist/chunk-S24ZBUB4.js.map +0 -1
  209. package/dist/chunk-SYWR5G3T.js.map +0 -1
  210. package/dist/chunk-TRVWMKNE.cjs.map +0 -1
  211. package/dist/chunk-UDDVDQMF.js.map +0 -1
  212. package/dist/chunk-Y6X7UJSD.js.map +0 -1
@@ -1,5 +1,32 @@
1
1
  'use strict';
2
2
 
3
+ // src/video-duration.ts
4
+ var CONTAINER_OVERHANG_SEC = 0.25;
5
+ function extractVideoDurationFromNode(data) {
6
+ if (!data) return void 0;
7
+ const results = data.generatedResults;
8
+ const idx = data.activeResultIndex ?? 0;
9
+ const fromResult = results?.[idx]?.duration;
10
+ if (typeof fromResult === "number" && Number.isFinite(fromResult) && fromResult > 0) {
11
+ return fromResult;
12
+ }
13
+ const fromConfig = data.duration;
14
+ if (typeof fromConfig === "number" && Number.isFinite(fromConfig) && fromConfig > 0) {
15
+ return fromConfig;
16
+ }
17
+ return void 0;
18
+ }
19
+ function editPlanSourceDurationSec(data) {
20
+ const fromVideo = extractVideoDurationFromNode(data);
21
+ if (fromVideo !== void 0) return fromVideo;
22
+ const meta = data?.metadata;
23
+ if (typeof meta?.mediaUrl === "string" && meta.mediaUrl !== data?.extractedAudioUrl && meta.mediaUrl !== data?.url) {
24
+ return void 0;
25
+ }
26
+ const d = meta?.durationSeconds;
27
+ return typeof d === "number" && Number.isFinite(d) && d > 0 ? d : void 0;
28
+ }
29
+
3
30
  // src/seedance-draft.ts
4
31
  var SEEDANCE_DRAFT_MODELS = ["seedance-2-5"];
5
32
  function isSeedanceDraftCapable(provider) {
@@ -11,7 +38,7 @@ var SEEDANCE_DRAFT_FINALIZE_RESOLUTION = "1080p";
11
38
  var SEEDANCE_DRAFT_FINALIZE_MIN_SEC = 4;
12
39
  var SEEDANCE_DRAFT_FINALIZE_MAX_SEC = 30;
13
40
  function seedanceDraftFinalizeBillableSec(measuredSec) {
14
- const whole = Math.max(1, Math.ceil(measuredSec - 0.25));
41
+ const whole = Math.max(1, Math.ceil(measuredSec - CONTAINER_OVERHANG_SEC));
15
42
  return Math.min(SEEDANCE_DRAFT_FINALIZE_MAX_SEC, Math.max(SEEDANCE_DRAFT_FINALIZE_MIN_SEC, whole));
16
43
  }
17
44
  function seedanceDraftFinalizeCreditId(durationSec, hasRefVideo) {
@@ -90,7 +117,9 @@ var MODEL_MAKERS = {
90
117
  meituan: { name: "Meituan" },
91
118
  minimax: { name: "MiniMax" },
92
119
  nodaro: { name: "Nodaro" },
120
+ nvidia: { name: "NVIDIA" },
93
121
  openai: { name: "OpenAI" },
122
+ pixverse: { name: "PixVerse" },
94
123
  recraft: { name: "Recraft" },
95
124
  runway: { name: "Runway" },
96
125
  shengshu: { name: "ShengShu" },
@@ -125,7 +154,7 @@ var MODEL_RECOMMENDATIONS = [
125
154
  { intent: "music / song generation", modelIds: ["suno-v6", "suno-v6_wild", "suno-v6_mini", "suno-v5_5"], note: "V6 is the default flagship; V6 Wild for bolder, less predictable results; V6 Mini when speed matters; v5.5 / v5 / v4 keep their own character. Same price." },
126
155
  { intent: "voice over / narration", modelIds: ["elevenlabs-v4", "elevenlabs-v3", "elevenlabs-v4-turbo", "elevenlabs-turbo"], note: "v4 is the default: [audio tags] for emotion and up to 10,000 characters per request. v3 is the previous expressive model, still selectable. v4 Turbo keeps v4's tags at Turbo's credit price; Turbo v2.5 is the cheapest for plain narration without tags." },
127
156
  { intent: "lip-sync a portrait to audio", modelIds: ["kling-avatar-pro", "kling-avatar", "infinitalk"], note: "Pro for best mouth shape; InfiniTalk for resolution control." },
128
- { intent: "transcription / captions", modelIds: ["elevenlabs-stt", "incredibly-fast-whisper", "whisper"], note: "Captions need WORD timestamps: ElevenLabs STT (always) or Incredibly Fast Whisper. Plain Whisper returns phrase segments only." },
157
+ { intent: "transcription / captions", modelIds: ["elevenlabs-stt", "incredibly-fast-whisper", "whisper", "nemotron-3-5-transcribe"], note: "Captions need WORD timestamps: ElevenLabs STT (always), Incredibly Fast Whisper or Nemotron 3.5 Transcribe (on request, with a speaker per word). Plain Whisper returns phrase segments only. To translate the speech (to or from English) instead of transcribing it, use Nemotron 3.5 Transcribe with a target language; a translation carries no word timings." },
129
158
  { intent: "motion transfer (drive a subject by another video)", modelIds: ["motion-transfer", "kling-3.0-motion"], note: "Kling 2.6 base is cheap; Kling 3.0 is premium." }
130
159
  ];
131
160
  var NANO_BANANA_RATIOS = ["1:1", "16:9", "9:16", "4:3", "3:4", "3:2", "2:3", "4:5", "5:4", "21:9"];
@@ -233,6 +262,7 @@ var VIDEO_RATIOS_HAPPYHORSE_11 = ["16:9", "9:16", "1:1", "4:3", "3:4", "4:5", "5
233
262
  var VIDEO_RATIOS_WAN_3 = ["adaptive", "16:9", "4:3", "1:1", "3:4", "9:16"];
234
263
  var VIDEO_RATIOS_VIDU_Q4 = ["16:9", "9:16", "1:1", "4:3", "3:4"];
235
264
  var VIDEO_RATIOS_KLING_4 = ["auto", "16:9", "9:16", "1:1", "21:9"];
265
+ var VIDEO_RATIOS_PIXVERSE_V6_MAX = ["16:9", "4:3", "1:1", "3:4", "9:16", "2:3", "3:2", "21:9"];
236
266
  var IMAGE_MODELS = {
237
267
  // ── Google Nano Banana ──
238
268
  "nano-banana": {
@@ -526,6 +556,48 @@ var IMAGE_MODELS = {
526
556
  // max
527
557
  ]
528
558
  },
559
+ // A catalog entry so a deployment's model restriction can name it (decided
560
+ // 2026-11-12): before it, `models.allow` could not withhold it while the
561
+ // Modify Image node and /v1/image-to-image kept running it. It repaints the
562
+ // mask's white area of the image it is given, and its result is that image's
563
+ // size, so it takes no aspect ratio, size or quality: none is listed, and a
564
+ // value a request carries for one is dropped with an adjustment (as for
565
+ // Ideogram Edit). It never read one, so what it is sent is unchanged
566
+ // (backend flux-fill-requests-parity.test.ts). One input image, no
567
+ // reference images: no "reference-image" feature.
568
+ "flux-fill": {
569
+ id: "flux-fill",
570
+ kind: "image",
571
+ modes: ["edit"],
572
+ family: "Black Forest Labs",
573
+ maker: "black-forest-labs",
574
+ label: "FLUX Fill Pro",
575
+ series: "Flux",
576
+ description: "Masked inpainting from BFL via Replicate: repaints the mask's white area; the result keeps the image's size.",
577
+ useCases: ["edit", "inpaint"],
578
+ features: ["mask"],
579
+ pricing: [{ identifier: "flux-fill", credits: 30 }]
580
+ },
581
+ // A trained character's model (decided 2026-11-12): FLUX.1 [dev] with the
582
+ // character's own LoRA, which a Generate Image run switches to when the one
583
+ // character it names has a succeeded trained model. Never picked
584
+ // (`pickerHidden`): listed here so a deployment's restriction can name it.
585
+ // Where a deployment withholds it, a run does not switch and uses the
586
+ // character's reference pictures, as for a character with no trained model.
587
+ // Its levers are not listed: nothing snaps a request against this entry.
588
+ "flux-lora-character": {
589
+ id: "flux-lora-character",
590
+ kind: "image",
591
+ modes: ["t2i"],
592
+ family: "Black Forest Labs",
593
+ maker: "black-forest-labs",
594
+ label: "Trained character (FLUX LoRA)",
595
+ series: "Flux",
596
+ description: "A trained character's own model (FLUX.1 [dev] with its LoRA), run when a prompt names that one character.",
597
+ useCases: ["character"],
598
+ pricing: [{ identifier: "flux-lora-character", credits: 20 }],
599
+ pickerHidden: true
600
+ },
529
601
  // ── OpenAI (GPT Image) ──
530
602
  "gpt-image": {
531
603
  id: "gpt-image",
@@ -2708,6 +2780,49 @@ var VIDEO_MODELS = {
2708
2780
  { identifier: "vidu-q4:16s:4k", credits: 2500, note: "16s 4K (max)" }
2709
2781
  ]
2710
2782
  },
2783
+ // ── PixVerse ──
2784
+ // PixVerse V6 Max — ONE id over two KIE endpoints, picked by what is wired
2785
+ // (backend kie/pixverse-v6-max.ts): a start frame runs on
2786
+ // docs.kie.ai/market/pixverse/v6-max-image-to-video, where it is the exact
2787
+ // first frame and the output takes its shape (no aspect ratio is sent); no
2788
+ // image runs on docs.kie.ai/market/pixverse/v6-max-text-to-video, with one of
2789
+ // eight aspect ratios. No end frame, no reference images, videos or audio.
2790
+ // 1-15s, 360p-1080p (`quality` on the wire). Native audio behind the
2791
+ // `generate_audio_switch` lever: the price depends on it, so it bills on the
2792
+ // `:audio` rows (AUDIO_ADDON_PROVIDERS), and a request that names no audio
2793
+ // setting renders and bills audio ON (decided 2026-11-11). `resolutions` is
2794
+ // ascending (repo convention); the default tier (720p) is declared, never
2795
+ // carried by array position — 360p is the cheapest preview tier.
2796
+ "pixverse-v6-max": {
2797
+ id: "pixverse-v6-max",
2798
+ kind: "video",
2799
+ modes: ["i2v", "t2v"],
2800
+ family: "PixVerse",
2801
+ maker: "pixverse",
2802
+ label: "PixVerse V6 Max",
2803
+ series: "PixVerse",
2804
+ description: "PixVerse V6 Max \u2014 cinematic video from text or from an exact first frame, 1\u201315s at 360p to 1080p, with optional native audio (on by default; it changes the price). Strong prompt following, camera control and on-screen text.",
2805
+ useCases: ["cinematic", "narrative", "typography", "motion"],
2806
+ features: ["audio"],
2807
+ aspectRatios: VIDEO_RATIOS_PIXVERSE_V6_MAX,
2808
+ durations: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15],
2809
+ defaultDuration: 5,
2810
+ resolutions: ["360p", "540p", "720p", "1080p"],
2811
+ defaultResolution: "720p",
2812
+ // normalizePixverseV6MaxQuality sends 720p for anything off the list.
2813
+ unlistedResolutionRendersAs: "720p",
2814
+ // Generate Video Pro runs it from a start anchor or text (decided 2026-11-12).
2815
+ gvpWithoutReferences: true,
2816
+ pricing: [
2817
+ { identifier: "pixverse-v6-max", credits: 150, note: "default 5s 720p with audio \u2014 see :Ns:res and :Ns:res:audio variants for exact" },
2818
+ { identifier: "pixverse-v6-max:5s:720p:audio", credits: 150, note: "5s 720p with audio (the default tier)" },
2819
+ { identifier: "pixverse-v6-max:5s:720p", credits: 110, note: "5s 720p, no audio" },
2820
+ { identifier: "pixverse-v6-max:5s:360p", credits: 60, note: "5s 360p, no audio" },
2821
+ { identifier: "pixverse-v6-max:5s:1080p:audio", credits: 280, note: "5s 1080p with audio" },
2822
+ { identifier: "pixverse-v6-max:1s:360p", credits: 20, note: "1s 360p, no audio (min)" },
2823
+ { identifier: "pixverse-v6-max:15s:1080p:audio", credits: 840, note: "15s 1080p with audio (max)" }
2824
+ ]
2825
+ },
2711
2826
  // ── Bytedance video lite/pro ──
2712
2827
  "bytedance-lite": {
2713
2828
  id: "bytedance-lite",
@@ -2831,7 +2946,7 @@ var VIDEO_MODELS = {
2831
2946
  pricing: [{ identifier: "runway-extend", credits: 320 }]
2832
2947
  },
2833
2948
  // Seedance extends ANY video, one provider per model. Each is priced on its
2834
- // own rows (`seedanceExtendCreditId`), one per second added and resolution.
2949
+ // own rows (`tailExtendCreditId`), one per second added and resolution.
2835
2950
  // The earlier single id `seedance-2-extend` is retired and runs as Seedance 2.5.
2836
2951
  "seedance-2-5-extend": {
2837
2952
  id: "seedance-2-5-extend",
@@ -2871,6 +2986,29 @@ var VIDEO_MODELS = {
2871
2986
  { identifier: "seedance-2-0-extend:8s:1080p", credits: 1550, note: "8s 1080p" }
2872
2987
  ]
2873
2988
  },
2989
+ // Kling 4 extends ANY video with the same tail recipe, generated on Kling
2990
+ // 4.0 (`kling-4`, reference-to-video): its own entry, so a deployment can
2991
+ // withhold or release it apart from Kling 4.0 generation, and its own rows
2992
+ // (`tailExtendCreditId`), one per second added and resolution. Its sound is
2993
+ // always on (Kling 4.0 has no switch).
2994
+ "kling-4-extend": {
2995
+ id: "kling-4-extend",
2996
+ kind: "video",
2997
+ modes: ["extend"],
2998
+ family: "Kuaishou",
2999
+ maker: "kuaishou",
3000
+ label: "Kling 4 Extend",
3001
+ series: "Kling",
3002
+ description: "Extend ANY video with Kling 4: 3\u201330s continuation (audio included), stitched into one seamless clip.",
3003
+ useCases: ["extend"],
3004
+ durations: [3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30],
3005
+ defaultDuration: 5,
3006
+ resolutions: ["720p", "1080p"],
3007
+ pricing: [
3008
+ { identifier: "kling-4-extend:5s:720p", credits: 425, note: "default 5s 720p \u2014 see :Ns:res variants for exact" },
3009
+ { identifier: "kling-4-extend:5s:1080p", credits: 638, note: "5s 1080p" }
3010
+ ]
3011
+ },
2874
3012
  "veo-1080p": {
2875
3013
  id: "veo-1080p",
2876
3014
  kind: "video",
@@ -2931,6 +3069,32 @@ var VIDEO_MODELS = {
2931
3069
  // Topaz units the provider reports, never above the hold.
2932
3070
  pricing: [{ identifier: "topaz-video:per-unit", credits: 40, note: "per Topaz unit (metered)" }]
2933
3071
  },
3072
+ // Nodaro Video Upscale (decided 2026-11-11): offered under the deployment's
3073
+ // own label, so it names no maker, and only where the deployment serves it
3074
+ // (the backend's house-model seam). Priced per second of the clip
3075
+ // (the clip's length rounded up to a whole second): each tier's row is the
3076
+ // price of FOUR seconds, so a per-second rate that is not a whole credit
3077
+ // still fits a whole-credit row, and a run is charged row × seconds ÷ 4,
3078
+ // rounded up once (`@nodaro/render-rules` nodaro-video-upscale-pricing.ts).
3079
+ "nodaro-video-upscale": {
3080
+ id: "nodaro-video-upscale",
3081
+ kind: "video",
3082
+ modes: ["video-upscale"],
3083
+ family: "Nodaro Upscale",
3084
+ ownLabel: true,
3085
+ label: "Nodaro Video Upscale",
3086
+ series: "Nodaro Upscale",
3087
+ description: "Upscale any clip of up to 60 seconds and 50 MB into a 1080p, 2K or 4K frame. It keeps the clip's shape (nothing is cropped), frame rate, length and sound. Priced per second of the clip; the listed price is four seconds at 1080p.",
3088
+ useCases: ["upscale", "high-res"],
3089
+ // An output box (1920×1080, 2560×1440, 3840×2160; turned for a portrait clip).
3090
+ resolutions: ["1080p", "2k", "4k"],
3091
+ defaultResolution: "1080p",
3092
+ pricing: [
3093
+ { identifier: "nodaro-video-upscale:1080p:per-4s", credits: 15, note: "per 4 seconds of the clip at 1080p; charged per whole second" },
3094
+ { identifier: "nodaro-video-upscale:2k:per-4s", credits: 30, note: "per 4 seconds of the clip at 2K; charged per whole second" },
3095
+ { identifier: "nodaro-video-upscale:4k:per-4s", credits: 60, note: "per 4 seconds of the clip at 4K; charged per whole second" }
3096
+ ]
3097
+ },
2934
3098
  // ── Motion transfer ──
2935
3099
  "motion-transfer": {
2936
3100
  id: "motion-transfer",
@@ -2972,6 +3136,50 @@ var VIDEO_MODELS = {
2972
3136
  { identifier: "kling-3.0-motion:1080p:10s", credits: 500 }
2973
3137
  ]
2974
3138
  },
3139
+ // Wan Animate (decided 2026-11-12): catalog entries so a deployment's model
3140
+ // restriction can name them. Before, `models.allow` could not withhold them
3141
+ // while the Motion Transfer node and /v1/motion-transfer kept running them
3142
+ // beside the Kling models. The sizes are the three each runs at and is priced
3143
+ // on today (one flat row per size, any clip length); a size it does not have
3144
+ // (the route's 1080p) runs, and is charged, as 720p — `defaultResolution`, the
3145
+ // size `normalizeModelInput` moves it to (`motionTransferResolution`), and
3146
+ // the size a request naming none has always run at.
3147
+ "wan-animate-move": {
3148
+ id: "wan-animate-move",
3149
+ kind: "video",
3150
+ modes: ["motion-transfer"],
3151
+ family: "Alibaba",
3152
+ maker: "alibaba",
3153
+ label: "Wan Animate Move",
3154
+ series: "Wan",
3155
+ description: "Wan 2.2 Animate: moves the subject of a still image with the motion of a driving video.",
3156
+ useCases: ["motion-transfer", "cheap"],
3157
+ resolutions: ["480p", "580p", "720p"],
3158
+ defaultResolution: "720p",
3159
+ pricing: [
3160
+ { identifier: "wan-animate-move", credits: 255, note: "480p" },
3161
+ { identifier: "wan-animate-move:580p", credits: 330, note: "580p" },
3162
+ { identifier: "wan-animate-move:720p", credits: 410, note: "720p" }
3163
+ ]
3164
+ },
3165
+ "wan-animate-replace": {
3166
+ id: "wan-animate-replace",
3167
+ kind: "video",
3168
+ modes: ["motion-transfer"],
3169
+ family: "Alibaba",
3170
+ maker: "alibaba",
3171
+ label: "Wan Animate Replace",
3172
+ series: "Wan",
3173
+ description: "Wan 2.2 Animate: replaces the person in a driving video with the subject of a still image, keeping the motion.",
3174
+ useCases: ["motion-transfer", "character-swap"],
3175
+ resolutions: ["480p", "580p", "720p"],
3176
+ defaultResolution: "720p",
3177
+ pricing: [
3178
+ { identifier: "wan-animate-replace", credits: 255, note: "480p" },
3179
+ { identifier: "wan-animate-replace:580p", credits: 330, note: "580p" },
3180
+ { identifier: "wan-animate-replace:720p", credits: 410, note: "720p" }
3181
+ ]
3182
+ },
2975
3183
  // ── Lip sync / talking-head ──
2976
3184
  "kling-avatar": {
2977
3185
  id: "kling-avatar",
@@ -3032,6 +3240,25 @@ var VIDEO_MODELS = {
3032
3240
  { identifier: "omnihuman-1-5:60s", credits: 4050 }
3033
3241
  ]
3034
3242
  },
3243
+ // A different model from 1.5, offered beside it (decided 2026-11-11): one
3244
+ // image, 4 to 300 seconds of audio, 720p output, an optional prompt. It has
3245
+ // none of 1.5's levers — no speaker mask, no resolution, no fast mode, no
3246
+ // seed — so it declares no `resolutions` (`normalizeModelInput` drops one).
3247
+ // Charged per second of its audio at one rate (LIP_SYNC_AUDIO_RATES).
3248
+ "omnihuman-2-0": {
3249
+ id: "omnihuman-2-0",
3250
+ kind: "video",
3251
+ modes: ["lip-sync"],
3252
+ family: "Bytedance",
3253
+ maker: "bytedance",
3254
+ label: "OmniHuman 2.0",
3255
+ series: "OmniHuman",
3256
+ description: "Talking avatar from one still image + audio, driven by the voice with an optional prompt for the scene, motion and camera. 720p, 4 seconds to 5 minutes, charged per second of audio.",
3257
+ useCases: ["lip-sync", "talking-head", "long-form"],
3258
+ pricing: [
3259
+ { identifier: "omnihuman-2-0:per-second", credits: 35, note: "per second of audio, rounded up; at least 4 seconds" }
3260
+ ]
3261
+ },
3035
3262
  "hailuo-avatar": {
3036
3263
  id: "hailuo-avatar",
3037
3264
  kind: "video",
@@ -3626,6 +3853,23 @@ var AUDIO_MODELS = {
3626
3853
  useCases: ["transcription", "stt"],
3627
3854
  pricing: [{ identifier: "whisper", credits: 40 }]
3628
3855
  },
3856
+ // NVIDIA's speech-to-text on KIE, priced per started minute of the file. Its
3857
+ // per-minute base fits no whole-credit row, so the row prices FOUR
3858
+ // minutes and a run is charged row × minutes ÷ 4, rounded up once
3859
+ // (`@nodaro/shared` credit-estimators/nemotron-transcribe.ts).
3860
+ "nemotron-3-5-transcribe": {
3861
+ id: "nemotron-3-5-transcribe",
3862
+ kind: "audio",
3863
+ modes: ["stt"],
3864
+ family: "NVIDIA",
3865
+ maker: "nvidia",
3866
+ label: "Nemotron 3.5 Transcribe",
3867
+ series: "Nemotron",
3868
+ description: "NVIDIA speech-to-text in 40 languages, detected automatically, with a low word error rate. On request it returns WORD-level timestamps with a speaker label per word, so its transcript can feed captions; or it translates the speech instead (to or from English: other speech into English, or English speech into one of 31 languages), with no word timings. Files up to 60 minutes and 200 MB. Priced per started minute of the file, whatever the options; the listed price is four minutes.",
3869
+ useCases: ["transcription", "stt", "captions", "translation"],
3870
+ features: ["word-timestamps", "diarization", "translation"],
3871
+ pricing: [{ identifier: "nemotron-3-5-transcribe:per-4m", credits: 3, note: "per 4 minutes of the file; charged per started minute, the whole run rounded up" }]
3872
+ },
3629
3873
  "elevenlabs-isolation": {
3630
3874
  id: "elevenlabs-isolation",
3631
3875
  kind: "audio",
@@ -3782,7 +4026,7 @@ var MODEL_CATALOG = {
3782
4026
  ...AUDIO_MODELS
3783
4027
  };
3784
4028
  function listModels(filter) {
3785
- const all = Object.values(MODEL_CATALOG);
4029
+ const all = Object.values(MODEL_CATALOG).filter((m) => m.pickerHidden !== true);
3786
4030
  if (!filter) return all;
3787
4031
  return all.filter((m) => {
3788
4032
  if (filter.kind && m.kind !== filter.kind) return false;
@@ -4514,7 +4758,7 @@ function creditRangesAll() {
4514
4758
  }
4515
4759
  function modelIdsByKindMode(kind, modes, opts = {}) {
4516
4760
  const includeHidden = opts.includeHidden === true;
4517
- const ids = Object.values(MODEL_CATALOG).filter((m) => kind === null ? true : m.kind === kind).filter((m) => m.modes.some((md) => modes.includes(md))).filter((m) => includeHidden || !m.mcpHidden).filter((m) => !m.docsHidden).map((m) => m.id).sort();
4761
+ const ids = Object.values(MODEL_CATALOG).filter((m) => kind === null ? true : m.kind === kind).filter((m) => m.modes.some((md) => modes.includes(md))).filter((m) => includeHidden || !m.mcpHidden).filter((m) => !m.docsHidden && m.pickerHidden !== true).map((m) => m.id).sort();
4518
4762
  if (ids.length === 0) {
4519
4763
  throw new Error(
4520
4764
  `modelIdsByKindMode: no models match kind=${kind ?? "*"} modes=[${modes.join(",")}]`
@@ -4523,6 +4767,7 @@ function modelIdsByKindMode(kind, modes, opts = {}) {
4523
4767
  return ids;
4524
4768
  }
4525
4769
 
4770
+ exports.CONTAINER_OVERHANG_SEC = CONTAINER_OVERHANG_SEC;
4526
4771
  exports.FLUX2_RES_MP = FLUX2_RES_MP;
4527
4772
  exports.IMAGE_GIF_FRAME_SIZE = IMAGE_GIF_FRAME_SIZE;
4528
4773
  exports.IMAGE_OUTPUT_FORMAT_LABELS = IMAGE_OUTPUT_FORMAT_LABELS;
@@ -4560,6 +4805,8 @@ exports.buildModelMenu = buildModelMenu;
4560
4805
  exports.creditRangesAll = creditRangesAll;
4561
4806
  exports.defaultResolutionFor = defaultResolutionFor;
4562
4807
  exports.durationsByMode = durationsByMode;
4808
+ exports.editPlanSourceDurationSec = editPlanSourceDurationSec;
4809
+ exports.extractVideoDurationFromNode = extractVideoDurationFromNode;
4563
4810
  exports.fitAspectRatioToModel = fitAspectRatioToModel;
4564
4811
  exports.getAspectRatioOptions = getAspectRatioOptions;
4565
4812
  exports.getCreditRange = getCreditRange;
@@ -4604,5 +4851,5 @@ exports.sourceImageSizeNeeded = sourceImageSizeNeeded;
4604
4851
  exports.svgLevelOptionsByKind = svgLevelOptionsByKind;
4605
4852
  exports.validateModelInput = validateModelInput;
4606
4853
  exports.videoAutoAspectRunsAt = videoAutoAspectRunsAt;
4607
- //# sourceMappingURL=chunk-MYJQELFN.cjs.map
4608
- //# sourceMappingURL=chunk-MYJQELFN.cjs.map
4854
+ //# sourceMappingURL=chunk-M5OCFGHF.cjs.map
4855
+ //# sourceMappingURL=chunk-M5OCFGHF.cjs.map