grok / v2.0 / editImage
Editing with a resolution choice and looser rules
- images
- api_config
- images
- errors
- workflow_id
- raw_json
The edit variant of Grok v2.0 - xAI's closed image model with the looser moderation, now with a resolution picker bolted onto the editing path. Feed it a source image plus an instruction, get back an edited IMAGE. It runs on Civitai's orchestration layer, billed in Buzz, no xAI account required.
The v2.0 edit is the one to pick over the v1.0 edit when you want to control output size: a 2K edit for final delivery, or 1K when the edit is a step in a longer pipeline that's going to be resized anyway. Same trade as the create side - resolution is cost, not just pixels.
How it works
Standard civitai-comfy-nodes flow: upload image + instruction to the Civitai Orchestration API as a grok / v2.0 / editImage job, long-poll, convert the result to a native IMAGE tensor. Autoregressive model, so no sampler/strength knobs - the new controls are resolution, quality, and aspect ratio.
The inputs that matter
- prompt and images - both required. Instruction in the prompt, source in
images. - resolution -
1k/2k, default 2k. - quality -
low/medium, default medium. - aspect_ratio -
autoplus the standard presets, defaultauto. (On the edit node the orchestrator can infer the ratio from your input image, soautois often right.) - quantity - 1 to 4 outputs.
- output_format / image_metadata - format and optional metadata.
Outputs
images → Preview/Save Image. errors, workflow_id, raw_json are diagnostics.
Installing and authenticating
Pack-wide install:
cd ComfyUI/custom_nodes
git clone https://github.com/civitai/civitai-comfy-nodes.git
pip install -r civitai-comfy-nodes/requirements.txt
or ComfyUI Manager → "Civitai Comfy Nodes" → Install → restart. Dependencies: requests + python-socketio[client].
Auth: Civitai Auth node → CIVITAI_API_TOKEN → stored key/OAuth → browser login. Headless:
export CIVITAI_API_TOKEN=your_token
Where people get burned
- No strength slider. Subtlety lives in the prompt ("keep everything else the same"), not a knob. There's no way to dial the edit's aggressiveness directly.
- Resolution multiplies cost. A 2K edit is a 2K billed job; if the edit is a draft step, 1K keeps the bill sane.
- Looser moderation, not no moderation. Grok's edge is real but xAI still filters at the source, and you can't patch a model you can't download.
- Your source image leaves the machine and goes through xAI via Civitai's orchestration.
- No reproducibility. No seed - save good results immediately.
Inputs (9)
| Name | Type | Default | Description |
|---|---|---|---|
| prompt | STRING | — | |
| images | IMAGE | — | |
| output_formatopt | COMBO | 4 options: , jpeg, png, webP | |
| image_metadataopt | STRING | External metadata that will be stored with the image | |
| quantityopt | INT | 11–4 | — |
| resolutionopt | COMBO | 2k | 2 options: 1k, 2k |
| qualityopt | COMBO | medium | 2 options: low, medium |
| aspect_ratioopt | COMBO | auto | 14 options: auto, 2:1, 20:9, 19.5:9, 16:9, 4:3, +8 |
| api_configopt | CIVITAI_CONFIG | Optional Civitai Auth connection; defaults to CIVITAI_API_TOKEN or stored OAuth login. |
Outputs (4)
| Name | Type | Description |
|---|---|---|
| images | IMAGE | — |
| errors | STRING | — |
| workflow_id | STRING | — |
| raw_json | STRING | — |