ComfyUI Node

grokImage

Generate or edit images with xAI Grok Imagine.

By RobeSantoro·Created 2 years ago·Updated 3 months ago· 0
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)

NameTypeDefaultDescription
promptSTRINGA futuristic city in cyberpunk style
model_nameCOMBOgrok-imagine-image-quality2 options: grok-imagine-image-quality, grok-imagine-image
aspect_ratioCOMBO1:114 options: 1:1, 16:9, 9:16, 4:3, 3:4, 3:2, +8
resolutionCOMBO1k2 options: 1k, 2k
nINT11–10Number of images to generate.
image_refoptIMAGEReference image for image-to-image editing.
api_keyoptSTRING
response_formatoptCOMBOurl2 options: url, b64_json
timeout_secondsoptINT18030–600

Outputs (2)

NameTypeDescription
imageIMAGE
url_or_errorSTRING