Theme
Initialize Video for Editing
POST
https://www.kkiai.com/kling/v1/videos/multi-elements/init-selection
Request Parameters
Authorization
Add the Authorization parameter to the Header. Its value is the Token concatenated after Bearer.
Example: Authorization: Bearer ********************
Header Parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
Content-Type | string | Optional | application/json | |
Authorization | string | Optional | Bearer {{YOUR_API_KEY}} |
Body Parameters (application/json)
| Parameter | Type | Required | Description |
|---|---|---|---|
video_id | string | Optional | Video ID. Select a video to edit from historical works. Only supports videos generated within 30 days. Only supports videos with duration ≥2 seconds and ≤5 seconds, or ≥7 seconds and ≤10 seconds. Related to the video_url parameter. Cannot both be empty or both have values. |
video_url | string | Optional | URL to retrieve the video. Pass the video download link when uploading, and pass the video URL returned by the interface when editing the selection area. Only supports MP4 and MOV formats. Only supports videos with duration ≥2 seconds and ≤5 seconds, or ≥7 seconds and ≤10 seconds. |
Request Example
json
{
"video_id": "828013548709777428",
"video_url": ""
}cURL Example
bash
curl --location --request POST 'https://www.kkiai.com/kling/v1/videos/multi-elements/init-selection' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"video_id": "828013548709777428",
"video_url": ""
}'Response
🟢 200 Success
Response Example
json
{}