@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/dist/index.cjs CHANGED
@@ -522,7 +522,7 @@ var FAL_IMAGE_MODELS = [
522
522
  {
523
523
  // kling/v4/text-to-image; references switch to kling/v4/image-to-image (up to 10,
524
524
  // "@Image1".."@Image10"). Per output image: $0.063 at 2K, $0.094 at 4K (Kling price page,
525
- // 2026-11-17); each reference adds $0.003, which we absorb. Native 8K is ENG-4137.
525
+ // 2026-11-17), $0.157 at 8K; each reference adds $0.003, which we absorb.
526
526
  id: "kling-image-4.0",
527
527
  aliases: [],
528
528
  label: "Kling Image 4.0",
@@ -533,7 +533,7 @@ var FAL_IMAGE_MODELS = [
533
533
  exposure: EXPOSURE,
534
534
  constraints: {
535
535
  aspectRatios: [...KLING_RATIOS, "adaptive"],
536
- sizes: ["2K", "4K"],
536
+ sizes: ["2K", "4K", "8K"],
537
537
  references: { images: 10 },
538
538
  supports: ["count"],
539
539
  prompt: { referenceSyntax: "numbered", maxChars: 21e3 }
@@ -543,7 +543,7 @@ var FAL_IMAGE_MODELS = [
543
543
  pricingKind: "image_size",
544
544
  display: {
545
545
  provider: "kuaishou",
546
- 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.",
546
+ 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.",
547
547
  logo: `${LOBE}/kling-color.png`
548
548
  }
549
549
  },
@@ -8365,7 +8365,7 @@ var AspectRatioSchema = import_zod3.z.enum([
8365
8365
  "8:1",
8366
8366
  "adaptive"
8367
8367
  ]);
8368
- var ImageSizeSchema = import_zod3.z.enum(["512", "1K", "2K", "4K"]);
8368
+ var ImageSizeSchema = import_zod3.z.enum(["512", "1K", "2K", "4K", "8K"]);
8369
8369
  var VideoResolutionSchema = import_zod3.z.enum(["360p", "480p", "720p", "768p", "1080p", "2k", "4k"]);
8370
8370
  var ImageQualitySchema = import_zod3.z.enum(["auto", "low", "medium", "high", "xhigh", "max"]);
8371
8371
  var OutputFormatSchema = import_zod3.z.enum(["png", "jpeg", "webp", "gif", "svg"]);
@@ -12110,7 +12110,7 @@ var KLING_V3 = klingImage(
12110
12110
  );
12111
12111
  var KLING_V42 = klingImage(
12112
12112
  "kling/v4/image-to-image",
12113
- { "2K": "2K", "4K": "4K" },
12113
+ { "2K": "2K", "4K": "4K", "8K": "8K" },
12114
12114
  "image_urls",
12115
12115
  "2K"
12116
12116
  );
@@ -18956,7 +18956,7 @@ function resolveOutputFormat(model, format, onUnsupported, warnings) {
18956
18956
  }
18957
18957
 
18958
18958
  // src/resolve-options.ts
18959
- var SIZE_ORDER = ["512", "1K", "2K", "4K"];
18959
+ var SIZE_ORDER = ["512", "1K", "2K", "4K", "8K"];
18960
18960
  var RESOLUTION_ORDER = ["360p", "480p", "720p", "768p", "1080p", "2k", "4k"];
18961
18961
  function ratioValue(r) {
18962
18962
  if (r === "adaptive") return 1;
@@ -20760,7 +20760,7 @@ function textAbortOptions(sdk, context) {
20760
20760
  var catalogId = import_zod38.z.string();
20761
20761
  var exactSize = import_zod38.z.templateLiteral([import_zod38.z.number(), "x", import_zod38.z.number()]);
20762
20762
  var sdkRatio = import_zod38.z.templateLiteral([import_zod38.z.number(), ":", import_zod38.z.number()]);
20763
- var sizeTier = import_zod38.z.enum(["512", "1K", "2K", "4K"]);
20763
+ var sizeTier = import_zod38.z.enum(["512", "1K", "2K", "4K", "8K"]);
20764
20764
  function isCatalogId(model) {
20765
20765
  return catalogId.safeParse(model).success;
20766
20766
  }