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

# BriaImageEditNode - ComfyUI Built-in Node Documentation

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

Bria FIBO 图像编辑节点允许您通过文本指令修改现有图像。它会将图像和您的提示发送至 Bria API，该 API 使用 FIBO 模型根据您的要求生成新的编辑后图像版本。您也可以提供蒙版，以将编辑限制在特定区域。

## 输入参数

| 参数                  | 数据类型         | 必填 | 取值范围                    | 描述                                                     |
| ------------------- | ------------ | -- | ----------------------- | ------------------------------------------------------ |
| `model`             | COMBO        | 是  | `"FIBO"`                | 用于图像编辑的模型版本。                                           |
| `image`             | IMAGE        | 是  | -                       | 您想要编辑的输入图像。                                            |
| `prompt`            | STRING       | 否  | -                       | 描述如何编辑图像的文本指令（默认：空）。                                   |
| `negative_prompt`   | STRING       | 否  | -                       | 描述您不希望出现在编辑后图像中的内容的文本（默认：空）。                           |
| `structured_prompt` | STRING       | 否  | -                       | 一个包含 JSON 格式结构化编辑提示的字符串。使用此参数代替常规提示，以实现精确的程序化控制（默认：空）。 |
| `seed`              | INT          | 是  | 1 至 2147483647          | 用于初始化随机生成的数字，确保结果可复现（默认：1）。                            |
| `guidance_scale`    | FLOAT        | 是  | 3.0 至 5.0               | 控制生成图像遵循提示的紧密程度。值越高，遵循度越强（默认：3.0）。                     |
| `steps`             | INT          | 是  | 20 至 50                 | 模型将执行的去噪步骤数（默认：50）。                                    |
| `moderation`        | DYNAMICCOMBO | 是  | `"true"`<br />`"false"` | 启用或禁用内容审核。选择 `"true"` 会显示额外的审核选项。                      |
| `mask`              | MASK         | 否  | -                       | 可选的蒙版图像。如果提供，编辑将仅应用于图像的蒙版区域。                           |

**重要限制：**

* 您必须至少提供 `prompt` 或 `structured_prompt` 输入之一。两者不能同时为空。
* 恰好需要一个 `image` 输入。
* 当 `moderation` 参数设置为 `"true"` 时，会额外出现三个布尔值输入：`prompt_content_moderation`、`visual_input_moderation` 和 `visual_output_moderation`。

## 输出参数

| 输出名称                | 数据类型   | 描述                 |
| ------------------- | ------ | ------------------ |
| `IMAGE`             | IMAGE  | Bria API 返回的编辑后图像。 |
| `structured_prompt` | STRING | 在编辑过程中使用或生成的结构化提示。 |
