Agregar selección de video
Usa el endpoint Kling Add Video Selection para agregar elementos de selección en la edición de video con múltiples elementos, habilitando ediciones dirigidas y control de escenas mediante CometAPI.
Usa este endpoint para marcar la región del video sobre la que quieres que opere el 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.
Cómo funciona la selección
session_idproviene de Initialize Video for Editingframe_indexselecciona el fotograma donde colocas los puntospointsson coordenadas normalizadas entre0y1- La documentación de Kling admite hasta 10 fotogramas marcados y hasta 10 puntos por fotograma
Rol en el flujo de trabajo
Initialize first
session_id válido.Preview the area
Autorizaciones
Bearer token authentication. Use your CometAPI key.
Cuerpo
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.