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/image-to-video",
"input": {
"prompt": "A slow camera pan across a sunlit garden.",
"duration": 5,
"sound": false,
"aspect_ratio": "16:9",
"image_urls": [
"https://example.com/start-frame.png"
]
}
}
'{
"code": 200,
"data": {
"task_id": "task-example",
"status": "running",
"created_time": "2026-09-23T00:00:00Z"
}
}Kling
Kling 2.6 Pro Image to Video
Kling 2.6 Pro Image 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/image-to-video",
"input": {
"prompt": "A slow camera pan across a sunlit garden.",
"duration": 5,
"sound": false,
"aspect_ratio": "16:9",
"image_urls": [
"https://example.com/start-frame.png"
]
}
}
'{
"code": 200,
"data": {
"task_id": "task-example",
"status": "running",
"created_time": "2026-09-23T00:00:00Z"
}
}Submit
kwaivgi/kling-v2.6-pro/image-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. This field must be submitted but does not control the output aspect ratio for image-to-video.sound: Required boolean: true for audio, false for no audio. Must be false when end_image_url is provided.image_urls: Required array containing at least one publicly accessible HTTP(S) image URL. URLs must not contain embedded credentials or whitespace.end_image_url: Optional publicly accessible HTTP(S) last-frame image URL, without embedded credentials or whitespace. Omit this field when not using a last frame; empty strings and null are not accepted. Requires sound=false.- 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 YOUR_API_KEY
Body
application/json