Skip to main content
Modify one or more existing images based on a text prompt. The node sends the connected reference image(s) and the prompt to the Grok image editing API using the selected model, then returns the edited image(s).

Inputs

Common Inputs

Note: grok-imagine-image-quality and grok-imagine-image-pro are retired by xAI and now run as grok-imagine-image-2.0 at low quality.

grok-imagine-image-2.0 Inputs

grok-imagine-image-quality Inputs

grok-imagine-image Inputs

grok-imagine-image-pro Inputs

Reference Inputs

Note on constraints:
  • prompt must contain at least 1 non-whitespace character.
  • At least one reference image is required for editing; the node raises an error if no image is connected.
  • The maximum number of input images is 1 for grok-imagine-image-pro and 3 for grok-imagine-image-2.0, grok-imagine-image-quality, and grok-imagine-image. Connecting more images than the model supports raises an error.
  • The image limit counts every image in the connected inputs, so a batch containing several images counts as several images toward the limit.
  • For grok-imagine-image, a custom aspect_ratio (anything other than “auto”) is only allowed when multiple images are connected. With a single image, aspect_ratio must be “auto”.
  • For grok-imagine-image-2.0 and grok-imagine-image-quality, aspect_ratio can be set freely even with a single image.
  • The quality sub-parameter is only available with grok-imagine-image-2.0.

Outputs

This documentation was AI-generated. If you find any errors or have suggestions for improvement, please feel free to contribute! Edit on GitHub

Source fingerprint (SHA-256): b8f4a86a3dd3a9cf1a24531fad4c62642e4c6de75a598fbe263ff8d3d16800d5