Omni Video
Crie vídeos Kling O1 por meio do endpoint Omni Video da CometAPI (POST /kling/v1/videos/omni-video) e acompanhe o status da tarefa com Omni Query.
Use este endpoint para fluxos de trabalho Kling Omni, incluindo fluxos simples de text-to-video, geração com referência de imagem e transformação de vídeo.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.
Escolha o modo de entrada
- Text-to-video: envie
prompt,mode,aspect_ratioeduration - Geração com referência de imagem: adicione
image_list - Geração guiada por elementos: adicione
element_list - Transformação de vídeo: adicione
video_listcomrefer_type: base
Fluxo da tarefa
Consultar a tarefa Omni
Autorizações
Bearer token authentication. Use your CometAPI key.
Cabeçalhos
Content type of the request body.
Corpo
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. Currently only kling-video-o1 is supported.
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).
Output video aspect ratio (width:height). Values: 16:9, 9:16, 1:1. Required when not using a first-frame reference image or video editing.
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.
Resposta
Success
The response is of type object.