ComfyUI Node
BYOKey Grok Image (xAI)
Generate images using Grok (xAI) based on a text prompt.
BYOKey Grok Image (xAI)
- output
◄api_key►
◄base_urlhttps://api.x.ai/v1►
◄modelgrok-imagine-image-quality►
◄prompt►
◄aspect_ratio1:1►
◄number_of_images1►
◄seed0►
◄resolution1K►
Categoryapi/byokey/image
Inputs (8)
| Name | Type | Default | Description |
|---|---|---|---|
| api_key | STRING | — | |
| base_url | STRING | https://api.x.ai/v1 | — |
| model | COMBO | grok-imagine-image-quality | 3 options: grok-imagine-image-quality, grok-imagine-image-pro, grok-imagine-image |
| prompt | STRING | The text prompt used to generate the image | |
| aspect_ratio | COMBO | 1:1 | 13 options: 1:1, 2:3, 3:2, 3:4, 4:3, 9:16, +7 |
| number_of_images | INT | 11–10 | Number of images to generate |
| seed | INT | 00–2147483647 | Seed to determine if node should re-run; actual results are nondeterministic regardless of seed. |
| resolutionopt | COMBO | 1K | 2 options: 1K, 2K |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| output | IMAGE | — |