Create a Kling Omni video
Use CometAPI POST /kling/v1/videos/omni-video to create Kling O1 video tasks and track status with the Omni query route.
Choose the input mode
- Text-to-video: send
prompt,mode,aspect_ratio, andduration - Image-referenced generation: add
image_listitems withimage_urlandtypesuch asfirst_frame - Element-guided generation: add
element_listitems withelement_id - Video transformation: add
video_listitems withvideo_url,refer_type, and optionalkeep_original_soundset toyesorno - Multi-shot generation: set
multi_shot: true, chooseshot_type, and send eitherpromptormulti_prompt - Keep
model_nameaskling-video-o1orkling-v3-omni, or omit it to use the route default
Duration and aspect ratio
| Setting | Supported values | Default | Boundary behavior |
|---|---|---|---|
duration for text or first-frame video | "5", "10" | "5" | Send the value as a string and use one of the two fixed generation lengths. |
duration with reference video input | input video length from 3 to 10 seconds | input length | The generated duration follows the base video and ignores the request value. |
aspect_ratio | 16:9, 9:16, 1:1 | 16:9 | Required when no first-frame image or base video controls the frame. |
mode | std, pro | pro | pro is the default for Omni Video. |
size field. Treat aspect_ratio as a frame-shape request; a 16:9 text-to-video request can render as full-HD 1920x1080.
Task flow
Poll the Omni task
Authorizations
Bearer token authentication. Use your CometAPI key.
Headers
Content type of the request body.
Body
Text prompt describing the desired video. Max 2500 characters. Reference images or elements inline using <<<image_1>>>, <<<element_1>>>, <<<video_1>>> syntax.
Omni Video model. Omit to use kling-video-o1.
kling-video-o1, kling-v3-omni Whether to generate a multi-shot video. When true, use shot_type and either prompt or multi_prompt according to the selected storyboard method.
Storyboard method for multi-shot generation. Required when multi_shot is true.
customize, intelligence Storyboard prompts for multi_shot: true with shot_type: customize. Supports 1 to 6 storyboard items; item durations should add up to the requested total duration.
1 - 6 elementsOptional image references for image-referenced Omni generation.
Optional element references for element-guided Omni generation.
Optional video references for video transformation workflows.
Whether to generate audio with the video. Use on or off; when video_list is present, use off.
on, off Generation mode. std (standard, faster and more cost-effective) or pro (professional, higher quality output). The default is pro.
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. Use 5 or 10 as a string for text, image, and first-frame workflows; base-video workflows follow the source video length.
3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 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.