@shop-os/modelkit 0.28.0 → 0.29.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 +10 -0
- package/dist/catalog.cjs +91 -1
- package/dist/catalog.cjs.map +1 -1
- package/dist/catalog.js +91 -1
- package/dist/catalog.js.map +1 -1
- package/dist/index.cjs +144 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +144 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -9,6 +9,16 @@ header in the release PR.
|
|
|
9
9
|
|
|
10
10
|
## [Unreleased]
|
|
11
11
|
|
|
12
|
+
## [0.29.0] - Unreleased
|
|
13
|
+
|
|
14
|
+
### Added
|
|
15
|
+
- `ltx-2.3` and `ltx-2.3-fast` (ENG-4281): Lightricks LTX 2.3 on fal, one row per tier;
|
|
16
|
+
a start frame routes to `fal-ai/ltx-2.3/{text,image}-to-video` (or the `/fast` twins),
|
|
17
|
+
else text-to-video. The rows default to `adaptive`: fal's `auto` on image-to-video, its 16:9
|
|
18
|
+
default on text-to-video. The kit's `2k`/`4k` tiers are fal's `1440p`/`2160p`. Pro renders
|
|
19
|
+
6/8/10 s; Fast renders even 6-20 s, over 10 s at 1080p only. No new vocabulary:
|
|
20
|
+
`fps` is not a kit request field and the adapter leaves fal's 25 fps default in place.
|
|
21
|
+
|
|
12
22
|
## [0.28.0] - Unreleased
|
|
13
23
|
|
|
14
24
|
### Added
|
package/dist/catalog.cjs
CHANGED
|
@@ -5623,6 +5623,7 @@ var KLING_LOGO2 = "https://cdn.jsdelivr.net/npm/@lobehub/icons-static-png@1.97.0
|
|
|
5623
5623
|
var MINIMAX_LOGO4 = "https://d31vvfpk2ppdyq.cloudfront.net/assets/image/f4c2e906-28b7-4a4a-b491-df8fef7808ed.png";
|
|
5624
5624
|
var BYTEDANCE_LOGO = "https://d31vvfpk2ppdyq.cloudfront.net/assets/image/3bba5d81-4e57-4e71-911b-cdfa05acca2c_compressed.png";
|
|
5625
5625
|
var XAI_LOGO = "https://d31vvfpk2ppdyq.cloudfront.net/assets/image/858b7fcc-9bd5-411d-aea1-a7b35ecfffab_compressed.png";
|
|
5626
|
+
var LIGHTRICKS_LOGO = "https://cdn.jsdelivr.net/npm/@lobehub/icons-static-png@1.97.0/light/lightricks.png";
|
|
5626
5627
|
var H3_RATIOS = ["21:9", "16:9", "4:3", "1:1", "3:4", "9:16"];
|
|
5627
5628
|
var HAPPY_HORSE_RATIOS = [
|
|
5628
5629
|
"16:9",
|
|
@@ -6221,6 +6222,77 @@ var VIDEO_FAMILY_MODELS = [
|
|
|
6221
6222
|
description: "xAI Grok Imagine 1.5: text- and image-to-video at native 1080p with lip-synced audio, or up to 14 reference images and pinned first and last frames at 720p, up to 15 seconds."
|
|
6222
6223
|
},
|
|
6223
6224
|
capabilities: {}
|
|
6225
|
+
},
|
|
6226
|
+
{
|
|
6227
|
+
// https://fal.ai/models/fal-ai/ltx-2.3/text-to-video/api (+ /image-to-video): one row;
|
|
6228
|
+
// a start frame routes to image-to-video, else text-to-video. The kit's 2k/4k tiers
|
|
6229
|
+
// are fal's 1440p/2160p (adapters/fal-ltx.ts). "adaptive" is fal's "auto" on
|
|
6230
|
+
// image-to-video; text-to-video leaves an adaptive ratio at fal's 16:9 default.
|
|
6231
|
+
id: "ltx-2.3",
|
|
6232
|
+
aliases: ["ltx-2-3", "ltx23"],
|
|
6233
|
+
label: "LTX 2.3",
|
|
6234
|
+
type: "video",
|
|
6235
|
+
adapter: "fal",
|
|
6236
|
+
providerModelId: "fal-ai/ltx-2.3/text-to-video",
|
|
6237
|
+
lifecycle: "active",
|
|
6238
|
+
exposure: ["cowork", "space_builder"],
|
|
6239
|
+
constraints: {
|
|
6240
|
+
aspectRatios: ["adaptive", "16:9", "9:16"],
|
|
6241
|
+
resolutions: ["1080p", "2k", "4k"],
|
|
6242
|
+
durations: [6, 8, 10],
|
|
6243
|
+
supports: ["generateAudio", "lastFrame", "safetyChecker"],
|
|
6244
|
+
prompt: { referenceSyntax: "numbered", maxChars: 5e3 },
|
|
6245
|
+
audio: "optional"
|
|
6246
|
+
},
|
|
6247
|
+
defaults: {
|
|
6248
|
+
durationSeconds: 6,
|
|
6249
|
+
resolution: "1080p",
|
|
6250
|
+
aspectRatio: "adaptive",
|
|
6251
|
+
generateAudio: true
|
|
6252
|
+
},
|
|
6253
|
+
usage: { ...VIDEO_USAGE },
|
|
6254
|
+
pricingKind: "video_per_second",
|
|
6255
|
+
display: {
|
|
6256
|
+
provider: "lightricks",
|
|
6257
|
+
logo: LIGHTRICKS_LOGO,
|
|
6258
|
+
description: "Lightricks LTX 2.3 open-source text-to-video and start/end-frame image-to-video with native audio; 6, 8 or 10 seconds at up to 4K in landscape or portrait."
|
|
6259
|
+
},
|
|
6260
|
+
capabilities: { lastFrameRequiresFirstFrame: true }
|
|
6261
|
+
},
|
|
6262
|
+
{
|
|
6263
|
+
// https://fal.ai/models/fal-ai/ltx-2.3/text-to-video/fast/api (+ /image-to-video/fast):
|
|
6264
|
+
// the fast tier at the same resolutions; even durations 6-20 s, but over 10 s is
|
|
6265
|
+
// 1080p at 25 fps only (the kit never sends fps, so the rule checks the tier).
|
|
6266
|
+
id: "ltx-2.3-fast",
|
|
6267
|
+
aliases: ["ltx-2-3-fast", "ltx23-fast"],
|
|
6268
|
+
label: "LTX 2.3 Fast",
|
|
6269
|
+
type: "video",
|
|
6270
|
+
adapter: "fal",
|
|
6271
|
+
providerModelId: "fal-ai/ltx-2.3/text-to-video/fast",
|
|
6272
|
+
lifecycle: "active",
|
|
6273
|
+
exposure: ["cowork", "space_builder"],
|
|
6274
|
+
constraints: {
|
|
6275
|
+
aspectRatios: ["adaptive", "16:9", "9:16"],
|
|
6276
|
+
resolutions: ["1080p", "2k", "4k"],
|
|
6277
|
+
durations: [6, 8, 10, 12, 14, 16, 18, 20],
|
|
6278
|
+
supports: ["generateAudio", "lastFrame", "safetyChecker"],
|
|
6279
|
+
prompt: { referenceSyntax: "numbered", maxChars: 5e3 },
|
|
6280
|
+
audio: "optional"
|
|
6281
|
+
},
|
|
6282
|
+
defaults: {
|
|
6283
|
+
durationSeconds: 6,
|
|
6284
|
+
resolution: "1080p",
|
|
6285
|
+
aspectRatio: "adaptive",
|
|
6286
|
+
generateAudio: true
|
|
6287
|
+
},
|
|
6288
|
+
usage: { ...VIDEO_USAGE },
|
|
6289
|
+
pricingKind: "video_per_second",
|
|
6290
|
+
display: {
|
|
6291
|
+
provider: "lightricks",
|
|
6292
|
+
logo: LIGHTRICKS_LOGO,
|
|
6293
|
+
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."
|
|
6294
|
+
},
|
|
6295
|
+
capabilities: { lastFrameRequiresFirstFrame: true }
|
|
6224
6296
|
}
|
|
6225
6297
|
];
|
|
6226
6298
|
|
|
@@ -10085,6 +10157,8 @@ var HAPPY_HORSE = "happyhorse-1.1";
|
|
|
10085
10157
|
var HAPPY_HORSE_EDIT = "alibaba/happy-horse/video-edit";
|
|
10086
10158
|
var VIDU_Q4 = "fal-ai/vidu/q4";
|
|
10087
10159
|
var OMNIHUMAN_V2 = "bytedance/omnihuman/v2";
|
|
10160
|
+
var LTX_T2V = "fal-ai/ltx-2.3/text-to-video";
|
|
10161
|
+
var LTX_FAST_T2V = "fal-ai/ltx-2.3/text-to-video/fast";
|
|
10088
10162
|
var KLING_O3_IMAGE_CAP = 7;
|
|
10089
10163
|
var KLING_V4_IMAGE_CAP = 10;
|
|
10090
10164
|
var TURBO_AUDIO_MIN_SECONDS = 2;
|
|
@@ -10261,6 +10335,20 @@ function imageAndAudio(req, audioSeconds) {
|
|
|
10261
10335
|
}
|
|
10262
10336
|
return inputSeconds("audio", audio, audioSeconds);
|
|
10263
10337
|
}
|
|
10338
|
+
function ltx(fast) {
|
|
10339
|
+
return (req) => {
|
|
10340
|
+
if (req.lastFrame !== void 0 && req.firstFrame === void 0) {
|
|
10341
|
+
return missing("takes an end frame only together with a start frame");
|
|
10342
|
+
}
|
|
10343
|
+
if (count(req.referenceImages) + count(req.referenceVideos) + count(req.referenceAudios) > 0) {
|
|
10344
|
+
return unsupported2("takes no reference images, videos or audio");
|
|
10345
|
+
}
|
|
10346
|
+
if (fast && (req.durationSeconds ?? 6) > 10 && req.resolution !== void 0 && req.resolution !== "1080p") {
|
|
10347
|
+
return unsupported2("renders over 10 s at 1080p only");
|
|
10348
|
+
}
|
|
10349
|
+
return needsPrompt(req);
|
|
10350
|
+
};
|
|
10351
|
+
}
|
|
10264
10352
|
var RULES = new Map([
|
|
10265
10353
|
[MOTION_PRO, motionControl],
|
|
10266
10354
|
[MOTION_STANDARD, motionControl],
|
|
@@ -10284,7 +10372,9 @@ var RULES = new Map([
|
|
|
10284
10372
|
[OMNIHUMAN_V2, (req) => imageAndAudio(req, OMNIHUMAN_AUDIO_SECONDS)],
|
|
10285
10373
|
...AVATAR_AUDIO.map(
|
|
10286
10374
|
([id, limits]) => [id, (req) => imageAndAudio(req, limits)]
|
|
10287
|
-
)
|
|
10375
|
+
),
|
|
10376
|
+
[LTX_T2V, ltx(false)],
|
|
10377
|
+
[LTX_FAST_T2V, ltx(true)]
|
|
10288
10378
|
]);
|
|
10289
10379
|
function falVideoProblem(providerModelId, req) {
|
|
10290
10380
|
return RULES.get(providerModelId.toLowerCase())?.(req);
|