Skip to main content
POST
/
kling
/
v1
/
videos
/
multi-elements
/
add-selection
Add selection points to a Kling multimodal session
curl --request POST \
  --url https://api.cometapi.com/kling/v1/videos/multi-elements/add-selection \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "session_id": "784914037360041984",
  "frame_index": 1,
  "points": [
    {
      "x": 0,
      "y": 1
    }
  ]
}
'
{
  "code": 123,
  "message": "<string>",
  "data": {}
}
Use this endpoint to mark the video region you want the multimodal editor to operate on.

How selection works

  • session_id comes from Initialize Video for Editing
  • frame_index selects the frame where you place points
  • points are normalized coordinates between 0 and 1
  • Kling currently documents up to 10 marked frames and up to 10 points per frame

Workflow role

1

Initialize first

Start with Initialize Video for Editing to get a valid session_id.
2

Add or refine points

Call this endpoint as you build the region to edit.
3

Preview the area

Use Preview Selected Video Area before final submission.
For the complete parameter reference, see the Kling API documentation.

Authorizations

Authorization
string
header
required

Bearer token authentication. Use your CometAPI key.

Body

application/json
session_id
string
default:784914037360041984
required

Session ID, generated based on the video initialization task, does not change with selection editing actions.

frame_index
integer
default:1
required

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[]
required

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.

Response

200 - application/json

Selection updated.

code
integer
required
message
string
required
data
object