Bir Kling Omni videosu oluşturma
Kling O1 video görevleri oluşturmak ve Omni sorgu rotasıyla durumu takip etmek için CometAPI POST /kling/v1/videos/omni-video kullanın.
Girdi modunu seçin
- Metinden videoya:
prompt,mode,aspect_ratiovedurationgönderin - İlk kare görsel referansı:
image_urlvetype: first_frameiçerenimage_listöğeleri ekleyin, ardından görselepromptiçinde<<<image_1>>>olarak referans verin - Filigranlı çıktı: sorgu yanıtında filigranlı bir video URL’sine ihtiyacınız olduğunda
watermark_info.enabled: trueekleyin - Model ID: rota varsayılanını kullanmak için
model_namealanını atlayın veyakling-video-o1ya dakling-v3-omnigibi test edilmiş bir Omni Video model ID gönderin
Süre ve en-boy oranı
size alanı sunmaz. aspect_ratio değerini bir kare biçimi isteği olarak değerlendirin; 16:9 metinden videoya isteği full-HD 1920x1080 olarak oluşturulabilir.
Görev akışı
Omni görevini oluşturun
task_id değerini saklayın.Omni görevini sorgulayın
Tamamlanan videoyu kalıcı olarak saklayın
Yetkilendirmeler
Bearer token authentication. Use your CometAPI key.
Başlıklar
Content type of the request body.
Gövde
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.