Omni Video (Beta)
Maak Kling O1-video’s via het beta CometAPI Omni Video-endpoint (POST /kling/v1/videos/omni-video) en volg de taakstatus met Omni Query.
Kies de invoermodus
- Tekst-naar-video: verzend
prompt,mode,aspect_ratioenduration - Generatie met afbeeldingsreferentie: voeg
image_listtoe - Generatie met elementbegeleiding: voeg
element_listtoe - Video-transformatie: voeg
video_listtoe metrefer_type: base
Duur en beeldverhouding
| Instelling | Ondersteunde waarden | Standaard | Gedrag bij grenswaarden |
|---|---|---|---|
duration voor tekst of video met eerste frame | 5, 10 | 5 | Gebruik een van de twee vaste generatieduren. |
duration met invoer van referentievideo | invoervideoduur van 3 tot 10 seconden | invoerduur | De gegenereerde duur volgt de basisvideo en negeert de aangevraagde waarde. |
aspect_ratio | 16:9, 9:16, 1:1 | 16:9 | Vereist wanneer geen eerste-frameafbeelding of basisvideo het frame bepaalt. |
mode | std, pro | pro | pro is de standaard voor Omni Video. |
size-veld beschikbaar. Behandel aspect_ratio als een verzoek voor de vorm van het frame; een 16:9 tekst-naar-video-verzoek kan worden gerenderd als full-HD 1920x1080.
Taakstroom
Poll de Omni-taak
Autorisaties
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.
Model to use for Omni Video. Use kling-video-o1 for this endpoint.
Reference images for the generation. Each entry can optionally include a type field set to first_frame or end_frame to pin the image as the video's start or end frame. Accepts URLs or Base64 strings. Formats: JPG, JPEG, PNG. Max 10 MB per image, minimum 300 px per side, aspect ratio 1:2.5-2.5:1. When used with reference videos, image + element count must not exceed 4; without reference videos, the limit is 7.
Pre-registered element references by ID. Combined with images, the total count must not exceed 4 (with reference video) or 7 (without).
Generation mode. std (standard, faster and more cost-effective) or pro (professional, higher quality output). The default is 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.
Video length in seconds. Values: 3-10. Text-to-video and first-frame-to-video only support 5 and 10. When editing an existing video, duration matches the input and this parameter is ignored.
Reference video for style transfer or the base video to edit. Use refer_type to distinguish: feature for style reference, base for the video to modify. Set keep_original_sound to yes or no to control audio retention. Only MP4/MOV, 3-10 seconds, 720-2160 px, 24-60 fps, max 200 MB. Only one video is accepted.
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.
Respons
Success
The response is of type object.