Multi-Image to Image
Użyj endpointu Kling Multi-Image to Image w CometAPI, aby generować nowe obrazy z wielu danych wejściowych, za pomocą prostych żądań POST i elastycznego Content-Type.
Użyj tego endpointu, gdy chcesz, aby Kling wygenerował jeden obraz na podstawie wielu referencji obiektu oraz opcjonalnych referencji sceny lub stylu.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.
Zanim go wywołasz
- Podaj od 2 do 4 obrazów w
subject_image_list - Użyj
model_name: kling-v2 - Dodawaj
scence_imagelubstyle_imagetylko wtedy, gdy podstawowa kompozycja obiektu już działa poprawnie - Traktuj to jako asynchroniczną ścieżkę generowania i zapisz zwrócone id zadania
Przepływ zadania
Prześlij zadanie generowania obrazu
Sprawdzaj status zadania
Autoryzacje
Bearer token authentication. Use your CometAPI key.
Nagłówki
Content type of the request body.
Treść
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.