Tạo một tác vụ video Kling từ nhiều ảnh
Tạo video Kling từ nhiều ảnh thông qua CometAPI POST /kling/v1/videos/multi-image2video, với điều khiển chuyển động và các thiết lập đầu ra cho quá trình tạo.
Trước khi gọi
- Chuẩn bị từ 1 đến 4 ảnh trong
image_list - Sử dụng ảnh đáp ứng yêu cầu pixel của Kling; các ảnh thu nhỏ quá nhỏ sẽ bị tác vụ tạo từ chối
- Bỏ qua
model_nametrừ khi bạn thực sự cần chọn một model tương thích với route - Giữ lần thử đầu tiên đơn giản: một prompt ngắn,
duration: 5, không có thiết lập callback bổ sung - Không gửi các trường mask của image-to-video như
static_maskhoặcdynamic_maskstrên route này
Luồng tác vụ
Gửi yêu cầu nhiều ảnh
task_id được trả về.Thăm dò tác vụ
Lưu trữ kết quả
Ủy quyền
Bearer token authentication. Use your CometAPI key.
Nội dung
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.