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

> The Grok Image Edit node modifies an existing image based on a text prompt.

The Grok Image Edit node modifies an existing image based on a text prompt. It sends the input image(s) and your description to the Grok API and returns one or more newly generated images that follow the prompt. This node is marked as deprecated.

## Inputs

| Parameter          | Description                                                                                                                  | Data Type | Required | Range                                                                                                                                                                                       |
| ------------------ | ---------------------------------------------------------------------------------------------------------------------------- | --------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `model`            | The specific AI model to use for image editing.                                                                              | COMBO     | Yes      | `"grok-imagine-image-quality"`<br />`"grok-imagine-image-pro"`<br />`"grok-imagine-image"`                                                                                                  |
| `image`            | The input image(s) to be edited.                                                                                             | IMAGE     | Yes      |                                                                                                                                                                                             |
| `prompt`           | The text prompt used to generate the image. Multiline text; must contain at least one non-whitespace character.              | STRING    | Yes      |                                                                                                                                                                                             |
| `resolution`       | The resolution for the output image.                                                                                         | COMBO     | Yes      | `"1K"`<br />`"2K"`                                                                                                                                                                          |
| `number_of_images` | Number of edited images to generate (default: 1).                                                                            | INT       | Yes      | 1 to 10                                                                                                                                                                                     |
| `seed`             | Seed to determine if node should re-run; actual results are nondeterministic regardless of seed (default: 0).                | INT       | Yes      | 0 to 2147483647                                                                                                                                                                             |
| `aspect_ratio`     | The aspect ratio for the output image. Only allowed when multiple images are connected to the image input (default: "auto"). | COMBO     | No       | `"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"` |

**Important constraints:**

* The `image` input supports up to 3 images, except when using the `grok-imagine-image-pro` model, which supports only 1 input image.
* The `aspect_ratio` parameter can only be set to a custom value (not "auto") when multiple images are connected to the `image` input. Setting a custom aspect ratio with a single input image will cause an error.
* The `prompt` must contain at least one non-whitespace character.

## Outputs

| Output Name | Description                                                                                                                      | Data Type |
| ----------- | -------------------------------------------------------------------------------------------------------------------------------- | --------- |
| `output`    | The edited image(s) generated by the node. If more than one image is generated, the images are concatenated into a single batch. | IMAGE     |

> This documentation was AI-generated. If you find any errors or have suggestions for improvement, please feel free to contribute! [Edit on GitHub](https://github.com/Comfy-Org/embedded-docs/blob/main/comfyui_embedded_docs/docs/GrokImageEditNode/en.md)

***

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