Adicionar seleção de vídeo
Use o endpoint Kling Add Video Selection para adicionar elementos de seleção na edição de vídeo com múltiplos elementos, permitindo edições direcionadas e controle de cena via CometAPI.
Use este endpoint para marcar a região do vídeo na qual você deseja que o editor multimodal opere.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.
Como a seleção funciona
session_idvem de Initialize Video for Editingframe_indexseleciona o frame onde você posiciona os pontospointssão coordenadas normalizadas entre0e1- A documentação da Kling permite até 10 frames marcados e até 10 pontos por frame
Papel no fluxo de trabalho
Initialize first
session_id válido.Preview the area
Autorizações
Bearer token authentication. Use your CometAPI key.
Corpo
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.