Ajouter une sélection vidéo
Utilisez le endpoint Kling Add Video Selection pour ajouter des éléments de sélection dans l’édition vidéo multi-éléments, ce qui permet des modifications ciblées et un contrôle des scènes via CometAPI.
Utilisez ce endpoint pour marquer la région de la vidéo sur laquelle l’éditeur multimodal doit intervenir.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.
Fonctionnement de la sélection
session_idprovient de Initialize Video for Editingframe_indexsélectionne l’image où vous placez les pointspointssont des coordonnées normalisées entre0et1- La documentation de Kling indique jusqu’à 10 images marquées et jusqu’à 10 points par image
Rôle dans le workflow
Initialize first
session_id valide.Add or refine points
Preview the area
Autorisations
Bearer token authentication. Use your CometAPI key.
Corps
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.