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

# WanTextToImageApi - ComfyUI Built-in Node Documentation

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

The Wan Text to Image node generates images based on text descriptions. It uses AI models to create visual content from written prompts, supporting both English and Chinese text input. The node provides various controls to adjust the output image size, quality, and style preferences.

## Inputs

| Parameter         | Description                                                                                       | Data Type | Required | Range                |
| ----------------- | ------------------------------------------------------------------------------------------------- | --------- | -------- | -------------------- |
| `model`           | Model to use (default: "wan2.5-t2i-preview")                                                      | STRING    | Yes      | "wan2.5-t2i-preview" |
| `prompt`          | Prompt describing the elements and visual features. Supports English and Chinese (default: empty) | STRING    | Yes      | -                    |
| `negative_prompt` | Negative prompt describing what to avoid (default: empty)                                         | STRING    | No       | -                    |
| `width`           | Image width in pixels (default: 1024, step: 32)                                                   | INT       | No       | 768-1440             |
| `height`          | Image height in pixels (default: 1024, step: 32)                                                  | INT       | No       | 768-1440             |
| `seed`            | Seed to use for generation (default: 0)                                                           | INT       | No       | 0-2147483647         |
| `prompt_extend`   | Whether to enhance the prompt with AI assistance (default: True)                                  | BOOLEAN   | No       | -                    |
| `watermark`       | Whether to add an AI-generated watermark to the result (default: False)                           | BOOLEAN   | No       | -                    |

## Outputs

| Output Name | Description                                  | Data Type |
| ----------- | -------------------------------------------- | --------- |
| `output`    | The generated image based on the text prompt | IMAGE     |

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

***

**Source fingerprint (SHA-256):** `4ab8fe7b1e6a0b781b006e03719203b65ed58aec75aaee780d479170ed6425ea`
