@shop-os/modelkit 0.4.1 → 0.4.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/CHANGELOG.md +8 -0
- package/dist/catalog.cjs +44 -0
- package/dist/catalog.cjs.map +1 -1
- package/dist/catalog.js +44 -0
- package/dist/catalog.js.map +1 -1
- package/dist/index.cjs +92 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +92 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/catalog.js
CHANGED
|
@@ -1367,6 +1367,7 @@ var OMNI_RATIOS = ["16:9", "9:16"];
|
|
|
1367
1367
|
var GROK_RATIOS = ["1:1", "16:9", "9:16", "4:3", "3:4", "3:2", "2:3"];
|
|
1368
1368
|
var H3_RATIOS = ["21:9", "16:9", "4:3", "1:1", "3:4", "9:16"];
|
|
1369
1369
|
var H3_REFERENCE_RATIOS = ["adaptive", ...H3_RATIOS];
|
|
1370
|
+
var WAN_RATIOS = ["adaptive", "16:9", "4:3", "1:1", "3:4", "9:16"];
|
|
1370
1371
|
var NEGATIVE_PROMPT = "blur, distort, and low quality";
|
|
1371
1372
|
var FRAMES_EXCLUDE_REFERENCES = { framesExcludeReferences: true };
|
|
1372
1373
|
var KLING_PROMPT = { referenceSyntax: "numbered", maxChars: 2500 };
|
|
@@ -1377,6 +1378,7 @@ var SEEDANCE_2_AUDIO = {
|
|
|
1377
1378
|
audioMaxBytes: 15 * 1024 * 1024
|
|
1378
1379
|
};
|
|
1379
1380
|
var H3_PROMPT = { referenceSyntax: "numbered", maxChars: 5e4 };
|
|
1381
|
+
var WAN_PROMPT = { referenceSyntax: "numbered", maxChars: 2e4 };
|
|
1380
1382
|
var OMNI_PROMPT = { referenceSyntax: "caption", maxChars: 5e4 };
|
|
1381
1383
|
var BYTEDANCE_LOGO = "https://d31vvfpk2ppdyq.cloudfront.net/assets/image/3bba5d81-4e57-4e71-911b-cdfa05acca2c_compressed.png";
|
|
1382
1384
|
var GOOGLE_LOGO2 = "https://d31vvfpk2ppdyq.cloudfront.net/assets/image/192485d2-a76a-4657-9c06-930b2c70badd_compressed.png";
|
|
@@ -1982,6 +1984,48 @@ var VIDEO_MODELS = [
|
|
|
1982
1984
|
// references instead of the adapter silently dropping the frame.
|
|
1983
1985
|
capabilities: { ...FRAMES_EXCLUDE_REFERENCES }
|
|
1984
1986
|
},
|
|
1987
|
+
{
|
|
1988
|
+
// One row for fal's three Wan 3.0 endpoints; the adapter picks text-, image- or
|
|
1989
|
+
// reference-to-video from the inputs. Each takes aspect_ratio, so none is ignored.
|
|
1990
|
+
// https://fal.ai/models/alibaba/wan-3.0/reference-to-video/api
|
|
1991
|
+
id: "wan-3.0",
|
|
1992
|
+
aliases: ["wan-3", "wan3"],
|
|
1993
|
+
label: "Wan 3",
|
|
1994
|
+
type: "video",
|
|
1995
|
+
adapter: "fal",
|
|
1996
|
+
providerModelId: "alibaba/wan-3.0",
|
|
1997
|
+
lifecycle: "active",
|
|
1998
|
+
exposure: ["cowork", "space_builder"],
|
|
1999
|
+
constraints: {
|
|
2000
|
+
aspectRatios: [...WAN_RATIOS],
|
|
2001
|
+
resolutions: ["480p", "720p", "1080p"],
|
|
2002
|
+
durations: { min: 2, max: 30 },
|
|
2003
|
+
durationPresets: [5, 10, 15, 30],
|
|
2004
|
+
references: {
|
|
2005
|
+
images: 10,
|
|
2006
|
+
videos: 5,
|
|
2007
|
+
audios: 5,
|
|
2008
|
+
videoSeconds: { total: 15 },
|
|
2009
|
+
audioSeconds: { total: 15 }
|
|
2010
|
+
},
|
|
2011
|
+
supports: ["seed", "lastFrame", "generateAudio", "safetyChecker"],
|
|
2012
|
+
prompt: WAN_PROMPT,
|
|
2013
|
+
audio: "optional"
|
|
2014
|
+
},
|
|
2015
|
+
defaults: {
|
|
2016
|
+
durationSeconds: 5,
|
|
2017
|
+
resolution: "1080p",
|
|
2018
|
+
aspectRatio: "adaptive",
|
|
2019
|
+
generateAudio: true
|
|
2020
|
+
},
|
|
2021
|
+
usage: { ...VIDEO_USAGE },
|
|
2022
|
+
pricingKind: "video_per_second",
|
|
2023
|
+
display: {
|
|
2024
|
+
provider: "alibaba",
|
|
2025
|
+
description: "Alibaba Wan 3 video model 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."
|
|
2026
|
+
},
|
|
2027
|
+
capabilities: { ...FRAMES_EXCLUDE_REFERENCES, lastFrameRequiresFirstFrame: true }
|
|
2028
|
+
},
|
|
1985
2029
|
{
|
|
1986
2030
|
// Duration 3-10s per trigger-workflows mapDuration; the endpoint takes no resolution.
|
|
1987
2031
|
id: "kling-o1-v2v",
|