创建一个 Kling 多图视频任务
通过 CometAPI POST /kling/v1/videos/multi-image2video 从多张图片创建 Kling 视频,并可为生成设置运动控制和输出参数。
调用前准备
- 在
image_list中准备 1 到 4 张图片 - 使用符合 Kling 像素要求的图片;过小的缩略图会被生成任务拒绝
- 除非你明确需要选择一个与路由兼容的模型,否则请省略
model_name - 首次测试请尽量保持简单:简短的 prompt、
duration: 5,且不要添加额外的回调设置 - 不要在此路由中发送图生视频的蒙版字段,例如
static_mask或dynamic_masks
任务流程
提交多图请求
task_id。轮询任务
保存结果
授权
Bearer token authentication. Use your CometAPI key.
请求体
Input image references. Provide 1 to 4 items that meet Kling pixel requirements; very small thumbnails are rejected.
1 - 4 elementsKling model variant for multi-image video. Omit to use kling-v1-6.
kling-v1-6 Text prompt describing the desired motion and scene.
Elements to avoid in the generated video.
Generation mode. Use std or pro; omitted requests use std.
std, pro Output video length in seconds. Use 5 or 10; omitted requests use 5.
Requested frame aspect ratio when the model needs an explicit frame shape.
16:9, 9:16, 1:1 Webhook URL to receive task status updates.
Custom task id for your own tracking. Must be unique per account.