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

# WanTextToImageApi - ComfyUI Built-in Node Documentation

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

万文本转图像节点根据文本描述生成图像。它使用 AI 模型从书面提示创建视觉内容，支持英文和中文文本输入。该节点提供多种控制选项来调整输出图像的尺寸、质量和风格偏好。

## 输入参数

| 参数                | 数据类型    | 必填 | 取值范围                 | 描述                             |
| ----------------- | ------- | -- | -------------------- | ------------------------------ |
| `model`           | COMBO   | 是  | "wan2.5-t2i-preview" | 使用的模型（默认："wan2.5-t2i-preview"） |
| `prompt`          | STRING  | 是  | -                    | 用于描述元素和视觉特征的提示词，支持英文/中文（默认：空）  |
| `negative_prompt` | STRING  | 否  | -                    | 负面文本提示词，用于指导避免生成的内容（默认：空）      |
| `width`           | INT     | 否  | 768-1440             | 图像宽度（像素）（默认：1024，步长：32）        |
| `height`          | INT     | 否  | 768-1440             | 图像高度（像素）（默认：1024，步长：32）        |
| `seed`            | INT     | 否  | 0-2147483647         | 生成使用的随机种子（默认：0）                |
| `prompt_extend`   | BOOLEAN | 否  | -                    | 是否通过 AI 辅助增强提示词（默认：True）       |
| `watermark`       | BOOLEAN | 否  | -                    | 是否在结果中添加"AI 生成"水印（默认：True）     |

## 输出参数

| 输出名称     | 数据类型  | 描述          |
| -------- | ----- | ----------- |
| `output` | IMAGE | 基于文本提示生成的图像 |
