Nodes/civitai-comfy-nodes/grok / v2.0 / editImage
ComfyUI Node

grok / v2.0 / editImage

Editing with a resolution choice and looser rules

By civitai·Created 3 months ago·Updated 2 days ago· 44
grok / v2.0 / editImage
  • images
  • api_config
  • images
  • errors
  • workflow_id
  • raw_json
prompt
output_format
image_metadata
quantity1
resolution2k
qualitymedium
aspect_ratioauto

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 - auto plus the standard presets, default auto. (On the edit node the orchestrator can infer the ratio from your input image, so auto is 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.
CategoryCivitai/Image/grok

Inputs (9)

NameTypeDefaultDescription
promptSTRING
imagesIMAGE
output_formatoptCOMBO4 options: , jpeg, png, webP
image_metadataoptSTRINGExternal metadata that will be stored with the image
quantityoptINT11–4
resolutionoptCOMBO2k2 options: 1k, 2k
qualityoptCOMBOmedium2 options: low, medium
aspect_ratiooptCOMBOauto14 options: auto, 2:1, 20:9, 19.5:9, 16:9, 4:3, +8
api_configoptCIVITAI_CONFIGOptional Civitai Auth connection; defaults to CIVITAI_API_TOKEN or stored OAuth login.

Outputs (4)

NameTypeDescription
imagesIMAGE
errorsSTRING
workflow_idSTRING
raw_jsonSTRING