Creare un task video Kling da più immagini
Crea video Kling da più immagini tramite CometAPI POST /kling/v1/videos/multi-image2video, con controllo del movimento e impostazioni di output per la generazione.
Prima di chiamarlo
- Prepara da 1 a 4 immagini in
image_list - Usa immagini che soddisfano i requisiti in pixel di Kling; le miniature molto piccole vengono rifiutate dal task di generazione
- Ometti
model_namea meno che tu non debba specificamente selezionare un modello compatibile con la route - Mantieni semplice il primo test: un prompt breve,
duration: 5, nessuna impostazione di callback aggiuntiva - Non inviare campi mask per image-to-video come
static_maskodynamic_maskssu questa route
Flusso del task
Invia la richiesta multi-image
task_id di Kling restituito.Interroga il task
Salva il risultato
Autorizzazioni
Bearer token authentication. Use your CometAPI key.
Corpo
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.