> ## Documentation Index
> Fetch the complete documentation index at: https://dripart-chore-sync-comfy-api-v2-spec.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# KlingTextToVideoNode - ComfyUI Built-in Node Documentation

> The Kling Text to Video node generates videos from text descriptions using the Kling video generation API.

The Kling Text to Video node generates videos from text descriptions using the Kling video generation API. It sends the prompt and settings (aspect ratio, generation mode, and CFG scale) to the API, waits for the generation task to complete, and then returns the resulting video along with its ID and duration.

## Inputs

| Parameter         | Description                                                                                                                                                  | Data Type | Required | Range                                                                                         |
| ----------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------ | --------- | -------- | --------------------------------------------------------------------------------------------- |
| `prompt`          | Positive text prompt describing the desired video content                                                                                                    | STRING    | Yes      | Maximum 2500 characters                                                                       |
| `negative_prompt` | Negative text prompt describing what to avoid in the video                                                                                                   | STRING    | No       | Maximum 2500 characters                                                                       |
| `cfg_scale`       | Configuration scale value that controls how closely the video follows the prompt (default: 1.0)                                                              | FLOAT     | No       | 0.0 to 1.0                                                                                    |
| `aspect_ratio`    | Video aspect ratio setting (default: "16:9")                                                                                                                 | COMBO     | No       | "16:9"<br />"9:16"<br />"1:1"                                                                 |
| `mode`            | The configuration to use for the video generation following the format: mode / duration / model\_name (default: "pro mode / 5s duration / kling-v2-5-turbo") | COMBO     | No       | "pro mode / 5s duration / kling-v2-5-turbo"<br />"pro mode / 10s duration / kling-v2-5-turbo" |

Note: The `prompt` parameter is required and must not be empty. Both `prompt` and `negative_prompt` are limited to a maximum of 2500 characters.

## Outputs

| Output Name | Description                                  | Data Type |
| ----------- | -------------------------------------------- | --------- |
| `output`    | The generated video output                   | VIDEO     |
| `video_id`  | Unique identifier for the generated video    | STRING    |
| `duration`  | Duration information for the generated video | STRING    |

> 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/KlingTextToVideoNode/en.md)

***

**Source fingerprint (SHA-256):** `6a63b0b8bc45dc5a6300cdfe7a373399eeead36de6727f7aae2c026ba0deaea8`
