Skip to main content
POST
/
v3
/
async
/
kling-o1-ref2v
Kling-o1 Reference-to-Video
curl --request POST \
  --url https://api.highwayapi.ai/v3/async/kling-o1-ref2v \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: <content-type>' \
  --data '
{
  "video": "<string>",
  "images": [
    {}
  ],
  "prompt": "<string>",
  "duration": 123,
  "aspect_ratio": "<string>",
  "keep_original_sound": true
}
'
{
  "task_id": "<string>"
}
This is an asynchronous API that only returns an async task_id. You need to use the task_id to call the task result query API to get the generated result.
This is an asynchronous API and will only return the async task’s task_id. 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
Video URL
images
array
default:"[]"
Reference images containing elements, scenes, styles, etc. Up to 7 imagesArray length: 0 - 7
prompt
string
required
Positive prompt
duration
integer
default:5
Duration of the generated media (seconds)Available values: 3, 4, 5, 6, 7, 8, 9, 10
aspect_ratio
string
default:"16:9"
Aspect ratio of the generated videoAvailable 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 Information

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