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

# KlingTextToVideoWithAudio - ComfyUI Built-in Node Documentation

> Complete documentation for the KlingTextToVideoWithAudio node in ComfyUI. Learn its inputs, outputs, parameters and usage.

> 本文档由 AI 生成。如果您发现任何错误或有改进建议，欢迎贡献！ [在 GitHub 上编辑](https://github.com/Comfy-Org/embedded-docs/blob/main/comfyui_embedded_docs/docs/KlingTextToVideoWithAudio/zh.md)

Kling Text to Video with Audio 节点可根据文本描述生成短视频。它会向 Kling AI 服务发送请求，该服务处理提示词并返回视频文件。该节点还可根据文本为视频生成伴随音频。

## 输入参数

| 参数名              | 数据类型    | 必填 | 取值范围                                | 描述                                         |
| ---------------- | ------- | -- | ----------------------------------- | ------------------------------------------ |
| `model_name`     | COMBO   | 是  | `"kling-v2-6"`                      | 用于视频生成的特定 AI 模型。                           |
| `prompt`         | STRING  | 是  | -                                   | 正向文本提示词。用于生成视频的描述。长度必须在 1 到 2500 个字符之间。    |
| `mode`           | COMBO   | 是  | `"pro"`                             | 视频生成的操作模式。                                 |
| `aspect_ratio`   | COMBO   | 是  | `"16:9"`<br />`"9:16"`<br />`"1:1"` | 生成视频所需的宽高比。                                |
| `duration`       | COMBO   | 是  | `5`<br />`10`                       | 视频长度，单位为秒。                                 |
| `generate_audio` | BOOLEAN | 否  | -                                   | 控制是否为视频生成音频。启用后，AI 将根据提示词创建声音。（默认值：`True`） |

## 输出结果

| 输出名称     | 数据类型  | 描述       |
| -------- | ----- | -------- |
| `output` | VIDEO | 生成的视频文件。 |
