flux2 / klein / editImage
Hosted Flux 2 Klein editing with LoRAs and a negative prompt
- loras
- images
- api_config
- images
- errors
- workflow_id
- raw_json
Take the Klein create node, bolt an image input onto it, and you get this: the most control-heavy edit node in the Civitai image lineup. Flux 2 Klein earned its reputation as the editing front of the open-weights ecosystem - the distilled 4B/9B models that people actually fine-tune and use for img2img when the full 32B Dev is out of reach. CivitaiImageGenFlux2KleinEditImage serves that same model as a hosted edit operation, so you can do image-guided edits without a local checkpoint or a VRAM budget.
How it works. Wire a source image into images, describe the edit in prompt, and the node packages both into a workflow submitted to orchestration.civitai.com. While it runs, you get none of the local model loading - the first few seconds are just submission and queue - and then an edited IMAGE comes back on the images output, ready for Preview, Save, or downstream processing. Standard pack outputs: images, errors, workflow_id, and raw_json.
Where it's richer than the other edit nodes. Klein's edit variant carries over the create node's tuning surface, which is rare for a cloud edit endpoint. You get cfg_scale (default 5.0), steps (default 20), a full sample_method list (euler, dpm++2m, heun, lcm, tcd…), a schedule dropdown (simple, discrete, karras…), and a real negative_prompt - the field most of the cloud nodes simply don't have. Then the two headliners: model_version (4b vs 9b, plus the base variants) and loras, a CIVITAI_LORAS socket.
The LoRA gotcha, again. You can't type a LoRA name here. Wire a Civitai LoRA Selector's loras output into the loras socket, one node holding as many LoRAs as you want with per-LoRA strength and enable toggles. The selector's keywords field is auto-filled as a reminder only - the LoRA applies by its AIR reference and strength, so if you want its trained concept to show up in the edit, paste those trigger words into this node's prompt. A common beginner trap is wiring the selector, seeing "connected", and wondering why nothing changed.
Inputs that matter. prompt (required) should describe the edit precisely, and for a tight edit consider raising cfg_scale above the 5.0 default so the model stays anchored to your source. width/height (512-2048), seed, and quantity (1-4) are standard. enable_prompt_expansion (off by default) has Civitai rewrite your prompt before generating - usually fine, occasionally rewrites an edit instruction you wanted literal.
Install and auth. It ships with the pack - ComfyUI Manager → search Civitai Comfy Nodes → Install, or git clone https://github.com/civitai/civitai-comfy-nodes.git into custom_nodes and pip install -r requirements.txt. Credentials resolve from a Civitai Auth node, CIVITAI_API_TOKEN, or stored sidebar login. Keep the error codes in your head: 402 insufficient Buzz, 401 bad token, 429 rate limit, and jobs are capped at a 30-minute timeout.
The honest take. Cloud Klein edits are the slow way to do something a 13GB local card can handle - the launch reports of slow generations weren't wrong. But if your GPU can't run Klein at all, or you want a LoRA stack applied to an edit without managing model files, this is the most capable edit node Civitai publishes. Just budget for the round trip and don't forget the trigger words.
Inputs (17)
| Name | Type | Default | Description |
|---|---|---|---|
| prompt | STRING | — | |
| output_formatopt | COMBO | 4 options: , jpeg, png, webP | |
| image_metadataopt | STRING | External metadata that will be stored with the image | |
| widthopt | INT | 1024512–2048 | — |
| heightopt | INT | 1024512–2048 | — |
| seedopt | INT | 00–4294967295 | — |
| quantityopt | INT | 11–4 | — |
| enable_prompt_expansionopt | BOOLEAN | false | — |
| cfg_scaleopt | FLOAT | 5.001–20 | — |
| stepsopt | INT | 204–50 | — |
| sample_methodopt | COMBO | 16 options: , euler, heun, dpm2, dpm++2s_a, dpm++2m, +10 | |
| scheduleopt | COMBO | 12 options: , simple, discrete, karras, exponential, ays, +6 | |
| negative_promptopt | STRING | — | |
| lorasopt | CIVITAI_LORAS | — | |
| model_versionopt | COMBO | 4b | The Klein model variant: 4b, 4b-base, 9b, 9b-base, or 9b-kv (ComfyUI) |
| imagesopt | IMAGE | — | |
| 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 | — |