Create Video Generation Task
Submit a video generation task, supporting text-to-video and image-to-video.Returns a task ID. Use the GET endpoint to query task status.
Request
Provide your bearer token in the Authorization
header when making requests to protected resources. Example:Authorization: Bearer ********************
or
Body Params application/jsonRequired
{
"model": "kling-v1",
"prompt": "an astronaut walking on the moon",
"duration": 5,
"width": 1280,
"height": 720
}
Request Code Samples
curl --location '/v1/video/generations' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"model": "kling-v1",
"prompt": "an astronaut walking on the moon",
"duration": 5,
"width": 1280,
"height": 720
}'
Responses
Video generation task created successfully
{
"task_id": "abcd1234efgh",
"status": "queued"
}
Modified at 2026-05-23 05:25:04