Skip to content
,

FLUX.2 Klein in ComfyUI: 4B vs 9B, Files, Settings and Image Editing (2026)

8–12 minutes
Woman in a brick-walled loft holding a tablet with a FLUX.2 KLEIN card, hook 4B vs 9B full setup

FLUX.2 [klein] is the small, fast member of Black Forest Labs’ FLUX.2 family. One model does both text-to-image and image editing, including edits that combine several reference images. The distilled versions finish in just 4 steps, and the 4B model is Apache 2.0, so you can use it commercially.

The catch is that there are four Klein models (4B and 9B, each as Base and Distilled), two text encoders and two VAEs to choose from. Pick the wrong combination and you get errors or mush.

This guide sorts it out: which Klein to use, the exact files and folders, the official ComfyUI settings, how editing with reference images works and fixes for common problems. Everything is checked against ComfyUI’s official templates and BFL’s release notes.

TL;DR

  • Start with Klein 4B Distilled (flux-2-klein-4b-fp8.safetensors): 4 steps, CFG 1, Apache 2.0 licence, ~8.4 GB VRAM per ComfyUI’s docs.
  • 4B files: the model in models/diffusion_models, qwen_3_4b.safetensors in models/text_encoders, flux2-vae.safetensors in models/vae.
  • 9B needs qwen_3_8b_fp8mixed.safetensors (8.07 GB) and is under the FLUX Non-Commercial License. You must accept BFL’s agreement on Hugging Face to download it.
  • Settings: Distilled = 4 steps, CFG 1. Base = 20 steps, CFG 5. Sampler euler with the Flux2Scheduler node. Load CLIP with type flux2.
  • Editing: feed each reference image through VAE Encode → ReferenceLatent. Then describe the change (“Change the bag colour to blue”).

New to Flux? My how to use Flux guide explains the whole family, from Flux.1 to FLUX.2 and FLUX 3.

Which Klein Should You Use?

BFL released Klein on 15 January 2026. Its announcement describes one compact model that handles text-to-image, single-reference editing and multi-reference composition. There are two sizes, and each comes in two versions:

  • Distilled is step-distilled to 4 steps, for speed.
  • Base is undistilled. It is slower, but has more variety and is better for fine-tuning and LoRA training.
Model Steps / CFG VRAM (ComfyUI docs) Licence Text encoder
4B Distilled 4 / 1 ~8.4 GB, ~1.2 s on an RTX 5090 Apache 2.0 Qwen3 4B
4B Base 20 / 5 ~9.2 GB, ~17 s on an RTX 5090 Apache 2.0 Qwen3 4B
9B Distilled 4 / 1 More (bigger model + 8B encoder) FLUX Non-Commercial Qwen3 8B
9B Base 20 / 5 More FLUX Non-Commercial Qwen3 8B

The VRAM and timing figures are for the fp8 files on an RTX 5090, as given in ComfyUI’s Klein tutorial. BFL’s own blog says the 4B “fits in ~13GB VRAM” on cards like the RTX 3090 or 4070. That figure is for the full-precision model.

My recommendation:

  • 8-12 GB GPU, or you want commercial use: 4B Distilled.
  • 16 GB+ and personal or research use: try 9B Distilled for better detail and prompt following.
  • Training LoRAs or want more variety: the Base version of whichever size you use.

Klein vs FLUX.2 Dev: Dev is a much bigger model that needs far more memory. Klein trades a little quality for speed and fits on normal gaming GPUs. If you’re looking for the newer FLUX 3 small model instead, see my FLUX 3 Image Klein guide.

4B Files and Folders

File Where to get it Folder
flux-2-klein-4b-fp8.safetensors (Distilled) black-forest-labs/FLUX.2-klein-4b-fp8 models/diffusion_models/
flux-2-klein-base-4b-fp8.safetensors (Base) black-forest-labs/FLUX.2-klein-base-4b-fp8 models/diffusion_models/
qwen_3_4b.safetensors (7.49 GB) Comfy-Org/flux2-klein-4B models/text_encoders/
flux2-vae.safetensors (320.6 MB) Comfy-Org/flux2-dev models/vae/

You only need one of the two diffusion models. If you already use Z-Image-Turbo, you already have qwen_3_4b.safetensors: both models use the same Qwen3 4B encoder.

ComfyUI/models/diffusion_models/flux-2-klein-4b-fp8.safetensors
ComfyUI/models/text_encoders/qwen_3_4b.safetensors
ComfyUI/models/vae/flux2-vae.safetensors

Important: flux2-vae.safetensors is not the Flux.1 ae.safetensors. FLUX.2 uses a new VAE, and the old one gives broken colours or an error.

9B Files and Folders

The 9B diffusion models are gated. Open the BFL repo on Hugging Face, sign in and accept the licence agreement, and then download.

File Where to get it Folder
flux-2-klein-9b-fp8.safetensors (Distilled) black-forest-labs/FLUX.2-klein-9b-fp8 models/diffusion_models/
flux-2-klein-base-9b-fp8.safetensors (Base) black-forest-labs/FLUX.2-klein-base-9b-fp8 models/diffusion_models/
qwen_3_8b_fp8mixed.safetensors (8.07 GB) Comfy-Org/flux2-klein-9B models/text_encoders/
flux2-vae.safetensors or full_encoder_small_decoder.safetensors (238 MB) Comfy-Org/flux2-dev or black-forest-labs/FLUX.2-small-decoder models/vae/

The 9B Base editing template uses BFL’s small decoder VAE (full_encoder_small_decoder.safetensors). It keeps the full encoder but uses a lighter decoder, which saves memory and time at the decode step. The standard flux2-vae.safetensors works too.

The 9B models must use the 8B text encoder. The 4B encoder won’t work with them, and the 8B encoder won’t work with the 4B models.

Text-to-Image Workflow and Settings

Update ComfyUI, then open Workflow → Browse Templates and search for “FLUX.2 Klein”. The text-to-image template (image_flux2_klein_text_to_image.json) holds two subgraphs, one for Base and one for Distilled, so you can compare them side by side.

Klein uses ComfyUI’s “custom sampling” nodes rather than a single KSampler:

Node Distilled Base
Load Diffusion Model klein 4b / 9b klein base 4b / 9b
Load CLIP qwen_3_4b (4B) or qwen_3_8b_fp8mixed (9B), type flux2
Load VAE flux2-vae
Flux2Scheduler 4 steps, 1024, 1024 20 steps, 1024, 1024
CFGGuider CFG 1 (negative zeroed out) CFG 5 (negative prompt used)
KSamplerSelect euler
EmptyFlux2LatentImage 1024 x 1024
RandomNoise → SamplerCustomAdvanced → VAE Decode

Two details catch people out:

  • Flux2Scheduler takes the width and height. It uses the image size to work out the noise schedule. If you change the latent to 1344×768, change the scheduler’s width and height to match. The template links them through Width and Height primitives so that one edit updates both.
  • Use EmptyFlux2LatentImage, not the SD3 or Flux.1 empty latent. FLUX.2 has a different latent format.

Good sizes are around 1 megapixel: 1024×1024, 1152×896, 896×1152, 1344×768 or 768×1344. More steps rarely helps the Distilled model; 4 is what it was trained for. For the Base model, 20-28 steps and CFG 4-5 is the useful range. My CFG guide explains why distilled models want CFG 1.

Image Editing with Reference Images

This is what Klein is really good at. Give it one or more images plus an instruction, and it edits or combines them. BFL lists style changes, semantic edits, replacing or removing objects, multi-reference composition and repeated edits. VentureBeat’s launch coverage says up to four reference images are supported locally.

ComfyUI has four editing templates (4B and 9B, each Base and Distilled). They all work the same way:

  1. Load Image for each reference.
  2. ImageScaleToTotalPixels (1 megapixel) so big photos don’t blow up memory.
  3. VAE Encode turns each image into a latent.
  4. ReferenceLatent attaches that latent to the conditioning. Chain one ReferenceLatent per image: positive → ReferenceLatent (image 1) → ReferenceLatent (image 2) → guider.
  5. GetImageSize on the main image sets the output size, so the edit keeps the original framing.
  6. Same sampler settings as text-to-image: 4 steps / CFG 1 for Distilled, 20 / 5 for Base.

The template note says it plainly: “You can follow this pattern to add more reference images.”

Prompts from the official templates show the style that works:

  • Single image: “Change the bag color to blue.”
  • Two images: “Stylize the handbag in image 1 with the colours and logo from image 2.”
  • Camera change: “Change the camera angle to a first-person driver’s perspective… maintaining the same white minimalist interior style and lighting.”

Tips for clean edits:

  • Refer to images by number (“image 1”, “image 2”) in the order they’re chained.
  • Say what stays the same (“keep the face, pose and background unchanged”). This cuts down on unwanted drift.
  • One change at a time works better than five. Feed the output back in for the next edit.
  • For local fixes on part of an image, a masked workflow can still be more precise. See my ComfyUI inpainting guide.

The 9B KV Model for Faster Edits

There’s also a fifth file: flux-2-klein-9b-kv-fp8.safetensors (9.14 GB, from black-forest-labs/FLUX.2-klein-9b-kv-fp8). It’s a 9B Distilled variant built for KV caching of reference images.

In the official template (image_flux2_klein_9b_kv_image_edit.json), the model goes through a Flux KV Cache node before sampling. ComfyUI describes that node as one that “enables KV Cache optimization for reference images on Flux family models”.

The reference images are processed once and reused across steps instead of being recomputed. That helps most when you use several references. The other settings are the same as 9B Distilled: 4 steps, CFG 1, euler, qwen_3_8b_fp8mixed and flux2-vae.

Prompting and Quality Tips

  • Write natural sentences. Klein reads prompts with a Qwen3 language model, so describe the scene the way you’d brief a photographer.
  • Exact colours: BFL says Klein understands hex codes (“a sofa in #2E5BFF blue”) and structured, JSON-like prompts for complex scenes.
  • Text in images: put the words in quotes and keep them short.
  • Same seed, small changes. Lock the seed in RandomNoise while you refine the wording. See my seed guide.
  • Speed on RTX cards: BFL says FP8 versions are “up to 1.6x faster” with “up to 40% less VRAM”. NVFP4 versions are “up to 2.7x faster” with “up to 55% less VRAM” on RTX 50-series. The fp8 files above are already the fast option for most people.
  • LoRAs: use LoRAs trained for FLUX.2 Klein of the same size (4B or 9B). Flux.1 LoRAs don’t work. Load them with LoraLoaderModelOnly after the diffusion model.

Common Errors and Fixes

Symptom Likely cause Fix
Shape mismatch / mat1 and mat2 error Wrong text encoder for the model size, or CLIP type not flux2 4B → qwen_3_4b, 9B → qwen_3_8b_fp8mixed, type flux2
Strange colours or a VAE error Flux.1 ae.safetensors used Use flux2-vae.safetensors
Blurry or noisy result Base model run at 4 steps / CFG 1 Base: 20 steps, CFG 5. Distilled: 4 steps, CFG 1
Burnt, harsh images Distilled model with CFG above 1 CFG 1
Odd composition at non-square sizes Flux2Scheduler width/height not matching the latent Set both to the same size
403 / access denied downloading 9B Gated repo Accept BFL’s licence on the Hugging Face model page while signed in
Edit ignores the reference image ReferenceLatent not connected to the guider’s positive input Chain positive → ReferenceLatent → CFGGuider
Out of memory with several references Large input images Keep ImageScaleToTotalPixels at 1 MP; see out of memory fixes

If errors mention a “shape” or “mat1 and mat2”, my mat1 and mat2 shapes fix explains how to trace the mismatched file.

FAQ

Is FLUX.2 Klein free for commercial use?

The 4B models (Distilled and Base) are Apache 2.0, so yes. The 9B models are under the FLUX Non-Commercial License, which does not allow commercial use without a separate licence from BFL.

How much VRAM does FLUX.2 Klein need?

ComfyUI’s docs list about 8.4 GB for 4B Distilled and 9.2 GB for 4B Base with the fp8 files. 9B needs more because of the larger model and the 8B text encoder; 16 GB is a comfortable target.

What’s the difference between Klein Base and Distilled?

Distilled runs in 4 steps at CFG 1 for speed. Base is undistilled, needs about 20 steps at CFG 5, gives more variety and is the one to fine-tune.

Which text encoder does Klein use?

Qwen3 4B (qwen_3_4b.safetensors) for the 4B models and Qwen3 8B (qwen_3_8b_fp8mixed.safetensors) for the 9B models. Load either with CLIP type flux2.

Can FLUX.2 Klein edit images?

Yes. The same model does text-to-image, single-image edits and multi-reference edits. In ComfyUI, attach each image with VAE Encode and ReferenceLatent.

Can I use the Flux.1 VAE with Klein?

No. FLUX.2 models need flux2-vae.safetensors or BFL’s small-decoder VAE.

Klein or Z-Image-Turbo?

Both are fast and fit mid-range GPUs. Z-Image-Turbo is excellent for photoreal text-to-image. Klein’s strength is editing and combining reference images. Many people keep both, and they share the same 4B text encoder.

Sources

Free weekly email

Get new AI guides every week

One short weekly email with our newest local AI, ComfyUI and AI tool guides. No spam, no pop-ups, just the good stuff.

Free. Unsubscribe anytime in one click. We only use your email to send this newsletter. See our privacy policy.

Woman in a brick-walled loft holding a tablet with a FLUX.2 KLEIN card, hook 4B vs 9B full setup