Tambahkan seleksi video
Gunakan endpoint Kling Add Video Selection untuk menambahkan elemen seleksi dalam pengeditan video multi-elemen, memungkinkan edit yang ditargetkan dan kontrol adegan melalui CometAPI.
Gunakan endpoint ini untuk menandai area video yang ingin diedit oleh editor multimodal.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.
Cara kerja seleksi
session_idberasal dari Initialize Video for Editingframe_indexmemilih frame tempat Anda menaruh titikpointsadalah koordinat yang dinormalisasi antara0dan1- Dokumentasi Kling menyebutkan hingga 10 frame yang ditandai dan hingga 10 titik per frame
Peran dalam alur kerja
Initialize first
session_id yang valid.Preview the area
Otorisasi
Bearer token authentication. Use your CometAPI key.
Body
Session ID, generated based on the video initialization task, does not change with selection editing actions.
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.
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.