@nodaro/shared 3.41.0 → 3.43.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.
- package/dist/{chunk-N2KG5AMQ.cjs → chunk-3J6JYP4X.cjs} +4 -4
- package/dist/{chunk-N2KG5AMQ.cjs.map → chunk-3J6JYP4X.cjs.map} +1 -1
- package/dist/{chunk-YEZ2YUKK.js → chunk-3UAQVTIO.js} +3 -3
- package/dist/{chunk-YEZ2YUKK.js.map → chunk-3UAQVTIO.js.map} +1 -1
- package/dist/{chunk-ZXIP5T5V.js → chunk-4GYMWGUG.js} +3 -3
- package/dist/{chunk-ZXIP5T5V.js.map → chunk-4GYMWGUG.js.map} +1 -1
- package/dist/{chunk-DC5EYYVX.cjs → chunk-4URFSG3O.cjs} +38 -39
- package/dist/chunk-4URFSG3O.cjs.map +1 -0
- package/dist/{chunk-4LKEOIOT.cjs → chunk-4VDQFY27.cjs} +6 -6
- package/dist/{chunk-4LKEOIOT.cjs.map → chunk-4VDQFY27.cjs.map} +1 -1
- package/dist/{chunk-TUUEQ2WR.cjs → chunk-52IHBMTM.cjs} +8 -8
- package/dist/{chunk-TUUEQ2WR.cjs.map → chunk-52IHBMTM.cjs.map} +1 -1
- package/dist/{chunk-LOTL72UI.js → chunk-5C6WODPL.js} +4 -5
- package/dist/chunk-5C6WODPL.js.map +1 -0
- package/dist/{chunk-4IWVZR44.cjs → chunk-7TQRTEWG.cjs} +5 -5
- package/dist/{chunk-4IWVZR44.cjs.map → chunk-7TQRTEWG.cjs.map} +1 -1
- package/dist/{chunk-PYDZ7ZGH.js → chunk-BJGJXYGO.js} +3 -3
- package/dist/{chunk-PYDZ7ZGH.js.map → chunk-BJGJXYGO.js.map} +1 -1
- package/dist/{chunk-BOUEGYGI.cjs → chunk-CDEWNDBO.cjs} +33 -37
- package/dist/chunk-CDEWNDBO.cjs.map +1 -0
- package/dist/{chunk-IKCFSNNH.cjs → chunk-CLYX5WIS.cjs} +21 -21
- package/dist/{chunk-IKCFSNNH.cjs.map → chunk-CLYX5WIS.cjs.map} +1 -1
- package/dist/{chunk-ZAOBNW6Y.cjs → chunk-DFBWBEXO.cjs} +12 -20
- package/dist/chunk-DFBWBEXO.cjs.map +1 -0
- package/dist/{chunk-RLVZ3RLE.cjs → chunk-DUWBODKW.cjs} +8 -8
- package/dist/{chunk-RLVZ3RLE.cjs.map → chunk-DUWBODKW.cjs.map} +1 -1
- package/dist/{chunk-VNC5DNIQ.cjs → chunk-ESBO2KR7.cjs} +11 -13
- package/dist/chunk-ESBO2KR7.cjs.map +1 -0
- package/dist/chunk-GAPZHS2X.cjs +27 -0
- package/dist/{chunk-XOZIHGR5.cjs.map → chunk-GAPZHS2X.cjs.map} +1 -1
- package/dist/{chunk-E4MLBJKG.js → chunk-GBUHNZZU.js} +8 -8
- package/dist/{chunk-E4MLBJKG.js.map → chunk-GBUHNZZU.js.map} +1 -1
- package/dist/{chunk-5J5L26IZ.js → chunk-IAH67SHO.js} +5 -7
- package/dist/chunk-IAH67SHO.js.map +1 -0
- package/dist/{chunk-YEET2QGF.cjs → chunk-IHPDWGBN.cjs} +4 -4
- package/dist/{chunk-YEET2QGF.cjs.map → chunk-IHPDWGBN.cjs.map} +1 -1
- package/dist/{chunk-VSDJCJKP.cjs → chunk-J32WVEJH.cjs} +46 -45
- package/dist/chunk-J32WVEJH.cjs.map +1 -0
- package/dist/{chunk-MLB6YNLS.js → chunk-KUWE6E2E.js} +4 -4
- package/dist/{chunk-MLB6YNLS.js.map → chunk-KUWE6E2E.js.map} +1 -1
- package/dist/{chunk-LOWOJN65.js → chunk-KZGGUDAB.js} +45 -7
- package/dist/chunk-KZGGUDAB.js.map +1 -0
- package/dist/{chunk-CWQC6IGE.js → chunk-L6G6G5BB.js} +4 -5
- package/dist/chunk-L6G6G5BB.js.map +1 -0
- package/dist/{chunk-5CKTBGB6.js → chunk-LRJAGGKY.js} +5 -24
- package/dist/chunk-LRJAGGKY.js.map +1 -0
- package/dist/{chunk-DJIRIBKX.cjs → chunk-LZBJJ6TC.cjs} +5 -6
- package/dist/chunk-LZBJJ6TC.cjs.map +1 -0
- package/dist/{chunk-GNY2S63W.js → chunk-N5NT3WZD.js} +4 -4
- package/dist/{chunk-GNY2S63W.js.map → chunk-N5NT3WZD.js.map} +1 -1
- package/dist/{chunk-BWQRAQUD.cjs → chunk-NSTIHL5G.cjs} +43 -43
- package/dist/{chunk-BWQRAQUD.cjs.map → chunk-NSTIHL5G.cjs.map} +1 -1
- package/dist/{chunk-X7IRSO4L.js → chunk-O2VQLVKB.js} +3 -3
- package/dist/{chunk-X7IRSO4L.js.map → chunk-O2VQLVKB.js.map} +1 -1
- package/dist/{chunk-SYUY7GNT.js → chunk-OAAQG66Y.js} +7 -6
- package/dist/chunk-OAAQG66Y.js.map +1 -0
- package/dist/{chunk-YX5FW7ON.js → chunk-PLU7RIDO.js} +4 -12
- package/dist/chunk-PLU7RIDO.js.map +1 -0
- package/dist/{chunk-A4NDZBSJ.js → chunk-PVAOXI2W.js} +14 -20
- package/dist/chunk-PVAOXI2W.js.map +1 -0
- package/dist/{chunk-GXTWKAJF.js → chunk-PZE6WTA3.js} +3 -3
- package/dist/{chunk-GXTWKAJF.js.map → chunk-PZE6WTA3.js.map} +1 -1
- package/dist/{chunk-TGZJXCLL.cjs → chunk-QHODM5TS.cjs} +46 -6
- package/dist/chunk-QHODM5TS.cjs.map +1 -0
- package/dist/{chunk-JN3V33AN.cjs → chunk-QJ2VGB5J.cjs} +6 -6
- package/dist/{chunk-JN3V33AN.cjs.map → chunk-QJ2VGB5J.cjs.map} +1 -1
- package/dist/{chunk-ADYPAGQF.cjs → chunk-RPQ2KF6L.cjs} +5 -24
- package/dist/chunk-RPQ2KF6L.cjs.map +1 -0
- package/dist/{chunk-2BJADMEX.js → chunk-S4UAYQQV.js} +3 -3
- package/dist/{chunk-2BJADMEX.js.map → chunk-S4UAYQQV.js.map} +1 -1
- package/dist/{chunk-FVZMFDRO.js → chunk-TTD6MZAM.js} +4 -4
- package/dist/{chunk-FVZMFDRO.js.map → chunk-TTD6MZAM.js.map} +1 -1
- package/dist/entries/apps.cjs +42 -42
- package/dist/entries/apps.js +7 -7
- package/dist/entries/credits.cjs +150 -150
- package/dist/entries/credits.d.cts +1 -1
- package/dist/entries/credits.d.ts +1 -1
- package/dist/entries/credits.js +7 -7
- package/dist/entries/llm-models.d.cts +1 -1
- package/dist/entries/llm-models.d.ts +1 -1
- package/dist/entries/media.cjs +56 -48
- package/dist/entries/media.d.cts +65 -3
- package/dist/entries/media.d.ts +65 -3
- package/dist/entries/media.js +1 -1
- package/dist/entries/model-catalog.cjs +66 -66
- package/dist/entries/model-catalog.js +4 -4
- package/dist/entries/models.cjs +252 -244
- package/dist/entries/models.d.cts +2 -7
- package/dist/entries/models.d.ts +2 -7
- package/dist/entries/models.js +4 -4
- package/dist/entries/nodes.cjs +206 -206
- package/dist/entries/nodes.js +8 -8
- package/dist/entries/pipeline.cjs +149 -149
- package/dist/entries/pipeline.d.cts +10 -14
- package/dist/entries/pipeline.d.ts +10 -14
- package/dist/entries/pipeline.js +3 -3
- package/dist/entries/ugc.cjs +71 -71
- package/dist/entries/ugc.js +4 -4
- package/dist/entries/video.cjs +117 -117
- package/dist/entries/video.js +4 -4
- package/dist/index.cjs +1085 -1069
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +18 -18
- package/dist/{model-constants-B5ka4TQr.d.cts → model-constants-BL-Ae0OU.d.cts} +24 -7
- package/dist/{model-constants-B5ka4TQr.d.ts → model-constants-BL-Ae0OU.d.ts} +24 -7
- package/package.json +1 -1
- package/src/__tests__/credit-identifiers.test.ts +13 -32
- package/src/__tests__/pricing-default-duration.test.ts +0 -2
- package/src/__tests__/retired-video-provider.test.ts +42 -0
- package/src/__tests__/video-audio-capability.test.ts +4 -13
- package/src/__tests__/video-mask.test.ts +31 -0
- package/src/__tests__/video-mode-aliases.test.ts +10 -1
- package/src/credit-identifiers.ts +4 -1
- package/src/entries/models.ts +2 -0
- package/src/film-pricing.ts +0 -1
- package/src/model-catalog.ts +3 -22
- package/src/model-constants.ts +29 -15
- package/src/pipeline-types.ts +4 -2
- package/src/provider-directive-defaults.ts +0 -1
- package/src/video-mask.ts +69 -2
- package/src/video-output-canvas.ts +0 -8
- package/dist/chunk-5CKTBGB6.js.map +0 -1
- package/dist/chunk-5J5L26IZ.js.map +0 -1
- package/dist/chunk-A4NDZBSJ.js.map +0 -1
- package/dist/chunk-ADYPAGQF.cjs.map +0 -1
- package/dist/chunk-BOUEGYGI.cjs.map +0 -1
- package/dist/chunk-CWQC6IGE.js.map +0 -1
- package/dist/chunk-DC5EYYVX.cjs.map +0 -1
- package/dist/chunk-DJIRIBKX.cjs.map +0 -1
- package/dist/chunk-LOTL72UI.js.map +0 -1
- package/dist/chunk-LOWOJN65.js.map +0 -1
- package/dist/chunk-SYUY7GNT.js.map +0 -1
- package/dist/chunk-TGZJXCLL.cjs.map +0 -1
- package/dist/chunk-VNC5DNIQ.cjs.map +0 -1
- package/dist/chunk-VSDJCJKP.cjs.map +0 -1
- package/dist/chunk-XOZIHGR5.cjs +0 -27
- package/dist/chunk-YX5FW7ON.js.map +0 -1
- package/dist/chunk-ZAOBNW6Y.cjs.map +0 -1
|
@@ -352,13 +352,13 @@ type ImageGenProvider = typeof IMAGE_GEN_PROVIDERS[number];
|
|
|
352
352
|
type ImageI2IProvider = typeof IMAGE_I2I_PROVIDERS[number];
|
|
353
353
|
type ImageEditProvider = typeof IMAGE_EDIT_PROVIDERS[number];
|
|
354
354
|
/** Image-to-video providers */
|
|
355
|
-
declare const IMAGE_TO_VIDEO_PROVIDERS: readonly ["minimax", "veo3", "veo3.1", "veo3_lite", "kling", "kling-turbo", "kling-3.0", "kling-master", "seedance
|
|
355
|
+
declare const IMAGE_TO_VIDEO_PROVIDERS: readonly ["minimax", "veo3", "veo3.1", "veo3_lite", "kling", "kling-turbo", "kling-3.0", "kling-master", "seedance-2", "seedance-2-fast", "seedance-2-mini", "seedance-2-5", "minimax-h3", "hailuo-2.3-pro", "hailuo-2.3", "hailuo-standard", "wan-i2v", "wan-turbo", "bytedance-lite", "bytedance-pro", "bytedance-pro-fast", "grok-i2v", "wan-2.7-i2v", "happyhorse-i2v", "happyhorse-ref2v", "runway-kie", "kling-3-omni", "gemini-omni-video", "gemini-omni-flash", "wan-3", "wan-3-prime", "vidu-q4", "kling-4", "kling-4-keyframes", "ltx-2.3-pro", "ltx-2.3-fast", "grok-imagine-video-1.5"];
|
|
356
356
|
type ImageToVideoProvider = typeof IMAGE_TO_VIDEO_PROVIDERS[number];
|
|
357
357
|
/** Text-to-video providers */
|
|
358
|
-
declare const TEXT_TO_VIDEO_PROVIDERS: readonly ["minimax", "veo3", "veo3.1", "veo3_lite", "kling", "kling-turbo", "kling-3.0", "grok", "seedance
|
|
358
|
+
declare const TEXT_TO_VIDEO_PROVIDERS: readonly ["minimax", "veo3", "veo3.1", "veo3_lite", "kling", "kling-turbo", "kling-3.0", "grok", "seedance-2", "seedance-2-fast", "seedance-2-mini", "seedance-2-5", "minimax-h3", "wan", "hailuo-standard", "bytedance-lite", "bytedance-pro", "wan-turbo", "wan-2.7-t2v", "happyhorse", "runway-kie", "gemini-omni-video", "gemini-omni-flash", "wan-3", "wan-3-prime", "kling-4", "kling-4-keyframes", "ltx-2.3-pro", "ltx-2.3-fast", "grok-imagine-video-1.5", "kling-3-omni", "kling-master", "hailuo-2.3", "hailuo-2.3-pro", "bytedance-pro-fast", "happyhorse-ref2v", "vidu-q4"];
|
|
359
359
|
type TextToVideoProvider = typeof TEXT_TO_VIDEO_PROVIDERS[number];
|
|
360
360
|
/** Unified video-generation providers (image-to-video ∪ text-to-video) for the generate-video node. */
|
|
361
|
-
declare const VIDEO_GEN_PROVIDERS: readonly ["minimax", "veo3", "veo3.1", "veo3_lite", "kling", "kling-turbo", "kling-3.0", "kling-master", "seedance
|
|
361
|
+
declare const VIDEO_GEN_PROVIDERS: readonly ["minimax", "veo3", "veo3.1", "veo3_lite", "kling", "kling-turbo", "kling-3.0", "kling-master", "seedance-2", "seedance-2-fast", "seedance-2-mini", "seedance-2-5", "minimax-h3", "hailuo-2.3-pro", "hailuo-2.3", "hailuo-standard", "wan-i2v", "wan-turbo", "bytedance-lite", "bytedance-pro", "bytedance-pro-fast", "grok-i2v", "wan-2.7-i2v", "happyhorse-i2v", "happyhorse-ref2v", "runway-kie", "kling-3-omni", "gemini-omni-video", "gemini-omni-flash", "wan-3", "wan-3-prime", "vidu-q4", "kling-4", "kling-4-keyframes", "ltx-2.3-pro", "ltx-2.3-fast", "grok-imagine-video-1.5", ...("seedance-2-5" | "minimax" | "veo3" | "kling-3.0" | "seedance-2" | "veo3.1" | "wan-turbo" | "bytedance-lite" | "kling-turbo" | "hailuo-standard" | "grok" | "minimax-h3" | "hailuo-2.3-pro" | "hailuo-2.3" | "veo3_lite" | "gemini-omni-video" | "gemini-omni-flash" | "kling" | "kling-master" | "kling-3-omni" | "kling-4" | "kling-4-keyframes" | "grok-imagine-video-1.5" | "seedance-2-fast" | "seedance-2-mini" | "wan-3" | "wan-3-prime" | "wan" | "wan-2.7-t2v" | "ltx-2.3-pro" | "ltx-2.3-fast" | "happyhorse" | "happyhorse-ref2v" | "vidu-q4" | "bytedance-pro" | "bytedance-pro-fast" | "runway-kie")[]];
|
|
362
362
|
type VideoGenProvider = typeof VIDEO_GEN_PROVIDERS[number];
|
|
363
363
|
/**
|
|
364
364
|
* Video models that expose DISTINCT provider ids per mode (text-to-video vs
|
|
@@ -386,14 +386,31 @@ interface VideoModeAlias {
|
|
|
386
386
|
t2v: string;
|
|
387
387
|
}
|
|
388
388
|
declare const VIDEO_MODE_ALIASES: readonly VideoModeAlias[];
|
|
389
|
+
/**
|
|
390
|
+
* Video model ids the provider retired, each with the model it now runs as.
|
|
391
|
+
* They have no catalog entry and are in no provider list: every boundary that
|
|
392
|
+
* receives a stored or sent id (editor load, a run's payload and its estimate,
|
|
393
|
+
* a request body, the video worker, a pipeline pin, the MCP model choice, the
|
|
394
|
+
* credit id) passes it through {@link canonicalVideoProvider} first,
|
|
395
|
+
* so a saved node, an app run or an API call naming one keeps working and is
|
|
396
|
+
* priced as the model it runs as.
|
|
397
|
+
*
|
|
398
|
+
* - `seedance` (Seedance 1.5 Pro, KIE `bytedance/seedance-1.5-pro`): retired
|
|
399
|
+
* upstream 2026-10-25 (KIE answers 410). Runs as Seedance 2 Mini, the
|
|
400
|
+
* cheapest Seedance left (owner's decision 2026-10-25).
|
|
401
|
+
*/
|
|
402
|
+
declare const RETIRED_VIDEO_PROVIDERS: Readonly<Record<string, string>>;
|
|
403
|
+
/** A retired video model id becomes the id it runs as; any other value passes through unchanged. Own properties only. */
|
|
404
|
+
declare function canonicalVideoProvider<T>(provider: T): T | string;
|
|
389
405
|
/**
|
|
390
406
|
* Resolve a (possibly base / cross-mode) video provider id to the concrete KIE
|
|
391
407
|
* id for the given execution mode. Accepts any member id of an alias group
|
|
392
408
|
* (base, i2v, or t2v) so existing workflows that stored either mode's id keep
|
|
393
|
-
* working
|
|
409
|
+
* working, and a retired id ({@link RETIRED_VIDEO_PROVIDERS}) as the model it
|
|
410
|
+
* runs as. Non-aliased providers (single-id models, VEO, Replicate, etc.) pass
|
|
394
411
|
* through unchanged.
|
|
395
412
|
*/
|
|
396
|
-
declare function resolveVideoProviderForMode(
|
|
413
|
+
declare function resolveVideoProviderForMode(rawProvider: string, mode: "image-to-video" | "text-to-video"): string;
|
|
397
414
|
/**
|
|
398
415
|
* Which execution mode a unified Generate Video run takes from what is wired.
|
|
399
416
|
* Shared by the frontend DAG executor (`execute-node.ts`) and the backend
|
|
@@ -1537,7 +1554,7 @@ type LocationAtmosphereProvider = (typeof LOCATION_ATMOSPHERE_PROVIDERS)[number]
|
|
|
1537
1554
|
* Phase 2 candidate for adding veo3.1 if demand for premium hero shots
|
|
1538
1555
|
* materializes.
|
|
1539
1556
|
*/
|
|
1540
|
-
declare const OBJECT_MOTION_PROVIDERS: readonly ["kling-turbo", "kling", "kling-3.0", "minimax", "hailuo-2.3", "wan-i2v", "seedance", "bytedance-lite"];
|
|
1557
|
+
declare const OBJECT_MOTION_PROVIDERS: readonly ["kling-turbo", "kling", "kling-3.0", "minimax", "hailuo-2.3", "wan-i2v", "seedance-2-mini", "bytedance-lite"];
|
|
1541
1558
|
type ObjectMotionProvider = (typeof OBJECT_MOTION_PROVIDERS)[number];
|
|
1542
1559
|
/**
|
|
1543
1560
|
* SceneInputMode — the input-shape contract a video model exposes to the
|
|
@@ -1646,4 +1663,4 @@ declare function applyDefaultVideoSelection<D>(input: {
|
|
|
1646
1663
|
duration: D | number | undefined;
|
|
1647
1664
|
};
|
|
1648
1665
|
|
|
1649
|
-
export { IMAGE_TO_VIDEO_PROVIDERS as $, AI_WRITER_PROVIDERS as A, GVP_ANCHOR_CHOICES as B, CHARACTER_MOTION_PROVIDERS as C, DEFAULT_DIALOGUE_PROVIDER as D, EXTEND_VIDEO_PROVIDERS as E, FACE_SWAP_PROVIDERS as F, GEMINI_OMNI_PROVIDERS as G, GVP_DEFAULT_PROVIDER as H, GVP_END_FRAME_PROVIDERS as I, GVP_EXTEND_PROVIDERS as J, GVP_SUPPORTED_PROVIDERS as K, type GvpAnchorChoice as L, type GvpAnchorWireMode as M, HIGH_QUALITY_PROVIDERS as N, I2I_MASK_SUPPORT as O, I2I_STRENGTH_SUPPORT as P, IDEOGRAM_PROVIDERS as Q, IMAGE_ASPECT_RATIO_VALUES as R, IMAGE_EDIT_PROVIDERS as S, IMAGE_EDIT_TARGET_RESOLUTION_VALUES as T, IMAGE_GEN_PROVIDERS as U, IMAGE_I2I_PROVIDERS as V, IMAGE_MASK_MODE as W, IMAGE_PROMPT_MAX as X, IMAGE_QUALITY_VALUES as Y, IMAGE_RENDERING_SPEED_VALUES as Z, IMAGE_RESOLUTION_VALUES as _, ASPECT_RATIO_DIMENSIONS as a,
|
|
1666
|
+
export { IMAGE_TO_VIDEO_PROVIDERS as $, AI_WRITER_PROVIDERS as A, GVP_ANCHOR_CHOICES as B, CHARACTER_MOTION_PROVIDERS as C, DEFAULT_DIALOGUE_PROVIDER as D, EXTEND_VIDEO_PROVIDERS as E, FACE_SWAP_PROVIDERS as F, GEMINI_OMNI_PROVIDERS as G, GVP_DEFAULT_PROVIDER as H, GVP_END_FRAME_PROVIDERS as I, GVP_EXTEND_PROVIDERS as J, GVP_SUPPORTED_PROVIDERS as K, type GvpAnchorChoice as L, type GvpAnchorWireMode as M, HIGH_QUALITY_PROVIDERS as N, I2I_MASK_SUPPORT as O, I2I_STRENGTH_SUPPORT as P, IDEOGRAM_PROVIDERS as Q, IMAGE_ASPECT_RATIO_VALUES as R, IMAGE_EDIT_PROVIDERS as S, IMAGE_EDIT_TARGET_RESOLUTION_VALUES as T, IMAGE_GEN_PROVIDERS as U, IMAGE_I2I_PROVIDERS as V, IMAGE_MASK_MODE as W, IMAGE_PROMPT_MAX as X, IMAGE_QUALITY_VALUES as Y, IMAGE_RENDERING_SPEED_VALUES as Z, IMAGE_RESOLUTION_VALUES as _, ASPECT_RATIO_DIMENSIONS as a, SEEDANCE_VIDEO_EDIT_SHAPE as a$, type ImageAspectRatio as a0, type ImageEditProvider as a1, type ImageEditTargetResolution as a2, type ImageGenProvider as a3, type ImageI2IProvider as a4, type ImageMaskMode as a5, type ImageQuality as a6, type ImageRenderingSpeed as a7, type ImageResolution as a8, type ImageToVideoProvider as a9, NATIVE_NEGATIVE_VIDEO_PROVIDERS as aA, NEGATIVE_PROMPT_MAX as aB, OBJECT_MOTION_PROVIDERS as aC, type ObjectMotionProvider as aD, PRICING_DEFAULT_DURATION_SEC as aE, PRICING_DEFAULT_RESOLUTION as aF, PROMPT_HARD_CEILING as aG, QA_CHECK_PROVIDERS as aH, type QaCheckProvider as aI, REF_IMAGE_MAX_LIMITS as aJ, RENDERING_SPEED_SUPPORT as aK, REPLICATE_LIP_SYNC_PROVIDERS as aL, RETIRED_VIDEO_PROVIDERS as aM, type RefAudioCheck as aN, type RefAudioProbe as aO, type RefAudioRule as aP, type RefVideoDurationLimit as aQ, SCRIPT_PROVIDERS as aR, SEEDANCE_2_5_REF_LIMITS as aS, SEEDANCE_2_CONTINUATION_REF_SEC as aT, SEEDANCE_2_EXTEND_STITCH as aU, SEEDANCE_2_PROVIDERS as aV, SEEDANCE_2_R2V_MAX_AUDIO_SEC_BY_PROVIDER as aW, SEEDANCE_2_R2V_MIN_REF_VIDEO_SEC as aX, SEEDANCE_2_REF_LIMITS as aY, SEEDANCE_LIP_SYNC_PROVIDERS as aZ, SEEDANCE_VIDEO_EDIT_PROVIDERS as a_, KLING_4_DEFAULT_RESOLUTION as aa, KLING_4_MAX_MIDDLE_FRAMES as ab, KLING_4_PROVIDERS as ac, LIP_SYNC_PROVIDERS as ad, LLM_TEXT_INPUT_MAX as ae, LOCATION_ATMOSPHERE_PROVIDERS as af, type LipSyncProvider as ag, type LocationAtmosphereProvider as ah, MAX_IMAGE_PROMPT_CHARS_BY_PROVIDER as ai, MAX_NEGATIVE_PROMPT_CHARS_BY_PROVIDER as aj, MAX_TTS_CHARS_BY_PROVIDER as ak, MAX_VIDEO_PROMPT_CHARS_BY_PROVIDER as al, MINIMAX_H3_DEFAULT_RESOLUTION as am, MINIMAX_H3_PROVIDERS as an, MODELS_WITH_REFERENCE_IMAGE_SUPPORT as ao, MODIFY_IMAGE_PROVIDERS as ap, MOTION_TRANSFER_PROVIDERS as aq, MUSIC_CREDIT_ID as ar, MUSIC_PROVIDERS as as, MUSIC_PROVIDER_LABELS as at, type ModelPromptingStyle as au, type ModifyImageProvider as av, type MotionTransferProviderType as aw, type MusicProvider as ax, NATIVE_ADAPTIVE_ASPECT as ay, NATIVE_NEGATIVE_PROMPT_MODELS as az, AUDIO_ADDON_PROVIDERS as b, type VideoReferenceSyntax as b$, SEED_SUPPORT as b0, SUNO_ACTIVE_MODELS as b1, SUNO_ADD_TRACK_MODELS as b2, SUNO_DURATION_MODELS as b3, SUNO_HARD_CEILING as b4, SUNO_LEGACY_MODELS as b5, SUNO_MODELS as b6, SUNO_TEXT_MAX as b7, SUNO_TITLE_MAX as b8, type SceneInputMode as b9, VIDEO_AUDIO_CAPABILITY as bA, VIDEO_DURATION_TIERS as bB, VIDEO_GEN_COLLAPSED_T2V_IDS as bC, VIDEO_GEN_PROVIDERS as bD, VIDEO_INPUT_LIP_SYNC_PROVIDERS as bE, VIDEO_MODEL_CAPS as bF, VIDEO_MODE_ALIASES as bG, VIDEO_PROMPT_MAX as bH, VIDEO_PROVIDERS_REQUIRING_IMAGE as bI, VIDEO_PROVIDERS_WITHOUT_DISPATCH as bJ, VIDEO_PROVIDERS_WITH_SEPARATE_FRAME_CHANNEL as bK, VIDEO_REF_AUDIO_RULES as bL, VIDEO_REF_LIMITS_BY_PROVIDER as bM, VIDEO_REF_RATE_PROVIDERS as bN, VIDEO_REF_VIDEO_DURATION_LIMITS as bO, VIDEO_TO_VIDEO_NODE_PROVIDERS as bP, VIDEO_TO_VIDEO_PROVIDERS as bQ, VIDEO_UPSCALE_PROVIDERS as bR, VIDEO_VARIABLE_PRICING as bS, VIDU_Q4_DEFAULT_RESOLUTION as bT, VIDU_Q4_PROVIDERS as bU, VOICE_DESIGN_MODELS as bV, type VideoAudioCapability as bW, type VideoAudioMode as bX, type VideoGenProvider as bY, type VideoModeAlias as bZ, type VideoModelCapabilities as b_, SceneInputModeSchema as ba, type ScriptProvider as bb, type SeedanceVideoEditProvider as bc, type SunoAddTrackModel as bd, type SunoModel as be, T2I_TO_I2I_VARIANT as bf, TASK_CHAINED_EDIT_PROVIDERS as bg, TASK_CHAINED_EDIT_PROVIDER_IDS as bh, TEXT_TO_AUDIO_PROVIDERS as bi, TEXT_TO_VIDEO_PROVIDERS as bj, TRANSCRIBE_LANES as bk, TRANSCRIBE_PROVIDERS as bl, TRANSCRIBE_PROVIDER_CAPABILITIES as bm, TTS_PROVIDERS as bn, TTS_TEXT_MAX as bo, TWO_K_RESOLUTION_PROVIDERS as bp, type TaskChainedEditProvider as bq, type TextToAudioProvider as br, type TextToVideoProvider as bs, type TranscribeLane as bt, type TranscribeProvider as bu, type TtsProvider as bv, UPSCALE_IMAGE_PROVIDERS as bw, type UpscaleImageProvider as bx, VARIABLE_PRICING_MODELS as by, VEO_PROVIDERS as bz, type AiWriterProvider as c, videoProviderAppendsFrames as c$, type VideoToVideoNodeProvider as c0, type VideoToVideoProvider as c1, type VideoUpscaleProvider as c2, type VoiceDesignModel as c3, WAN_3_DEFAULT_RESOLUTION as c4, WAN_3_PROVIDERS as c5, applyDefaultVideoSelection as c6, applyVideoAudioToggle as c7, applyVideoNegativePrompt as c8, billsReferenceVideoSeconds as c9, maxSegmentsFor as cA, maxVideoDurationSec as cB, minSegmentSecFor as cC, modelsForInputMode as cD, normalizeKling4Resolution as cE, normalizeMinimaxH3Resolution as cF, normalizeViduQ4Resolution as cG, normalizeWan3Resolution as cH, preferredInputModeForModel as cI, pricedOutputDurationSec as cJ, resolveGvpAnchorWire as cK, resolveMusicProvider as cL, resolveVideoModeForInputs as cM, resolveVideoProviderForMode as cN, seedance2AudioLimitSec as cO, segmentDurationsFor as cP, snapToNearestDuration as cQ, sunoModelHonoursDuration as cR, supportsAutoVideoDuration as cS, supportsEndAnchor as cT, supportsExtendRender as cU, transcribeLaneSupportsWordTimestamps as cV, transcribeProvidersWithWordTimestamps as cW, videoDefaultDurationSec as cX, videoModelCanSpeakDialogue as cY, videoModelSupportsAudio as cZ, videoNegativeSuffix as c_, canonicalVideoProvider as ca, checkRefAudioRules as cb, checkRefVideoDurations as cc, defaultVideoAspectRatio as cd, findSeedance2AudioOverLimit as ce, getMaxImagePromptChars as cf, getMaxNegativePromptChars as cg, getMaxSunoPromptChars as ch, getMaxSunoStyleChars as ci, getMaxTtsChars as cj, getMaxVideoPromptChars as ck, getVideoAudioCapability as cl, hasContiguousSegmentDurations as cm, imageReferenceLimit as cn, isGeminiOmniProvider as co, isGvpSupportedProvider as cp, isKling4Provider as cq, isLegacySunoModel as cr, isMinimaxH3Provider as cs, isSeedance2Provider as ct, isSeedanceVideoEditProvider as cu, isVeoProvider as cv, isViduQ4Provider as cw, isWan3Provider as cx, kling4KeyframeFrameCap as cy, maxSegmentSecFor as cz, COMPOSER_PLAN_FIELDS as d, videoProviderFoldsLoneEndFrame as d0, videoProviderRefModeFrameSeats as d1, videoProviderReferenceSyntax as d2, videoProviderRequiresImage as d3, videoProviderRunsFromReferences as d4, COMPOSER_PLAN_MAP as e, CREDIT_BASE_USD as f, type CharacterMotionProvider as g, DEFAULT_MUSIC_PROVIDER as h, DEFAULT_REF_IMAGE_MAX as i, DEFAULT_SUNO_MODEL as j, DEFAULT_TEXT_TO_AUDIO_PROVIDER as k, DEFAULT_TRANSCRIBE_NODE_PROVIDER as l, DEFAULT_TRANSCRIBE_PROVIDER as m, DEFAULT_TTS_PROVIDER as n, DEFAULT_VIDEO_DURATION_SEC as o, DEFAULT_VIDEO_PROVIDER as p, DEFAULT_VOICE_DESIGN_MODEL as q, DIALOGUE_PROVIDERS as r, DURATION_PRICED_PROVIDERS as s, type DialogueProvider as t, type ExtendVideoProvider as u, FAL_LIP_SYNC_PROVIDERS as v, FLEXIBLE_INPUT_LIP_SYNC_PROVIDERS as w, FRAME_MODE_ADAPTIVE_ONLY_ASPECT as x, type FaceSwapProvider as y, GUIDANCE_SCALE_SUPPORT as z };
|
package/package.json
CHANGED
|
@@ -516,38 +516,19 @@ describe("buildVideoCreditModelIdentifier", () => {
|
|
|
516
516
|
})
|
|
517
517
|
})
|
|
518
518
|
|
|
519
|
-
// --- seedance
|
|
520
|
-
describe("seedance
|
|
521
|
-
it(
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
it("6s is charged as the 4s the runner renders (nearest offered length, a tie goes shorter)", () => {
|
|
534
|
-
expect(buildVideoCreditModelIdentifier("seedance", 6)).toBe("seedance:4s")
|
|
535
|
-
})
|
|
536
|
-
|
|
537
|
-
it("12s -> :12s", () => {
|
|
538
|
-
expect(buildVideoCreditModelIdentifier("seedance", 12)).toBe("seedance:12s")
|
|
539
|
-
})
|
|
540
|
-
|
|
541
|
-
it("10s is charged as the 8s the runner renders (nearest offered length)", () => {
|
|
542
|
-
expect(buildVideoCreditModelIdentifier("seedance", 10)).toBe("seedance:8s")
|
|
543
|
-
})
|
|
544
|
-
|
|
545
|
-
it("11s is charged as the 12s the runner renders", () => {
|
|
546
|
-
expect(buildVideoCreditModelIdentifier("seedance", 11)).toBe("seedance:12s")
|
|
547
|
-
})
|
|
548
|
-
|
|
549
|
-
it("exceeding max clamps to 12s", () => {
|
|
550
|
-
expect(buildVideoCreditModelIdentifier("seedance", 20)).toBe("seedance:12s")
|
|
519
|
+
// --- seedance (Seedance 1.5, retired 2026-10-25) ---
|
|
520
|
+
describe("a retired seedance is priced as the seedance-2-mini it runs as", () => {
|
|
521
|
+
it.each([
|
|
522
|
+
[4, undefined],
|
|
523
|
+
[8, undefined],
|
|
524
|
+
[12, "720p"],
|
|
525
|
+
[8, "480p"],
|
|
526
|
+
] as const)("%ss %s", (duration, resolution) => {
|
|
527
|
+
for (const nodeType of ["image-to-video", "text-to-video"] as const) {
|
|
528
|
+
const asMini = buildVideoCreditModelIdentifier("seedance-2-mini", duration, undefined, nodeType, undefined, resolution)
|
|
529
|
+
expect(buildVideoCreditModelIdentifier("seedance", duration, undefined, nodeType, undefined, resolution)).toBe(asMini)
|
|
530
|
+
expect(asMini.startsWith("seedance-2-mini")).toBe(true)
|
|
531
|
+
}
|
|
551
532
|
})
|
|
552
533
|
})
|
|
553
534
|
|
|
@@ -40,8 +40,6 @@ describe("pricedOutputDurationSec", () => {
|
|
|
40
40
|
expect(pricedOutputDurationSec("kling", 8)).toBe(10)
|
|
41
41
|
expect(pricedOutputDurationSec("grok-i2v", 8)).toBe(6)
|
|
42
42
|
expect(pricedOutputDurationSec("grok-i2v", 15)).toBe(10)
|
|
43
|
-
expect(pricedOutputDurationSec("seedance", 6)).toBe(4)
|
|
44
|
-
expect(pricedOutputDurationSec("seedance", 10)).toBe(8)
|
|
45
43
|
})
|
|
46
44
|
|
|
47
45
|
it("snapToNearestDuration is the runners' rule: offered values pass, ties go to the earlier entry", () => {
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { describe, expect, it } from "vitest"
|
|
2
|
+
import {
|
|
3
|
+
IMAGE_TO_VIDEO_PROVIDERS,
|
|
4
|
+
OBJECT_MOTION_PROVIDERS,
|
|
5
|
+
RETIRED_VIDEO_PROVIDERS,
|
|
6
|
+
TEXT_TO_VIDEO_PROVIDERS,
|
|
7
|
+
canonicalVideoProvider,
|
|
8
|
+
} from "../model-constants.js"
|
|
9
|
+
import { MODEL_CATALOG } from "../model-catalog.js"
|
|
10
|
+
import { PIPELINE_PINNABLE_VIDEO_MODELS, PipelineConfigSchema } from "../pipeline-types.js"
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* A retired video model (Seedance 1.5, retired upstream 2026-10-25) has no
|
|
14
|
+
* catalog entry and is in no provider list; every stored or sent copy of its
|
|
15
|
+
* id runs as the model it became.
|
|
16
|
+
*/
|
|
17
|
+
describe("RETIRED_VIDEO_PROVIDERS", () => {
|
|
18
|
+
it("a retired id is gone from the catalog and every provider list; the model it runs as is live in both modes", () => {
|
|
19
|
+
for (const [retired, runsAs] of Object.entries(RETIRED_VIDEO_PROVIDERS)) {
|
|
20
|
+
expect(MODEL_CATALOG[retired], retired).toBeUndefined()
|
|
21
|
+
for (const list of [IMAGE_TO_VIDEO_PROVIDERS, TEXT_TO_VIDEO_PROVIDERS, OBJECT_MOTION_PROVIDERS, PIPELINE_PINNABLE_VIDEO_MODELS]) {
|
|
22
|
+
expect((list as readonly string[]).includes(retired), retired).toBe(false)
|
|
23
|
+
}
|
|
24
|
+
expect(MODEL_CATALOG[runsAs]?.kind, runsAs).toBe("video")
|
|
25
|
+
expect((IMAGE_TO_VIDEO_PROVIDERS as readonly string[]).includes(runsAs)).toBe(true)
|
|
26
|
+
expect((TEXT_TO_VIDEO_PROVIDERS as readonly string[]).includes(runsAs)).toBe(true)
|
|
27
|
+
}
|
|
28
|
+
})
|
|
29
|
+
|
|
30
|
+
it("canonicalVideoProvider maps a retired id and passes anything else through", () => {
|
|
31
|
+
expect(canonicalVideoProvider("seedance")).toBe("seedance-2-mini")
|
|
32
|
+
expect(canonicalVideoProvider("seedance-2")).toBe("seedance-2")
|
|
33
|
+
expect(canonicalVideoProvider(undefined)).toBeUndefined()
|
|
34
|
+
expect(canonicalVideoProvider("constructor")).toBe("constructor")
|
|
35
|
+
})
|
|
36
|
+
|
|
37
|
+
it("a saved pipeline pinned to a retired model reads as the model it runs as", () => {
|
|
38
|
+
const parsed = PipelineConfigSchema.parse({ video_model: "seedance", stage_models: { shots_video: "seedance" } })
|
|
39
|
+
expect(parsed.video_model).toBe("seedance-2-mini")
|
|
40
|
+
expect(parsed.stage_models?.shots_video).toBe("seedance-2-mini")
|
|
41
|
+
})
|
|
42
|
+
})
|
|
@@ -57,12 +57,6 @@ describe("getVideoAudioCapability", () => {
|
|
|
57
57
|
}
|
|
58
58
|
})
|
|
59
59
|
|
|
60
|
-
it("returns ambient (audio but not dialogue) for Seedance 1.x", () => {
|
|
61
|
-
const cap = getVideoAudioCapability("seedance")
|
|
62
|
-
expect(cap.mode).toBe("ambient")
|
|
63
|
-
expect(cap.field).toBe("generateAudio")
|
|
64
|
-
})
|
|
65
|
-
|
|
66
60
|
it("returns ambient with the `audio` field for the Wan 3.0 family", () => {
|
|
67
61
|
// Wan 3.0's lever is literally `input.audio` — neither `sound` nor
|
|
68
62
|
// `generate_audio`. Classified "ambient", NOT audio_driven: the KIE schema
|
|
@@ -125,7 +119,6 @@ describe("videoModelSupportsAudio", () => {
|
|
|
125
119
|
expect(videoModelSupportsAudio("kling-3.0")).toBe(true)
|
|
126
120
|
expect(videoModelSupportsAudio("kling-3-omni")).toBe(true)
|
|
127
121
|
expect(videoModelSupportsAudio("seedance-2")).toBe(true)
|
|
128
|
-
expect(videoModelSupportsAudio("seedance")).toBe(true)
|
|
129
122
|
expect(videoModelSupportsAudio("gemini-omni-video")).toBe(true)
|
|
130
123
|
expect(videoModelSupportsAudio("gemini-omni-flash")).toBe(true)
|
|
131
124
|
expect(videoModelSupportsAudio("minimax")).toBe(false)
|
|
@@ -145,8 +138,6 @@ describe("videoModelCanSpeakDialogue", () => {
|
|
|
145
138
|
expect(videoModelCanSpeakDialogue("kling")).toBe(true)
|
|
146
139
|
expect(videoModelCanSpeakDialogue("kling-3.0")).toBe(true)
|
|
147
140
|
expect(videoModelCanSpeakDialogue("kling-3-omni")).toBe(true)
|
|
148
|
-
// ambient-only models are NOT dialogue-capable — their audio is SFX/ambient
|
|
149
|
-
expect(videoModelCanSpeakDialogue("seedance")).toBe(false)
|
|
150
141
|
// Gemini Omni generates an audio track on every render, but its documented
|
|
151
142
|
// dialogue path is multi-turn extension, which our transport cannot reach.
|
|
152
143
|
expect(videoModelCanSpeakDialogue("gemini-omni-video")).toBe(false)
|
|
@@ -232,9 +223,9 @@ describe("applyVideoAudioToggle — neutral audio intent → per-model KIE field
|
|
|
232
223
|
applyVideoAudioToggle(off, "seedance-2", { sound: false })
|
|
233
224
|
expect(off.generate_audio).toBe(false)
|
|
234
225
|
|
|
235
|
-
const
|
|
236
|
-
applyVideoAudioToggle(
|
|
237
|
-
expect(
|
|
226
|
+
const mini: Record<string, unknown> = {}
|
|
227
|
+
applyVideoAudioToggle(mini, "seedance-2-mini", { sound: true })
|
|
228
|
+
expect(mini.generate_audio).toBe(true)
|
|
238
229
|
})
|
|
239
230
|
|
|
240
231
|
it("maps the neutral toggle onto Wan 3.0's `audio` field", () => {
|
|
@@ -264,7 +255,7 @@ describe("applyVideoAudioToggle — neutral audio intent → per-model KIE field
|
|
|
264
255
|
|
|
265
256
|
it("accepts `generateAudio` as a legacy alias on FREE models (Seedance)", () => {
|
|
266
257
|
const input: Record<string, unknown> = {}
|
|
267
|
-
applyVideoAudioToggle(input, "seedance", { generateAudio: true })
|
|
258
|
+
applyVideoAudioToggle(input, "seedance-2-mini", { generateAudio: true })
|
|
268
259
|
expect(input.generate_audio).toBe(true)
|
|
269
260
|
})
|
|
270
261
|
|
|
@@ -5,7 +5,9 @@ import {
|
|
|
5
5
|
VIDEO_MASK_DEFAULTS,
|
|
6
6
|
VIDEO_MASK_LIMITS,
|
|
7
7
|
VIDEO_MASK_PROVIDERS,
|
|
8
|
+
VIDEO_MASK_RECIPE,
|
|
8
9
|
resolveVideoMaskProvider,
|
|
10
|
+
resolveVideoMaskRedetectSec,
|
|
9
11
|
resolveVideoMaskZone,
|
|
10
12
|
videoMaskBilledSeconds,
|
|
11
13
|
videoMaskCreditId,
|
|
@@ -92,6 +94,28 @@ describe("Video Mask perShot", () => {
|
|
|
92
94
|
})
|
|
93
95
|
})
|
|
94
96
|
|
|
97
|
+
describe("Video Mask redetectEverySec", () => {
|
|
98
|
+
it("is off by default (0), with a 1–10 s range", () => {
|
|
99
|
+
expect(VIDEO_MASK_DEFAULTS.redetectEverySec).toBe(0)
|
|
100
|
+
expect(VIDEO_MASK_LIMITS.REDETECT_EVERY_SEC_MIN).toBe(1)
|
|
101
|
+
expect(VIDEO_MASK_LIMITS.REDETECT_EVERY_SEC_MAX).toBe(10)
|
|
102
|
+
})
|
|
103
|
+
|
|
104
|
+
it("resolveVideoMaskRedetectSec: absent / 0 / negative / not a number = 0; above 0 clamped to 1–10", () => {
|
|
105
|
+
expect(resolveVideoMaskRedetectSec(undefined)).toBe(0)
|
|
106
|
+
expect(resolveVideoMaskRedetectSec(null)).toBe(0)
|
|
107
|
+
expect(resolveVideoMaskRedetectSec(0)).toBe(0)
|
|
108
|
+
expect(resolveVideoMaskRedetectSec(-2)).toBe(0)
|
|
109
|
+
expect(resolveVideoMaskRedetectSec("1")).toBe(0)
|
|
110
|
+
expect(resolveVideoMaskRedetectSec(Number.NaN)).toBe(0)
|
|
111
|
+
expect(resolveVideoMaskRedetectSec(Infinity)).toBe(0)
|
|
112
|
+
expect(resolveVideoMaskRedetectSec(1)).toBe(1)
|
|
113
|
+
expect(resolveVideoMaskRedetectSec(2.5)).toBe(2.5)
|
|
114
|
+
expect(resolveVideoMaskRedetectSec(0.4)).toBe(1)
|
|
115
|
+
expect(resolveVideoMaskRedetectSec(30)).toBe(10)
|
|
116
|
+
})
|
|
117
|
+
})
|
|
118
|
+
|
|
95
119
|
describe("Mask Composite units", () => {
|
|
96
120
|
// Repeated in docs/nodes/processing-video/mask-composite.md (at the 10-credit row).
|
|
97
121
|
it.each([[3, 1], [5, 1], [10, 2], [10.0000001, 2], [61, 13], [300, 60]])("%s s → %s unit(s)", (sec, units) => {
|
|
@@ -102,3 +126,10 @@ describe("Mask Composite units", () => {
|
|
|
102
126
|
expect(maskCompositeUnits(900)).toBe(60)
|
|
103
127
|
})
|
|
104
128
|
})
|
|
129
|
+
|
|
130
|
+
describe("VIDEO_MASK_RECIPE", () => {
|
|
131
|
+
it("names the algorithm that makes today's masks (the lone-spike cut rule and the 1 s hold cap)", () => {
|
|
132
|
+
expect(VIDEO_MASK_RECIPE).toBe("2026-10-25")
|
|
133
|
+
expect(VIDEO_MASK_LIMITS.HOLD_MAX_SEC).toBe(1)
|
|
134
|
+
})
|
|
135
|
+
})
|
|
@@ -7,6 +7,7 @@ import {
|
|
|
7
7
|
VIDEO_GEN_COLLAPSED_T2V_IDS,
|
|
8
8
|
VIDEO_PROVIDERS_REQUIRING_IMAGE,
|
|
9
9
|
resolveVideoProviderForMode,
|
|
10
|
+
RETIRED_VIDEO_PROVIDERS,
|
|
10
11
|
} from "../model-constants.js"
|
|
11
12
|
|
|
12
13
|
const I2V = "image-to-video"
|
|
@@ -48,12 +49,20 @@ describe("resolveVideoProviderForMode", () => {
|
|
|
48
49
|
})
|
|
49
50
|
|
|
50
51
|
it("passes non-aliased providers through unchanged in both modes", () => {
|
|
51
|
-
for (const p of ["kling", "seedance", "veo3", "minimax", "ltx-2.3-pro"]) {
|
|
52
|
+
for (const p of ["kling", "seedance-2", "veo3", "minimax", "ltx-2.3-pro"]) {
|
|
52
53
|
expect(resolveVideoProviderForMode(p, I2V)).toBe(p)
|
|
53
54
|
expect(resolveVideoProviderForMode(p, T2V)).toBe(p)
|
|
54
55
|
}
|
|
55
56
|
})
|
|
56
57
|
|
|
58
|
+
it("resolves a retired id to the model it runs as, in both modes", () => {
|
|
59
|
+
for (const [retired, runsAs] of Object.entries(RETIRED_VIDEO_PROVIDERS)) {
|
|
60
|
+
expect(resolveVideoProviderForMode(retired, I2V)).toBe(runsAs)
|
|
61
|
+
expect(resolveVideoProviderForMode(retired, T2V)).toBe(runsAs)
|
|
62
|
+
}
|
|
63
|
+
expect(resolveVideoProviderForMode("seedance", I2V)).toBe("seedance-2-mini")
|
|
64
|
+
})
|
|
65
|
+
|
|
57
66
|
it("passes single-id i2v-only models (grok-imagine-video-1.5) through unchanged", () => {
|
|
58
67
|
// It is its own id in both arrays — never aliased, so no remap.
|
|
59
68
|
expect(resolveVideoProviderForMode("grok-imagine-video-1.5", I2V)).toBe("grok-imagine-video-1.5")
|
|
@@ -32,6 +32,7 @@ import {
|
|
|
32
32
|
normalizeWan3Resolution,
|
|
33
33
|
normalizeViduQ4Resolution,
|
|
34
34
|
getVideoAudioCapability,
|
|
35
|
+
canonicalVideoProvider,
|
|
35
36
|
} from "./model-constants.js"
|
|
36
37
|
import { isFlux2Model, FLUX2_RES_MP, type Flux2Model } from "./flux2-pricing.js"
|
|
37
38
|
import { VIDEO_DURATION_AUTO } from "./video-duration-auto.js"
|
|
@@ -354,7 +355,7 @@ function wireNormalizedResolution(provider: string, resolution: string | undefin
|
|
|
354
355
|
}
|
|
355
356
|
|
|
356
357
|
export function buildVideoCreditModelIdentifier(
|
|
357
|
-
|
|
358
|
+
rawProvider: string,
|
|
358
359
|
duration?: number | string,
|
|
359
360
|
sound?: boolean,
|
|
360
361
|
nodeType?: "image-to-video" | "text-to-video",
|
|
@@ -362,6 +363,8 @@ export function buildVideoCreditModelIdentifier(
|
|
|
362
363
|
resolution?: string,
|
|
363
364
|
hasVideoRef?: boolean,
|
|
364
365
|
): string {
|
|
366
|
+
// A retired model (RETIRED_VIDEO_PROVIDERS) is priced as the model it runs as.
|
|
367
|
+
const provider = canonicalVideoProvider(rawProvider) as string
|
|
365
368
|
// T2V overrides: some providers have different base costs for text-to-video
|
|
366
369
|
let effectiveProvider = provider
|
|
367
370
|
if (nodeType === "text-to-video") {
|
package/src/entries/models.ts
CHANGED
|
@@ -133,6 +133,8 @@ export {
|
|
|
133
133
|
videoProviderRequiresImage,
|
|
134
134
|
videoProviderFoldsLoneEndFrame,
|
|
135
135
|
VIDEO_MODE_ALIASES,
|
|
136
|
+
RETIRED_VIDEO_PROVIDERS,
|
|
137
|
+
canonicalVideoProvider,
|
|
136
138
|
VIDEO_GEN_COLLAPSED_T2V_IDS,
|
|
137
139
|
resolveVideoProviderForMode,
|
|
138
140
|
resolveVideoModeForInputs,
|
package/src/film-pricing.ts
CHANGED
|
@@ -52,7 +52,6 @@ export const VIDEO_CLIP_CREDITS: Record<string, VideoClipCost> = {
|
|
|
52
52
|
"kling-turbo": { credits: 11, clipSeconds: 5 }, // kling-turbo:5s
|
|
53
53
|
"kling": { credits: 14, clipSeconds: 5 }, // kling:5s
|
|
54
54
|
"kling-3.0": { credits: 31, clipSeconds: 5 },
|
|
55
|
-
"seedance": { credits: 7, clipSeconds: 8 }, // seedance:8s
|
|
56
55
|
"seedance-2": { credits: 50, clipSeconds: 8 }, // seedance-2:8s:720p-ref
|
|
57
56
|
"seedance-2-fast": { credits: 40, clipSeconds: 8 }, // seedance-2-fast:8s:720p-ref
|
|
58
57
|
"seedance-2-mini": { credits: 25, clipSeconds: 8 }, // seedance-2-mini:8s:720p-ref
|
package/src/model-catalog.ts
CHANGED
|
@@ -1913,28 +1913,9 @@ const VIDEO_MODELS: Record<string, ModelCatalogEntry> = {
|
|
|
1913
1913
|
},
|
|
1914
1914
|
|
|
1915
1915
|
// ── Bytedance Seedance ──
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
modes: ["i2v", "t2v"] as const,
|
|
1920
|
-
family: "Bytedance",
|
|
1921
|
-
maker: "bytedance",
|
|
1922
|
-
label: "Seedance 1.5 Pro",
|
|
1923
|
-
series: "Seedance",
|
|
1924
|
-
description: "Bytedance Seedance 1.5 Pro — flexible duration (4/8/12s) with end-frame support.",
|
|
1925
|
-
useCases: ["motion", "narrative"],
|
|
1926
|
-
features: ["end-frame"],
|
|
1927
|
-
durations: [4, 8, 12],
|
|
1928
|
-
defaultDuration: 8,
|
|
1929
|
-
resolutions: ["480p", "720p", "1080p"],
|
|
1930
|
-
pricing: [
|
|
1931
|
-
{ identifier: "seedance", credits: 250, note: "8s default" },
|
|
1932
|
-
{ identifier: "seedance:4s", credits: 40 },
|
|
1933
|
-
{ identifier: "seedance:8s", credits: 70 },
|
|
1934
|
-
{ identifier: "seedance:12s", credits: 150 },
|
|
1935
|
-
],
|
|
1936
|
-
mcpHidden: true,
|
|
1937
|
-
},
|
|
1916
|
+
// `seedance` (Seedance 1.5 Pro) was retired upstream 2026-10-25 — KIE answers
|
|
1917
|
+
// 410. No entry: a stored or sent "seedance" runs as Seedance 2 Mini through
|
|
1918
|
+
// RETIRED_VIDEO_PROVIDERS (model-constants).
|
|
1938
1919
|
"seedance-2": {
|
|
1939
1920
|
id: "seedance-2",
|
|
1940
1921
|
kind: "video",
|
package/src/model-constants.ts
CHANGED
|
@@ -262,7 +262,6 @@ export const MAX_VIDEO_PROMPT_CHARS_BY_PROVIDER: Record<string, number> = {
|
|
|
262
262
|
"hailuo-standard": 1500,
|
|
263
263
|
"hailuo-2.3-pro": 1500, // t2v 1500 / i2v 5000 → smaller, safe for both modes
|
|
264
264
|
"hailuo-2.3": 5000,
|
|
265
|
-
"seedance": 2500, // Seedance 1.5 Pro
|
|
266
265
|
"wan": 5000,
|
|
267
266
|
"wan-i2v": 5000,
|
|
268
267
|
"wan-turbo": 5000,
|
|
@@ -886,7 +885,6 @@ export const IMAGE_TO_VIDEO_PROVIDERS = [
|
|
|
886
885
|
"kling-turbo",
|
|
887
886
|
"kling-3.0",
|
|
888
887
|
"kling-master",
|
|
889
|
-
"seedance",
|
|
890
888
|
"seedance-2",
|
|
891
889
|
"seedance-2-fast",
|
|
892
890
|
"seedance-2-mini",
|
|
@@ -944,7 +942,6 @@ export const TEXT_TO_VIDEO_PROVIDERS = [
|
|
|
944
942
|
"kling-turbo",
|
|
945
943
|
"kling-3.0",
|
|
946
944
|
"grok",
|
|
947
|
-
"seedance",
|
|
948
945
|
"seedance-2",
|
|
949
946
|
"seedance-2-fast",
|
|
950
947
|
"seedance-2-mini",
|
|
@@ -1040,17 +1037,43 @@ export const VIDEO_MODE_ALIASES: readonly VideoModeAlias[] = [
|
|
|
1040
1037
|
{ base: "happyhorse-i2v", i2v: "happyhorse-i2v", t2v: "happyhorse" },
|
|
1041
1038
|
] as const
|
|
1042
1039
|
|
|
1040
|
+
/**
|
|
1041
|
+
* Video model ids the provider retired, each with the model it now runs as.
|
|
1042
|
+
* They have no catalog entry and are in no provider list: every boundary that
|
|
1043
|
+
* receives a stored or sent id (editor load, a run's payload and its estimate,
|
|
1044
|
+
* a request body, the video worker, a pipeline pin, the MCP model choice, the
|
|
1045
|
+
* credit id) passes it through {@link canonicalVideoProvider} first,
|
|
1046
|
+
* so a saved node, an app run or an API call naming one keeps working and is
|
|
1047
|
+
* priced as the model it runs as.
|
|
1048
|
+
*
|
|
1049
|
+
* - `seedance` (Seedance 1.5 Pro, KIE `bytedance/seedance-1.5-pro`): retired
|
|
1050
|
+
* upstream 2026-10-25 (KIE answers 410). Runs as Seedance 2 Mini, the
|
|
1051
|
+
* cheapest Seedance left (owner's decision 2026-10-25).
|
|
1052
|
+
*/
|
|
1053
|
+
export const RETIRED_VIDEO_PROVIDERS: Readonly<Record<string, string>> = {
|
|
1054
|
+
seedance: "seedance-2-mini",
|
|
1055
|
+
}
|
|
1056
|
+
|
|
1057
|
+
/** A retired video model id becomes the id it runs as; any other value passes through unchanged. Own properties only. */
|
|
1058
|
+
export function canonicalVideoProvider<T>(provider: T): T | string {
|
|
1059
|
+
return typeof provider === "string" && Object.hasOwn(RETIRED_VIDEO_PROVIDERS, provider)
|
|
1060
|
+
? RETIRED_VIDEO_PROVIDERS[provider]!
|
|
1061
|
+
: provider
|
|
1062
|
+
}
|
|
1063
|
+
|
|
1043
1064
|
/**
|
|
1044
1065
|
* Resolve a (possibly base / cross-mode) video provider id to the concrete KIE
|
|
1045
1066
|
* id for the given execution mode. Accepts any member id of an alias group
|
|
1046
1067
|
* (base, i2v, or t2v) so existing workflows that stored either mode's id keep
|
|
1047
|
-
* working
|
|
1068
|
+
* working, and a retired id ({@link RETIRED_VIDEO_PROVIDERS}) as the model it
|
|
1069
|
+
* runs as. Non-aliased providers (single-id models, VEO, Replicate, etc.) pass
|
|
1048
1070
|
* through unchanged.
|
|
1049
1071
|
*/
|
|
1050
1072
|
export function resolveVideoProviderForMode(
|
|
1051
|
-
|
|
1073
|
+
rawProvider: string,
|
|
1052
1074
|
mode: "image-to-video" | "text-to-video",
|
|
1053
1075
|
): string {
|
|
1076
|
+
const provider = canonicalVideoProvider(rawProvider)
|
|
1054
1077
|
for (const g of VIDEO_MODE_ALIASES) {
|
|
1055
1078
|
if (provider === g.base || provider === g.i2v || provider === g.t2v) {
|
|
1056
1079
|
return mode === "image-to-video" ? g.i2v : g.t2v
|
|
@@ -1747,7 +1770,6 @@ export const DURATION_PRICED_PROVIDERS = new Set([
|
|
|
1747
1770
|
"hailuo-2.3-pro",
|
|
1748
1771
|
"hailuo-2.3",
|
|
1749
1772
|
"hailuo-standard",
|
|
1750
|
-
"seedance",
|
|
1751
1773
|
"seedance-2",
|
|
1752
1774
|
"seedance-2-fast",
|
|
1753
1775
|
"seedance-2-mini",
|
|
@@ -2890,8 +2912,6 @@ export const VIDEO_AUDIO_CAPABILITY: Record<string, VideoAudioCapability> = {
|
|
|
2890
2912
|
// provider config → defaultOn); audio is priced into the flat per-duration
|
|
2891
2913
|
// rate, so NOT cost-affecting (no :audio composite).
|
|
2892
2914
|
"kling-3-omni": { mode: "native_speech", field: "generateAudio", defaultOn: true },
|
|
2893
|
-
// Seedance 1.x — optional ambient audio (generate_audio); not dialogue.
|
|
2894
|
-
seedance: { mode: "ambient", field: "generateAudio" },
|
|
2895
2915
|
// Seedance 2.0 — multimodal; lip-syncs to a supplied reference-audio track.
|
|
2896
2916
|
"seedance-2": { mode: "audio_driven", field: "generateAudio" },
|
|
2897
2917
|
"seedance-2-fast": { mode: "audio_driven", field: "generateAudio" },
|
|
@@ -3076,7 +3096,6 @@ export const VIDEO_VARIABLE_PRICING: Record<string, "duration" | "duration+audio
|
|
|
3076
3096
|
"hailuo-2.3-pro": "duration",
|
|
3077
3097
|
"hailuo-2.3": "duration",
|
|
3078
3098
|
"hailuo-standard": "duration",
|
|
3079
|
-
"seedance": "duration",
|
|
3080
3099
|
"seedance-2": "duration+resolution+ref",
|
|
3081
3100
|
"seedance-2-fast": "duration+resolution+ref",
|
|
3082
3101
|
"seedance-2-mini": "duration+resolution+ref",
|
|
@@ -3324,11 +3343,6 @@ export const VIDEO_DURATION_TIERS: Record<string, Array<{ maxSeconds: number; su
|
|
|
3324
3343
|
{ maxSeconds: 6, suffix: "6s" },
|
|
3325
3344
|
{ maxSeconds: 10, suffix: "10s" },
|
|
3326
3345
|
],
|
|
3327
|
-
"seedance": [
|
|
3328
|
-
{ maxSeconds: 4, suffix: "4s" },
|
|
3329
|
-
{ maxSeconds: 8, suffix: "8s" },
|
|
3330
|
-
{ maxSeconds: 12, suffix: "12s" },
|
|
3331
|
-
],
|
|
3332
3346
|
"seedance-2": [
|
|
3333
3347
|
{ maxSeconds: 4, suffix: "4s" },
|
|
3334
3348
|
{ maxSeconds: 8, suffix: "8s" },
|
|
@@ -3494,7 +3508,7 @@ export const OBJECT_MOTION_PROVIDERS = [
|
|
|
3494
3508
|
"minimax", // 5s, end-frame support
|
|
3495
3509
|
"hailuo-2.3", // 6/10s
|
|
3496
3510
|
"wan-i2v", // 5/10/15s
|
|
3497
|
-
"seedance",
|
|
3511
|
+
"seedance-2-mini", // 4-15s, 480p/720p
|
|
3498
3512
|
"bytedance-lite", // 5/10s
|
|
3499
3513
|
] as const
|
|
3500
3514
|
export type ObjectMotionProvider = (typeof OBJECT_MOTION_PROVIDERS)[number]
|
package/src/pipeline-types.ts
CHANGED
|
@@ -7,6 +7,7 @@ import {
|
|
|
7
7
|
VIDEO_CRITIC_FRAME_MODES,
|
|
8
8
|
} from "./pipeline-defaults.js"
|
|
9
9
|
import { SceneMetadataSchema } from "./scene-node-types.js"
|
|
10
|
+
import { canonicalVideoProvider } from "./model-constants.js"
|
|
10
11
|
|
|
11
12
|
// ─── Input schema (POST /v1/pipelines body) ───────────────────────────────────
|
|
12
13
|
|
|
@@ -74,7 +75,6 @@ export const PIPELINE_PINNABLE_VIDEO_MODELS = [
|
|
|
74
75
|
"kling-turbo",
|
|
75
76
|
"kling",
|
|
76
77
|
"kling-3.0",
|
|
77
|
-
"seedance",
|
|
78
78
|
"seedance-2",
|
|
79
79
|
"seedance-2-fast",
|
|
80
80
|
"seedance-2-mini",
|
|
@@ -119,7 +119,9 @@ export const PIPELINE_ACCEPTED_SCRIPT_LLMS = [
|
|
|
119
119
|
export type PipelinePinnableScriptLlm = (typeof PIPELINE_ACCEPTED_SCRIPT_LLMS)[number]
|
|
120
120
|
|
|
121
121
|
const ImageModelEnum = z.enum(PIPELINE_ACCEPTED_IMAGE_MODELS)
|
|
122
|
-
|
|
122
|
+
// A saved pipeline pinned to a retired video model (RETIRED_VIDEO_PROVIDERS)
|
|
123
|
+
// reads as the model it now runs as, never as an invalid config.
|
|
124
|
+
const VideoModelEnum = z.preprocess(canonicalVideoProvider, z.enum(PIPELINE_PINNABLE_VIDEO_MODELS))
|
|
123
125
|
const ScriptLlmEnum = z.enum(PIPELINE_ACCEPTED_SCRIPT_LLMS)
|
|
124
126
|
|
|
125
127
|
// Per-stage override map. Each stage key maps to a model id valid for its
|
|
@@ -13,7 +13,6 @@ import type { ShotSpec } from "./scene-node-types.js"
|
|
|
13
13
|
* route validation + payload building.
|
|
14
14
|
*/
|
|
15
15
|
export const PROVIDER_DIRECTIVE_DEFAULTS = {
|
|
16
|
-
seedance: { multishot: true, disable_internal_music: true, allow_sfx: true },
|
|
17
16
|
"seedance-2": { multishot: true, disable_internal_music: true, allow_sfx: true },
|
|
18
17
|
veo3: { reference_count: "auto" as const },
|
|
19
18
|
"veo3.1": { reference_count: "auto" as const },
|