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

# RecraftTextToImageNode - ComfyUI Built-in Node Documentation

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

基于提示词和分辨率同步生成图像。此节点连接 Recraft API，根据文本描述和指定的尺寸及风格选项创建图像。

## 输入参数

| 参数                 | 数据类型   | 必填 | 取值范围                                                                                                                                        | 描述                                           |
| ------------------ | ------ | -- | ------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------- |
| `prompt`           | STRING | 是  | -                                                                                                                                           | 用于图像生成的提示词。（默认：""）                           |
| `size`             | COMBO  | 是  | "1024x1024"<br />"1152x896"<br />"896x1152"<br />"1216x832"<br />"832x1216"<br />"1344x768"<br />"768x1344"<br />"1536x640"<br />"640x1536" | 生成图像的尺寸。（默认："1024x1024"）                     |
| `n`                | INT    | 是  | 1-6                                                                                                                                         | 要生成的图像数量。（默认：1）                              |
| `seed`             | INT    | 是  | 0-18446744073709551615                                                                                                                      | 用于确定节点是否应重新运行的种子值；无论种子值如何，实际结果都是非确定性的。（默认：0） |
| `recraft_style`    | COMBO  | 否  | 多个可用选项                                                                                                                                      | 用于图像生成的可选风格选择。                               |
| `negative_prompt`  | STRING | 否  | -                                                                                                                                           | 对图像中不希望出现的元素的可选文本描述。（默认：""）                  |
| `recraft_controls` | COMBO  | 否  | 多个可用选项                                                                                                                                      | 通过 Recraft Controls 节点对生成过程进行可选额外控制。         |

**注意：** `seed` 参数仅控制节点何时重新运行，但不会使图像生成具有确定性。即使使用相同的种子值，实际输出图像也会有所不同。

## 输出参数

| 输出名称    | 数据类型  | 描述             |
| ------- | ----- | -------------- |
| `IMAGE` | IMAGE | 生成的图像，以张量形式输出。 |
