ComfyUI Node

Grok Image API

A ComfyUI node in image/generation with 12 inputs and 1 output.

By Aryan185·Created about a year ago·Updated 2 months ago· 14
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)

NameTypeDefaultDescription
promptSTRING
modelCOMBOgrok-imagine-image2 options: grok-imagine-image, grok-imagine-image-beta
aspect_ratioCOMBO1:1Applies to generation and multi-image edits. Ignored for single-image edits (output follows input aspect ratio).
resolutionCOMBO1k2 options: 1k, 2k
nINT11–10Number of images to generate or edited variations to produce
seedINT00–2147483647Used to trigger re-runs in ComfyUI; not sent to the API
api_keySTRINGDirectly put xAI API key or .env variable name (XAI_API_KEY)
image_1optIMAGE
image_2optIMAGE
image_3optIMAGE
image_4optIMAGE
image_5optIMAGE

Outputs (1)

NameTypeDescription
imageIMAGE