Skip to main content
POST
/
v3
/
async
/
kling-o1-video-edit
Kling-o1 Video Editing
curl --request POST \
  --url https://api.highwayapi.ai/v3/async/kling-o1-video-edit \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: <content-type>' \
  --data '
{
  "video": "<string>",
  "images": [
    {}
  ],
  "prompt": "<string>",
  "fast_mode": true,
  "aspect_ratio": "<string>",
  "keep_original_sound": true
}
'
{
  "task_id": "<string>"
}
This is an asynchronous API that only returns an asynchronous task_id. You need to use the task_id to call the task result query API to obtain the generated result.
This is an asynchronous API and will only return the task_id of the asynchronous task. You should use this task_id to request the Query Task Result API to retrieve the generated result.

Request Headers

Content-Type
string
required
Enum value: application/json
Authorization
string
required
Bearer authentication format: Bearer {{API Key}}.

Request Body

video
string
required
Video URL
images
array
default:"[]"
Reference images containing elements, scenes, styles, etc. Up to 4 imagesArray length: 0 - 4
prompt
string
required
Positive prompt for generation
fast_mode
boolean
default:false
Whether to use fast mode
aspect_ratio
string
The aspect ratio of the generated videoOptional values: 16:9, 9:16, 1:1
keep_original_sound
boolean
default:true
Choose whether to preserve the video’s original audio via this parameter

Response

task_id
string
required
Use task_id to request the Query Task Result API to retrieve the generated output.