Skip to main content
POST
cURL
Gebruik dit endpoint om het videogebied te markeren waarop de multimodale editor moet werken.

Hoe selectie werkt

  • session_id komt van Initialize Video for Editing
  • Gebruik hetzelfde account en exact dezelfde session_id die door de initialisatie is teruggegeven
  • frame_index selecteert het frame waar je punten plaatst
  • points zijn genormaliseerde coördinaten tussen 0 en 1
  • Kling documenteert maximaal 10 gemarkeerde frames en maximaal 10 punten per frame

Workflowrol

1

Eerst initialiseren

Beging met Initialize Video for Editing om een geldige session_id te krijgen.
2

Punten toevoegen of verfijnen

Roep dit endpoint aan terwijl je het te bewerken gebied opbouwt.
3

Bekijk het gebied

Gebruik Preview Selected Video Area vóór de definitieve indiening.
Raadpleeg voor de volledige parameterreferentie de Kling API-documentatie.

Autorisaties

Authorization
string
header
vereist

Bearer token authentication. Use your CometAPI key.

Body

application/json
session_id
string
vereist

Selection session id returned by init-selection. Follow-up calls must use the same account and exact session id.

frame_index
integer
vereist

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.

points
object[]
vereist

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.

Respons

200 - application/json

Selection updated.

code
integer
vereist
message
string
vereist
data
object