إنشاء فيديو Kling Omni
استخدم CometAPI POST /kling/v1/videos/omni-video لإنشاء مهام فيديو Kling O1 وتتبع الحالة باستخدام مسار استعلام Omni.
اختر وضع الإدخال
- من النص إلى فيديو: أرسل
promptوmodeوaspect_ratioوduration - مرجع صورة الإطار الأول: أضف عناصر
image_listمعimage_urlوtype: first_frame، ثم أشر إلى الصورة فيpromptبصيغة<<<image_1>>> - مخرجات بعلامة مائية: أضف
watermark_info.enabled: trueعندما تحتاج إلى عنوان URL لفيديو بعلامة مائية في استجابة الاستعلام - model ID: احذف
model_nameلاستخدام القيمة الافتراضية للمسار، أو أرسل model ID مُختبَرًا لـ Omni Video مثلkling-video-o1أوkling-v3-omni
المدة ونسبة العرض إلى الارتفاع
size دقيقًا. تعامل مع aspect_ratio على أنه طلب لشكل الإطار؛ إذ يمكن أن يُعرَض طلب تحويل النص إلى فيديو بنسبة 16:9 بدقة Full HD 1920x1080.
تدفق المهمة
إنشاء مهمة Omni
task_id المُعاد.استطلع مهمة Omni
احفظ الفيديو المكتمل
التفويضات
Bearer token authentication. Use your CometAPI key.
الترويسات
Content type of the request 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.