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

grok-imagine-image-2.0 Inputs

grok-imagine-image-quality and grok-imagine-image Inputs

Shared by grok-imagine-image-quality and grok-imagine-image.

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.
  • For grok-imagine-image-quality and 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, 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): 7d75b1cb8405c5024567b1119bcbd5e4b318152605f74b62bdd5173dda75949f