Nodes/civitai-comfy-nodes/grok / createImage
ComfyUI Node

grok / createImage

The pack's least-restrictive create node

By civitai·Created 2 months ago·Updated about a month ago· 42
grok / createImage
  • api_config
  • images
  • errors
  • workflow_id
  • raw_json
prompt
output_format
image_metadata
quantity1
aspect_ratio1:1

Grok's image model is the odd one out in this pack for two reasons. First, it's architecturally different - xAI's generator is an autoregressive mixture-of-experts that predicts visual tokens, not a diffusion model (the community spent 2024 debating whether it was secretly Flux under the hood; xAI denies it, the resemblance keeps coming up). Second, and more practically for you: Grok is the least-restrictive mainstream image service there is. "Spicy Mode" is a real thing. Which makes CivitaiImageGenGrokCreateImage the most permissive create node in Civitai's official lineup - with the important caveat that Civitai's own content rules still apply on top.

What it is. One of the ~160 nodes in civitai/civitai-comfy-nodes (engine grok, operation createImage). Type a prompt, it generates on Civitai's cloud, and an IMAGE lands in your graph - no local model, no X account, no VRAM. Buzz is the currency.

How it works. Same machinery as the rest of the pack: the node builds a workflow payload, submits it to orchestration.civitai.com, long-polls until the job finishes, and returns images, errors, workflow_id, and raw_json. The input list is refreshingly short. prompt is the only required field. Then aspect_ratio - the dropdown gives you the standard set (1:1, 4:3, 3:2, 16:9, 2.35:1, 4:5, 2:3, 9:16), default 1:1. And quantity (1-4) if you want several takes at once. No seed, no size sliders, no negative prompt, no sampler - xAI's model doesn't take them, and the node doesn't pretend otherwise. output_format and image_metadata (external metadata stored with the image) round out the optionals.

Inputs that matter. Honestly just prompt and aspect_ratio. Grok is a conversational model at heart, so full-sentence prompts ("a neon-lit rainy street at night, cinematic still") work better than tag soup. For widescreen scenes go 16:9 or 2.35:1; for portraits, 4:5 or 9:16. If you need image editing, that's the separate CivitaiImageGenGrokEditImage node.

Install. Ships with the pack - ComfyUI Manager → Custom Nodes Manager → search Civitai Comfy Nodes (publisher civitai) → Install, or:

cd ComfyUI/custom_nodes
git clone https://github.com/civitai/civitai-comfy-nodes.git
pip install -r civitai-comfy-nodes/requirements.txt

Restart, then look under Civitai/Image/grok. No model downloads.

Auth and gotchas. Credentials from a wired Civitai Auth node, then CIVITAI_API_TOKEN, then the stored key or sidebar OAuth. The familiar error hints: 402 = insufficient Buzz, 401 = token expired, 429 = rate limited, with a 30-minute job timeout.

Now the honest part. "Least restrictive" is relative - Civitai runs its own moderation on the request path, and the launch thread made clear the nodes inherit "the same restrictions as the web generator." So this is not a backdoor to whatever Spicy Mode permits on X. What you do get is the most relaxed mainstream model Civitai hosts, with the least knobs to break. If the pack's stricter engines keep refusing your subject and you want one hosted attempt that's likelier to cooperate, Grok is where you point first.

CategoryCivitai/Image/grok

Inputs (6)

NameTypeDefaultDescription
promptSTRING
output_formatoptCOMBO4 options: , jpeg, png, webP
image_metadataoptSTRINGExternal metadata that will be stored with the image
quantityoptINT11–4
aspect_ratiooptCOMBO1:1Aspect ratio: 2:1, 20:9, 19.5:9, 16:9, 4:3, 3:2, 1:1, 2:3, 3:4, 9:16, 9:19.5, 9:20, 1:2
api_configoptCIVITAI_CONFIGOptional Civitai Auth connection; defaults to CIVITAI_API_TOKEN or stored OAuth login.

Outputs (4)

NameTypeDescription
imagesIMAGE
errorsSTRING
workflow_idSTRING
raw_jsonSTRING