curl --request POST \
--url https://api.vidgo.ai/api/generate/submit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "kwaivgi/kling-video/v1.6/pro/text-to-video",
"input": {
"prompt": "A quiet forest in morning light, with a slow camera pan.",
"duration": 5
}
}
'{
"code": 200,
"data": {
"task_id": "task-unified-example",
"status": "running",
"created_time": "2026-09-10T08:00:00"
}
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}"Request timeout"{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}Kling
Kling 1.6 Pro Text to Video
Kling 1.6 Pro Text to Video 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-video/v1.6/pro/text-to-video",
"input": {
"prompt": "A quiet forest in morning light, with a slow camera pan.",
"duration": 5
}
}
'{
"code": 200,
"data": {
"task_id": "task-unified-example",
"status": "running",
"created_time": "2026-09-10T08:00:00"
}
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}"Request timeout"{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}Kling 1.6 Pro Text to Video
Public model ID:kwaivgi/kling-video/v1.6/pro/text-to-video.
Submit with
VIDGO_API_KEY, then use Query Task Status with the returned task_id. Optional root-level callback_url enables webhook notifications.Input workflow
This endpoint generates videos from text prompts.Parameters
Place generation parameters insideinput. Keep model and optional callback_url at the request root. Unsupported input fields are rejected before credits are deducted.
| Parameter | Requirement | Description |
|---|---|---|
prompt | Required | Required nonblank string, at most 2,500 Unicode characters after trimming. |
duration | Required | Required integer: 5 or 10 seconds. No API default. |
aspect_ratio | Optional | Optional: 1:1, 16:9 or 9:16. No API default. |
negative_prompt | Optional | Optional string, at most 2,500 Unicode characters. |
cfg_scale | Optional | Optional finite number from 0 to 1. No API default. |
Billing Factors
Billing depends on the selected model tier (Standard or Pro) and video duration (duration). Usage is charged per generated second. Within a tier, text-to-video, first-frame animation, and Elements use the same rate.
Credits are deducted on submission and refunded if the task fails.Authorizations
Use VIDGO_API_KEY.
Body
application/json
Keep model and callback_url at the root. Unknown root fields are ignored; unsupported input fields are rejected.
Example:
"kwaivgi/kling-video/v1.6/pro/text-to-video"
Input parameters for generation. PoYo selects the generation workflow from the provided image fields.
Show child attributes
Show child attributes
Optional public HTTP(S) endpoint for task completion notifications. HTTPS is recommended. Omit, use null, or use an empty string to disable callbacks.