> ## Documentation Index
> Fetch the complete documentation index at: https://dripart-comfy-docs-comfyapi-search.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 张输入图像。
* 仅当有多个图像连接到 `image` 输入时，`aspect_ratio` 参数才能设置为自定义值（不能为 "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`
