@shop-os/modelkit 0.24.0 → 0.24.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 +11 -0
- package/dist/catalog.cjs +42 -0
- package/dist/catalog.cjs.map +1 -1
- package/dist/catalog.js +42 -0
- package/dist/catalog.js.map +1 -1
- package/dist/index.cjs +51 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +51 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -9,6 +9,17 @@ header in the release PR.
|
|
|
9
9
|
|
|
10
10
|
## [Unreleased]
|
|
11
11
|
|
|
12
|
+
## [0.24.1] - Unreleased
|
|
13
|
+
|
|
14
|
+
### Added
|
|
15
|
+
- `kling-image-4.0` (ENG-4129): Kling Image 4.0 on fal, `kling/v4/text-to-image`; references
|
|
16
|
+
switch to `kling/v4/image-to-image` (up to 10, `@Image1`..`@Image10`). Sizes 2K and 4K only
|
|
17
|
+
(v4 has no 1K; native 8K needs an `8K` ImageSize, ENG-4137). Ratios: the eight Kling ratios plus
|
|
18
|
+
`adaptive` (fal's `auto`), count 1-9. The endpoints have no `output_format` or `seed` field, so
|
|
19
|
+
the row does not list them. Prompt cap 21,000 (Kling's non-English limit). $0.063 per image at
|
|
20
|
+
2K, $0.094 at 4K; reference images ($0.003 each) are not billed. Live-checked 2026-11-18:
|
|
21
|
+
text-to-image and edit at 2K.
|
|
22
|
+
|
|
12
23
|
## [0.24.0] - Unreleased
|
|
13
24
|
|
|
14
25
|
### Added
|
package/dist/catalog.cjs
CHANGED
|
@@ -443,6 +443,34 @@ var FAL_IMAGE_MODELS = [
|
|
|
443
443
|
logo: `${LOBE}/kling-color.png`
|
|
444
444
|
}
|
|
445
445
|
},
|
|
446
|
+
{
|
|
447
|
+
// kling/v4/text-to-image; references switch to kling/v4/image-to-image (up to 10,
|
|
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.
|
|
450
|
+
id: "kling-image-4.0",
|
|
451
|
+
aliases: [],
|
|
452
|
+
label: "Kling Image 4.0",
|
|
453
|
+
type: "image",
|
|
454
|
+
adapter: "fal",
|
|
455
|
+
providerModelId: "kling/v4/text-to-image",
|
|
456
|
+
lifecycle: "active",
|
|
457
|
+
exposure: EXPOSURE,
|
|
458
|
+
constraints: {
|
|
459
|
+
aspectRatios: [...KLING_RATIOS, "adaptive"],
|
|
460
|
+
sizes: ["2K", "4K"],
|
|
461
|
+
references: { images: 10 },
|
|
462
|
+
supports: ["count"],
|
|
463
|
+
prompt: { referenceSyntax: "numbered", maxChars: 21e3 }
|
|
464
|
+
},
|
|
465
|
+
defaults: { size: "2K", aspectRatio: "adaptive", count: 1 },
|
|
466
|
+
usage: { ...IMAGE_USAGE },
|
|
467
|
+
pricingKind: "image_size",
|
|
468
|
+
display: {
|
|
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.",
|
|
471
|
+
logo: `${LOBE}/kling-color.png`
|
|
472
|
+
}
|
|
473
|
+
},
|
|
446
474
|
{
|
|
447
475
|
// fal-ai/kling-image/v3/text-to-image; a reference switches to .../v3/image-to-image, which
|
|
448
476
|
// takes exactly one image_url and no "auto" ratio. $0.028 per image.
|
|
@@ -9584,6 +9612,20 @@ var FAL_IMAGE_SPECS = /* @__PURE__ */ new Map([
|
|
|
9584
9612
|
aspectRatios: KLING_RATIOS3
|
|
9585
9613
|
}
|
|
9586
9614
|
],
|
|
9615
|
+
[
|
|
9616
|
+
// No output_format or seed field. Kling caps non-English prompts at 21,000 characters
|
|
9617
|
+
// (API update 2026-11-17), under the schema's 50,000.
|
|
9618
|
+
"kling/v4/text-to-image",
|
|
9619
|
+
{
|
|
9620
|
+
label: "Kling Image 4.0",
|
|
9621
|
+
maxReferences: 10,
|
|
9622
|
+
maxCount: 9,
|
|
9623
|
+
outputFormats: [],
|
|
9624
|
+
promptMax: 21e3,
|
|
9625
|
+
promptRequired: true,
|
|
9626
|
+
aspectRatios: [...KLING_RATIOS3, "adaptive"]
|
|
9627
|
+
}
|
|
9628
|
+
],
|
|
9587
9629
|
[
|
|
9588
9630
|
"recraft/v4.1/flash/text-to-image",
|
|
9589
9631
|
{
|