@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/dist/catalog.js
CHANGED
|
@@ -352,6 +352,34 @@ var FAL_IMAGE_MODELS = [
|
|
|
352
352
|
logo: `${LOBE}/kling-color.png`
|
|
353
353
|
}
|
|
354
354
|
},
|
|
355
|
+
{
|
|
356
|
+
// kling/v4/text-to-image; references switch to kling/v4/image-to-image (up to 10,
|
|
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. Native 8K is ENG-4137.
|
|
359
|
+
id: "kling-image-4.0",
|
|
360
|
+
aliases: [],
|
|
361
|
+
label: "Kling Image 4.0",
|
|
362
|
+
type: "image",
|
|
363
|
+
adapter: "fal",
|
|
364
|
+
providerModelId: "kling/v4/text-to-image",
|
|
365
|
+
lifecycle: "active",
|
|
366
|
+
exposure: EXPOSURE,
|
|
367
|
+
constraints: {
|
|
368
|
+
aspectRatios: [...KLING_RATIOS, "adaptive"],
|
|
369
|
+
sizes: ["2K", "4K"],
|
|
370
|
+
references: { images: 10 },
|
|
371
|
+
supports: ["count"],
|
|
372
|
+
prompt: { referenceSyntax: "numbered", maxChars: 21e3 }
|
|
373
|
+
},
|
|
374
|
+
defaults: { size: "2K", aspectRatio: "adaptive", count: 1 },
|
|
375
|
+
usage: { ...IMAGE_USAGE },
|
|
376
|
+
pricingKind: "image_size",
|
|
377
|
+
display: {
|
|
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 4K.",
|
|
380
|
+
logo: `${LOBE}/kling-color.png`
|
|
381
|
+
}
|
|
382
|
+
},
|
|
355
383
|
{
|
|
356
384
|
// fal-ai/kling-image/v3/text-to-image; a reference switches to .../v3/image-to-image, which
|
|
357
385
|
// takes exactly one image_url and no "auto" ratio. $0.028 per image.
|
|
@@ -9493,6 +9521,20 @@ var FAL_IMAGE_SPECS = /* @__PURE__ */ new Map([
|
|
|
9493
9521
|
aspectRatios: KLING_RATIOS3
|
|
9494
9522
|
}
|
|
9495
9523
|
],
|
|
9524
|
+
[
|
|
9525
|
+
// No output_format or seed field. Kling caps non-English prompts at 21,000 characters
|
|
9526
|
+
// (API update 2026-11-17), under the schema's 50,000.
|
|
9527
|
+
"kling/v4/text-to-image",
|
|
9528
|
+
{
|
|
9529
|
+
label: "Kling Image 4.0",
|
|
9530
|
+
maxReferences: 10,
|
|
9531
|
+
maxCount: 9,
|
|
9532
|
+
outputFormats: [],
|
|
9533
|
+
promptMax: 21e3,
|
|
9534
|
+
promptRequired: true,
|
|
9535
|
+
aspectRatios: [...KLING_RATIOS3, "adaptive"]
|
|
9536
|
+
}
|
|
9537
|
+
],
|
|
9496
9538
|
[
|
|
9497
9539
|
"recraft/v4.1/flash/text-to-image",
|
|
9498
9540
|
{
|