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

# GrokImageEditNode - ComfyUI Built-in Node Documentation

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

Grok Image Edit 节点根据文本提示修改现有图像。它使用 Grok API 生成一张或多张新图像，这些图像是在您的描述引导下对输入图像的变体。

## 输入参数

| 参数                 | 数据类型   | 必填 | 范围                          | 描述                                           |
| ------------------ | ------ | -- | --------------------------- | -------------------------------------------- |
| `model`            | COMBO  | 是  | `"grok-imagine-image-beta"` | 用于图像编辑的特定 AI 模型。                             |
| `image`            | IMAGE  | 是  |                             | 待编辑的输入图像。仅支持单张图像。                            |
| `prompt`           | STRING | 是  |                             | 用于生成编辑后图像的文本提示。                              |
| `resolution`       | COMBO  | 是  | `"1K"`                      | 输出图像的分辨率。                                    |
| `number_of_images` | INT    | 否  | 1 到 10                      | 要生成的编辑图像数量（默认值：1）。                           |
| `seed`             | INT    | 否  | 0 到 2147483647              | 用于确定节点是否应重新运行的种子；无论种子值如何，实际结果都是非确定性的（默认值：0）。 |

**注意：** `image` 输入必须恰好包含一张图像。提供多张图像将导致错误。

## 输出结果

| 输出名称     | 数据类型  | 描述                                                 |
| -------- | ----- | -------------------------------------------------- |
| `output` | IMAGE | 由节点生成的编辑后图像。如果 `number_of_images` 大于 1，输出将拼接成一个批次。 |
