Buat video Kling Omni
Gunakan CometAPI POST /kling/v1/videos/omni-video untuk membuat tugas video Kling O1 dan melacak status dengan rute kueri Omni.
Pilih mode input
- Text-to-video: kirim
prompt,mode,aspect_ratio, danduration - Referensi gambar frame pertama: tambahkan item
image_listdenganimage_urldantype: first_frame, lalu referensikan gambar dalampromptsebagai<<<image_1>>> - Output dengan watermark: tambahkan
watermark_info.enabled: truesaat Anda memerlukan URL video dengan watermark di respons kueri - Model ID: hilangkan
model_nameuntuk menggunakan default rute, atau kirim model ID Omni Video yang telah diuji sepertikling-video-o1ataukling-v3-omni
Durasi dan rasio aspek
size yang presisi. Perlakukan aspect_ratio sebagai permintaan bentuk frame; permintaan text-to-video 16:9 dapat dirender sebagai full-HD 1920x1080.
Alur tugas
Buat tugas Omni
task_id yang dikembalikan.Polling tugas Omni
Simpan video yang selesai
Otorisasi
Bearer token authentication. Use your CometAPI key.
Header
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.