@shop-os/modelkit 0.10.1 → 0.11.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
@@ -6478,6 +6478,48 @@ var VIDEO_MODELS = [
6478
6478
  },
6479
6479
  capabilities: { ...FRAMES_EXCLUDE_REFERENCES, lastFrameRequiresFirstFrame: true }
6480
6480
  },
6481
+ {
6482
+ // fal's Wan 3.0 Prime endpoints share Wan 3.0's input schemas field for field but bill
6483
+ // more per second, so Prime is its own row (the id is the pricing key).
6484
+ // https://fal.ai/models/alibaba/wan-3.0-prime/reference-to-video/api
6485
+ id: "wan-3.0-prime",
6486
+ aliases: ["wan-3-prime", "wan3-prime"],
6487
+ label: "Wan 3 Prime",
6488
+ type: "video",
6489
+ adapter: "fal",
6490
+ providerModelId: "alibaba/wan-3.0-prime",
6491
+ lifecycle: "active",
6492
+ exposure: ["cowork", "space_builder"],
6493
+ constraints: {
6494
+ aspectRatios: [...WAN_RATIOS],
6495
+ resolutions: ["480p", "720p", "1080p"],
6496
+ durations: { min: 2, max: 30 },
6497
+ durationPresets: [5, 10, 15, 30],
6498
+ references: {
6499
+ images: 10,
6500
+ videos: 5,
6501
+ audios: 5,
6502
+ videoSeconds: { total: 15 },
6503
+ audioSeconds: { total: 15 }
6504
+ },
6505
+ supports: ["seed", "lastFrame", "generateAudio", "safetyChecker"],
6506
+ prompt: WAN_PROMPT,
6507
+ audio: "optional"
6508
+ },
6509
+ defaults: {
6510
+ durationSeconds: 5,
6511
+ resolution: "1080p",
6512
+ aspectRatio: "adaptive",
6513
+ generateAudio: true
6514
+ },
6515
+ usage: { ...VIDEO_USAGE3 },
6516
+ pricingKind: "video_per_second",
6517
+ display: {
6518
+ provider: "alibaba",
6519
+ 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."
6520
+ },
6521
+ capabilities: { ...FRAMES_EXCLUDE_REFERENCES, lastFrameRequiresFirstFrame: true }
6522
+ },
6481
6523
  {
6482
6524
  // Duration 3-10s per trigger-workflows mapDuration; the endpoint takes no resolution.
6483
6525
  id: "kling-o1-v2v",
@@ -12680,7 +12722,10 @@ function minimaxBase(req, family) {
12680
12722
  if (req.seed !== void 0) input.seed = req.seed;
12681
12723
  return input;
12682
12724
  }
12683
- var WAN_MODEL_IDS = /* @__PURE__ */ new Set(["alibaba/wan-3.0"]);
12725
+ var WAN_MODEL_IDS = /* @__PURE__ */ new Set([
12726
+ "alibaba/wan-3.0",
12727
+ "alibaba/wan-3.0-prime"
12728
+ ]);
12684
12729
  function isWan(providerModelId) {
12685
12730
  return WAN_MODEL_IDS.has(providerModelId.toLowerCase());
12686
12731
  }
@@ -18424,7 +18469,7 @@ function keysFromEnv(env, prefix = "") {
18424
18469
  };
18425
18470
  set("openai", pick2("OPENAI_API_KEY"));
18426
18471
  set("anthropic", pick2("ANTHROPIC_API_KEY"));
18427
- set("google", pick2("GOOGLE_GENERATIVE_AI_API_KEY", "GEMINI_API_KEY", "GOOGLE_API_KEY"));
18472
+ set("google", pick2("GOOGLE_API_KEY"));
18428
18473
  set("xai", pick2("XAI_API_KEY"));
18429
18474
  set("perplexity", pick2("PERPLEXITY_API_KEY"));
18430
18475
  set("deepseek", pick2("DEEPSEEK_API_KEY"));