Skip to main content
POST
cURL
استخدم نقطة النهاية هذه لتحديد منطقة الفيديو التي تريد من المحرر متعدد الوسائط أن يعمل عليها.

كيفية عمل التحديد

  • يأتي session_id من تهيئة الفيديو للتحرير
  • استخدم الحساب نفسه وsession_id المطابق تمامًا كما تم إرجاعه من التهيئة
  • يحدد frame_index الإطار الذي تضع فيه النقاط
  • points هي إحداثيات مطبعة بين 0 و1
  • توثّق Kling ما يصل إلى 10 إطارات محددة وما يصل إلى 10 نقاط لكل إطار

دورها في سير العمل

1

التهيئة أولاً

ابدأ بـ تهيئة الفيديو للتحرير للحصول على session_id صالح.
2

إضافة النقاط أو تحسينها

استدعِ نقطة النهاية هذه أثناء بناء المنطقة المراد تحريرها.
3

معاينة المنطقة

استخدم معاينة منطقة الفيديو المحددة قبل الإرسال النهائي.
للاطلاع على المرجع الكامل للمعلمات، راجع وثائق Kling API.

التفويضات

Authorization
string
header
مطلوب

Bearer token authentication. Use your CometAPI key.

الجسم

application/json
session_id
string
مطلوب

Selection session id returned by init-selection. Follow-up calls must use the same account and exact session id.

frame_index
integer
مطلوب

Frame number

Supports adding up to 10 marked frames, meaning video selections can be marked based on a maximum of 10 frames. Only 1 frame can be marked at a time.

points
object[]
مطلوب

Click coordinates, represented by x and y. Value range: [0,1], expressed as a percentage; [0,1] represents the top-left corner of the frame. Supports adding multiple marked points simultaneously, with a maximum of 10 points per frame.

الاستجابة

200 - application/json

Selection updated.

code
integer
مطلوب
message
string
مطلوب
data
object