Skip to main content
POST
Kling-o1 Reference-to-Video
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

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

Request Body

string
Video URL
string[]
default:"[]"
Reference images containing elements, scenes, styles, etc. Up to 7 imagesArray length: 0 - 7
string
required
Positive prompt
integer
default:5
Duration of the generated media (seconds)Available values: 3, 4, 5, 6, 7, 8, 9, 10
string
default:"16:9"
Aspect ratio of the generated videoAvailable values: 16:9, 9:16, 1:1
boolean
default:true
Choose whether to preserve the video’s original audio via this parameter

Response Information

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