@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 CHANGED
@@ -9,6 +9,19 @@ header in the release PR.
9
9
 
10
10
  ## [Unreleased]
11
11
 
12
+ ## [0.31.0] - Unreleased
13
+
14
+ ### Added
15
+ - `ltx-2.5` and `ltx-2.5-fast` (ENG-4326): Lightricks LTX 2.5 Pro and Fast on fal partner endpoints
16
+ `lightricks/ltx-2.5/{text,image}-to-video/{pro,fast}`, on the LTX 2.3 adapter (`adapters/fal-ltx.ts`):
17
+ a start frame routes to image-to-video (with an optional end frame), else text-to-video. Pro renders
18
+ 720p or 1080p, 6/8/10 s; Fast renders 720p to 2160p (`2k`/`4k`), even 6-20 s, over 10 s at 720p or
19
+ 1080p only. LTX 2.5 has no safety-checker field, so the rows do not support `safetyChecker`. No new
20
+ vocabulary.
21
+
22
+ ### Live rows to add after publish
23
+ - Pricing rows (shopos + sloosh, every env) for `ltx-2.5` 720p/1080p and `ltx-2.5-fast` 720p/1080p/2k/4k.
24
+
12
25
  ## [0.30.0] - Unreleased
13
26
 
14
27
  ### Added
package/dist/catalog.cjs CHANGED
@@ -6352,6 +6352,76 @@ var VIDEO_FAMILY_MODELS = [
6352
6352
  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."
6353
6353
  },
6354
6354
  capabilities: { lastFrameRequiresFirstFrame: true }
6355
+ },
6356
+ {
6357
+ // https://fal.ai/models/lightricks/ltx-2.5/text-to-video/pro/api (+ /image-to-video/pro):
6358
+ // a Lightricks partner endpoint on fal. Pro renders 720p and 1080p only, 6/8/10 s;
6359
+ // no safety checker field. Routing and tiers as LTX 2.3 (adapters/fal-ltx.ts).
6360
+ id: "ltx-2.5",
6361
+ aliases: ["ltx-2-5", "ltx25", "ltx-2.5-pro"],
6362
+ label: "LTX 2.5",
6363
+ type: "video",
6364
+ adapter: "fal",
6365
+ providerModelId: "lightricks/ltx-2.5/text-to-video/pro",
6366
+ lifecycle: "active",
6367
+ exposure: ["cowork", "space_builder"],
6368
+ constraints: {
6369
+ aspectRatios: ["adaptive", "16:9", "9:16"],
6370
+ resolutions: ["720p", "1080p"],
6371
+ durations: [6, 8, 10],
6372
+ supports: ["generateAudio", "lastFrame"],
6373
+ prompt: { referenceSyntax: "numbered", maxChars: 5e3 },
6374
+ audio: "optional"
6375
+ },
6376
+ defaults: {
6377
+ durationSeconds: 6,
6378
+ resolution: "1080p",
6379
+ aspectRatio: "adaptive",
6380
+ generateAudio: true
6381
+ },
6382
+ usage: { ...VIDEO_USAGE },
6383
+ pricingKind: "video_per_second",
6384
+ display: {
6385
+ provider: "lightricks",
6386
+ logo: LIGHTRICKS_LOGO,
6387
+ 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."
6388
+ },
6389
+ capabilities: { lastFrameRequiresFirstFrame: true }
6390
+ },
6391
+ {
6392
+ // https://fal.ai/models/lightricks/ltx-2.5/text-to-video/fast/api (+ /image-to-video/fast):
6393
+ // 720p to 2160p, even durations 6-20 s; over 10 s is 720p or 1080p at 24/25 fps only
6394
+ // (the kit never sends fps, so the rule checks the tier).
6395
+ id: "ltx-2.5-fast",
6396
+ aliases: ["ltx-2-5-fast", "ltx25-fast"],
6397
+ label: "LTX 2.5 Fast",
6398
+ type: "video",
6399
+ adapter: "fal",
6400
+ providerModelId: "lightricks/ltx-2.5/text-to-video/fast",
6401
+ lifecycle: "active",
6402
+ exposure: ["cowork", "space_builder"],
6403
+ constraints: {
6404
+ aspectRatios: ["adaptive", "16:9", "9:16"],
6405
+ resolutions: ["720p", "1080p", "2k", "4k"],
6406
+ durations: [6, 8, 10, 12, 14, 16, 18, 20],
6407
+ supports: ["generateAudio", "lastFrame"],
6408
+ prompt: { referenceSyntax: "numbered", maxChars: 5e3 },
6409
+ audio: "optional"
6410
+ },
6411
+ defaults: {
6412
+ durationSeconds: 6,
6413
+ resolution: "1080p",
6414
+ aspectRatio: "adaptive",
6415
+ generateAudio: true
6416
+ },
6417
+ usage: { ...VIDEO_USAGE },
6418
+ pricingKind: "video_per_second",
6419
+ display: {
6420
+ provider: "lightricks",
6421
+ logo: LIGHTRICKS_LOGO,
6422
+ 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."
6423
+ },
6424
+ capabilities: { lastFrameRequiresFirstFrame: true }
6355
6425
  }
6356
6426
  ];
6357
6427
 
@@ -10249,6 +10319,8 @@ var VIDU_Q4 = "fal-ai/vidu/q4";
10249
10319
  var OMNIHUMAN_V2 = "bytedance/omnihuman/v2";
10250
10320
  var LTX_T2V = "fal-ai/ltx-2.3/text-to-video";
10251
10321
  var LTX_FAST_T2V = "fal-ai/ltx-2.3/text-to-video/fast";
10322
+ var LTX25_T2V = "lightricks/ltx-2.5/text-to-video/pro";
10323
+ var LTX25_FAST_T2V = "lightricks/ltx-2.5/text-to-video/fast";
10252
10324
  var KLING_O3_IMAGE_CAP = 7;
10253
10325
  var KLING_V4_IMAGE_CAP = 10;
10254
10326
  var TURBO_AUDIO_MIN_SECONDS = 2;
@@ -10425,7 +10497,7 @@ function imageAndAudio(req, audioSeconds) {
10425
10497
  }
10426
10498
  return inputSeconds("audio", audio, audioSeconds);
10427
10499
  }
10428
- function ltx(fast) {
10500
+ function ltx(longTiers) {
10429
10501
  return (req) => {
10430
10502
  if (req.lastFrame !== void 0 && req.firstFrame === void 0) {
10431
10503
  return missing("takes an end frame only together with a start frame");
@@ -10433,8 +10505,8 @@ function ltx(fast) {
10433
10505
  if (count(req.referenceImages) + count(req.referenceVideos) + count(req.referenceAudios) > 0) {
10434
10506
  return unsupported2("takes no reference images, videos or audio");
10435
10507
  }
10436
- if (fast && (req.durationSeconds ?? 6) > 10 && req.resolution !== void 0 && req.resolution !== "1080p") {
10437
- return unsupported2("renders over 10 s at 1080p only");
10508
+ if (longTiers !== null && (req.durationSeconds ?? 6) > 10 && req.resolution !== void 0 && !longTiers.includes(req.resolution)) {
10509
+ return unsupported2(`renders over 10 s at ${longTiers.join(" or ")} only`);
10438
10510
  }
10439
10511
  return needsPrompt(req);
10440
10512
  };
@@ -10463,8 +10535,10 @@ var RULES = new Map([
10463
10535
  ...AVATAR_AUDIO.map(
10464
10536
  ([id, limits]) => [id, (req) => imageAndAudio(req, limits)]
10465
10537
  ),
10466
- [LTX_T2V, ltx(false)],
10467
- [LTX_FAST_T2V, ltx(true)]
10538
+ [LTX_T2V, ltx(null)],
10539
+ [LTX_FAST_T2V, ltx(["1080p"])],
10540
+ [LTX25_T2V, ltx(null)],
10541
+ [LTX25_FAST_T2V, ltx(["720p", "1080p"])]
10468
10542
  ]);
10469
10543
  function falVideoProblem(providerModelId, req) {
10470
10544
  return RULES.get(providerModelId.toLowerCase())?.(req);