Videoselectie toevoegen
Gebruik het Kling Add Video Selection-endpoint om selectie-elementen toe te voegen in multi-element videobewerking, waardoor gerichte bewerkingen en scènecontrole via CometAPI mogelijk worden.
Gebruik dit endpoint om het videoregion te markeren waarop de multimodale editor moet werken.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.
Hoe selectie werkt
session_idkomt van Initialize Video for Editingframe_indexselecteert het frame waarin je punten plaatstpointszijn genormaliseerde coördinaten tussen0en1- Kling documenteert maximaal 10 gemarkeerde frames en maximaal 10 punten per frame
Workflowrol
Initialize first
session_id te krijgen.Preview the area
Autorisaties
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.