Generate videos from text prompts, supports both text-to-video and image-to-video modes.Text-to-video: provide prompt only
Image-to-video: provide prompt + image_url
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-v2",
"prompt": "Astronaut walking on the Moon"
}
Request Code Samples
curl --location '/v1/video/generations' \
--header 'X-Request-Id;' \
--header 'X-Tenant-Id;' \
--header 'X-Channel;' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"model": "kling-v2",
"prompt": "Astronaut walking on the Moon"
}'
Responses
Successfully returns video generation result
{
"id": "video-abc123",
"object": "video.generation",
"created": 1713833628,
"model": "kling-v2",
"data": [
{
"url": "https://cdn.example.com/video-001.mp4",
"status": "completed"
}
],
"usage": {
"prompt_tokens": 20,
"completion_tokens": 0,
"total_tokens": 20
}
}
Modified at 2026-06-29 09:22:57