🔥 Black Friday AI API deals are live· 🎬 Seedance 2.5 — 20% off, up to 42% below market, until Nov 30Ends in--d --:--:--See deals →

Kling 4.0 Image Set: AI 图像生成器

使用 Kling 4.0 Image Set API,一次请求生成 2 到 10 张风格连贯的图像。可选参考图,最高支持 8K。按次生成付费,无需订阅。 Kling 4.0 Image Set 可通过一次请求生成一组连贯的 2-10 张图像,也可选择使用参考图和命名主体;支持 2K、4K 或 8K 分辨率。

交互式模型控制

Kling 4.0 Image Set 可通过一次请求生成一组连贯的 2-10 张图像,也可选择使用参考图和命名主体;支持 2K、4K 或 8K 分辨率。

📝

概览

关于此模型

Kling 4.0 Image Set 可根据一个提示词生成 2-10 张相互协调的图像,让整组图像中的主体和视觉风格保持一致。请在提示词中描述完整序列,例如同一角色从清晨到夜晚的变化;也可以添加最多 10 张参考图(@image_1、@image_2)和命名的 elements(每个元素提供 2-4 个角度),并通过 @name 指定,以固定角色、道具或服装。支持九种宽高比,输出分辨率为 2K、4K 或 8K。生成单张图像,请参阅 Kling 4.0 Text to Image 或 Kling 4.0 Image Edit;生成长图,请参阅 Kling 4.0 Long Image。

1分镜:一次请求即可生成连贯的画面序列。
2角色设定表:借助 elements,让同一角色在不同姿势和场景中保持一致。
3营销素材:以统一风格批量制作配套的产品或社交媒体视觉素材。
4产品视角:根据参考照片生成风格一致的产品多角度图像。
💰

价格与价值

成本分析

muapiapp每组 $0.126 起(2 张 2K 图像)

按次生成付费,无需订阅。

Fal.ai暂不可用

Kling 4.0 Image Set 暂未列出。

Replicate暂不可用

Kling 4.0 Image Set 暂未列出。

** 竞品价格根据相似模型架构和使用层级估算。

⚙️

技术详情

配置参数

提示词string

Text prompt (max 20000 characters) describing the whole set, e.g. the same character from morning to night. Mention references as @image_1 and elements as @name.

默认值A red apple on a white table, studio lighting, photorealistic
图像 URLarray

可选的 参考图像 (up to 10). Mention them in the prompt as @image_1, @image_2 in array order.

默认值https://static.aiquickdraw.com/tools/example/1764851484363_ScV1s2aq.webp
Elementsarray

可选的 subjects for this task, mentioned in the prompt as @name. Images plus elements cannot exceed 10.

默认值-
分辨率枚举(3 个选项)

Output resolution. 2k/4k usually return PNG, 8k returns JPEG.

默认值2k
画面比例枚举(9 个选项)

Output aspect ratio. auto lets the model choose from the prompt and references.

默认值auto
图像数量integer

Number of images in the set (2-10).

默认值4
📖

实施指南

开发者文档

如何使用 Kling 4.0 Image Set API

  1. 为整组图像编写一个提示词(最多 20,000 个字符),描述共同的主体和风格。

  2. 可选:添加参考图:在 images_list 中传入最多 10 个 URL,并按顺序用 @image_1、@image_2 引用。也可在 elements 中添加命名主体(每个包含 2-4 张图),并用 @name 引用。参考图和 elements 总数不能超过 10。

  3. 选择 count(2-10)、resolution 和 aspect_ratio。分辨率为 2k、4k 或 8k。

  4. 提交请求并轮询返回的 request_id,或传入 webhook URL。

curl -X POST https://api.muapi.ai/api/v1/kling-4.0-image-set \
  -H "x-api-key: $MUAPI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"prompt": "A four-panel story of the same small white robot: it finds a seed, plants it, waters it in the rain, and rests in the shade of the grown tree. Cinematic, warm light.", "count": 4, "resolution": "2k", "aspect_ratio": "1:1"}'
❓

常见问题

常见问答

什么是 Kling 4.0 Image Set?

Kling 4.0 Image Set 可根据一个提示词生成 2-10 张连贯的图像,并支持添加参考图和命名元素来保持主体一致。

Kling 4.0 Image Set API 如何收费?

每张输出图像的费用为:2K $0.063、4K $0.094、8K $0.157;每张输入图像另收 $0.003。例如,生成 4 张 2K 图像需 $0.252,生成 6 张 4K 图像并使用 3 张参考图需 $0.573。

如何在提示词中使用参考图?

将 URL 列在 `images_list` 中,并按相同顺序在提示词中用 `@image_1`、`@image_2` 引用。引用未提供的图像会导致验证错误。

支持哪些分辨率和宽高比?

支持 2k、4k 和 8k 分辨率(2k 和 4k 通常返回 PNG,8k 返回 JPEG)。宽高比支持 auto、9:16、2:3、3:4、1:1、4:3、3:2、16:9 和 21:9。

如何获取生成结果?

请求以异步方式处理:提交任务后,轮询返回的 `request_id`,或传入 `webhook` URL,以便在任务完成时收到通知。

是否提供沙盒用于测试?

是。沙盒 API 密钥会立即返回模拟结果,不会扣除额度。