ComfyUI > Nodes > ComfyUI > Grok Image Edit

ComfyUI Node: Grok Image Edit

Class Name

GrokImageEditNode

Category
api node/image/Grok
Author
ComfyAnonymous (Account age: 763days)
Extension
ComfyUI
Latest Updated
2026-05-13
Github Stars
112.77K

How to Install ComfyUI

Install this extension via the ComfyUI Manager by searching for ComfyUI
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Grok Image Edit Description

AI image editing node for creative image alterations based on text prompts, enabling customized visual outcomes effortlessly.

Grok Image Edit:

The GrokImageEditNode is designed to modify existing images based on a text prompt, providing a powerful tool for AI artists to creatively alter images with ease. This node leverages advanced image editing capabilities to transform images according to the user's descriptive input, allowing for a high degree of customization and artistic expression. By integrating text-based instructions, the node enables users to achieve specific visual outcomes, making it an essential component for those looking to enhance or completely change the aesthetic of their images. Its primary goal is to offer a seamless and intuitive way to edit images, ensuring that even users with minimal technical expertise can produce professional-quality results.

Grok Image Edit Input Parameters:

images

This parameter accepts one or more reference images that you wish to edit. The node can handle up to three images unless using the "grok-imagine-image-pro" model, which supports only one image. The images serve as the base for the modifications dictated by the text prompt.

resolution

This parameter determines the resolution of the output images, with options available for "1K" and "2K". Choosing a higher resolution will result in more detailed images but may require more processing time.

number_of_images

This parameter specifies the number of edited images to generate, with a minimum of 1 and a maximum of 10. The default value is 1. Increasing this number allows for multiple variations of the edited image based on the same prompt.

aspect_ratio

This optional parameter allows you to set a custom aspect ratio for the output images. It is only applicable when multiple images are connected to the input. Available options include "auto", "1:1", "2:3", "3:2", "3:4", "4:3", "9:16", "16:9", "9:19.5", "19.5:9", "9:20", "20:9", "1:2", and "2:1".

Grok Image Edit Output Parameters:

edited_image

The output is a tensor representing the edited image(s) generated by the node. This output reflects the modifications applied based on the text prompt and input parameters, providing a visual representation of the desired changes.

Grok Image Edit Usage Tips:

  • To achieve the best results, ensure your text prompt is clear and descriptive, as this will guide the node in making the desired edits to the image.
  • Experiment with different aspect ratios and resolutions to find the optimal settings for your specific project needs, especially when working with multiple images.

Grok Image Edit Common Errors and Solutions:

"The pro model supports only 1 input image."

  • Explanation: This error occurs when more than one image is provided as input while using the "grok-imagine-image-pro" model.
  • Solution: Ensure that only one image is connected to the input when using this model.

"A maximum of 3 input images is supported."

  • Explanation: This error is triggered when more than three images are provided as input.
  • Solution: Limit the number of input images to three or fewer.

"Custom aspect ratio is only allowed when multiple images are connected to the image input."

  • Explanation: This error arises when a custom aspect ratio is set while only one image is connected.
  • Solution: Either connect multiple images or set the aspect ratio to "auto" when using a single image.

Grok Image Edit Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.

Grok Image Edit