建立 Kling 多圖影片任務
透過 CometAPI POST /kling/v1/videos/multi-image2video 從多張圖片建立 Kling 影片,並提供動作控制與生成輸出設定。
呼叫前準備
- 在
image_list中準備 1 到 4 張圖片 - 使用符合 Kling 像素要求的圖片;過小的縮圖會被生成任務拒絕
- 除非你明確需要選擇與路由相容的模型,否則請省略
model_name - 第一次測試請保持簡單:簡短的 prompt、
duration: 5,且不要加入額外的 callback 設定 - 請勿在此路由上傳送 image-to-video 的遮罩欄位,例如
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.