> ## Documentation Index
> Fetch the complete documentation index at: https://dripart-docs-router-model-page-pilot.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# GrokImageEditNode - ComfyUI Built-in Node Documentation

> Grok Image Edit 节点根据文本提示修改现有图像。

Grok Image Edit 节点根据文本提示修改现有图像。它使用 Grok API 生成一张或多张由您的描述引导的、基于输入图像变体的新图像。此节点已标记为已弃用。

## 输入

| 参数                 | 描述                                               | 数据类型   | 是否必填 | 范围                                                                                                                                                                                          |
| ------------------ | ------------------------------------------------ | ------ | ---- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `model`            | 用于图像编辑的特定 AI 模型。                                 | COMBO  | 是    | `"grok-imagine-image-quality"`<br />`"grok-imagine-image-pro"`<br />`"grok-imagine-image"`                                                                                                  |
| `image`            | 要编辑的输入图像。                                        | IMAGE  | 是    |                                                                                                                                                                                             |
| `prompt`           | 用于生成图像的文本提示。多行文本；必须至少包含一个非空白字符。                  | STRING | 是    |                                                                                                                                                                                             |
| `resolution`       | 输出图像的分辨率。                                        | COMBO  | 是    | `"1K"`<br />`"2K"`                                                                                                                                                                          |
| `number_of_images` | 要生成的编辑图像数量（默认值：1）。                               | INT    | 是    | 1 到 10                                                                                                                                                                                      |
| `seed`             | 用于决定节点是否应重新运行的种子；无论种子如何，实际结果都是非确定性的（默认值：0）。      | INT    | 是    | 0 到 2147483647                                                                                                                                                                              |
| `宽高比`              | 输出图像的宽高比。仅当多个图像连接到 `image` 输入时才允许设置（默认值："auto"）。 | COMBO  | 否    | `"auto"`<br />`"1:1"`<br />`"2:3"`<br />`"3:2"`<br />`"3:4"`<br />`"4:3"`<br />`"9:16"`<br />`"16:9"`<br />`"9:19.5"`<br />`"19.5:9"`<br />`"9:20"`<br />`"20:9"`<br />`"1:2"`<br />`"2:1"` |

**重要约束：**

* `image` 输入最多支持 3 张图像，但使用 `grok-imagine-image-pro` 模型时除外，该模型仅支持 1 张输入图像。
* `aspect_ratio` 参数只能在多个图像连接到 `image` 输入时设置为自定义值（非 "auto"）。使用单个输入图像设置自定义宽高比会导致错误。
* `prompt` 必须至少包含一个非空白字符。

## 输出

| 输出名称     | 描述                                 | 数据类型  |
| -------- | ---------------------------------- | ----- |
| `output` | 由节点生成的编辑图像。如果生成多张图像，这些图像将被拼接为单个批次。 | IMAGE |

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

***

**Source fingerprint (SHA-256):** `e2ace07d10901c4e57086da8e3294a5d04e379103e9740131f5355cd4b07625d`
