Kling-videoselectie toevoegen
Gebruik het Kling Add Video Selection-endpoint om selectie-elementen toe te voegen in multi-element videobewerking, zodat gerichte bewerkingen en scènecontrole via CometAPI mogelijk worden.
Hoe selectie werkt
session_idkomt van Initialize Video for Editing- Gebruik hetzelfde account en exact dezelfde
session_iddie door de initialisatie is teruggegeven frame_indexselecteert het frame waar je punten plaatstpointszijn genormaliseerde coördinaten tussen0en1- Kling documenteert maximaal 10 gemarkeerde frames en maximaal 10 punten per frame
Workflowrol
Eerst initialiseren
session_id te krijgen.Punten toevoegen of verfijnen
Bekijk het gebied
Autorisaties
Bearer token authentication. Use your CometAPI key.
Body
Selection session id returned by init-selection. Follow-up calls must use the same account and exact session id.
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.