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
Modes
This node reconfigures itself depending on the selected mode — each mode has its own fields.
| Mode | What it does | Output |
|---|---|---|
| Generate Image | Create an image from text prompt | Image |
| Edit Image | Edit an existing image with text prompts | Image |
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.
| Input | Type | Required | Description |
|---|---|---|---|
| Prompt | Text (multiline) | Required | Enter your text here |
Settings
| Setting | Type | Default | Description |
|---|---|---|---|
| Model | Select | grok-imagine-image | Options: grok-imagine-image (default). |
| Aspect Ratio | Select | 1:1 (Square) |
Aspect Ratio options
| Option | Default |
|---|---|
| 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.
| Input | Type | Required | Description |
|---|---|---|---|
| Prompt | Text (multiline) | Required | Describe the changes you want to make to the image. |
| Image URL | File upload | Required | URL of the image to edit. Can be a public URL or base64-encoded data URI. |
Settings
| Setting | Type | Default | Description |
|---|---|---|---|
| Model | Select | grok-imagine-image | Options: grok-imagine-image (default). |
Output: Image