Multi-Image ke Image
Gunakan endpoint Kling Multi-Image to Image dari CometAPI untuk menghasilkan gambar baru dari beberapa input, dengan request POST sederhana dan Content-Type yang fleksibel.
Gunakan endpoint ini saat Anda ingin Kling menghasilkan satu gambar dari beberapa referensi subjek ditambah referensi adegan atau gaya opsional.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.
Sebelum Anda memanggilnya
- Sediakan 2 hingga 4 gambar dalam
subject_image_list - Gunakan
model_name: kling-v2 - Tambahkan
scence_imageataustyle_imagehanya ketika komposisi subjek inti sudah berfungsi - Perlakukan ini sebagai rute generasi async dan simpan task id yang dikembalikan
Alur task
Kirim task pembuatan gambar
Poll task
Otorisasi
Bearer token authentication. Use your CometAPI key.
Header
Content type of the request body.
Body
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.