ComfyUI Node

FLUX.2 [klein] 4B

The Apache-2.0 FLUX that runs on a lunch budget

By Runware·Created 2 years ago·Updated about a month ago· 140
FLUX.2 [klein] 4B
  • referenceImages
  • lora
  • acceleratorOptions
  • advancedFeatures.watermark.image
  • image
positivePrompt
width1024
height1024
negativePrompt
seed0
steps4
scheduler(default)
CFGScale3.50
numberResults1
acceleration(default)
advancedFeaturesfalse
advancedFeatures.watermark.bgColor
advancedFeatures.watermark.displayPosition(default)
advancedFeatures.watermark.fontColor
advancedFeatures.watermark.opacityfalse
advancedFeatures.watermark.opacity_value0.10
advancedFeatures.watermark.text
safetyfalse
safety.checkContentfalse
ttlfalse
ttl_value60
outputFormatJPG
outputQuality95

FLUX.2 is Black Forest Labs' flagship, and the community's verdict on the big one was complicated: stunning on paper, but it needed 18–24GB of VRAM even quantized, and its model card read like a censorship changelog. Then BFL shipped Klein - the size-distilled answer, with the 4B rung licensed Apache 2.0 and able to fit in consumer hardware. That's what this node runs (runware:400@4): the FLUX.2 experience at a fraction of the size and, via Runware's cloud, at a fraction of the cost of running the 32B locally.

If FLUX.2 was the proof that winning benchmarks isn't winning the community, Klein 4B is the peace offering that reopened the consumer front. It's the model you point a beginner at and the one you reach for when you want FLUX.2's strong prompt-following without the hardware commitment - or, in this node's case, without the hardware at all.

How it works

imageInference with the runware:400@4 AIR. Standard mechanics - prompt and referenceImages up as base64, image back as IMAGE. What's distinctive is the sampling defaults, which reflect a distilled model's needs: steps defaults to 4 (vs 30 for SDXL) and CFGScale defaults to 3.5. Distilled models jump in few, large steps - that's the whole technique - so don't bring 30-step muscle memory. There's also an acceleration dropdown (none/low/medium/high) that trades a bit of fidelity for speed, plus a referenceImages input for FLUX 2's editing and character-consistency tricks.

The inputs that matter

  • positivePrompt (required) - FLUX 2's prompt-following is its reputation; give it detail.
  • width / height - 1024×1024 defaults, 128–2048, step 16.
  • steps - 4 default. This is the distillation talking: more steps buys less than you think on a model trained to finish in a handful.
  • CFGScale - 3.5 default. FLUX-family models run low CFG; single digits are the whole range that matters.
  • referenceImages - the editing input. Wire in an image to instruct editing or enforce a subject across generations.
  • negativePrompt - present, but FLUX models historically ignore it the way SDXL respects it; don't lean on it.

Installing it

Install the pack, not the model. ComfyUI Manager → search Runware → install → restart. Manual:

cd ComfyUI/custom_nodes
git clone https://github.com/Runware/ComfyUI-Runware
pip install -r ComfyUI-Runware/requirements.txt

Key from runware.ai/api-keys → ComfyUI Settings → Runware API key (or RUNWARE_API_KEY). Klein 4B is hosted; nothing downloads.

Where people get burned

  • 4B is not the 32B. Klein 4B is the consumer rung - great value, still a distilled small model. If you need the flagship's ceiling, the pack's other FLUX nodes point higher and charge more.
  • Don't crank steps. The 4-step default is the model's design; adding steps mostly adds cost.
  • Safety filters are baked in. BFL's models are the most safety-filtered in the field and the community's "lobotomized" complaint about FLUX 2 is documented. The node inherits that behavior - it's not something you can toggle off.
  • Cost is per run but cheap per image. This is one of the least expensive cloud FLUX options, which is why it's the default suggestion for "try FLUX."

FLUX.2 [klein] 4B is the best "just works" image model in the pack. Low steps, low CFG, low price, strong prompt-following - a combination that's hard to beat for everyday generation.

CategoryRunware/Image/runware

Inputs (27)

NameTypeDefaultDescription
positivePromptSTRINGText prompt describing elements to include in the generated output.
widthINT1024128–2048Width of the generated media in pixels.
heightINT1024128–2048Height of the generated media in pixels.
referenceImagesoptIMAGE
loraoptRUNWARE_LORA
acceleratorOptionsoptRUNWARE_ACCELERATOROPTIONS
advancedFeatures.watermark.imageoptIMAGE
negativePromptoptSTRINGPrompt to guide what to exclude from generation. Ignored when guidance is disabled (CFGScale ≤ 1).
seedoptINT00–9223372036854776000Random seed for reproducible generation. When not provided, a random seed is generated in the unsigned 32-bit range.
stepsoptINT41–50Total number of denoising steps. Higher values generally produce more detailed results but take longer.
scheduleroptCOMBO(default)Scheduler to use for the diffusion process.
CFGScaleoptFLOAT3.501–20Guidance scale representing how closely the output will resemble the prompt. Higher values produce results more aligned with the prompt.
numberResultsoptINT11–20Number of results to generate. Each result uses a different seed, producing variations of the same parameters.
accelerationoptCOMBO(default)Optimization level.
advancedFeaturesoptBOOLEANfalseEnable to set advancedFeatures. Off uses the model's default.
advancedFeatures.watermark.bgColoroptSTRINGBackground color in hex format.
advancedFeatures.watermark.displayPositionoptCOMBO(default)Watermark position.
advancedFeatures.watermark.fontColoroptSTRINGText color in hex format.
advancedFeatures.watermark.opacityoptBOOLEANfalseEnable to set advancedFeatures.watermark.opacity. Off uses the model's default.
advancedFeatures.watermark.opacity_valueoptFLOAT0.100.1–1Watermark opacity.
advancedFeatures.watermark.textoptSTRINGWatermark text.
safetyoptBOOLEANfalseEnable to set safety. Off uses the model's default.
safety.checkContentoptBOOLEANfalseEnable or disable content safety checking.
ttloptBOOLEANfalseEnable to set ttl. Off uses the model's default.
ttl_valueoptINT60Time-to-live (TTL) in seconds for generated content. Only applies when `outputType` is `URL`.
outputFormatoptCOMBOJPGFile format for the generated image.
outputQualityoptINT9520–99Compression quality of the output. Higher values preserve quality but increase file size.

Outputs (1)

NameTypeDescription
imageIMAGE