@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/dist/index.js CHANGED
@@ -6314,7 +6314,7 @@ var VIDEO_MODELS = [
6314
6314
  exposure: ["cowork", "space_builder"],
6315
6315
  constraints: {
6316
6316
  aspectRatios: [...SEEDANCE_RATIOS],
6317
- resolutions: ["480p", "720p", "1080p"],
6317
+ resolutions: ["480p", "720p", "1080p", "4k"],
6318
6318
  durations: { min: 4, max: 30 },
6319
6319
  references: {
6320
6320
  images: 30,
@@ -6349,7 +6349,54 @@ var VIDEO_MODELS = [
6349
6349
  display: {
6350
6350
  provider: "bytedance",
6351
6351
  logo: BYTEDANCE_LOGO2,
6352
- 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 1080p."
6352
+ 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."
6353
+ },
6354
+ capabilities: { acceptsSourceVideo: true, videoEdit: true, ...FRAMES_EXCLUDE_REFERENCES }
6355
+ },
6356
+ {
6357
+ // Limits probed on the live API 2026-11-16 (1080p is refused). Extend probe: a 4 s
6358
+ // extend returned 4 s of new footage only and billed input + output tokens, as on 2.5.
6359
+ id: "seedance-2.5-flash",
6360
+ aliases: ["seedance-2-5-flash", "dreamina-seedance-2-5-flash-261115"],
6361
+ label: "Seedance 2.5 Flash",
6362
+ type: "video",
6363
+ adapter: "ark",
6364
+ providerModelId: "dreamina-seedance-2-5-flash-261115",
6365
+ lifecycle: "active",
6366
+ exposure: ["cowork", "space_builder"],
6367
+ constraints: {
6368
+ aspectRatios: [...SEEDANCE_RATIOS],
6369
+ resolutions: ["480p", "720p"],
6370
+ durations: { min: 4, max: 30 },
6371
+ references: {
6372
+ images: 10,
6373
+ videos: 5,
6374
+ audios: 5,
6375
+ videoSeconds: { min: 2, max: 30, total: 30, editMin: 4 },
6376
+ ...SEEDANCE_REFERENCE_MEDIA,
6377
+ audioSeconds: { min: 2, max: 30, total: 30 },
6378
+ audioFormats: ["wav", "mp3"],
6379
+ audioMaxBytes: 15 * 1024 * 1024
6380
+ },
6381
+ sourceVideoSeconds: { min: 2, max: 30, editMin: 4, inReferenceTotal: true },
6382
+ ratioIgnoredWith: ["firstFrame", "sourceVideo"],
6383
+ supports: ["generateAudio", "lastFrame", "watermark", "taskType", "videoExtension"],
6384
+ extension: { segmentSeconds: 30, maxTotalSeconds: 60, returns: "new" },
6385
+ prompt: SEEDANCE_PROMPT,
6386
+ audio: "optional"
6387
+ },
6388
+ defaults: {
6389
+ durationSeconds: 5,
6390
+ resolution: "720p",
6391
+ aspectRatio: "16:9",
6392
+ generateAudio: true
6393
+ },
6394
+ usage: { ...VIDEO_USAGE3 },
6395
+ pricingKind: "video_per_second",
6396
+ display: {
6397
+ provider: "bytedance",
6398
+ logo: BYTEDANCE_LOGO2,
6399
+ 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."
6353
6400
  },
6354
6401
  capabilities: { acceptsSourceVideo: true, videoEdit: true, ...FRAMES_EXCLUDE_REFERENCES }
6355
6402
  },
@@ -10727,7 +10774,7 @@ async function generateSeedanceVideo(req, ctx) {
10727
10774
  };
10728
10775
  if (taskType === "edit" || taskType === "extend") body.ratio = "adaptive";
10729
10776
  else if (!hasFrameAnchor && req.aspectRatio !== void 0) body.ratio = req.aspectRatio;
10730
- if (taskType !== void 0 && ctx.model.id === "seedance-2.5")
10777
+ if (taskType !== void 0 && ctx.model.constraints.supports?.includes("taskType"))
10731
10778
  body.omni_reference_task_type = taskType;
10732
10779
  if (req.generateAudio !== void 0) body.generate_audio = req.generateAudio;
10733
10780
  if (req.seed !== void 0) body.seed = req.seed;