> ## Documentation Index
> Fetch the complete documentation index at: https://dripart-docs-custom-nodes-sdk-v2-frontend.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# ReveImageEditNode - ComfyUI Built-in Node Documentation

> Reve Image Edit 节点根据自然语言文本指令修改现有图像。

Reve Image Edit 节点根据自然语言文本指令修改现有图像。它会将输入图像和您的指令发送到 Reve API，该 API 返回应用了请求修改的新图像。

## 输入

`model` 选择器决定显示哪些特定于模型的输入。`upscale` 选择器控制放大系数输入是否可用。

### 通用输入

| 参数                  | 描述                                     | 数据类型           | 必填 | 范围                                                      |
| ------------------- | -------------------------------------- | -------------- | -- | ------------------------------------------------------- |
| `image`             | 要编辑的图像。                                | IMAGE          | 是  | -                                                       |
| `edit_instruction`  | 如何编辑图像的文本描述。最多 2560 个字符。               | STRING         | 是  | -                                                       |
| `model`             | 用于编辑的模型版本。                             | DYNAMIC\_COMBO | 是  | `"reve-edit@20250915"`<br />`"reve-edit-fast@20251030"` |
| `upscale`           | 放大生成的图像。可能会增加额外费用。（默认值："disabled"）     | DYNAMIC\_COMBO | 否  | `"disabled"`<br />`"enabled"`                           |
| `remove_background` | 从生成的图像中移除背景。可能会增加额外费用。（默认值：False）      | BOOLEAN        | 否  | `true`<br />`false`                                     |
| `seed`              | 种子控制节点是否应重新运行；无论种子如何，结果都是非确定性的。（默认值：0） | INT            | 否  | 0 到 2147483647                                          |

### 模型输入（由 `reve-edit@20250915` 和 `reve-edit-fast@20251030` 共用）

两个模型版本公开相同的模型特定输入。

| 参数                  | 描述                                 | 数据类型  | 必填 | 范围                                                                                                    |
| ------------------- | ---------------------------------- | ----- | -- | ----------------------------------------------------------------------------------------------------- |
| `aspect_ratio`      | 输出图像的宽高比。设置为 "auto" 时，宽高比将自动确定。    | COMBO | 否  | `"auto"`<br />`"16:9"`<br />`"9:16"`<br />`"3:2"`<br />`"2:3"`<br />`"4:3"`<br />`"3:4"`<br />`"1:1"` |
| `test_time_scaling` | 高级选项。较高的值会产生更好的图像，但会消耗更多积分。（默认值：1） | INT   | 否  | 1 到 5                                                                                                 |

### 放大输入（当 `upscale` 设置为 "enabled" 时）

| 参数                       | 描述                         | 数据类型 | 必填 | 范围    |
| ------------------------ | -------------------------- | ---- | -- | ----- |
| `upscale.upscale_factor` | 放大系数（2 倍、3 倍或 4 倍）。（默认值：2） | INT  | 否  | 2 到 4 |

**注意：**

* `upscale.upscale_factor` 仅在 `upscale` 设置为 "enabled" 时适用。放大和背景移除可以同时启用，也可以独立启用。
* `edit_instruction` 不能为空，且不能超过 2560 个字符。
* 当 `model.aspect_ratio` 设置为 "auto" 时，不会向 API 发送固定的宽高比，宽高比由系统自动选择。
* `model.test_time_scaling` 仅当其值大于 1 时才发送到 API；默认值 1 保持 API 的默认行为。
* 无论种子值如何，结果都是非确定性的；种子仅控制节点是否重新运行。
* 此节点已标记为弃用。
* 以美元计的近似费用（根据节点的价格徽章）：`reve-edit-fast@20251030` 为 `$0.01001`；`reve-edit@20250915` 不放大时为 `$0.0572`，2 倍放大时为 `$0.0686`，3 倍放大时为 `$0.0819`，4 倍放大时为 `$0.0991`。

## 输出

| 输出名称    | 描述            | 数据类型  |
| ------- | ------------- | ----- |
| `image` | 根据指令生成的已编辑图像。 | IMAGE |

> 本文档由 AI 生成。如果您发现任何错误或有改进建议，欢迎贡献！ [在 GitHub 上编辑](https://github.com/Comfy-Org/embedded-docs/blob/main/comfyui_embedded_docs/docs/ReveImageEditNode/zh.md)

***

**Source fingerprint (SHA-256):** `4001f3ab4cc4e705c235f578e90e497bb30d22110ef69b16fb072a91a65d15df`
