> ## 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.

# Vidu2TextToVideoNode - ComfyUI Built-in Node Documentation

> Complete documentation for the Vidu2TextToVideoNode 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/Vidu2TextToVideoNode/zh.md)

Vidu2 文本转视频生成节点可根据文本描述创建视频。它连接到外部 API，根据您的提示生成视频内容，允许您控制视频的时长、视觉风格和格式。

## 输入参数

| 参数名                | 数据类型    | 必填 | 取值范围                                                          | 描述                                       |
| ------------------ | ------- | -- | ------------------------------------------------------------- | ---------------------------------------- |
| `model`            | COMBO   | 是  | `"viduq2"`                                                    | 用于视频生成的 AI 模型。目前仅有一个模型可用。                |
| `prompt`           | STRING  | 是  | -                                                             | 用于视频生成的文本描述，最大长度为 2000 个字符。              |
| `duration`         | INT     | 否  | 1 到 10                                                        | 生成视频的时长，单位为秒。可通过滑块调整该值（默认值：5）。           |
| `seed`             | INT     | 否  | 0 到 2147483647                                                | 用于控制生成随机性的数字，可实现可复现的结果。可在生成后进行控制（默认值：1）。 |
| `aspect_ratio`     | COMBO   | 否  | `"16:9"`<br />`"9:16"`<br />`"3:4"`<br />`"4:3"`<br />`"1:1"` | 视频宽度与高度的比例关系。                            |
| `resolution`       | COMBO   | 否  | `"720p"`<br />`"1080p"`                                       | 生成视频的像素尺寸。                               |
| `background_music` | BOOLEAN | 否  | -                                                             | 是否为生成的视频添加背景音乐（默认值：False）。               |

## 输出结果

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