> ## Documentation Index
> Fetch the complete documentation index at: https://docs.comfy.org/llms.txt
> Use this file to discover all available pages before exploring further.

# Kling 4.0 Text to Video - ComfyUI Built-in Node Documentation

> Generates a video from a text prompt with the Kling 4.0 model, including audio.

Generates a video from a text prompt with the Kling 4.0 model, including audio. This node sends the prompt and the generation settings to the Kling API, waits for the task to finish, and returns the finished video. Use it when a clip has to be created from a description alone, with no reference media.

## Inputs

### Common Inputs

| Parameter | Description | Data Type | Required | Range |
| - | - | - | - | - |
| `model` | Model selector. Only `"kling-4.0"` is available; selecting it reveals the inputs below. | DYNAMIC\_COMBO | Yes | `"kling-4.0"` |

### kling-4.0 Inputs

These inputs appear when `model` is set to `"kling-4.0"`.

| Parameter | Description | Data Type | Required | Range |
| - | - | - | - | - |
| `prompt` | Text description of the video to generate. Must be between 1 and 26000 characters. | STRING | Yes | 1 to 26000 characters |
| `resolution` | Resolution of the output video. Default: `"720p"`. | COMBO | Yes | `"720p"` `"1080p"` |
| `aspect_ratio` | Aspect ratio of the output video. Default: `"16:9"`. | COMBO | Yes | `"16:9"` `"9:16"` `"1:1"` `"21:9"` |
| `duration` | Length of the generated video in seconds. Default: 5. | INT | Yes | 3 to 30 |
| `seed` | Seed controls whether the node should re-run; results are non-deterministic regardless of seed. Default: 42. | INT | Yes | 0 to 2147483647 |

## Outputs

| Output Name | Description | Data Type |
| - | - | - |
| `video` | The generated video, downloaded from the provider once the task completes. | VIDEO |

> This documentation was AI-generated. If you find any errors or have suggestions for improvement, please feel free to contribute! [Edit on GitHub](https://github.com/Comfy-Org/embedded-docs/blob/main/comfyui_embedded_docs/docs/Kling4TextToVideoNode/en.md)

***

**Source fingerprint (SHA-256):** `3835dcb7d83d843ea7f6c5dc691b48759d9c3e7a7baeead3d0f92817e73d6079`


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.