Maak een Kling Omni-video
Gebruik CometAPI POST /kling/v1/videos/omni-video om Kling O1-videotaken aan te maken en de status te volgen met de Omni-queryroute.
Kies de invoermodus
- Text-to-video: verstuur
prompt,mode,aspect_ratioenduration - Referentie naar afbeelding van het eerste frame: voeg
image_list-items toe metimage_urlentype: first_frame, en verwijs daarnaar inpromptals<<<image_1>>> - Uitvoer met watermerk: voeg
watermark_info.enabled: truetoe wanneer je een video-URL met watermerk nodig hebt in de queryrespons - Model ID: laat
model_nameweg om de standaardwaarde van de route te gebruiken, of verstuur een geteste Omni Video model ID zoalskling-video-o1ofkling-v3-omni
Duur en beeldverhouding
size. Beschouw aspect_ratio als een aanvraag voor de framevorm; een 16:9 text-to-video-aanvraag kan worden gerenderd als full-HD 1920x1080.
Taakverloop
Maak de Omni-taak aan
task_id op.Poll de Omni-taak
Sla de voltooide video op
Autorisaties
Bearer token authentication. Use your CometAPI key.
Headers
Content type of the request body.
Body
Text prompt describing the desired video. Maximum length is 2,500 characters. When you send image_list, reference the image with <<<image_1>>>.
Optional model ID for this Kling Omni video request. Omit this field to use the route default.
Optional first-frame image reference for image-referenced Omni generation.
Whether to generate audio with the video. Use on or off.
on, off Generation mode. Use std for standard generation or pro when the selected model supports the higher-quality mode.
std, pro Aspect ratio request for beta Kling Omni generation. The endpoint does not expose an exact size field; a 16:9 text-to-video request can render as 1920x1080.
16:9, 9:16, 1:1 Requested output length for text-to-video and first-frame image-reference workflows. Use 5 or 10 as a string.
5, 10 Watermark options. When enabled is true, the task can return watermarked result URLs in addition to original result URLs.
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.