تهيئة الفيديو للتحرير
هيّئ عناصر الفيديو عبر endpoint init-selection من Kling في CometAPI لبدء التحرير متعدد الوسائط مع مناطق قابلة للتحديد وطوابع زمنية.
استخدم نقطة النهاية هذه لفتح جلسة تحرير فيديو والحصول على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.
session_id المطلوب في جميع خطوات التحرير متعدد الوسائط اللاحقة.
اختر مسار إدخال واحد
- فيديو تم إنشاؤه بواسطة Kling: أرسل
video_idبالإضافة إلىtask_idالأصلي - فيديو خارجي أو مستضاف مسبقًا: أرسل
video_url - لا ترسل مساري الإدخال معًا في الوقت نفسه
الدور ضمن سير العمل
تحديد نقاط الاختيار
إرسال مهمة التحرير النهائية
التفويضات
Bearer token authentication. Use your CometAPI key.
الجسم
- Option 1
- Option 2
The video ID generated by Kling; choose either this or video_url, they cannot be passed simultaneously. Select the video to be edited from historical works using the video ID. Only supports video works generated within the last 30 days; only supports videos with a duration of ≥2 seconds and ≤5.5 seconds, or ≥7 seconds and ≤10.5 seconds. Related to the video_url parameter, they cannot both be empty or both have values.
When passing video_id, the task_id from when the video was generated must also be passed.
The URL to get the video. When uploading, pass the video download link. When editing a selection, pass the video URL returned by the interface.
Only supports MP4 and MOV formats. Only supports videos with a duration of ≥2 seconds and ≤5.5 seconds, or ≥7 seconds and ≤10.5 seconds. The width and height dimensions of the video must be between 720px (inclusive) and 2160px (inclusive). Only supports uploading videos at 24, 30, or 60 fps. Related to the video_id parameter, they cannot both be empty or both have values.