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

# RecraftReplaceBackgroundNode - ComfyUI Built-in Node Documentation

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

## 概述

根据提供的提示词替换图像背景。该节点使用 Recraft API 根据您的文本描述为图像生成新背景，让您在保持主体完整的同时完全变换背景。

## 输入

| 参数           | 数据类型    | 必需 | 取值范围                   | 描述                                           |
| ------------ | ------- | -- | ---------------------- | -------------------------------------------- |
| `图像`         | IMAGE   | 是  | -                      | 要处理的输入图像                                     |
| `提示词`        | STRING  | 是  | -                      | 图像生成的提示词（默认：空）                               |
| `数量`         | INT     | 是  | 1-6                    | 要生成的图像数量（默认：1）                               |
| `种子`         | INT     | 是  | 0-18446744073709551615 | 控制节点是否重新运行的种子值；由于外部 API 的特性，实际结果具有不确定性（默认：0） |
| `recraft 风格` | STYLEV3 | 否  | -                      | 生成背景的可选样式选择                                  |
| `反向提示词`      | STRING  | 否  | -                      | 对图像中不希望出现的元素的可选文本描述（默认：空）                    |

**注意：** `seed` 参数控制节点何时重新执行，但由于外部 API 的特性，无法保证结果的可重复性。

## 输出

| 输出名称    | 数据类型  | 描述         |
| ------- | ----- | ---------- |
| `IMAGE` | IMAGE | 已替换背景的生成图像 |
