Aggiungere la selezione video di Kling
Usa l’endpoint Kling Add Video Selection per aggiungere elementi di selezione nell’editing video multi-elemento, abilitando modifiche mirate e controllo della scena tramite CometAPI.
Come funziona la selezione
session_idproviene da Initialize Video for Editing- Usa lo stesso account e l’esatto
session_idrestituito dall’inizializzazione frame_indexseleziona il frame in cui posizioni i puntipointssono coordinate normalizzate tra0e1- Kling documenta fino a 10 frame contrassegnati e fino a 10 punti per frame
Ruolo nel flusso di lavoro
Initialize first
session_id valido.Add or refine points
Preview the area
Autorizzazioni
Bearer token authentication. Use your CometAPI key.
Corpo
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.