@shop-os/modelkit 0.22.0 → 0.23.1
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/CHANGELOG.md +17 -0
- package/dist/catalog.cjs +49 -2
- package/dist/catalog.cjs.map +1 -1
- package/dist/catalog.js +49 -2
- package/dist/catalog.js.map +1 -1
- package/dist/index.cjs +50 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +50 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -6470,7 +6470,7 @@ var VIDEO_MODELS = [
|
|
|
6470
6470
|
exposure: ["cowork", "space_builder"],
|
|
6471
6471
|
constraints: {
|
|
6472
6472
|
aspectRatios: [...SEEDANCE_RATIOS],
|
|
6473
|
-
resolutions: ["480p", "720p", "1080p"],
|
|
6473
|
+
resolutions: ["480p", "720p", "1080p", "4k"],
|
|
6474
6474
|
durations: { min: 4, max: 30 },
|
|
6475
6475
|
references: {
|
|
6476
6476
|
images: 30,
|
|
@@ -6505,7 +6505,54 @@ var VIDEO_MODELS = [
|
|
|
6505
6505
|
display: {
|
|
6506
6506
|
provider: "bytedance",
|
|
6507
6507
|
logo: BYTEDANCE_LOGO2,
|
|
6508
|
-
description: "ByteDance Seedance 2.5 for long-form storytelling and omni-reference generation/editing; up to 50 reference assets and 4-30 second clips at up to
|
|
6508
|
+
description: "ByteDance Seedance 2.5 for long-form storytelling and omni-reference generation/editing; up to 50 reference assets and 4-30 second clips at up to 4K."
|
|
6509
|
+
},
|
|
6510
|
+
capabilities: { acceptsSourceVideo: true, videoEdit: true, ...FRAMES_EXCLUDE_REFERENCES }
|
|
6511
|
+
},
|
|
6512
|
+
{
|
|
6513
|
+
// Limits probed on the live API 2026-11-16 (1080p is refused). Extend probe: a 4 s
|
|
6514
|
+
// extend returned 4 s of new footage only and billed input + output tokens, as on 2.5.
|
|
6515
|
+
id: "seedance-2.5-flash",
|
|
6516
|
+
aliases: ["seedance-2-5-flash", "dreamina-seedance-2-5-flash-261115"],
|
|
6517
|
+
label: "Seedance 2.5 Flash",
|
|
6518
|
+
type: "video",
|
|
6519
|
+
adapter: "ark",
|
|
6520
|
+
providerModelId: "dreamina-seedance-2-5-flash-261115",
|
|
6521
|
+
lifecycle: "active",
|
|
6522
|
+
exposure: ["cowork", "space_builder"],
|
|
6523
|
+
constraints: {
|
|
6524
|
+
aspectRatios: [...SEEDANCE_RATIOS],
|
|
6525
|
+
resolutions: ["480p", "720p"],
|
|
6526
|
+
durations: { min: 4, max: 30 },
|
|
6527
|
+
references: {
|
|
6528
|
+
images: 10,
|
|
6529
|
+
videos: 5,
|
|
6530
|
+
audios: 5,
|
|
6531
|
+
videoSeconds: { min: 2, max: 30, total: 30, editMin: 4 },
|
|
6532
|
+
...SEEDANCE_REFERENCE_MEDIA,
|
|
6533
|
+
audioSeconds: { min: 2, max: 30, total: 30 },
|
|
6534
|
+
audioFormats: ["wav", "mp3"],
|
|
6535
|
+
audioMaxBytes: 15 * 1024 * 1024
|
|
6536
|
+
},
|
|
6537
|
+
sourceVideoSeconds: { min: 2, max: 30, editMin: 4, inReferenceTotal: true },
|
|
6538
|
+
ratioIgnoredWith: ["firstFrame", "sourceVideo"],
|
|
6539
|
+
supports: ["generateAudio", "lastFrame", "watermark", "taskType", "videoExtension"],
|
|
6540
|
+
extension: { segmentSeconds: 30, maxTotalSeconds: 60, returns: "new" },
|
|
6541
|
+
prompt: SEEDANCE_PROMPT,
|
|
6542
|
+
audio: "optional"
|
|
6543
|
+
},
|
|
6544
|
+
defaults: {
|
|
6545
|
+
durationSeconds: 5,
|
|
6546
|
+
resolution: "720p",
|
|
6547
|
+
aspectRatio: "16:9",
|
|
6548
|
+
generateAudio: true
|
|
6549
|
+
},
|
|
6550
|
+
usage: { ...VIDEO_USAGE3 },
|
|
6551
|
+
pricingKind: "video_per_second",
|
|
6552
|
+
display: {
|
|
6553
|
+
provider: "bytedance",
|
|
6554
|
+
logo: BYTEDANCE_LOGO2,
|
|
6555
|
+
description: "Faster, lower-cost ByteDance Seedance 2.5 for omni-reference generation and editing; up to 20 reference assets and 4-30 second clips at up to 720p."
|
|
6509
6556
|
},
|
|
6510
6557
|
capabilities: { acceptsSourceVideo: true, videoEdit: true, ...FRAMES_EXCLUDE_REFERENCES }
|
|
6511
6558
|
},
|
|
@@ -10883,7 +10930,7 @@ async function generateSeedanceVideo(req, ctx) {
|
|
|
10883
10930
|
};
|
|
10884
10931
|
if (taskType === "edit" || taskType === "extend") body.ratio = "adaptive";
|
|
10885
10932
|
else if (!hasFrameAnchor && req.aspectRatio !== void 0) body.ratio = req.aspectRatio;
|
|
10886
|
-
if (taskType !== void 0 && ctx.model.
|
|
10933
|
+
if (taskType !== void 0 && ctx.model.constraints.supports?.includes("taskType"))
|
|
10887
10934
|
body.omni_reference_task_type = taskType;
|
|
10888
10935
|
if (req.generateAudio !== void 0) body.generate_audio = req.generateAudio;
|
|
10889
10936
|
if (req.seed !== void 0) body.seed = req.seed;
|