Skip to main content
This documentation was AI-generated. If you find any errors or have suggestions for improvement, please feel free to contribute! Edit on GitHub
The Grok Image Edit node modifies an existing image based on a text prompt. It uses the Grok API to generate one or more new images that are variations of the input, guided by your description.

Inputs

ParameterData TypeRequiredRangeDescription
modelCOMBOYes"grok-imagine-image-beta"The specific AI model to use for image editing.
imageIMAGEYesThe input image to be edited. Only one image is supported.
promptSTRINGYesThe text prompt used to generate the edited image.
resolutionCOMBOYes"1K"The resolution for the output image.
number_of_imagesINTNo1 to 10Number of edited images to generate (default: 1).
seedINTNo0 to 2147483647Seed to determine if node should re-run; actual results are nondeterministic regardless of seed (default: 0).
Note: The image input must contain exactly one image. Providing multiple images will cause an error.

Outputs

Output NameData TypeDescription
outputIMAGEThe edited image(s) generated by the node. If number_of_images is greater than 1, the outputs are concatenated into a batch.