Da più immagini a immagine
Usa l’endpoint Kling Multi-Image to Image di CometAPI per generare nuove immagini da più input, con semplici richieste POST e un Content-Type flessibile.
Usa questo endpoint quando vuoi che Kling generi un’immagine a partire da più riferimenti del soggetto, più riferimenti opzionali per scena o stile.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.
Prima di chiamarlo
- Fornisci da 2 a 4 immagini in
subject_image_list - Usa
model_name: kling-v2 - Aggiungi
scence_imageostyle_imagesolo quando la composizione principale del soggetto funziona già - Considera questo come un percorso di generazione asincrona e salva il task id restituito
Flusso del task
Invia il task di generazione dell'immagine
Esegui il polling del task
Autorizzazioni
Bearer token authentication. Use your CometAPI key.
Intestazioni
Content type of the request body.
Corpo
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.