Skip to main content
POST
/
kling
/
v1
/
videos
/
multi-elements
/
init-selection
cURL
curl https://api.cometapi.com/kling/v1/videos/multi-elements/init-selection \
  -H "Authorization: Bearer $COMETAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{
      "video_id": "<video_id>"
    }'
{
  "code": 123,
  "message": "<string>",
  "data": {
    "session_id": "<string>"
  }
}
Use this endpoint to open a video-editing session and obtain the session_id required by all later multimodal editing steps.

Choose one input path

  • Kling-generated video: send video_id
  • External or already-hosted video: send video_url
  • Do not send both input paths at the same time
  • Do not send the parent task_id here; save the returned session_id for the next steps

Workflow role

1

Initialize the session

Submit the source clip and save the returned session_id.
2

Mark selection points

Continue with Add Video Selection to define the region you want to edit.
3

Submit the final edit task

After selection is ready, continue with Create Task.
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
video_id
string
required

Kling video id from a completed task. Send exactly one of video_id or video_url.

video_url
string

Public MP4 or MOV URL. Send exactly one of video_id or video_url.

Response

200 - application/json

Session initialized.

code
integer
required
message
string
required
data
object
required