About Kling 4.0 - Text to Video
Kling 4.0 generates cinematic video with native audio from a text prompt, in single takes of 3 to 30 seconds at 720p or 1080p. It handles fast, complex motion and camera moves, and a prompt can lay out a sequence of events, dialogue, ambient sound, and music for the whole clip.
Choose 16:9, 9:16, 1:1, or 21:9 framing. Describe the scene, visual style, camera movement, action, and audio in the prompt; when no duration is set, the model follows a length stated in the prompt.
See what this model can do
A handful of real prompts and their outputs.
Ready to build with Kling 4.0 - Text to Video?
Try Kling 4.0 - Text to Video in the Workbench to prompt it, compare outputs, and iterate on prompts without writing any code. When you're ready to ship, call the same model from our API and build your own apps on top of it.
curl -sSf -X POST https://hub.oxen.ai/api/ai/videos/generate \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $OXEN_API_KEY" \
-d '{
"model": "kling-video-v4-0-text-to-video",
"prompt": "A cat sitting on a chair",
"aspect_ratio": "16:9",
"resolution": "1080p",
"duration": 5
}'Request parameters
Every field Kling 4.0 - Text to Video accepts in the request body. See the API reference for response formats.
https://hub.oxen.ai/api/ai/videos/generate| Field | Type | Required | Default | Description |
|---|---|---|---|---|
prompt | string | Yes | — | Describe the scene, style, camera movement, sequence of events, dialogue, and sound. |
aspect_ratio | string | No | "16:9" | 16:99:161:121:9 |
resolution | string | No | "1080p" | 720p1080p |
duration | integer | No | 5 | Range: 3 – 30 |