Skip to main content

Grok Image

Generate or edit images using xAI's Grok image models. Create images from text prompts or edit existing images with text instructions.

The Grok Image node generates images using xAI's Grok image models. Provide a text prompt to create visuals directly within your flow.

Grok ImageGenerate Image
Prompt*Text (multiline)
ModelSelect
Aspect RatioSelect
Node as configured in “Generate Image” mode. Fields marked * are required. Dots are connection handles.

Modes

This node reconfigures itself depending on the selected mode — each mode has its own fields.

ModeWhat it doesOutput
Generate ImageCreate an image from text promptImage
Edit ImageEdit an existing image with text promptsImage

Generate Image

Create an image from text prompt

Grok ImageGenerate Image
Prompt*Text (multiline)
ModelSelect
Aspect RatioSelect

Inputs

Each input can be typed in directly or connected to another node's output.

InputTypeRequiredDescription
PromptText (multiline)RequiredEnter your text here

Settings

SettingTypeDefaultDescription
ModelSelectgrok-imagine-imageOptions: grok-imagine-image (default).
Aspect RatioSelect1:1 (Square)
Aspect Ratio options
OptionDefault
1:1 (Square)
16:9 (Widescreen)
9:16 (Mobile/Stories)
4:3 (Presentation)
3:4 (Portrait)
3:2 (Photography)
2:3 (Photo Portrait)
2:1 (Banner)
1:2 (Vertical Banner)
19.5:9 (Modern Phone)
9:19.5 (Tall Phone)
20:9 (Ultra-wide)
9:20 (Ultra-tall)

Output: Image

Edit Image

Edit an existing image with text prompts

Grok ImageEdit Image
Prompt*Text (multiline)
Image URL*File upload
ModelSelect

Inputs

Each input can be typed in directly or connected to another node's output.

InputTypeRequiredDescription
PromptText (multiline)RequiredDescribe the changes you want to make to the image.
Image URLFile uploadRequiredURL of the image to edit. Can be a public URL or base64-encoded data URI.

Settings

SettingTypeDefaultDescription
ModelSelectgrok-imagine-imageOptions: grok-imagine-image (default).

Output: Image

Output