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

# Wan2TextToVideoApi - ComfyUI Built-in Node Documentation

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

This node generates a video from a text description using the Wan 2.7 model. It sends your request to an external API, which processes the prompt and returns a video file. You can optionally provide an audio clip to influence the video's motion and timing.

## Inputs

| Parameter               | Description                                                                                                                                                                                                                               | Data Type | Required | Range                                                         |
| ----------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------- | -------- | ------------------------------------------------------------- |
| `model`                 | The specific model to use for video generation.                                                                                                                                                                                           | COMBO     | Yes      | `"wan2.7-t2v"`                                                |
| `model.prompt`          | A description of the elements and visual features you want in the video. Supports English and Chinese.                                                                                                                                    | STRING    | Yes      | -                                                             |
| `model.negative_prompt` | A description of elements or features you want to avoid in the generated video.                                                                                                                                                           | STRING    | No       | -                                                             |
| `model.resolution`      | The resolution of the output video.                                                                                                                                                                                                       | COMBO     | Yes      | `"720P"`<br />`"1080P"`                                       |
| `model.ratio`           | The aspect ratio of the output video.                                                                                                                                                                                                     | COMBO     | Yes      | `"16:9"`<br />`"9:16"`<br />`"1:1"`<br />`"4:3"`<br />`"3:4"` |
| `model.duration`        | The length of the video in seconds (default: 5).                                                                                                                                                                                          | INT       | Yes      | 2 to 15                                                       |
| `audio`                 | An audio file to drive video generation, such as for lip-syncing or motion matching the beat. If not provided, the model will generate matching background music or sound effects. The audio duration must be between 1.5 and 60 seconds. | AUDIO     | No       | -                                                             |
| `seed`                  | A number used to control the randomness of the generation, ensuring reproducible results (default: 0).                                                                                                                                    | INT       | No       | 0 to 2147483647                                               |
| `prompt_extend`         | When enabled, the prompt will be enhanced with AI assistance (default: True).                                                                                                                                                             | BOOLEAN   | No       | -                                                             |
| `watermark`             | When enabled, an AI-generated watermark will be added to the result (default: False).                                                                                                                                                     | BOOLEAN   | No       | -                                                             |

**Note:** The `audio` parameter is optional. If provided, its duration must be between 1.5 and 60 seconds. If omitted, the model will automatically generate audio.

## Outputs

| Output Name | Description               | Data Type |
| ----------- | ------------------------- | --------- |
| `output`    | The generated video file. | 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/Wan2TextToVideoApi/en.md)

***

**Source fingerprint (SHA-256):** `1eb775421209047ad06ffc210c6588c64fd39a8828a69d6fcc2b79360df311e3`
