@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 +19 -0
- package/dist/catalog.cjs +5 -5
- package/dist/catalog.cjs.map +1 -1
- package/dist/catalog.d.cts +3 -1
- package/dist/catalog.d.ts +3 -1
- package/dist/catalog.js +5 -5
- package/dist/catalog.js.map +1 -1
- package/dist/index.cjs +7 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +7 -7
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/catalog.d.cts
CHANGED
|
@@ -9,7 +9,7 @@ import { z } from 'zod';
|
|
|
9
9
|
/** The AI SDK video model spelling: a catalog id or a provider video model instance. */
|
|
10
10
|
type VideoModel = Parameters<typeof experimental_generateVideo>[0]["model"];
|
|
11
11
|
type AspectRatio = "1:1" | "16:9" | "9:16" | "4:3" | "3:4" | "3:2" | "2:3" | "4:5" | "5:4" | "21:9" | "9:21" | "97:30" | "1:4" | "4:1" | "1:8" | "8:1" | "adaptive";
|
|
12
|
-
type ImageSize = "512" | "1K" | "2K" | "4K";
|
|
12
|
+
type ImageSize = "512" | "1K" | "2K" | "4K" | "8K";
|
|
13
13
|
type VideoResolution = "360p" | "480p" | "720p" | "768p" | "1080p" | "2k" | "4k";
|
|
14
14
|
/** "xhigh" and "max" exist only on gpt-image-2.5; gpt-image-2 rejects them at the provider. */
|
|
15
15
|
type ImageQuality = "auto" | "low" | "medium" | "high" | "xhigh" | "max";
|
|
@@ -1336,6 +1336,7 @@ declare const CatalogModelSchemaBase: z.ZodObject<{
|
|
|
1336
1336
|
"1K": "1K";
|
|
1337
1337
|
"2K": "2K";
|
|
1338
1338
|
"4K": "4K";
|
|
1339
|
+
"8K": "8K";
|
|
1339
1340
|
}>>>;
|
|
1340
1341
|
resolutions: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
1341
1342
|
"360p": "360p";
|
|
@@ -1647,6 +1648,7 @@ declare const CatalogModelSchemaBase: z.ZodObject<{
|
|
|
1647
1648
|
"1K": "1K";
|
|
1648
1649
|
"2K": "2K";
|
|
1649
1650
|
"4K": "4K";
|
|
1651
|
+
"8K": "8K";
|
|
1650
1652
|
}>>;
|
|
1651
1653
|
exactSize: z.ZodOptional<z.ZodString>;
|
|
1652
1654
|
quality: z.ZodOptional<z.ZodEnum<{
|
package/dist/catalog.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ import { z } from 'zod';
|
|
|
9
9
|
/** The AI SDK video model spelling: a catalog id or a provider video model instance. */
|
|
10
10
|
type VideoModel = Parameters<typeof experimental_generateVideo>[0]["model"];
|
|
11
11
|
type AspectRatio = "1:1" | "16:9" | "9:16" | "4:3" | "3:4" | "3:2" | "2:3" | "4:5" | "5:4" | "21:9" | "9:21" | "97:30" | "1:4" | "4:1" | "1:8" | "8:1" | "adaptive";
|
|
12
|
-
type ImageSize = "512" | "1K" | "2K" | "4K";
|
|
12
|
+
type ImageSize = "512" | "1K" | "2K" | "4K" | "8K";
|
|
13
13
|
type VideoResolution = "360p" | "480p" | "720p" | "768p" | "1080p" | "2k" | "4k";
|
|
14
14
|
/** "xhigh" and "max" exist only on gpt-image-2.5; gpt-image-2 rejects them at the provider. */
|
|
15
15
|
type ImageQuality = "auto" | "low" | "medium" | "high" | "xhigh" | "max";
|
|
@@ -1336,6 +1336,7 @@ declare const CatalogModelSchemaBase: z.ZodObject<{
|
|
|
1336
1336
|
"1K": "1K";
|
|
1337
1337
|
"2K": "2K";
|
|
1338
1338
|
"4K": "4K";
|
|
1339
|
+
"8K": "8K";
|
|
1339
1340
|
}>>>;
|
|
1340
1341
|
resolutions: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
1341
1342
|
"360p": "360p";
|
|
@@ -1647,6 +1648,7 @@ declare const CatalogModelSchemaBase: z.ZodObject<{
|
|
|
1647
1648
|
"1K": "1K";
|
|
1648
1649
|
"2K": "2K";
|
|
1649
1650
|
"4K": "4K";
|
|
1651
|
+
"8K": "8K";
|
|
1650
1652
|
}>>;
|
|
1651
1653
|
exactSize: z.ZodOptional<z.ZodString>;
|
|
1652
1654
|
quality: z.ZodOptional<z.ZodEnum<{
|
package/dist/catalog.js
CHANGED
|
@@ -355,7 +355,7 @@ var FAL_IMAGE_MODELS = [
|
|
|
355
355
|
{
|
|
356
356
|
// kling/v4/text-to-image; references switch to kling/v4/image-to-image (up to 10,
|
|
357
357
|
// "@Image1".."@Image10"). Per output image: $0.063 at 2K, $0.094 at 4K (Kling price page,
|
|
358
|
-
// 2026-11-17); each reference adds $0.003, which we absorb.
|
|
358
|
+
// 2026-11-17), $0.157 at 8K; each reference adds $0.003, which we absorb.
|
|
359
359
|
id: "kling-image-4.0",
|
|
360
360
|
aliases: [],
|
|
361
361
|
label: "Kling Image 4.0",
|
|
@@ -366,7 +366,7 @@ var FAL_IMAGE_MODELS = [
|
|
|
366
366
|
exposure: EXPOSURE,
|
|
367
367
|
constraints: {
|
|
368
368
|
aspectRatios: [...KLING_RATIOS, "adaptive"],
|
|
369
|
-
sizes: ["2K", "4K"],
|
|
369
|
+
sizes: ["2K", "4K", "8K"],
|
|
370
370
|
references: { images: 10 },
|
|
371
371
|
supports: ["count"],
|
|
372
372
|
prompt: { referenceSyntax: "numbered", maxChars: 21e3 }
|
|
@@ -376,7 +376,7 @@ var FAL_IMAGE_MODELS = [
|
|
|
376
376
|
pricingKind: "image_size",
|
|
377
377
|
display: {
|
|
378
378
|
provider: "kuaishou",
|
|
379
|
-
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
|
|
379
|
+
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.",
|
|
380
380
|
logo: `${LOBE}/kling-color.png`
|
|
381
381
|
}
|
|
382
382
|
},
|
|
@@ -8204,7 +8204,7 @@ var AspectRatioSchema = z3.enum([
|
|
|
8204
8204
|
"8:1",
|
|
8205
8205
|
"adaptive"
|
|
8206
8206
|
]);
|
|
8207
|
-
var ImageSizeSchema = z3.enum(["512", "1K", "2K", "4K"]);
|
|
8207
|
+
var ImageSizeSchema = z3.enum(["512", "1K", "2K", "4K", "8K"]);
|
|
8208
8208
|
var VideoResolutionSchema = z3.enum(["360p", "480p", "720p", "768p", "1080p", "2k", "4k"]);
|
|
8209
8209
|
var ImageQualitySchema = z3.enum(["auto", "low", "medium", "high", "xhigh", "max"]);
|
|
8210
8210
|
var OutputFormatSchema = z3.enum(["png", "jpeg", "webp", "gif", "svg"]);
|
|
@@ -9964,7 +9964,7 @@ function applyFalVideoRules(model, req, callerRatio, warnings) {
|
|
|
9964
9964
|
}
|
|
9965
9965
|
|
|
9966
9966
|
// src/resolve-options.ts
|
|
9967
|
-
var SIZE_ORDER = ["512", "1K", "2K", "4K"];
|
|
9967
|
+
var SIZE_ORDER = ["512", "1K", "2K", "4K", "8K"];
|
|
9968
9968
|
var RESOLUTION_ORDER = ["360p", "480p", "720p", "768p", "1080p", "2k", "4k"];
|
|
9969
9969
|
function ratioValue(r) {
|
|
9970
9970
|
if (r === "adaptive") return 1;
|