@shop-os/modelkit 0.10.1 → 0.10.2

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
@@ -6336,6 +6336,48 @@ var VIDEO_MODELS = [
6336
6336
  },
6337
6337
  capabilities: { ...FRAMES_EXCLUDE_REFERENCES, lastFrameRequiresFirstFrame: true }
6338
6338
  },
6339
+ {
6340
+ // fal's Wan 3.0 Prime endpoints share Wan 3.0's input schemas field for field but bill
6341
+ // more per second, so Prime is its own row (the id is the pricing key).
6342
+ // https://fal.ai/models/alibaba/wan-3.0-prime/reference-to-video/api
6343
+ id: "wan-3.0-prime",
6344
+ aliases: ["wan-3-prime", "wan3-prime"],
6345
+ label: "Wan 3 Prime",
6346
+ type: "video",
6347
+ adapter: "fal",
6348
+ providerModelId: "alibaba/wan-3.0-prime",
6349
+ lifecycle: "active",
6350
+ exposure: ["cowork", "space_builder"],
6351
+ constraints: {
6352
+ aspectRatios: [...WAN_RATIOS],
6353
+ resolutions: ["480p", "720p", "1080p"],
6354
+ durations: { min: 2, max: 30 },
6355
+ durationPresets: [5, 10, 15, 30],
6356
+ references: {
6357
+ images: 10,
6358
+ videos: 5,
6359
+ audios: 5,
6360
+ videoSeconds: { total: 15 },
6361
+ audioSeconds: { total: 15 }
6362
+ },
6363
+ supports: ["seed", "lastFrame", "generateAudio", "safetyChecker"],
6364
+ prompt: WAN_PROMPT,
6365
+ audio: "optional"
6366
+ },
6367
+ defaults: {
6368
+ durationSeconds: 5,
6369
+ resolution: "1080p",
6370
+ aspectRatio: "adaptive",
6371
+ generateAudio: true
6372
+ },
6373
+ usage: { ...VIDEO_USAGE3 },
6374
+ pricingKind: "video_per_second",
6375
+ display: {
6376
+ provider: "alibaba",
6377
+ description: "Alibaba Wan 3 Prime, the faster-generating tier of Wan 3, for text-to-video, image-to-video (start/end frame), and reference-to-video from up to 10 images, 5 videos and 5 audio clips, with native audio; 2-30 seconds at up to 1080p."
6378
+ },
6379
+ capabilities: { ...FRAMES_EXCLUDE_REFERENCES, lastFrameRequiresFirstFrame: true }
6380
+ },
6339
6381
  {
6340
6382
  // Duration 3-10s per trigger-workflows mapDuration; the endpoint takes no resolution.
6341
6383
  id: "kling-o1-v2v",
@@ -12538,7 +12580,10 @@ function minimaxBase(req, family) {
12538
12580
  if (req.seed !== void 0) input.seed = req.seed;
12539
12581
  return input;
12540
12582
  }
12541
- var WAN_MODEL_IDS = /* @__PURE__ */ new Set(["alibaba/wan-3.0"]);
12583
+ var WAN_MODEL_IDS = /* @__PURE__ */ new Set([
12584
+ "alibaba/wan-3.0",
12585
+ "alibaba/wan-3.0-prime"
12586
+ ]);
12542
12587
  function isWan(providerModelId) {
12543
12588
  return WAN_MODEL_IDS.has(providerModelId.toLowerCase());
12544
12589
  }