Nodes/civitai-comfy-nodes/flux2Klein / createVariant
ComfyUI Node

flux2Klein / createVariant

Restyle a picture with a 4B or 9B Flux 2

By civitai·Created 2 months ago·Updated about a month ago· 42
flux2Klein / createVariant
  • image
  • loras
  • api_config
  • images
  • errors
  • workflow_id
  • raw_json
prompt
output_format
image_metadata
width1024
height1024
seed0
quantity1
cfg_scale5.00
steps20
sample_method
schedule
negative_prompt
model_version4b
strength0.70

The img2img variant of the Flux 2 Klein cloud node. Feed it an image, a prompt, and a chosen Klein model version, and it re-renders the image on that checkpoint - running on Civitai's sdcpp fleet, billed in Buzz, no model download. Because Klein is a small model, this is also the cheap way to do Flux 2 variant work: you get the restyle without paying the 32B Dev price.

Where this node wins is iteration. Variant work is trial-and-error by nature - tweak strength, tweak prompt, look, repeat - and that's exactly the workflow where cloud pricing stings on a big model. Klein's 4B distilled at low steps turns that into something approaching affordable, which makes it the sensible default for "restyle this image" experiments unless you specifically need Dev's ceiling.

How it works

Standard pack plumbing: submit engine: sdcpp, ecosystem: flux2Klein, operation: createVariant with your image, prompt, strength, and modelVersion, long-poll, get the IMAGE out.

The inputs that matter

  • prompt (required) - the change you want. Natural language, specific.
  • image (required, IMAGE) - the source to re-render.
  • model_version - 4b / 4b-base / 9b / 9b-base, default 4b. For restyle work the distilled variants are the right call.
  • strength - the key dial. Klein holds a source well at low strength and restructures cleanly at high strength; start ~0.6 for a restyle and move up toward rewrites.
  • steps / cfg_scale - 20 / 5 defaults; drop steps to save Buzz on the distilled variants.
  • width / height - 512–2048, so you can output larger than your input.

Install

Pack install: ComfyUI Manager"Civitai Comfy Nodes" → Install → restart, or clone https://github.com/civitai/civitai-comfy-nodes.git into custom_nodes, pip install -r civitai-comfy-nodes/requirements.txt (just requests), restart.

Common issues

Credentials: Civitai Auth node into api_config or CIVITAI_API_TOKEN env var (from civitai.com/user/account).

Variant-specific gotchas: don't carry a 9b-base model_version over from a training workflow - base checkpoints are weaker generators. And don't apply a 4B LoRA to a 9B run; Klein LoRAs don't cross sizes, and the result degrades without erroring.

Cost-wise, this is the friendliest variant node in the Flux family, but "friendly" still means per-image billing. The quantity input tops out at 4 - keep it at 1 while you find your strength.

CategoryCivitai/Image/flux2Klein

Inputs (17)

NameTypeDefaultDescription
promptSTRING
imageIMAGEEither A URL, A DataURL or a Base64 string
output_formatoptCOMBO4 options: , jpeg, png, webP
image_metadataoptSTRINGExternal metadata that will be stored with the image
widthoptINT1024512–2048
heightoptINT1024512–2048
seedoptINT00–4294967295
quantityoptINT11–4
cfg_scaleoptFLOAT5.001–20
stepsoptINT204–50
sample_methodoptCOMBO16 options: , euler, heun, dpm2, dpm++2s_a, dpm++2m, +10
scheduleoptCOMBO12 options: , simple, discrete, karras, exponential, ays, +6
negative_promptoptSTRING
lorasoptCIVITAI_LORAS
model_versionoptCOMBO4b4 options: 4b, 4b-base, 9b, 9b-base
strengthoptFLOAT0.700–1
api_configoptCIVITAI_CONFIGOptional Civitai Auth connection; defaults to CIVITAI_API_TOKEN or stored OAuth login.

Outputs (4)

NameTypeDescription
imagesIMAGE
errorsSTRING
workflow_idSTRING
raw_jsonSTRING