Kling AI / Kling 2.1 Master / Text to video
kling_ai/kling-v2-1-master/text_to_video
Async
Generate a video from a text prompt.
Parameters
| Name | Type | Required | Description | Allowed values | Bundle dim. |
|---|---|---|---|---|---|
| mode | string | yes | Generation quality tier. | standard, pro | — |
| prompt | string | yes | Text prompt describing the desired output. | — | — |
| resolution | string | yes | — | 720p, 1080p | — |
| aspect_ratio | string | no | — | 16:9, 9:16, 1:1 | — |
| callback_url | string | no | Webhook URL invoked when async task completes. | — | — |
| videos_count | integer | no | — | — | — |
| duration_seconds | integer | yes | — | 5, 10 | — |
Example request
{
"provider": "kling_ai",
"model": "kling-v2-1-master",
"method": "text_to_video",
"params": {
"mode": "pro",
"prompt": "A red sports car drifting around a mountain curve at sunset, cinematic",
"resolution": "1080p",
"aspect_ratio": "16:9",
"duration_seconds": 5
}
}Example response
null