Skip to main content
POST
/
kling
/
v1
/
videos
/
multi-elements
/
delete-selection
cURL
curl https://api.cometapi.com/kling/v1/videos/multi-elements/delete-selection \
  -H "Authorization: Bearer $COMETAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{
      "session_id": "<session_id>",
      "frame_index": 1,
      "points": [
        {
          "x": 0.5,
          "y": 0.5
        }
      ]
    }'
{
  "code": 123,
  "message": "<string>",
  "data": {}
}
Use this utility endpoint to remove selection state from a multimodal editing session before you rebuild or abandon the current edit area.

When to use it

  • You want to remove the current selection record instead of continuing with it
  • You are cleaning up an editing pass before marking a new target area

Workflow role

  • Requires the session_id from Initialize Video for Editing
  • Requires the frame_index and 0-1 percentage points for the selection points you want to delete
  • Typically followed by Add Video Selection or by ending the session without generating
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
required

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

frame_index
integer
required

Frame index where the selected point set applies.

points
object[]
required

Points to delete from the current selection.

Response

200 - application/json

Success

code
integer
required

Response code. 0 means the request succeeded.

message
string
required

Response message.

data
object

Route-specific response payload when present.