Skip to main content
POST
/
v3
/
async
/
kling-o1-i2v
Kling-o1 Image-to-Video
curl --request POST \
  --url https://api.highwayapi.ai/v3/async/kling-o1-i2v \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: <content-type>' \
  --data '
{
  "image": "<string>",
  "prompt": "<string>",
  "duration": 123,
  "last_image": "<string>",
  "aspect_ratio": "<string>"
}
'
{
  "task_id": "<string>"
}
This is an asynchronous API and only returns an async task_id. You need to call the task result query API with the task_id to obtain 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

image
string
required
The starting frame is the first frame
prompt
string
required
The positive prompt for generation
duration
integer
default:5
Duration of the generated media (seconds)Optional values: 5, 10
last_image
string
The ending frame is the last frame
aspect_ratio
string
default:"16:9"
Aspect ratio of the generated videoOptional values: 16:9, 9:16, 1:1

Response

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