@nodaro/shared 3.56.0 → 3.57.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-DURFRWAW.js → chunk-2LRBQOKA.js} +8 -8
- package/dist/{chunk-DURFRWAW.js.map → chunk-2LRBQOKA.js.map} +1 -1
- package/dist/{chunk-JO3XSUO2.cjs → chunk-2LWHRJPB.cjs} +21 -21
- package/dist/{chunk-JO3XSUO2.cjs.map → chunk-2LWHRJPB.cjs.map} +1 -1
- package/dist/{chunk-EAKO7PGC.js → chunk-3SH5ZUNJ.js} +5 -4
- package/dist/{chunk-EAKO7PGC.js.map → chunk-3SH5ZUNJ.js.map} +1 -1
- package/dist/{chunk-O7DXNX5J.cjs → chunk-4KKFO6YR.cjs} +72 -28
- package/dist/chunk-4KKFO6YR.cjs.map +1 -0
- package/dist/{chunk-IKP4GOWZ.cjs → chunk-5SXI7IYW.cjs} +8 -8
- package/dist/{chunk-IKP4GOWZ.cjs.map → chunk-5SXI7IYW.cjs.map} +1 -1
- package/dist/{chunk-2J6NTA5I.js → chunk-6NZWWMVY.js} +5 -5
- package/dist/chunk-6NZWWMVY.js.map +1 -0
- package/dist/{chunk-AKDJKMAL.cjs → chunk-ALVO5Q36.cjs} +4 -4
- package/dist/{chunk-AKDJKMAL.cjs.map → chunk-ALVO5Q36.cjs.map} +1 -1
- package/dist/{chunk-HWJE4FNS.cjs → chunk-ASSJKIZO.cjs} +5 -5
- package/dist/{chunk-HWJE4FNS.cjs.map → chunk-ASSJKIZO.cjs.map} +1 -1
- package/dist/{chunk-4ONS6QRT.js → chunk-BBMK5XNO.js} +3 -3
- package/dist/{chunk-4ONS6QRT.js.map → chunk-BBMK5XNO.js.map} +1 -1
- package/dist/{chunk-EWARI452.cjs → chunk-BH2IDJVO.cjs} +46 -46
- package/dist/chunk-BH2IDJVO.cjs.map +1 -0
- package/dist/{chunk-4JODLC2N.js → chunk-C3E6UZS4.js} +3 -3
- package/dist/{chunk-4JODLC2N.js.map → chunk-C3E6UZS4.js.map} +1 -1
- package/dist/{chunk-4O5STV7N.js → chunk-D56ALOLY.js} +3 -3
- package/dist/{chunk-4O5STV7N.js.map → chunk-D56ALOLY.js.map} +1 -1
- package/dist/{chunk-ZXDH3L3P.cjs → chunk-D5J332XS.cjs} +40 -39
- package/dist/{chunk-ZXDH3L3P.cjs.map → chunk-D5J332XS.cjs.map} +1 -1
- package/dist/{chunk-62ZQQA7L.js → chunk-EXCZD5ZY.js} +3 -3
- package/dist/{chunk-62ZQQA7L.js.map → chunk-EXCZD5ZY.js.map} +1 -1
- package/dist/{chunk-ILMHITHK.cjs → chunk-FFW2HTR2.cjs} +5 -5
- package/dist/{chunk-ILMHITHK.cjs.map → chunk-FFW2HTR2.cjs.map} +1 -1
- package/dist/{chunk-7DGJDISO.js → chunk-INGQNLY4.js} +3 -3
- package/dist/{chunk-7DGJDISO.js.map → chunk-INGQNLY4.js.map} +1 -1
- package/dist/{chunk-2AR3OXAA.js → chunk-IQS3WQXQ.js} +35 -3
- package/dist/chunk-IQS3WQXQ.js.map +1 -0
- package/dist/{chunk-CGZLENU4.cjs → chunk-JYNW4QK7.cjs} +35 -3
- package/dist/chunk-JYNW4QK7.cjs.map +1 -0
- package/dist/{chunk-MROKQP4U.js → chunk-KZTXGMVH.js} +3 -3
- package/dist/{chunk-MROKQP4U.js.map → chunk-KZTXGMVH.js.map} +1 -1
- package/dist/{chunk-AZDVL7IM.js → chunk-MBKJ7IBS.js} +6 -6
- package/dist/chunk-MBKJ7IBS.js.map +1 -0
- package/dist/{chunk-CLKU3ZIU.cjs → chunk-NJTLBZIP.cjs} +43 -43
- package/dist/{chunk-CLKU3ZIU.cjs.map → chunk-NJTLBZIP.cjs.map} +1 -1
- package/dist/{chunk-33P5FI2U.cjs → chunk-O33WVAYQ.cjs} +6 -6
- package/dist/{chunk-33P5FI2U.cjs.map → chunk-O33WVAYQ.cjs.map} +1 -1
- package/dist/{chunk-H7VMJBNZ.cjs → chunk-OHQBQOGH.cjs} +8 -8
- package/dist/{chunk-H7VMJBNZ.cjs.map → chunk-OHQBQOGH.cjs.map} +1 -1
- package/dist/{chunk-FCQYMPUQ.cjs → chunk-P5KH7GAI.cjs} +4 -4
- package/dist/{chunk-FCQYMPUQ.cjs.map → chunk-P5KH7GAI.cjs.map} +1 -1
- package/dist/{chunk-ZYITB47P.js → chunk-QMP3W5GA.js} +3 -3
- package/dist/{chunk-ZYITB47P.js.map → chunk-QMP3W5GA.js.map} +1 -1
- package/dist/{chunk-55FQBILM.js → chunk-QTTVIQJP.js} +4 -4
- package/dist/{chunk-55FQBILM.js.map → chunk-QTTVIQJP.js.map} +1 -1
- package/dist/{chunk-WKCFTWLO.cjs → chunk-R3OIZ2BM.cjs} +6 -6
- package/dist/{chunk-WKCFTWLO.cjs.map → chunk-R3OIZ2BM.cjs.map} +1 -1
- package/dist/{chunk-ST4WQ6ND.js → chunk-R5GOPHYB.js} +51 -11
- package/dist/chunk-R5GOPHYB.js.map +1 -0
- package/dist/chunk-RKTWLAJO.cjs +27 -0
- package/dist/chunk-RKTWLAJO.cjs.map +1 -0
- package/dist/{chunk-6GGHM33Z.js → chunk-SWPTF7QJ.js} +4 -4
- package/dist/{chunk-6GGHM33Z.js.map → chunk-SWPTF7QJ.js.map} +1 -1
- package/dist/{chunk-JHTYULY2.js → chunk-UFB36LWU.js} +4 -4
- package/dist/{chunk-JHTYULY2.js.map → chunk-UFB36LWU.js.map} +1 -1
- package/dist/{chunk-TSKYEREJ.cjs → chunk-ZLSPGMES.cjs} +11 -11
- package/dist/{chunk-TSKYEREJ.cjs.map → chunk-ZLSPGMES.cjs.map} +1 -1
- package/dist/{chunk-RX7WII6I.js → chunk-ZPPFPQPO.js} +5 -5
- package/dist/{chunk-RX7WII6I.js.map → chunk-ZPPFPQPO.js.map} +1 -1
- package/dist/{chunk-PFXPAWPQ.cjs → chunk-ZSTL4JEJ.cjs} +12 -12
- package/dist/{chunk-PFXPAWPQ.cjs.map → chunk-ZSTL4JEJ.cjs.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/model-catalog.cjs +68 -68
- package/dist/entries/model-catalog.d.cts +2 -2
- package/dist/entries/model-catalog.d.ts +2 -2
- package/dist/entries/model-catalog.js +4 -4
- package/dist/entries/models.cjs +299 -283
- package/dist/entries/models.d.cts +3 -3
- package/dist/entries/models.d.ts +3 -3
- package/dist/entries/models.js +4 -4
- package/dist/entries/nodes.cjs +206 -206
- package/dist/entries/nodes.d.cts +1 -1
- package/dist/entries/nodes.d.ts +1 -1
- package/dist/entries/nodes.js +8 -8
- package/dist/entries/pipeline.cjs +152 -152
- package/dist/entries/pipeline.d.cts +1 -1
- package/dist/entries/pipeline.d.ts +1 -1
- 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 +1081 -1065
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +17 -17
- package/dist/{model-catalog-vQ3NWn24.d.ts → model-catalog-CwkG9xi-.d.cts} +7 -2
- package/dist/{model-catalog-vQ3NWn24.d.cts → model-catalog-CwkG9xi-.d.ts} +7 -2
- package/dist/{model-constants-QZVHZX25.d.ts → model-constants-BbsZSVTA.d.cts} +23 -8
- package/dist/{model-constants-QZVHZX25.d.cts → model-constants-BbsZSVTA.d.ts} +23 -8
- package/package.json +1 -1
- package/src/__tests__/gvp-supported-providers.test.ts +2 -0
- package/src/__tests__/seedance-25-catalog-modes.test.ts +35 -0
- package/src/credit-identifiers.ts +3 -1
- package/src/entries/models.ts +4 -0
- package/src/model-catalog.ts +39 -3
- package/src/model-constants.ts +65 -6
- package/src/node-default-mappings.ts +1 -0
- package/src/video-ui-defaults.ts +2 -1
- package/dist/chunk-2AR3OXAA.js.map +0 -1
- package/dist/chunk-2J6NTA5I.js.map +0 -1
- package/dist/chunk-AZDVL7IM.js.map +0 -1
- package/dist/chunk-CGZLENU4.cjs.map +0 -1
- package/dist/chunk-EWARI452.cjs.map +0 -1
- package/dist/chunk-O7DXNX5J.cjs.map +0 -1
- package/dist/chunk-ST4WQ6ND.js.map +0 -1
- package/dist/chunk-XPUGMYAJ.cjs +0 -27
- package/dist/chunk-XPUGMYAJ.cjs.map +0 -1
|
@@ -374,13 +374,13 @@ type ImageGenProvider = typeof IMAGE_GEN_PROVIDERS[number];
|
|
|
374
374
|
type ImageI2IProvider = typeof IMAGE_I2I_PROVIDERS[number];
|
|
375
375
|
type ImageEditProvider = typeof IMAGE_EDIT_PROVIDERS[number];
|
|
376
376
|
/** Image-to-video providers */
|
|
377
|
-
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"];
|
|
377
|
+
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", "gemini-omni-flash-1-2", "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"];
|
|
378
378
|
type ImageToVideoProvider = typeof IMAGE_TO_VIDEO_PROVIDERS[number];
|
|
379
379
|
/** Text-to-video providers */
|
|
380
|
-
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"];
|
|
380
|
+
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", "gemini-omni-flash-1-2", "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"];
|
|
381
381
|
type TextToVideoProvider = typeof TEXT_TO_VIDEO_PROVIDERS[number];
|
|
382
382
|
/** Unified video-generation providers (image-to-video ∪ text-to-video) for the generate-video node. */
|
|
383
|
-
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")[]];
|
|
383
|
+
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", "gemini-omni-flash-1-2", "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" | "gemini-omni-flash-1-2" | "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")[]];
|
|
384
384
|
type VideoGenProvider = typeof VIDEO_GEN_PROVIDERS[number];
|
|
385
385
|
/**
|
|
386
386
|
* Video models that expose DISTINCT provider ids per mode (text-to-video vs
|
|
@@ -953,6 +953,20 @@ declare function kling4KeyframeFrameCap(durationSec: number | string | undefined
|
|
|
953
953
|
*/
|
|
954
954
|
declare const GEMINI_OMNI_PROVIDERS: Set<string>;
|
|
955
955
|
declare function isGeminiOmniProvider(provider: string | undefined): boolean;
|
|
956
|
+
/**
|
|
957
|
+
* The Gemini Omni SKUs billed per second of video (Gemini Omni Flash 1.2). What
|
|
958
|
+
* the family shares (V2V through the i2v handle, the panels) comes from
|
|
959
|
+
* {@link GEMINI_OMNI_PROVIDERS}. These differ in two ways: the price is a
|
|
960
|
+
* `:<N>s:<res>` ladder, and a run with a source video bills that clip's own
|
|
961
|
+
* seconds and nothing else (the output follows the clip), so they also answer
|
|
962
|
+
* {@link billsReferenceVideoSeconds}.
|
|
963
|
+
*/
|
|
964
|
+
declare const GEMINI_OMNI_PER_SECOND_PROVIDERS: Set<string>;
|
|
965
|
+
declare function isGeminiOmniPerSecondProvider(provider: string | undefined): boolean;
|
|
966
|
+
/** The longest source clip Gemini Omni Flash 1.2 takes (docs.kie.ai/market/google/gemini-omni-flash-1-2). */
|
|
967
|
+
declare const GEMINI_OMNI_12_MAX_SOURCE_SEC = 15;
|
|
968
|
+
/** The widest trim window a request may set on a Gemini Omni source clip, in seconds. */
|
|
969
|
+
declare function videoSourceTrimMaxSec(provider: string | undefined): number;
|
|
956
970
|
/**
|
|
957
971
|
* Video models that are CATALOGUED and priced but have NO working dispatch
|
|
958
972
|
* path today — selecting one fails at the router, not at validation.
|
|
@@ -1288,8 +1302,9 @@ declare function checkRefVideoDurations(provider: string, durationsSec: readonly
|
|
|
1288
1302
|
declare const VIDEO_REF_RATE_PROVIDERS: Set<string>;
|
|
1289
1303
|
/**
|
|
1290
1304
|
* Video models whose reference-VIDEO runs also bill the clips' own seconds:
|
|
1291
|
-
* the Seedance 2 family (`unit × (input + output)`)
|
|
1292
|
-
* VIDEO_REF_RATE_PROVIDERS (Kling 4.0: `unit × (output + max(output, input))`)
|
|
1305
|
+
* the Seedance 2 family (`unit × (input + output)`), the
|
|
1306
|
+
* VIDEO_REF_RATE_PROVIDERS (Kling 4.0: `unit × (output + max(output, input))`)
|
|
1307
|
+
* and the per-second Gemini Omni SKUs (`unit × source clip`, the output follows it).
|
|
1293
1308
|
* The reservation holds the worst case from the probed clips and the
|
|
1294
1309
|
* settlement meters down to what was delivered (backend
|
|
1295
1310
|
* ee/billing/seedance2-ref-video-credits.ts) — this is the one gate every lane
|
|
@@ -1356,8 +1371,8 @@ declare function videoProviderRequiresImage(provider: string | undefined): boole
|
|
|
1356
1371
|
* reference mode takes a lone last frame as the sole reference image plus a
|
|
1357
1372
|
* closing-frame prompt hint. NOTHING else does: VEO ships `[imageUrl,
|
|
1358
1373
|
* endFrameUrl]` verbatim (a lone end frame would reach KIE as `[null, url]`),
|
|
1359
|
-
* the Gemini Omni branch drops the frame when there is no start frame
|
|
1360
|
-
* generic KIE path sends `end_frame` with no image param at all. So the
|
|
1374
|
+
* the per-clip Gemini Omni branch drops the frame when there is no start frame (Omni
|
|
1375
|
+
* Flash 1.2 folds it, with its own builder), and the generic KIE path sends `end_frame` with no image param at all. So the
|
|
1361
1376
|
* exemption is keyed to the FOLD, not to "carries image references" — the
|
|
1362
1377
|
* catalog has no capability for it, and these three family predicates are the
|
|
1363
1378
|
* same membership the provider layer itself branches on (the backend's
|
|
@@ -1702,4 +1717,4 @@ declare function applyDefaultVideoSelection<D>(input: {
|
|
|
1702
1717
|
duration: D | number | undefined;
|
|
1703
1718
|
};
|
|
1704
1719
|
|
|
1705
|
-
export {
|
|
1720
|
+
export { IMAGE_MASK_MODE as $, AI_WRITER_PROVIDERS as A, type FaceSwapProvider as B, CHARACTER_MOTION_PROVIDERS as C, DEFAULT_DIALOGUE_PROVIDER as D, EXTEND_VIDEO_PROVIDERS as E, FACE_SWAP_PROVIDERS as F, GEMINI_OMNI_12_MAX_SOURCE_SEC as G, GEMINI_OMNI_PER_SECOND_PROVIDERS as H, GEMINI_OMNI_PROVIDERS as I, GUIDANCE_SCALE_SUPPORT as J, GVP_ANCHOR_CHOICES as K, GVP_DEFAULT_PROVIDER as L, GVP_END_FRAME_PROVIDERS as M, GVP_EXTEND_PROVIDERS as N, GVP_SUPPORTED_PROVIDERS as O, type GvpAnchorChoice as P, type GvpAnchorWireMode as Q, HIGH_QUALITY_PROVIDERS as R, I2I_MASK_SUPPORT as S, I2I_STRENGTH_SUPPORT as T, IDEOGRAM_PROVIDERS as U, IMAGE_ASPECT_RATIO_VALUES as V, IMAGE_BACKGROUND_VALUES as W, IMAGE_EDIT_PROVIDERS as X, IMAGE_EDIT_TARGET_RESOLUTION_VALUES as Y, IMAGE_GEN_PROVIDERS as Z, IMAGE_I2I_PROVIDERS as _, ASPECT_RATIO_DIMENSIONS as a, SEEDANCE_2_EXTEND_STITCH as a$, IMAGE_PROMPT_MAX as a0, IMAGE_QUALITY_VALUES as a1, IMAGE_RENDERING_SPEED_VALUES as a2, IMAGE_RESOLUTION_VALUES as a3, IMAGE_TO_VIDEO_PROVIDERS as a4, type ImageAspectRatio as a5, type ImageBackground as a6, type ImageEditProvider as a7, type ImageEditTargetResolution as a8, type ImageGenProvider as a9, MUSIC_PROVIDER_LABELS as aA, type ModelPromptingStyle as aB, type ModifyImageProvider as aC, type MotionTransferProviderType as aD, type MusicProvider as aE, NATIVE_ADAPTIVE_ASPECT as aF, NATIVE_NEGATIVE_PROMPT_MODELS as aG, NATIVE_NEGATIVE_VIDEO_PROVIDERS as aH, NEGATIVE_PROMPT_MAX as aI, OBJECT_MOTION_PROVIDERS as aJ, type ObjectMotionProvider as aK, PRICING_DEFAULT_DURATION_SEC as aL, PRICING_DEFAULT_RESOLUTION as aM, PROMPT_HARD_CEILING as aN, QA_CHECK_PROVIDERS as aO, type QaCheckProvider as aP, REF_IMAGE_MAX_LIMITS as aQ, RENDERING_SPEED_SUPPORT as aR, REPLICATE_LIP_SYNC_PROVIDERS as aS, RETIRED_VIDEO_PROVIDERS as aT, type RefAudioCheck as aU, type RefAudioProbe as aV, type RefAudioRule as aW, type RefVideoDurationLimit as aX, SCRIPT_PROVIDERS as aY, SEEDANCE_2_5_REF_LIMITS as aZ, SEEDANCE_2_CONTINUATION_REF_SEC as a_, type ImageI2IProvider as aa, type ImageMaskMode as ab, type ImageQuality as ac, type ImageRenderingSpeed as ad, type ImageResolution as ae, type ImageToVideoProvider as af, KLING_4_DEFAULT_RESOLUTION as ag, KLING_4_MAX_MIDDLE_FRAMES as ah, KLING_4_PROVIDERS as ai, LIP_SYNC_PROVIDERS as aj, LLM_TEXT_INPUT_MAX as ak, LOCATION_ATMOSPHERE_PROVIDERS as al, type LipSyncProvider as am, type LocationAtmosphereProvider as an, MAX_IMAGE_PROMPT_CHARS_BY_PROVIDER as ao, MAX_NEGATIVE_PROMPT_CHARS_BY_PROVIDER as ap, MAX_REQUEST_IMAGE_LIMIT as aq, MAX_TTS_CHARS_BY_PROVIDER as ar, MAX_VIDEO_PROMPT_CHARS_BY_PROVIDER as as, MINIMAX_H3_DEFAULT_RESOLUTION as at, MINIMAX_H3_PROVIDERS as au, MODELS_WITH_REFERENCE_IMAGE_SUPPORT as av, MODIFY_IMAGE_PROVIDERS as aw, MOTION_TRANSFER_PROVIDERS as ax, MUSIC_CREDIT_ID as ay, MUSIC_PROVIDERS as az, AUDIO_ADDON_PROVIDERS as b, VIDEO_UPSCALE_PROVIDERS as b$, SEEDANCE_2_PROVIDERS as b0, SEEDANCE_2_R2V_MAX_AUDIO_SEC_BY_PROVIDER as b1, SEEDANCE_2_R2V_MIN_REF_VIDEO_SEC as b2, SEEDANCE_2_REF_LIMITS as b3, SEEDANCE_LIP_SYNC_PROVIDERS as b4, SEEDANCE_VIDEO_EDIT_PROVIDERS as b5, SEEDANCE_VIDEO_EDIT_SHAPE as b6, SEED_SUPPORT as b7, SUNO_ACTIVE_MODELS as b8, SUNO_ADD_TRACK_MODELS as b9, type TextToAudioProvider as bA, type TextToVideoProvider as bB, type TranscribeLane as bC, type TranscribeProvider as bD, type TtsOutputFormat as bE, type TtsProvider as bF, UPSCALE_IMAGE_PROVIDERS as bG, type UpscaleImageProvider as bH, VARIABLE_PRICING_MODELS as bI, VEO_PROVIDERS as bJ, VIDEO_AUDIO_CAPABILITY as bK, VIDEO_DURATION_TIERS as bL, VIDEO_GEN_COLLAPSED_T2V_IDS as bM, VIDEO_GEN_PROVIDERS as bN, VIDEO_INPUT_LIP_SYNC_PROVIDERS as bO, VIDEO_MODEL_CAPS as bP, VIDEO_MODE_ALIASES as bQ, VIDEO_PROMPT_MAX as bR, VIDEO_PROVIDERS_REQUIRING_IMAGE as bS, VIDEO_PROVIDERS_WITHOUT_DISPATCH as bT, VIDEO_PROVIDERS_WITH_SEPARATE_FRAME_CHANNEL as bU, VIDEO_REF_AUDIO_RULES as bV, VIDEO_REF_LIMITS_BY_PROVIDER as bW, VIDEO_REF_RATE_PROVIDERS as bX, VIDEO_REF_VIDEO_DURATION_LIMITS as bY, VIDEO_TO_VIDEO_NODE_PROVIDERS as bZ, VIDEO_TO_VIDEO_PROVIDERS as b_, SUNO_DURATION_MODELS as ba, SUNO_HARD_CEILING as bb, SUNO_LEGACY_MODELS as bc, SUNO_MODELS as bd, SUNO_TEXT_MAX as be, SUNO_TITLE_MAX as bf, type SceneInputMode as bg, SceneInputModeSchema as bh, type ScriptProvider as bi, type SeedanceVideoEditProvider as bj, type SunoAddTrackModel as bk, type SunoModel as bl, T2I_TO_I2I_VARIANT as bm, TASK_CHAINED_EDIT_PROVIDERS as bn, TASK_CHAINED_EDIT_PROVIDER_IDS as bo, TEXT_TO_AUDIO_PROVIDERS as bp, TEXT_TO_VIDEO_PROVIDERS as bq, TRANSCRIBE_LANES as br, TRANSCRIBE_PROVIDERS as bs, TRANSCRIBE_PROVIDER_CAPABILITIES as bt, TTS_OUTPUT_FORMATS as bu, TTS_OUTPUT_FORMAT_FILES as bv, TTS_PROVIDERS as bw, TTS_TEXT_MAX as bx, TWO_K_RESOLUTION_PROVIDERS as by, type TaskChainedEditProvider as bz, type AiWriterProvider as c, segmentDurationsFor as c$, VIDEO_VARIABLE_PRICING as c0, VIDU_Q4_DEFAULT_RESOLUTION as c1, VIDU_Q4_PROVIDERS as c2, VOICE_DESIGN_MODELS as c3, type VideoAudioCapability as c4, type VideoAudioMode as c5, type VideoGenProvider as c6, type VideoModeAlias as c7, type VideoModelCapabilities as c8, type VideoReferenceSyntax as c9, isGvpSupportedProvider as cA, isKling4Provider as cB, isLegacySunoModel as cC, isMinimaxH3Provider as cD, isSeedance2Provider as cE, isSeedanceVideoEditProvider as cF, isVeoProvider as cG, isViduQ4Provider as cH, isWan3Provider as cI, kling4KeyframeFrameCap as cJ, maxSegmentSecFor as cK, maxSegmentsFor as cL, maxVideoDurationSec as cM, minSegmentSecFor as cN, modelsForInputMode as cO, normalizeKling4Resolution as cP, normalizeMinimaxH3Resolution as cQ, normalizeViduQ4Resolution as cR, normalizeWan3Resolution as cS, preferredInputModeForModel as cT, pricedOutputDurationSec as cU, requestImageLimit as cV, resolveGvpAnchorWire as cW, resolveMusicProvider as cX, resolveVideoModeForInputs as cY, resolveVideoProviderForMode as cZ, seedance2AudioLimitSec as c_, type VideoToVideoNodeProvider as ca, type VideoToVideoProvider as cb, type VideoUpscaleProvider as cc, type VoiceDesignModel as cd, WAN_3_DEFAULT_RESOLUTION as ce, WAN_3_PROVIDERS as cf, applyDefaultVideoSelection as cg, applyVideoAudioToggle as ch, applyVideoNegativePrompt as ci, billsReferenceVideoSeconds as cj, canonicalVideoProvider as ck, checkRefAudioRules as cl, checkRefVideoDurations as cm, defaultVideoAspectRatio as cn, findSeedance2AudioOverLimit as co, getMaxImagePromptChars as cp, getMaxNegativePromptChars as cq, getMaxSunoPromptChars as cr, getMaxSunoStyleChars as cs, getMaxTtsChars as ct, getMaxVideoPromptChars as cu, getVideoAudioCapability as cv, hasContiguousSegmentDurations as cw, imageReferenceLimit as cx, isGeminiOmniPerSecondProvider as cy, isGeminiOmniProvider as cz, COMPOSER_PLAN_FIELDS as d, snapToNearestDuration as d0, sunoModelHonoursDuration as d1, supportsAutoVideoDuration as d2, supportsEndAnchor as d3, supportsExtendRender as d4, transcribeLaneSupportsWordTimestamps as d5, transcribeProvidersWithWordTimestamps as d6, videoDefaultDurationSec as d7, videoModelCanSpeakDialogue as d8, videoModelSupportsAudio as d9, videoNegativeSuffix as da, videoProviderAppendsFrames as db, videoProviderFoldsLoneEndFrame as dc, videoProviderRefModeFrameSeats as dd, videoProviderReferenceSyntax as de, videoProviderRequiresImage as df, videoProviderRunsFromReferences as dg, videoSourceTrimMaxSec as dh, 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_REQUEST_IMAGE_LIMIT as j, DEFAULT_SUNO_MODEL as k, DEFAULT_TEXT_TO_AUDIO_PROVIDER as l, DEFAULT_TRANSCRIBE_NODE_PROVIDER as m, DEFAULT_TRANSCRIBE_PROVIDER as n, DEFAULT_TTS_OUTPUT_FORMAT as o, DEFAULT_TTS_PROVIDER as p, DEFAULT_VIDEO_DURATION_SEC as q, DEFAULT_VIDEO_PROVIDER as r, DEFAULT_VOICE_DESIGN_MODEL as s, DIALOGUE_PROVIDERS as t, DURATION_PRICED_PROVIDERS as u, type DialogueProvider as v, type ExtendVideoProvider as w, FAL_LIP_SYNC_PROVIDERS as x, FLEXIBLE_INPUT_LIP_SYNC_PROVIDERS as y, FRAME_MODE_ADAPTIVE_ONLY_ASPECT as z };
|
package/package.json
CHANGED
|
@@ -60,6 +60,7 @@ describe("GVP_SUPPORTED_PROVIDERS", () => {
|
|
|
60
60
|
"veo3_lite",
|
|
61
61
|
"gemini-omni-video",
|
|
62
62
|
"gemini-omni-flash",
|
|
63
|
+
"gemini-omni-flash-1-2",
|
|
63
64
|
"kling-4",
|
|
64
65
|
"grok-i2v",
|
|
65
66
|
"wan-3",
|
|
@@ -214,6 +215,7 @@ describe("GVP_END_FRAME_PROVIDERS", () => {
|
|
|
214
215
|
// pro-node SKU any more.
|
|
215
216
|
"veo3.1",
|
|
216
217
|
"veo3_lite",
|
|
218
|
+
"gemini-omni-flash-1-2",
|
|
217
219
|
"wan-3",
|
|
218
220
|
"wan-3-prime",
|
|
219
221
|
])
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { describe, expect, it } from "vitest"
|
|
2
|
+
|
|
3
|
+
import { MODEL_CATALOG } from "../model-catalog"
|
|
4
|
+
import { VIDEO_TO_VIDEO_NODE_PROVIDERS, isSeedanceVideoEditProvider, videoProviderRequiresImage } from "../model-constants"
|
|
5
|
+
import { modelToNodeTarget } from "../model-tree"
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* The catalog's `modes` are what a model can be run for: `/v1/models`, MCP
|
|
9
|
+
* `list_models`, the header's menu categories. Seedance 2.5 edits a clip on the
|
|
10
|
+
* same route as the other edit models (`/v1/video-to-video`, through the
|
|
11
|
+
* reference lane), so the catalog says `v2v` for it, and everything that makes
|
|
12
|
+
* a clip from words or a picture is unchanged by that.
|
|
13
|
+
*/
|
|
14
|
+
describe("Seedance 2.5 in the catalog", () => {
|
|
15
|
+
const entry = MODEL_CATALOG["seedance-2-5"]!
|
|
16
|
+
|
|
17
|
+
it("lists the video-to-video mode the edit route runs it in", () => {
|
|
18
|
+
expect(entry.modes).toContain("v2v")
|
|
19
|
+
expect(VIDEO_TO_VIDEO_NODE_PROVIDERS).toContain("seedance-2-5")
|
|
20
|
+
expect(isSeedanceVideoEditProvider("seedance-2-5")).toBe(true)
|
|
21
|
+
})
|
|
22
|
+
|
|
23
|
+
it("is still a model that makes a clip from words or a picture: a generation does not start needing a clip", () => {
|
|
24
|
+
expect(entry.modes).toEqual(expect.arrayContaining(["i2v", "t2v"]))
|
|
25
|
+
// The first mode stays the same for anything that reads the modes in order.
|
|
26
|
+
expect(entry.modes[0]).toBe("i2v")
|
|
27
|
+
expect(videoProviderRequiresImage("seedance-2-5")).toBe(false)
|
|
28
|
+
expect(modelToNodeTarget("seedance-2-5")).toEqual({ nodeType: "generate-video", field: "provider", value: "seedance-2-5" })
|
|
29
|
+
})
|
|
30
|
+
|
|
31
|
+
it("is not listed as an extend model: extending is a model of its own", () => {
|
|
32
|
+
expect(entry.modes).not.toContain("extend")
|
|
33
|
+
expect(MODEL_CATALOG["seedance-2-extend"]?.modes).toContain("extend")
|
|
34
|
+
})
|
|
35
|
+
})
|
|
@@ -23,6 +23,7 @@ import {
|
|
|
23
23
|
isVeoProvider,
|
|
24
24
|
isMinimaxH3Provider,
|
|
25
25
|
isGeminiOmniProvider,
|
|
26
|
+
isGeminiOmniPerSecondProvider,
|
|
26
27
|
isWan3Provider,
|
|
27
28
|
isViduQ4Provider,
|
|
28
29
|
isKling4Provider,
|
|
@@ -439,7 +440,8 @@ export function buildVideoCreditModelIdentifier(
|
|
|
439
440
|
// provider id, so a further Omni SKU needs no edit here — it only has to join
|
|
440
441
|
// GEMINI_OMNI_PROVIDERS and seed its rows. These models are deliberately NOT
|
|
441
442
|
// in DURATION_PRICED_PROVIDERS; this branch early-returns before that gate.
|
|
442
|
-
|
|
443
|
+
// A per-second SKU (Omni Flash 1.2) prices on the `:<N>s:<res>` ladder below.
|
|
444
|
+
if (isGeminiOmniProvider(effectiveProvider) && !isGeminiOmniPerSecondProvider(effectiveProvider)) {
|
|
443
445
|
if (hasVideoRef) {
|
|
444
446
|
return resolution === "4k" ? `${effectiveProvider}:4k:vref` : `${effectiveProvider}:vref`
|
|
445
447
|
}
|
package/src/entries/models.ts
CHANGED
|
@@ -173,6 +173,10 @@ export {
|
|
|
173
173
|
billsReferenceVideoSeconds,
|
|
174
174
|
GEMINI_OMNI_PROVIDERS,
|
|
175
175
|
isGeminiOmniProvider,
|
|
176
|
+
GEMINI_OMNI_PER_SECOND_PROVIDERS,
|
|
177
|
+
isGeminiOmniPerSecondProvider,
|
|
178
|
+
GEMINI_OMNI_12_MAX_SOURCE_SEC,
|
|
179
|
+
videoSourceTrimMaxSec,
|
|
176
180
|
VIDEO_PROVIDERS_WITHOUT_DISPATCH,
|
|
177
181
|
GVP_DEFAULT_PROVIDER,
|
|
178
182
|
GVP_SUPPORTED_PROVIDERS,
|
package/src/model-catalog.ts
CHANGED
|
@@ -316,6 +316,9 @@ export interface ModelCatalogEntry {
|
|
|
316
316
|
referenceSyntax?: "@image(n)" | "[Image N]"
|
|
317
317
|
aspectRatios?: readonly string[]
|
|
318
318
|
resolutions?: readonly string[]
|
|
319
|
+
/** The resolution a caller who names none lands on when it is not the
|
|
320
|
+
* cheapest entry (see `defaultResolutionFor`). */
|
|
321
|
+
defaultResolution?: string
|
|
319
322
|
/**
|
|
320
323
|
* What this model actually RENDERS for a resolution outside `resolutions`.
|
|
321
324
|
*
|
|
@@ -1926,6 +1929,32 @@ const VIDEO_MODELS: Record<string, ModelCatalogEntry> = {
|
|
|
1926
1929
|
{ identifier: "gemini-omni-flash:4k:vref", credits: 630, note: "video-edit 4K" },
|
|
1927
1930
|
],
|
|
1928
1931
|
},
|
|
1932
|
+
"gemini-omni-flash-1-2": {
|
|
1933
|
+
id: "gemini-omni-flash-1-2",
|
|
1934
|
+
kind: "video",
|
|
1935
|
+
modes: ["i2v", "t2v"] as const, // V2V is served via the i2v handle, not a catalog mode
|
|
1936
|
+
family: "Google",
|
|
1937
|
+
maker: "google",
|
|
1938
|
+
label: "Gemini Omni Flash 1.2",
|
|
1939
|
+
series: "Gemini",
|
|
1940
|
+
description: "Google Gemini Omni Flash 1.2 — 3–15s video with native sound, from 360p to 4K: from text, up to 6 reference images, exact first and last frames, or a video edit. Priced per second.",
|
|
1941
|
+
useCases: ["cinematic", "fast"],
|
|
1942
|
+
features: ["audio", "reference-image", "reference-to-video", "end-frame"],
|
|
1943
|
+
aspectRatios: ["16:9", "9:16", "auto"],
|
|
1944
|
+
resolutions: ["360p", "720p", "1080p", "4k"],
|
|
1945
|
+
defaultResolution: "720p",
|
|
1946
|
+
unlistedResolutionRendersAs: "720p",
|
|
1947
|
+
durations: [3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15],
|
|
1948
|
+
defaultDuration: 8,
|
|
1949
|
+
pricing: [
|
|
1950
|
+
{ identifier: "gemini-omni-flash-1-2", credits: 180, note: "default 8s 720p — see :Ns:res variants" },
|
|
1951
|
+
{ identifier: "gemini-omni-flash-1-2:3s:360p", credits: 30, note: "3s 360p (min)" },
|
|
1952
|
+
{ identifier: "gemini-omni-flash-1-2:8s:720p", credits: 180, note: "8s 720p (the default tier)" },
|
|
1953
|
+
{ identifier: "gemini-omni-flash-1-2:8s:1080p", credits: 200, note: "8s 1080p" },
|
|
1954
|
+
{ identifier: "gemini-omni-flash-1-2:8s:4k", credits: 440, note: "8s 4K" },
|
|
1955
|
+
{ identifier: "gemini-omni-flash-1-2:15s:4k", credits: 830, note: "15s 4K (max)" },
|
|
1956
|
+
],
|
|
1957
|
+
},
|
|
1929
1958
|
|
|
1930
1959
|
// ── Kling ──
|
|
1931
1960
|
"kling": {
|
|
@@ -2246,7 +2275,10 @@ const VIDEO_MODELS: Record<string, ModelCatalogEntry> = {
|
|
|
2246
2275
|
"seedance-2-5": {
|
|
2247
2276
|
id: "seedance-2-5",
|
|
2248
2277
|
kind: "video",
|
|
2249
|
-
|
|
2278
|
+
// `v2v`: it edits a clip by instruction on the same route as the other edit
|
|
2279
|
+
// models (/v1/video-to-video, through its reference lane, in the clip's own
|
|
2280
|
+
// ratio and length). It still makes a clip from words or a picture.
|
|
2281
|
+
modes: ["i2v", "t2v", "v2v"] as const,
|
|
2250
2282
|
family: "Bytedance",
|
|
2251
2283
|
maker: "bytedance",
|
|
2252
2284
|
label: "Seedance 2.5",
|
|
@@ -3912,10 +3944,14 @@ export function validateModelInput(
|
|
|
3912
3944
|
* The resolution a Flux 2 model should land on when its stored value is absent
|
|
3913
3945
|
* or invalid. Flux 2 exposes ascending megapixel options ("0.5 MP"…"4 MP"), so
|
|
3914
3946
|
* snapping to `options[0]` would silently downgrade every node to the cheapest
|
|
3915
|
-
* tier; each variant has a sensible mid default instead.
|
|
3916
|
-
*
|
|
3947
|
+
* tier; each variant has a sensible mid default instead. A model can also
|
|
3948
|
+
* declare one (`defaultResolution`, Gemini Omni Flash 1.2: its cheapest tier is
|
|
3949
|
+
* a 360p preview). Returns undefined for every other model (they snap to
|
|
3950
|
+
* `options[0]` normally).
|
|
3917
3951
|
*/
|
|
3918
3952
|
export function defaultResolutionFor(modelId: string): string | undefined {
|
|
3953
|
+
const declared = MODEL_CATALOG[modelId]?.defaultResolution
|
|
3954
|
+
if (declared) return declared
|
|
3919
3955
|
if (!isFlux2Model(modelId)) return undefined
|
|
3920
3956
|
return modelId === "flux-2-klein" ? "1 MP" : "2 MP"
|
|
3921
3957
|
}
|
package/src/model-constants.ts
CHANGED
|
@@ -255,6 +255,8 @@ export const MAX_VIDEO_PROMPT_CHARS_BY_PROVIDER: Record<string, number> = {
|
|
|
255
255
|
// Gemini Omni Flash 1.1 — same 20000-char prompt surface as the pro sibling
|
|
256
256
|
// (docs.kie.ai/market/google/gemini-omni-flash-1-1).
|
|
257
257
|
"gemini-omni-flash": 20000,
|
|
258
|
+
// (docs.kie.ai/market/google/gemini-omni-flash-1-2).
|
|
259
|
+
"gemini-omni-flash-1-2": 20000,
|
|
258
260
|
// Wan 3.0 / 3.0 Prime — 20000 chars, excess truncated by the provider
|
|
259
261
|
// (docs.kie.ai/market/wan/3-0-video and /3-0-video-prime).
|
|
260
262
|
"wan-3": 20000,
|
|
@@ -972,6 +974,7 @@ export const IMAGE_TO_VIDEO_PROVIDERS = [
|
|
|
972
974
|
"kling-3-omni",
|
|
973
975
|
"gemini-omni-video",
|
|
974
976
|
"gemini-omni-flash",
|
|
977
|
+
"gemini-omni-flash-1-2",
|
|
975
978
|
// Wan 3.0 family — one id per SKU serves BOTH modes (no t2v twin, no alias),
|
|
976
979
|
// so each id is listed in this array AND in TEXT_TO_VIDEO_PROVIDERS.
|
|
977
980
|
"wan-3",
|
|
@@ -1023,6 +1026,7 @@ export const TEXT_TO_VIDEO_PROVIDERS = [
|
|
|
1023
1026
|
"runway-kie",
|
|
1024
1027
|
"gemini-omni-video",
|
|
1025
1028
|
"gemini-omni-flash",
|
|
1029
|
+
"gemini-omni-flash-1-2",
|
|
1026
1030
|
// Wan 3.0 family — REAL t2v (prompt-only runs are the documented default
|
|
1027
1031
|
// mode), so they belong in this main section and must NOT be gated by
|
|
1028
1032
|
// VIDEO_PROVIDERS_REQUIRING_IMAGE.
|
|
@@ -1880,6 +1884,10 @@ export const DURATION_PRICED_PROVIDERS = new Set([
|
|
|
1880
1884
|
// video rate on `kling-4`, see VIDEO_REF_RATE_PROVIDERS).
|
|
1881
1885
|
"kling-4",
|
|
1882
1886
|
"kling-4-keyframes",
|
|
1887
|
+
// Gemini Omni Flash 1.2 — per-second billing at four resolution rates. The
|
|
1888
|
+
// only Omni SKU here: the per-clip SKUs price in their own branch of
|
|
1889
|
+
// buildVideoCreditModelIdentifier.
|
|
1890
|
+
"gemini-omni-flash-1-2",
|
|
1883
1891
|
])
|
|
1884
1892
|
|
|
1885
1893
|
/**
|
|
@@ -2085,12 +2093,38 @@ export function kling4KeyframeFrameCap(durationSec: number | string | undefined)
|
|
|
2085
2093
|
export const GEMINI_OMNI_PROVIDERS = new Set<string>([
|
|
2086
2094
|
"gemini-omni-video",
|
|
2087
2095
|
"gemini-omni-flash",
|
|
2096
|
+
// Own request builder and per-second price: GEMINI_OMNI_PER_SECOND_PROVIDERS.
|
|
2097
|
+
"gemini-omni-flash-1-2",
|
|
2088
2098
|
])
|
|
2089
2099
|
|
|
2090
2100
|
export function isGeminiOmniProvider(provider: string | undefined): boolean {
|
|
2091
2101
|
return !!provider && GEMINI_OMNI_PROVIDERS.has(provider)
|
|
2092
2102
|
}
|
|
2093
2103
|
|
|
2104
|
+
/**
|
|
2105
|
+
* The Gemini Omni SKUs billed per second of video (Gemini Omni Flash 1.2). What
|
|
2106
|
+
* the family shares (V2V through the i2v handle, the panels) comes from
|
|
2107
|
+
* {@link GEMINI_OMNI_PROVIDERS}. These differ in two ways: the price is a
|
|
2108
|
+
* `:<N>s:<res>` ladder, and a run with a source video bills that clip's own
|
|
2109
|
+
* seconds and nothing else (the output follows the clip), so they also answer
|
|
2110
|
+
* {@link billsReferenceVideoSeconds}.
|
|
2111
|
+
*/
|
|
2112
|
+
export const GEMINI_OMNI_PER_SECOND_PROVIDERS = new Set<string>([
|
|
2113
|
+
"gemini-omni-flash-1-2",
|
|
2114
|
+
])
|
|
2115
|
+
|
|
2116
|
+
export function isGeminiOmniPerSecondProvider(provider: string | undefined): boolean {
|
|
2117
|
+
return !!provider && GEMINI_OMNI_PER_SECOND_PROVIDERS.has(provider)
|
|
2118
|
+
}
|
|
2119
|
+
|
|
2120
|
+
/** The longest source clip Gemini Omni Flash 1.2 takes (docs.kie.ai/market/google/gemini-omni-flash-1-2). */
|
|
2121
|
+
export const GEMINI_OMNI_12_MAX_SOURCE_SEC = 15
|
|
2122
|
+
|
|
2123
|
+
/** The widest trim window a request may set on a Gemini Omni source clip, in seconds. */
|
|
2124
|
+
export function videoSourceTrimMaxSec(provider: string | undefined): number {
|
|
2125
|
+
return isGeminiOmniPerSecondProvider(provider) ? GEMINI_OMNI_12_MAX_SOURCE_SEC : 10
|
|
2126
|
+
}
|
|
2127
|
+
|
|
2094
2128
|
/**
|
|
2095
2129
|
* Video models that are CATALOGUED and priced but have NO working dispatch
|
|
2096
2130
|
* path today — selecting one fails at the router, not at validation.
|
|
@@ -2612,6 +2646,10 @@ export const VIDEO_REF_LIMITS_BY_PROVIDER: Record<
|
|
|
2612
2646
|
// Gemini Omni Flash 1.1 — identical quota to the pro sibling
|
|
2613
2647
|
// (images + 2×videos + character_ids ≤ 7).
|
|
2614
2648
|
"gemini-omni-flash": { images: 7, videos: 1, characters: 3, voices: 3 },
|
|
2649
|
+
// Gemini Omni Flash 1.2 — up to 6 images, one source video, and images +
|
|
2650
|
+
// 2 for a video ≤ 7, so 5 images beside a video (the request builder holds
|
|
2651
|
+
// that). No `character_ids` / `audio_ids` in its schema: no characters, no voices.
|
|
2652
|
+
"gemini-omni-flash-1-2": { images: 6, videos: 1 },
|
|
2615
2653
|
"kling-3-omni": { images: 7 }, // catalog/docs: "end frame + up to 7 reference images"
|
|
2616
2654
|
// Kling 4.0 Reference — 10 images, 5 videos, 7 subjects (`characters`,
|
|
2617
2655
|
// KIE `elements`) and 3 voices (reference audio, KIE `voices`), 15 in all
|
|
@@ -2784,6 +2822,9 @@ export const RESOLUTION_DURATION_PRICING: Record<string, readonly string[]> = {
|
|
|
2784
2822
|
// (VIDEO_REF_RATE_PROVIDERS).
|
|
2785
2823
|
"kling-4": ["720p", "1080p"],
|
|
2786
2824
|
"kling-4-keyframes": ["720p", "1080p"],
|
|
2825
|
+
// Gemini Omni Flash 1.2 — per-second billing at four resolution rates.
|
|
2826
|
+
// Ascending; the billed default (720p) is declared in PRICING_DEFAULT_RESOLUTION.
|
|
2827
|
+
"gemini-omni-flash-1-2": ["360p", "720p", "1080p", "4k"],
|
|
2787
2828
|
}
|
|
2788
2829
|
|
|
2789
2830
|
/**
|
|
@@ -2799,15 +2840,18 @@ export const VIDEO_REF_RATE_PROVIDERS = new Set<string>([
|
|
|
2799
2840
|
|
|
2800
2841
|
/**
|
|
2801
2842
|
* Video models whose reference-VIDEO runs also bill the clips' own seconds:
|
|
2802
|
-
* the Seedance 2 family (`unit × (input + output)`)
|
|
2803
|
-
* VIDEO_REF_RATE_PROVIDERS (Kling 4.0: `unit × (output + max(output, input))`)
|
|
2843
|
+
* the Seedance 2 family (`unit × (input + output)`), the
|
|
2844
|
+
* VIDEO_REF_RATE_PROVIDERS (Kling 4.0: `unit × (output + max(output, input))`)
|
|
2845
|
+
* and the per-second Gemini Omni SKUs (`unit × source clip`, the output follows it).
|
|
2804
2846
|
* The reservation holds the worst case from the probed clips and the
|
|
2805
2847
|
* settlement meters down to what was delivered (backend
|
|
2806
2848
|
* ee/billing/seedance2-ref-video-credits.ts) — this is the one gate every lane
|
|
2807
2849
|
* (routes, orchestrator, worker settlement, reconcile) asks.
|
|
2808
2850
|
*/
|
|
2809
2851
|
export function billsReferenceVideoSeconds(provider: string | undefined): boolean {
|
|
2810
|
-
return isSeedance2Provider(provider)
|
|
2852
|
+
return isSeedance2Provider(provider)
|
|
2853
|
+
|| isGeminiOmniPerSecondProvider(provider)
|
|
2854
|
+
|| (!!provider && VIDEO_REF_RATE_PROVIDERS.has(provider))
|
|
2811
2855
|
}
|
|
2812
2856
|
|
|
2813
2857
|
/**
|
|
@@ -2900,8 +2944,8 @@ export function videoProviderRequiresImage(provider: string | undefined): boolea
|
|
|
2900
2944
|
* reference mode takes a lone last frame as the sole reference image plus a
|
|
2901
2945
|
* closing-frame prompt hint. NOTHING else does: VEO ships `[imageUrl,
|
|
2902
2946
|
* endFrameUrl]` verbatim (a lone end frame would reach KIE as `[null, url]`),
|
|
2903
|
-
* the Gemini Omni branch drops the frame when there is no start frame
|
|
2904
|
-
* generic KIE path sends `end_frame` with no image param at all. So the
|
|
2947
|
+
* the per-clip Gemini Omni branch drops the frame when there is no start frame (Omni
|
|
2948
|
+
* Flash 1.2 folds it, with its own builder), and the generic KIE path sends `end_frame` with no image param at all. So the
|
|
2905
2949
|
* exemption is keyed to the FOLD, not to "carries image references" — the
|
|
2906
2950
|
* catalog has no capability for it, and these three family predicates are the
|
|
2907
2951
|
* same membership the provider layer itself branches on (the backend's
|
|
@@ -2910,7 +2954,7 @@ export function videoProviderRequiresImage(provider: string | undefined): boolea
|
|
|
2910
2954
|
* family here; one that does not keeps the honest `image_required` 400.
|
|
2911
2955
|
*/
|
|
2912
2956
|
export function videoProviderFoldsLoneEndFrame(provider: string): boolean {
|
|
2913
|
-
return isSeedance2Provider(provider) || isMinimaxH3Provider(provider) || isWan3Provider(provider)
|
|
2957
|
+
return isSeedance2Provider(provider) || isMinimaxH3Provider(provider) || isWan3Provider(provider) || isGeminiOmniPerSecondProvider(provider)
|
|
2914
2958
|
}
|
|
2915
2959
|
|
|
2916
2960
|
/**
|
|
@@ -3041,6 +3085,8 @@ export const VIDEO_AUDIO_CAPABILITY: Record<string, VideoAudioCapability> = {
|
|
|
3041
3085
|
// dialogue; priced into the per-second rate.
|
|
3042
3086
|
"kling-4": { mode: "ambient", alwaysOn: true, defaultOn: true },
|
|
3043
3087
|
"kling-4-keyframes": { mode: "ambient", alwaysOn: true, defaultOn: true },
|
|
3088
|
+
// Gemini Omni Flash 1.2 — native audio with no on/off input in its schema.
|
|
3089
|
+
"gemini-omni-flash-1-2": { mode: "ambient", alwaysOn: true },
|
|
3044
3090
|
// Gemini Omni (both SKUs — the pro `gemini-omni-video` and the faster
|
|
3045
3091
|
// `gemini-omni-flash`; one model at two speeds, so their rows are identical
|
|
3046
3092
|
// and a test pins that). Settled 2026-09-03 from Google's own documentation
|
|
@@ -3212,6 +3258,9 @@ export const VIDEO_VARIABLE_PRICING: Record<string, "duration" | "duration+audio
|
|
|
3212
3258
|
// reference-video rate.
|
|
3213
3259
|
"kling-4": "duration+resolution+ref",
|
|
3214
3260
|
"kling-4-keyframes": "duration+resolution",
|
|
3261
|
+
// Gemini Omni Flash 1.2 — per-second at four resolution rates; a video edit
|
|
3262
|
+
// bills the same rates over the source clip.
|
|
3263
|
+
"gemini-omni-flash-1-2": "duration+resolution",
|
|
3215
3264
|
}
|
|
3216
3265
|
|
|
3217
3266
|
/**
|
|
@@ -3331,8 +3380,17 @@ export const PRICING_DEFAULT_RESOLUTION: Record<string, string> = {
|
|
|
3331
3380
|
// normalizeKling4Resolution pins the same tier for anything unknown.
|
|
3332
3381
|
"kling-4": "720p",
|
|
3333
3382
|
"kling-4-keyframes": "720p",
|
|
3383
|
+
// Gemini Omni Flash 1.2 — KIE renders 720p when `resolution` is omitted, and
|
|
3384
|
+
// the runner sends 720p for anything off its list.
|
|
3385
|
+
"gemini-omni-flash-1-2": "720p",
|
|
3334
3386
|
}
|
|
3335
3387
|
|
|
3388
|
+
/** Gemini Omni Flash 1.2 per-second tiers — one per allowed duration (3–15s). */
|
|
3389
|
+
const GEMINI_OMNI_12_DURATION_TIERS: Array<{ maxSeconds: number; suffix: string }> = Array.from(
|
|
3390
|
+
{ length: 13 },
|
|
3391
|
+
(_, i) => ({ maxSeconds: i + 3, suffix: `${i + 3}s` }),
|
|
3392
|
+
)
|
|
3393
|
+
|
|
3336
3394
|
/** HappyHorse 1.1 per-second tiers — one per allowed duration (3–15s), shared
|
|
3337
3395
|
* by all three modes (t2v/i2v/ref2v) which bill at identical published rates. */
|
|
3338
3396
|
const HAPPYHORSE_DURATION_TIERS: Array<{ maxSeconds: number; suffix: string }> = Array.from(
|
|
@@ -3466,6 +3524,7 @@ export const VIDEO_DURATION_TIERS: Record<string, Array<{ maxSeconds: number; su
|
|
|
3466
3524
|
"vidu-q4": VIDU_Q4_DURATION_TIERS,
|
|
3467
3525
|
"kling-4": KLING_4_DURATION_TIERS,
|
|
3468
3526
|
"kling-4-keyframes": KLING_4_DURATION_TIERS,
|
|
3527
|
+
"gemini-omni-flash-1-2": GEMINI_OMNI_12_DURATION_TIERS,
|
|
3469
3528
|
// MiniMax Hailuo 3 — true per-second billing (KIE 36.5 cr/s @2K, 22.5 cr/s
|
|
3470
3529
|
// @768P). One tier per allowed second (4-15s) so the composite identifier
|
|
3471
3530
|
// maps 1:1 to the seeded price — no rounding/overcharge for any on-menu
|
|
@@ -223,6 +223,7 @@ const QUALITY_MAP: Record<string, QualityMapping> = {
|
|
|
223
223
|
"ltx-2.3-fast": { field: "resolution", values: { low: "1080p", mid: "2k", high: "4k" } },
|
|
224
224
|
"gemini-omni-video": { field: "resolution", values: { low: "720p", mid: "1080p", high: "4k" } },
|
|
225
225
|
"gemini-omni-flash": { field: "resolution", values: { low: "720p", mid: "1080p", high: "4k" } },
|
|
226
|
+
"gemini-omni-flash-1-2": { field: "resolution", values: { low: "720p", mid: "1080p", high: "4k" } },
|
|
226
227
|
// Grok Imagine Video 1.5 — only 480p/720p (no 1080p tier); high clamps to 720p.
|
|
227
228
|
"grok-imagine-video-1.5": { field: "resolution", values: { low: "480p", mid: "720p", high: "720p" } },
|
|
228
229
|
// Replicate Flux 2 family — MP-based resolution (matching IMAGE_RESOLUTION_OPTIONS["flux-2-*"]).
|
package/src/video-ui-defaults.ts
CHANGED
|
@@ -36,6 +36,7 @@ import {
|
|
|
36
36
|
isViduQ4Provider,
|
|
37
37
|
isKling4Provider,
|
|
38
38
|
isGeminiOmniProvider,
|
|
39
|
+
isGeminiOmniPerSecondProvider,
|
|
39
40
|
} from "./model-constants.js"
|
|
40
41
|
import { MODEL_CATALOG } from "./model-catalog.js"
|
|
41
42
|
|
|
@@ -51,7 +52,7 @@ export function uiAspectRatioFill(provider: string): string | undefined {
|
|
|
51
52
|
/** See the file docstring — per-family on purpose; never a generic
|
|
52
53
|
* PRICING_DEFAULT_RESOLUTION read (that would reprice seedance-2-5). */
|
|
53
54
|
export function uiResolutionFill(provider: string): string | undefined {
|
|
54
|
-
if (isWan3Provider(provider) || isViduQ4Provider(provider) || isKling4Provider(provider)) return PRICING_DEFAULT_RESOLUTION[provider]
|
|
55
|
+
if (isWan3Provider(provider) || isViduQ4Provider(provider) || isKling4Provider(provider) || isGeminiOmniPerSecondProvider(provider)) return PRICING_DEFAULT_RESOLUTION[provider]
|
|
55
56
|
if (isSeedance2Provider(provider)) return MODEL_CATALOG[provider]?.resolutions?.[0]
|
|
56
57
|
return undefined
|
|
57
58
|
}
|