ComfyUI Node
Grok Image API
A ComfyUI node in image/generation with 12 inputs and 1 output.
Grok Image API
- image_1
- image_2
- image_3
- image_4
- image_5
- image
◄prompt►
◄modelgrok-imagine-image►
◄aspect_ratio1:1►
◄resolution1k►
◄n1►
◄seed0►
◄api_key►
Categoryimage/generation
Inputs (12)
| Name | Type | Default | Description |
|---|---|---|---|
| prompt | STRING | — | |
| model | COMBO | grok-imagine-image | 2 options: grok-imagine-image, grok-imagine-image-beta |
| aspect_ratio | COMBO | 1:1 | Applies to generation and multi-image edits. Ignored for single-image edits (output follows input aspect ratio). |
| resolution | COMBO | 1k | 2 options: 1k, 2k |
| n | INT | 11–10 | Number of images to generate or edited variations to produce |
| seed | INT | 00–2147483647 | Used to trigger re-runs in ComfyUI; not sent to the API |
| api_key | STRING | Directly put xAI API key or .env variable name (XAI_API_KEY) | |
| image_1opt | IMAGE | — | |
| image_2opt | IMAGE | — | |
| image_3opt | IMAGE | — | |
| image_4opt | IMAGE | — | |
| image_5opt | IMAGE | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| image | IMAGE | — |