curl --request POST \
--url https://api.vidgo.ai/api/generate/submit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "kwaivgi/kling-v2.6-pro/text-to-video",
"input": {
"prompt": "A slow camera pan across a sunlit garden.",
"duration": 5,
"sound": false,
"aspect_ratio": "16:9"
}
}
'{
"code": 200,
"data": {
"task_id": "task-example",
"status": "running",
"created_time": "2026-09-23T00:00:00Z"
}
}Kling
Kling 2.6 Pro Text to Video
Kling 2.6 Pro Text to Video API parameters and billing factors
POST
/
api
/
generate
/
submit
curl --request POST \
--url https://api.vidgo.ai/api/generate/submit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "kwaivgi/kling-v2.6-pro/text-to-video",
"input": {
"prompt": "A slow camera pan across a sunlit garden.",
"duration": 5,
"sound": false,
"aspect_ratio": "16:9"
}
}
'{
"code": 200,
"data": {
"task_id": "task-example",
"status": "running",
"created_time": "2026-09-23T00:00:00Z"
}
}- After submission, a
task_idwill be returned. If you provided acallback_url, when the task status becomesfinishedorfailed, a POST request will be sent to thecallback_url. - Regardless of whether
callback_urlis provided, you can retrieve the result through the unified Query Task Status endpoint.
kwaivgi/kling-v2.6-pro/text-to-video through POST /api/generate/submit. Query the returned task_id with Task Status, or provide a top-level callback_url.
Parameters
prompt: Required nonblank string, 1 to 1,000 characters after trimming leading and trailing whitespace.duration: Required integer: 5 or 10 seconds. Strings and fractional durations are rejected.aspect_ratio: Required: 16:9, 9:16 or 1:1. Controls the output video aspect ratio.sound: Required boolean: true for audio, false for no audio.- Use standard JSON types. Unknown input fields and invalid values are rejected before submission and charging.
- URLs using
example.comoryour-domain.comare placeholders. Replace them with your own publicly accessible image URLs and callback endpoint where applicable.
Billing Factors
Billing depends on video duration (duration) and whether audio is generated (sound). The Pro text-to-video and image-to-video endpoints use the same rates.Authorizations
All API endpoints require Bearer Token authentication
Get your API Key:
Visit the API Key Management Page to get your API Key
Add it to the request header:
Authorization: Bearer VIDGO_API_KEY
Body
application/json