Add Video Selection
Use Kling Add Video Selection endpoint to add selection elements in multi-element video editing, enabling targeted edits and scene control via CometAPI.
How selection works
session_idcomes from Initialize Video for Editingframe_indexselects the frame where you place pointspointsare normalized coordinates between0and1- Kling documents up to 10 marked frames and up to 10 points per frame
Workflow role
Initialize first
session_id.Preview the area
Authorizations
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.