@shop-os/modelkit 0.22.0 → 0.23.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/index.cjs CHANGED
@@ -6509,6 +6509,53 @@ var VIDEO_MODELS = [
6509
6509
  },
6510
6510
  capabilities: { acceptsSourceVideo: true, videoEdit: true, ...FRAMES_EXCLUDE_REFERENCES }
6511
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."
6556
+ },
6557
+ capabilities: { acceptsSourceVideo: true, videoEdit: true, ...FRAMES_EXCLUDE_REFERENCES }
6558
+ },
6512
6559
  {
6513
6560
  id: "grok-imagine",
6514
6561
  aliases: ["grok-imagine-video", "grokImagine"],
@@ -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.id === "seedance-2.5")
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;