Skip to main content
POST
Kling-o1 Text-to-Video
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 asynchronous 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
required
Positive prompt for generation
integer
default:5
Duration of the generated media (in seconds)Optional values: 5, 10
string
default:"16:9"
Aspect ratio of the generated videoOptional values: 16:9, 9:16, 1:1

Response Information

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