Nhiều ảnh sang ảnh
Sử dụng endpoint Kling Multi-Image to Image của CometAPI để tạo ảnh mới từ nhiều đầu vào, với các yêu cầu POST đơn giản và Content-Type linh hoạt.
Sử dụng endpoint này khi bạn muốn Kling tạo một ảnh từ nhiều ảnh tham chiếu chủ thể cùng với các ảnh tham chiếu cảnh hoặc phong cách không bắt buộc.Documentation Index
Fetch the complete documentation index at: https://apidoc.cometapi.com/llms.txt
Use this file to discover all available pages before exploring further.
Trước khi gọi
- Cung cấp từ 2 đến 4 ảnh trong
subject_image_list - Sử dụng
model_name: kling-v2 - Chỉ thêm
scence_imagehoặcstyle_imagekhi bố cục chủ thể cốt lõi đã hoạt động tốt - Xem đây là một route tạo ảnh bất đồng bộ và lưu task id được trả về
Luồng tác vụ
Thăm dò tác vụ
Ủy quyền
Bearer token authentication. Use your CometAPI key.
Tiêu đề
Content type of the request body.
Nội dung
Kling Image Generation API request body definition
List of subject reference images. Minimum 2, maximum 4.
Model to use for multi-image generation.
kling-v2 Text prompt describing the desired output. Max 2500 characters.
Optional scene reference image. Same format and size constraints as subject images.
Optional style reference image. Same format and size constraints as subject images.
Number of images to generate.
Aspect ratio of the generated image (width:height).
16:9, 9:16, 1:1, 4:3, 3:4, 3:2, 2:3, 21:9 Webhook URL for task status notifications. The server sends a callback when the task status changes.
Optional user-defined task ID for your own tracking. Does not replace the system-generated task ID. Must be unique per account.