@shop-os/modelkit 0.24.1 → 0.25.1

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,25 @@ header in the release PR.
9
9
 
10
10
  ## [Unreleased]
11
11
 
12
+ ## [0.25.1] - Unreleased
13
+
14
+ ### Changed
15
+ - `kling-image-4.0` lists `8K` (ENG-4137): $0.157 per image. Publish only after every consumer
16
+ runs 0.25.0, since an older kit drops a row whose sizes it cannot parse; pro-backend's boot seed
17
+ then adds 8K to the live row.
18
+
19
+ ## [0.25.0] - Unreleased
20
+
21
+ ### Added
22
+ - `8K` image size tier (ENG-4137): `ImageSize`, the row schema, the SDK-style `size` option and
23
+ the resolver's size order. Kling Image 4.0 maps `8K` to fal's `8K` resolution. No bundled row
24
+ lists 8K yet: a consumer on an older kit drops a row that does, so `kling-image-4.0` gains 8K
25
+ in a later release, once every consumer runs this one.
26
+
27
+ ### Fixed
28
+ - Coercing a size above every tier a row offers now picks the largest tier below it. Before,
29
+ a size missing from the order (8K) coerced to the row's smallest tier.
30
+
12
31
  ## [0.24.1] - Unreleased
13
32
 
14
33
  ### Added
package/dist/catalog.cjs CHANGED
@@ -446,7 +446,7 @@ var FAL_IMAGE_MODELS = [
446
446
  {
447
447
  // kling/v4/text-to-image; references switch to kling/v4/image-to-image (up to 10,
448
448
  // "@Image1".."@Image10"). Per output image: $0.063 at 2K, $0.094 at 4K (Kling price page,
449
- // 2026-11-17); each reference adds $0.003, which we absorb. Native 8K is ENG-4137.
449
+ // 2026-11-17), $0.157 at 8K; each reference adds $0.003, which we absorb.
450
450
  id: "kling-image-4.0",
451
451
  aliases: [],
452
452
  label: "Kling Image 4.0",
@@ -457,7 +457,7 @@ var FAL_IMAGE_MODELS = [
457
457
  exposure: EXPOSURE,
458
458
  constraints: {
459
459
  aspectRatios: [...KLING_RATIOS, "adaptive"],
460
- sizes: ["2K", "4K"],
460
+ sizes: ["2K", "4K", "8K"],
461
461
  references: { images: 10 },
462
462
  supports: ["count"],
463
463
  prompt: { referenceSyntax: "numbered", maxChars: 21e3 }
@@ -467,7 +467,7 @@ var FAL_IMAGE_MODELS = [
467
467
  pricingKind: "image_size",
468
468
  display: {
469
469
  provider: "kuaishou",
470
- description: "Kling Image 4.0 for photoreal text-to-image, long in-image text and multi-reference editing; takes a prompt and up to 10 reference images and outputs 2K or 4K.",
470
+ description: "Kling Image 4.0 for photoreal text-to-image, long in-image text and multi-reference editing; takes a prompt and up to 10 reference images and outputs 2K, 4K or 8K.",
471
471
  logo: `${LOBE}/kling-color.png`
472
472
  }
473
473
  },
@@ -8295,7 +8295,7 @@ var AspectRatioSchema = import_zod3.z.enum([
8295
8295
  "8:1",
8296
8296
  "adaptive"
8297
8297
  ]);
8298
- var ImageSizeSchema = import_zod3.z.enum(["512", "1K", "2K", "4K"]);
8298
+ var ImageSizeSchema = import_zod3.z.enum(["512", "1K", "2K", "4K", "8K"]);
8299
8299
  var VideoResolutionSchema = import_zod3.z.enum(["360p", "480p", "720p", "768p", "1080p", "2k", "4k"]);
8300
8300
  var ImageQualitySchema = import_zod3.z.enum(["auto", "low", "medium", "high", "xhigh", "max"]);
8301
8301
  var OutputFormatSchema = import_zod3.z.enum(["png", "jpeg", "webp", "gif", "svg"]);
@@ -10055,7 +10055,7 @@ function applyFalVideoRules(model, req, callerRatio, warnings) {
10055
10055
  }
10056
10056
 
10057
10057
  // src/resolve-options.ts
10058
- var SIZE_ORDER = ["512", "1K", "2K", "4K"];
10058
+ var SIZE_ORDER = ["512", "1K", "2K", "4K", "8K"];
10059
10059
  var RESOLUTION_ORDER = ["360p", "480p", "720p", "768p", "1080p", "2k", "4k"];
10060
10060
  function ratioValue(r) {
10061
10061
  if (r === "adaptive") return 1;