Grok Imagine Image 2.0
Grok Imagine Image 2.0 in ComfyUI — xAI's image model, no X subscription required
- referenceImages
- advancedFeatures.watermark.image
- image
Grok is xAI's image model - the one people kept pointing at for photorealistic people and for being the least restrictive mainstream generator around. Until recently, "use Grok" meant going to X/Twitter and fighting the chat UI. This node drops Grok Imagine Image 2.0 into your ComfyUI graph as a plain generator node, running on Runware's cloud. Closed weights, no local option - this is exactly the case where an API node is the right tool rather than a compromise: you were never going to download this model, so paying per call is the only way to get it next to your local upscaler.
Image 2.0 is xAI's current image generation and editing model, released through Runware in August 2026. Per Runware's model page it keeps the family's core workflow - aspect-ratio control, image-based editing - and adds a quality parameter so you can tune output fidelity. If you've used Grok on X, the behavior carries over; the community read on Grok has long been strong photorealism of people plus a looser content line than Google or OpenAI enforce.
What you set. The one required input is positivePrompt. Everything else is optional, and the ones that earn their keep:
referenceImages- this is how you do image-to-image and keep a subject or style consistent. Wire in an IMAGE and the model transforms or matches it rather than generating from nothing. For an API without seeds-and-LoRA workflows, references are your main lever.size- 29 presets, defaulting to 1K (16:9), with options like "1K (from input)" / "2K (from input)" for editing jobs and phone-ish ratios (9:19.5, 9:20). Pick one rather than fighting for a resolution widget that doesn't exist here.settings.quality- low or medium; the node only exposes those two. Start at the default medium, drop to low when you're iterating on prompts and want cheaper drafts.numberResults(up to 20) and the watermark/safety.checkContentgroup are self-explanatory if you've used hosted image APIs before.
Output is a native IMAGE called image, so wire it into Preview Image or Save Image and it looks like any sampler output - even though the generation happened on xAI's backend through Runware.
Install. One pack covers every Runware model, so this is the shared setup:
# ComfyUI Manager (recommended): Custom Nodes Manager → search "Runware" → install → restart
cd ComfyUI/custom_nodes
git clone https://github.com/Runware/ComfyUI-Runware # manual alternative
pip install -r ComfyUI-Runware/requirements.txt
Restart, then drop in a Runware API key (Settings → Runware API key, or RUNWARE_API_KEY). No model downloads - it's all cloud.
Gotchas. Three, all honest API-node realities. Every queue is metered, and the node prints the cost in its title bar - Grok is a popular model, not a cheap one, so check that number before you queue twenty drafts. Your prompts and reference images leave the machine. And the content line belongs to xAI, not to you: the filter follows the model, and there's no local anything to patch, no matter what the Grok-on-X reputation suggests.
Inputs (19)
| Name | Type | Default | Description |
|---|---|---|---|
| positivePrompt | STRING | Text prompt describing elements to include in the generated output. | |
| referenceImagesopt | IMAGE | — | |
| advancedFeatures.watermark.imageopt | IMAGE | — | |
| sizeopt | COMBO | 1K (16:9) | Output size. Only one of resolution or dimensions is sent. |
| numberResultsopt | INT | 11–20 | Number of results to generate. Each result uses a different seed, producing variations of the same parameters. |
| advancedFeaturesopt | BOOLEAN | false | Enable to set advancedFeatures. Off uses the model's default. |
| advancedFeatures.watermark.bgColoropt | STRING | Background color in hex format. | |
| advancedFeatures.watermark.displayPositionopt | COMBO | (default) | Watermark position. |
| advancedFeatures.watermark.fontColoropt | STRING | Text color in hex format. | |
| advancedFeatures.watermark.opacityopt | BOOLEAN | false | Enable to set advancedFeatures.watermark.opacity. Off uses the model's default. |
| advancedFeatures.watermark.opacity_valueopt | FLOAT | 0.100.1–1 | Watermark opacity. |
| advancedFeatures.watermark.textopt | STRING | Watermark text. | |
| settings.qualityopt | COMBO | medium | Image quality level. |
| safetyopt | BOOLEAN | false | Enable to set safety. Off uses the model's default. |
| safety.checkContentopt | BOOLEAN | false | Enable or disable content safety checking. Increases total generation time. |
| ttlopt | BOOLEAN | false | Enable to set ttl. Off uses the model's default. |
| ttl_valueopt | INT | 60 | Time-to-live (TTL) in seconds for generated content. Only applies when `outputType` is `URL`. |
| outputFormatopt | COMBO | JPG | File format for the generated image. |
| outputQualityopt | INT | 9520–99 | Compression quality of the output. Higher values preserve quality but increase file size. |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| image | IMAGE | — |