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

# RecraftImageInpaintingNode - ComfyUI Built-in Node Documentation

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

此节点基于文本提示和遮罩修改图像。它使用 Recraft API 智能编辑您通过遮罩定义的图像特定区域，同时保持图像的其余部分不变。

## 输入参数

| 参数              | 数据类型    | 必填 | 取值范围                   | 描述                                                                       |
| --------------- | ------- | -- | ---------------------- | ------------------------------------------------------------------------ |
| `image`         | IMAGE   | 是  | -                      | 待修改的输入图像                                                                 |
| `mask`          | MASK    | 是  | -                      | 定义图像中哪些区域应被修改的遮罩                                                         |
| `提示词`           | STRING  | 是  | -                      | 图像生成的提示词（默认：空字符串）                                                        |
| `数量`            | INT     | 是  | 1-6                    | 要生成的图像数量（默认：1，最小值：1，最大值：6）                                               |
| `种子`            | INT     | 是  | 0-18446744073709551615 | 用于确定节点是否应重新运行的种子；无论种子如何，实际结果都是非确定性的（默认：0，最小值：0，最大值：18446744073709551615） |
| `recraft_style` | STYLEV3 | 否  | -                      | Recraft API 的可选样式参数                                                      |
| `反向提示词`         | STRING  | 否  | -                      | 图像中不希望出现的元素的可选文本描述（默认：空字符串）                                              |

*注意：`image` 和 `mask` 必须同时提供才能进行修复操作。遮罩将自动调整大小以匹配图像尺寸。*

## 输出参数

| 输出名称    | 数据类型  | 描述                |
| ------- | ----- | ----------------- |
| `image` | IMAGE | 基于提示词和遮罩生成的修改后的图像 |
