@shop-os/modelkit 0.30.0 → 0.31.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/CHANGELOG.md +13 -0
- package/dist/catalog.cjs +79 -5
- package/dist/catalog.cjs.map +1 -1
- package/dist/catalog.js +79 -5
- package/dist/catalog.js.map +1 -1
- package/dist/index.cjs +97 -15
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +97 -15
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/catalog.js
CHANGED
|
@@ -6260,6 +6260,76 @@ var VIDEO_FAMILY_MODELS = [
|
|
|
6260
6260
|
description: "Speed-optimized Lightricks LTX 2.3 Fast text-to-video and start/end-frame image-to-video with native audio; 6-20 seconds at up to 4K, over 10 seconds at 1080p."
|
|
6261
6261
|
},
|
|
6262
6262
|
capabilities: { lastFrameRequiresFirstFrame: true }
|
|
6263
|
+
},
|
|
6264
|
+
{
|
|
6265
|
+
// https://fal.ai/models/lightricks/ltx-2.5/text-to-video/pro/api (+ /image-to-video/pro):
|
|
6266
|
+
// a Lightricks partner endpoint on fal. Pro renders 720p and 1080p only, 6/8/10 s;
|
|
6267
|
+
// no safety checker field. Routing and tiers as LTX 2.3 (adapters/fal-ltx.ts).
|
|
6268
|
+
id: "ltx-2.5",
|
|
6269
|
+
aliases: ["ltx-2-5", "ltx25", "ltx-2.5-pro"],
|
|
6270
|
+
label: "LTX 2.5",
|
|
6271
|
+
type: "video",
|
|
6272
|
+
adapter: "fal",
|
|
6273
|
+
providerModelId: "lightricks/ltx-2.5/text-to-video/pro",
|
|
6274
|
+
lifecycle: "active",
|
|
6275
|
+
exposure: ["cowork", "space_builder"],
|
|
6276
|
+
constraints: {
|
|
6277
|
+
aspectRatios: ["adaptive", "16:9", "9:16"],
|
|
6278
|
+
resolutions: ["720p", "1080p"],
|
|
6279
|
+
durations: [6, 8, 10],
|
|
6280
|
+
supports: ["generateAudio", "lastFrame"],
|
|
6281
|
+
prompt: { referenceSyntax: "numbered", maxChars: 5e3 },
|
|
6282
|
+
audio: "optional"
|
|
6283
|
+
},
|
|
6284
|
+
defaults: {
|
|
6285
|
+
durationSeconds: 6,
|
|
6286
|
+
resolution: "1080p",
|
|
6287
|
+
aspectRatio: "adaptive",
|
|
6288
|
+
generateAudio: true
|
|
6289
|
+
},
|
|
6290
|
+
usage: { ...VIDEO_USAGE },
|
|
6291
|
+
pricingKind: "video_per_second",
|
|
6292
|
+
display: {
|
|
6293
|
+
provider: "lightricks",
|
|
6294
|
+
logo: LIGHTRICKS_LOGO,
|
|
6295
|
+
description: "Lightricks LTX 2.5 Pro text-to-video and start/end-frame image-to-video with native audio; 6, 8 or 10 seconds at 720p or 1080p in landscape or portrait."
|
|
6296
|
+
},
|
|
6297
|
+
capabilities: { lastFrameRequiresFirstFrame: true }
|
|
6298
|
+
},
|
|
6299
|
+
{
|
|
6300
|
+
// https://fal.ai/models/lightricks/ltx-2.5/text-to-video/fast/api (+ /image-to-video/fast):
|
|
6301
|
+
// 720p to 2160p, even durations 6-20 s; over 10 s is 720p or 1080p at 24/25 fps only
|
|
6302
|
+
// (the kit never sends fps, so the rule checks the tier).
|
|
6303
|
+
id: "ltx-2.5-fast",
|
|
6304
|
+
aliases: ["ltx-2-5-fast", "ltx25-fast"],
|
|
6305
|
+
label: "LTX 2.5 Fast",
|
|
6306
|
+
type: "video",
|
|
6307
|
+
adapter: "fal",
|
|
6308
|
+
providerModelId: "lightricks/ltx-2.5/text-to-video/fast",
|
|
6309
|
+
lifecycle: "active",
|
|
6310
|
+
exposure: ["cowork", "space_builder"],
|
|
6311
|
+
constraints: {
|
|
6312
|
+
aspectRatios: ["adaptive", "16:9", "9:16"],
|
|
6313
|
+
resolutions: ["720p", "1080p", "2k", "4k"],
|
|
6314
|
+
durations: [6, 8, 10, 12, 14, 16, 18, 20],
|
|
6315
|
+
supports: ["generateAudio", "lastFrame"],
|
|
6316
|
+
prompt: { referenceSyntax: "numbered", maxChars: 5e3 },
|
|
6317
|
+
audio: "optional"
|
|
6318
|
+
},
|
|
6319
|
+
defaults: {
|
|
6320
|
+
durationSeconds: 6,
|
|
6321
|
+
resolution: "1080p",
|
|
6322
|
+
aspectRatio: "adaptive",
|
|
6323
|
+
generateAudio: true
|
|
6324
|
+
},
|
|
6325
|
+
usage: { ...VIDEO_USAGE },
|
|
6326
|
+
pricingKind: "video_per_second",
|
|
6327
|
+
display: {
|
|
6328
|
+
provider: "lightricks",
|
|
6329
|
+
logo: LIGHTRICKS_LOGO,
|
|
6330
|
+
description: "Speed-optimized Lightricks LTX 2.5 Fast text-to-video and start/end-frame image-to-video with native audio; 6-20 seconds at up to 4K, over 10 seconds at 720p or 1080p."
|
|
6331
|
+
},
|
|
6332
|
+
capabilities: { lastFrameRequiresFirstFrame: true }
|
|
6263
6333
|
}
|
|
6264
6334
|
];
|
|
6265
6335
|
|
|
@@ -10157,6 +10227,8 @@ var VIDU_Q4 = "fal-ai/vidu/q4";
|
|
|
10157
10227
|
var OMNIHUMAN_V2 = "bytedance/omnihuman/v2";
|
|
10158
10228
|
var LTX_T2V = "fal-ai/ltx-2.3/text-to-video";
|
|
10159
10229
|
var LTX_FAST_T2V = "fal-ai/ltx-2.3/text-to-video/fast";
|
|
10230
|
+
var LTX25_T2V = "lightricks/ltx-2.5/text-to-video/pro";
|
|
10231
|
+
var LTX25_FAST_T2V = "lightricks/ltx-2.5/text-to-video/fast";
|
|
10160
10232
|
var KLING_O3_IMAGE_CAP = 7;
|
|
10161
10233
|
var KLING_V4_IMAGE_CAP = 10;
|
|
10162
10234
|
var TURBO_AUDIO_MIN_SECONDS = 2;
|
|
@@ -10333,7 +10405,7 @@ function imageAndAudio(req, audioSeconds) {
|
|
|
10333
10405
|
}
|
|
10334
10406
|
return inputSeconds("audio", audio, audioSeconds);
|
|
10335
10407
|
}
|
|
10336
|
-
function ltx(
|
|
10408
|
+
function ltx(longTiers) {
|
|
10337
10409
|
return (req) => {
|
|
10338
10410
|
if (req.lastFrame !== void 0 && req.firstFrame === void 0) {
|
|
10339
10411
|
return missing("takes an end frame only together with a start frame");
|
|
@@ -10341,8 +10413,8 @@ function ltx(fast) {
|
|
|
10341
10413
|
if (count(req.referenceImages) + count(req.referenceVideos) + count(req.referenceAudios) > 0) {
|
|
10342
10414
|
return unsupported2("takes no reference images, videos or audio");
|
|
10343
10415
|
}
|
|
10344
|
-
if (
|
|
10345
|
-
return unsupported2(
|
|
10416
|
+
if (longTiers !== null && (req.durationSeconds ?? 6) > 10 && req.resolution !== void 0 && !longTiers.includes(req.resolution)) {
|
|
10417
|
+
return unsupported2(`renders over 10 s at ${longTiers.join(" or ")} only`);
|
|
10346
10418
|
}
|
|
10347
10419
|
return needsPrompt(req);
|
|
10348
10420
|
};
|
|
@@ -10371,8 +10443,10 @@ var RULES = new Map([
|
|
|
10371
10443
|
...AVATAR_AUDIO.map(
|
|
10372
10444
|
([id, limits]) => [id, (req) => imageAndAudio(req, limits)]
|
|
10373
10445
|
),
|
|
10374
|
-
[LTX_T2V, ltx(
|
|
10375
|
-
[LTX_FAST_T2V, ltx(
|
|
10446
|
+
[LTX_T2V, ltx(null)],
|
|
10447
|
+
[LTX_FAST_T2V, ltx(["1080p"])],
|
|
10448
|
+
[LTX25_T2V, ltx(null)],
|
|
10449
|
+
[LTX25_FAST_T2V, ltx(["720p", "1080p"])]
|
|
10376
10450
|
]);
|
|
10377
10451
|
function falVideoProblem(providerModelId, req) {
|
|
10378
10452
|
return RULES.get(providerModelId.toLowerCase())?.(req);
|