ComfyUI Node
grokImage
Generate or edit images with xAI Grok Imagine.
grokImage
- image_ref
- image
- url_or_error
◄promptA futuristic city in cyberpunk style►
◄model_namegrok-imagine-image-quality►
◄aspect_ratio1:1►
◄resolution1k►
◄n1►
◄api_key►
◄response_formaturl►
◄timeout_seconds180►
CategoryRobeNodes/Grok
Inputs (9)
| Name | Type | Default | Description |
|---|---|---|---|
| prompt | STRING | A futuristic city in cyberpunk style | — |
| model_name | COMBO | grok-imagine-image-quality | 2 options: grok-imagine-image-quality, grok-imagine-image |
| aspect_ratio | COMBO | 1:1 | 14 options: 1:1, 16:9, 9:16, 4:3, 3:4, 3:2, +8 |
| resolution | COMBO | 1k | 2 options: 1k, 2k |
| n | INT | 11–10 | Number of images to generate. |
| image_refopt | IMAGE | Reference image for image-to-image editing. | |
| api_keyopt | STRING | — | |
| response_formatopt | COMBO | url | 2 options: url, b64_json |
| timeout_secondsopt | INT | 18030–600 | — |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| image | IMAGE | — |
| url_or_error | STRING | — |