Earngenix Logo
Skip to main content

ComfyUI Workflow · Beginner Friendly · 2026

Flux.2 Klein in ComfyUI: Prompting Guide, Workflows & Image Editing (2026)

The complete Flux.2 Klein guide for ComfyUI — prompting best practices for 4B and 9B, 5 tested prompt examples with copy buttons, free workflow downloads, and step-by-step image editing setup.

By Earngenix Team12 min read
Flux.2 Klein running in ComfyUI — text-to-image and image editing outputs

⚡ Quick Answer

Flux.2 Klein is an image generation and editing model from Black Forest Labs that runs inside ComfyUI. It comes in two sizes: a 9B Base model for highest quality and a 4B Distilled model that generates in 4 steps.

For best results with the 9B model, write detailed natural language prompts of 100–400 words, set steps to 20–30 and CFG to 1.0. The 4B model works with the same prompts but runs at 4 steps.

This guide covers prompting best practices, all recommended settings, free workflow downloads, and full setup instructions. Minimum 8 GB VRAM required (16 GB recommended for the 9B model).

📋 Before You Start

Hardware

Minimum VRAM: 8 GB (4B model)

Recommended VRAM: 16 GB+ (9B model)

Software

ComfyUI: v0.3.x or later

ComfyUI Manager: required for node updates

Model Files Required

Diffusion models:

flux-2-klein-9b-fp8.safetensors

flux-2-klein-base-4b-fp8.safetensors

Text encoders + VAE:

qwen_3_8b_fp8mixed.safetensors

qwen_3_4b.safetensors

flux2-vae.safetensors

Download links for all files are in the Step 2: Download Models section below.

Introduction

Flux.2 Klein is one of the fastest image generation models you can run in ComfyUI right now. This guide covers how to prompt it effectively, which model size to pick for your use case, and how to use it for both text-to-image generation and image editing.

It's popular with artists, content creators, and workflow builders because it handles complex, detailed prompts without needing extensive parameter tweaking. The Qwen text encoder it uses understands natural language well — including multilingual input — so you can write prompts the way you'd describe a scene to a person, not as a list of tags.

What is Flux.2 Klein?

Flux.2 Klein is part of the Flux family of image models from Black Forest Labs. It supports both text-to-image generation and image editing via text prompts. There are two main versions:

ModelParametersSpeedBest for
9B Base (Undistilled)9 billionStandardBest quality, complex prompts, advanced workflows, image editing
4B Distilled (4-step)4 billionVery fastQuick previews, real-time apps, rapid iteration

Both versions share the same workflow structure and the same VAE file. The 9B Base model gives the best quality for detailed generations and complex edits. The 4B Distilled model is significantly faster — it generates in just 4 steps, making it ideal when speed matters more than maximum quality.

💡 Tip: Start with the 4B Distilled model to test your prompt quickly, then switch to the 9B Base model for your final high-quality renders. The same prompt works with both — no changes needed.

Flux.2 Klein Prompting: Key Rules for 4B and 9B

Flux.2 Klein uses a Qwen text encoder — a language model that reads your prompt as natural language, not as a list of tags. This changes how you need to write prompts compared to older Stable Diffusion models.

Write sentences, not tag lists

Describe your subject, setting, lighting, and style in full sentences. The Qwen encoder understands sentence structure and context — comma-separated keywords from SD1.5-era workflows produce flat, generic results here.

❌ Keyword list (less effective)

beautiful woman, portrait, studio lighting, bokeh, photorealistic, 85mm lens, sharp focus, professional

✅ Natural language (more effective)

A hyper-realistic portrait of a young woman photographed in a professional studio with a single softbox positioned above and to the left. Shot on an 85mm lens at f/1.4, background completely blurred. Sharp focus on her face, subtle rim light from behind.

Example of natural language prompting in Flux.2 Klein — a chai wallah pouring masala tea in North Kolkata, generated with a detailed descriptive prompt
Natural language prompts produce detailed, atmospheric results — this image was generated with a full scene description including subject, setting, lighting direction, and camera details

Cover these four things in every prompt

  • Subject — who or what, with specific detail (age, appearance, clothing, expression)
  • Setting — where and when, with environmental context
  • Lighting — name the light source, direction, and quality ("a single bare tungsten bulb casting hard shadows downward")
  • Style — photography type, artistic reference, or visual language. Put this in the first half of your prompt so it gets full weight.

Recommended settings

The most common mistake is using the wrong step count with the 4B Distilled model. Keep 4B at exactly 4 steps — using more steps actively reduces quality because the model was specifically trained for 4-step generation.

Setting9B Base Model4B Distilled Model
Steps20–304
CFG Scale1.01.0
Samplereulereuler
Schedulersimplesimple
ResolutionUp to 1920×10801024×1024 recommended
Prompt length100–400 wordsUnder 150 words
Negative promptOptionalOptional
⚠️ Note: Using 20+ steps with the 4B Distilled model produces worse results. The 4B model is trained for 4-step generation — more steps work against how it was built. Keep the 4B at exactly 4 steps.

📖 Full Prompting Guide

Want to master FLUX.2 prompting in depth?

The dedicated guide covers the 4-part formula, HEX color control, in-image text, JSON structured prompting, and more — with real examples.

Read Full Guide →

Flux.2 Klein Prompt Examples: Text-to-Image (9B Base Model)

The following examples use the 9B Base model (flux-2-klein-9b-fp8.safetensors). Each prompt is ready to copy and use directly in your workflow. All generated at steps: 25, CFG: 1.0.

Example 1 — Cinematic portrait in a vintage bowling alley

Flux.2 Klein 9B output — cinematic portrait of a Japanese woman in a vintage bowling alley with split-dyed hair
9B Base model — cinematic portrait, complex lighting and character details

Prompt used

A captivating young Japanese woman with delicate, distinctly East Asian facial features — soft oval face, smooth porcelain skin, large expressive dark brown eye…

Example 2 — Luxury skincare product advertisement

Flux.2 Klein 9B output — luxury skincare product poster with chrome bottle and pearl background
9B Base model — product ad with chrome, pearls, and editorial atmosphere

Prompt used

A beautiful product advertisement poster for the brand of RYXM skin care products, all-metal bottle, in the middle is a chrome-plated metal arc-all-metal bottle…

Example 3 — Cyberpunk night scene with neon signs

Flux.2 Klein 9B output — cinematic cyberpunk scene, abandoned car on wet asphalt road with red neon sign
9B Base model — high-fidelity cinematic scene with complex lighting and environmental detail

Prompt used

Ultra-detailed, cinematic photograph of a dark, abandoned car lying on its side on a wet, asphalt road, with its front wheel facing towards the right side of A …

Example 4 — Retro arcade purikura selfie

Flux.2 Klein 9B output — artistic Japanese woman taking selfie in a vibrant retro arcade purikura booth
9B Base model — photorealistic cyberpunk style with dynamic neon lighting

Prompt used

A young artistic Japanese woman with tousled bangs, smudged eyeliner, and a focused expression of creative absorption, dressed in a patchwork denim jacket over …

Example 5 — Hyper-realistic studio portrait

Flux.2 Klein 9B output — hyper-realistic low-angle close-up portrait of a fair-skinned blonde woman with soft studio lighting
9B Base model — razor-sharp studio portrait with fine texture detail

Prompt used

A hyper-realistic close-up portrait of a Swedish beauty, a fair-skinned young woman with golden-blonde hair cascading in soft, sun-kissed waves, captured from a…

Want to learn how to build prompts like these? Read the full FLUX.2 prompting guide for the complete breakdown — 4-part formula, HEX color control, JSON structured prompting, and more.

Fast Generation: 4B Distilled Model

The same prompts work with the 4B Distilled model (flux-2-klein-base-4b-fp8.safetensors). Quality may be slightly lower, but generation is significantly faster — making it ideal for iteration and real-time workflows.

⚠️ Note: The images below use the same 5 prompts as the 9B section above — compare them side by side to see the quality difference and decide which model fits your use case.
4B Distilled model output for prompt 1 — cinematic portrait comparison
4B Distilled — Prompt 1
4B Distilled model output for prompt 2 — luxury product ad comparison
4B Distilled — Prompt 2
4B Distilled model output for prompt 3 — cyberpunk night scene comparison
4B Distilled — Prompt 3
4B Distilled model output for prompt 4 — arcade selfie comparison
4B Distilled — Prompt 4
4B Distilled model output for prompt 5 — studio portrait comparison
4B Distilled — Prompt 5

Image Editing Examples

Flux.2 Klein also supports image editing. You can modify existing images using simple text prompts — change backgrounds, swap objects, adjust colors, apply styles, and more. Single or multiple reference images are both supported.

💡 Tip: For complex edits, always use the 9B Base model. It handles multi-reference inputs and nuanced instruction-following significantly better than the 4B version. Write your edit instruction at the start of the prompt, then describe the full intended result.

Editing Examples

Flux.2 Klein image editing example 1 — logo applied to a reference image using the edit workflow
Image editing example 1 — applying a logo element to a reference image
Flux.2 Klein image editing example 2 — character editing with reference image, altered pose and expression
Image editing example 2 — character reference editing
Flux.2 Klein image editing example 3 — expression change on portrait, smile added via edit prompt
Image editing example 3 — expression and detail editing

You can use one or more reference images for controlled, consistent edits. The multi-reference workflow is particularly useful for character consistency tasks. Learn how to build character consistency workflows in our character consistency guide.

How to Set Up Flux.2 Klein in ComfyUI: Step-by-Step

Setting up Flux.2 Klein requires two steps: updating ComfyUI and its nodes, then downloading and placing the model files in the correct folders. If you haven't installed ComfyUI yet, follow the ComfyUI installation guide first.

Step 1 — Update ComfyUI

Flux.2 Klein requires a recent version of ComfyUI. Running an outdated version causes node errors even when all model files are correctly placed. Update before installing the models.

Update ComfyUI core

Open your ComfyUI installation folder. Open the update subfolder and run the update_comfyui file by double-clicking it. A terminal window opens and runs the update. You should see a 'Done' message when it completes — the terminal window then closes automatically.

ComfyUI update folder showing the update_comfyui script file
Run update_comfyui from the update folder inside your ComfyUI directory

Update all nodes via ComfyUI Manager

Start the ComfyUI server, open the Manager panel by clicking Manager in the top menu, and click "Update All". A list of nodes appears with progress indicators. Wait until all items show a green checkmark — this usually takes 1–3 minutes depending on how many nodes you have installed. Restart ComfyUI completely when it finishes.

ComfyUI Manager interface showing the Update All button to update all custom nodes
Click "Update All" in ComfyUI Manager — wait for all green checkmarks before restarting

Step 2 — Download and Place Model Files

Download the required model files and place them in the correct ComfyUI folders. Each file type has its own specific subfolder — putting files in the wrong folder is the most common setup error and causes the workflow to fail on the first run.

Diffusion Models → ComfyUI/models/diffusion_models/

Text Encoders → ComfyUI/models/text_encoders/

VAE → ComfyUI/models/vae/

  • flux2-vae.safetensors — shared between both workflows. The VAE (Variational Autoencoder) converts the model's internal latent image into the final pixel image you see.

Required Folder Structure

📂 ComfyUI/ └── 📂 models/ ├── 📂 diffusion_models/ │ ├── flux-2-klein-9b-fp8.safetensors │ └── flux-2-klein-base-4b-fp8.safetensors ├── 📂 text_encoders/ │ ├── qwen_3_8b_fp8mixed.safetensors │ └── qwen_3_4b.safetensors └── 📂 vae/ └── flux2-vae.safetensors

Using the Workflows

Text-to-Image Workflow

Download Text-to-Image Workflow
  • Download the workflow JSON file using the button above.
  • Open ComfyUI in your browser. Drag the JSON file onto the canvas, or click the Load button in the top menu and select the file.
  • The workflow loads and you see a node graph. If any nodes show red outlines, see the Troubleshooting section below.
  • Click inside the text node and enter your prompt.
  • Click the orange Queue Prompt button in the top-right corner. A progress bar appears below it.
ComfyUI workflow graph showing Flux.2 Klein text-to-image workflow with nodes connected
Flux.2 Klein text-to-image workflow loaded in ComfyUI — the node graph shows all connections between model, text encoder, sampler, and VAE
💡 Tip: Speed tip: Enable the SageAttention node for faster generation. Open the workflow subgraph, find the SageAttend node, select it and press Ctrl+B to enable it. Don't have SageAttention? Follow this install guide.
ComfyUI subgraph showing the SageAttend node location for enabling faster attention
Find the SageAttend node in the subgraph and press Ctrl+B to enable it — the node border turns green when active

Image Editing Workflow

Download Image Editing Workflow
  • Load the image editing workflow into ComfyUI using the same drag-and-drop method.
  • Find the image input node (labelled Load Image) and click the Upload button to select the image you want to edit. The image thumbnail appears inside the node.
  • Enter your edit instruction as a text prompt. Start with the change you want, then describe the full intended result.
  • Click Queue Prompt. You should see a progress bar and a preview of the edited image when generation completes.
ComfyUI Flux.2 Klein image editing workflow showing image input node and prompt connection
Image editing workflow — connect your source image to the Load Image node and enter an edit prompt
⚠️ Note: Image upscaling is disabled by default in the edit workflow. To enable it, open the subgraph, find the Image Scale to Total Pixels node, and press Ctrl+B. Adjust the megapixel setting to control output resolution.
ComfyUI subgraph showing the Image Scale to Total Pixels node for enabling upscaling in Flux.2 Klein
Enable the Image Scale to Total Pixels node (Ctrl+B) for higher resolution output

Multi-Reference Editing Workflow

Download Multi-Reference Workflow
  • Load the multi-reference workflow into ComfyUI.
  • Upload your main image and one or more reference images using the Load Image nodes. Each node has an Upload button.
  • Enter your editing prompt.
  • Click Queue Prompt to run the workflow.
  • Use the built-in image compare node to review the before/after difference — drag the slider to compare input and output.
ComfyUI multi-reference Flux.2 Klein workflow showing multiple image input nodes and an image compare node
Multi-reference editing workflow — upload multiple reference images and use the compare node to check results

Flux.2 Klein ComfyUI Troubleshooting: Common Errors and Fixes

If something isn't working as expected, check these issues first. The most common problems come from incorrect file placement, mismatched model/encoder pairs, and outdated nodes.

Missing model errors on startup

Fix: Double-check the folder structure above. Filenames must match exactly — including capitalisation. Diffusion models, text encoders, and VAE each go in separate subfolders. Do not place the text encoder in models/clip/ — it must be in models/text_encoders/.

Text encoder not loading or "model not found" for the encoder

Fix: Check that the encoder filename matches the workflow exactly. The 9B workflow requires qwen_3_8b_fp8mixed.safetensors — not the 4B version (qwen_3_4b.safetensors). Swapping them causes the workflow to fail silently or produce garbled output. Check the filename character by character.

Generation is slow

Fix: Try the 4B Distilled model first, or lower the output resolution. Enabling SageAttention (Ctrl+B on the SageAttend node) also provides a measurable speed improvement on supported GPUs. Make sure you are not running 20+ steps on the 4B Distilled model.

Images are blurry or low detail even with good prompts

Fix: Check that the text encoder matches the model — mixing the 4B encoder with the 9B model (or vice versa) causes quality degradation. Also verify your step count: 4B Distilled needs exactly 4 steps; using 20+ steps with 4B produces worse results, not better. If using 9B, confirm you have at least 16 GB VRAM available.

Edits are not following the prompt accurately

Fix: Rephrase your edit prompt to start with a direct command ("Change the background to...", "Replace the jacket with..."), then describe the full intended result. The 9B Base model handles complex editing instructions better than the 4B. Try reducing resolution if the model is running out of VRAM mid-generation.

ComfyUI nodes not showing up or red node errors in workflow

Fix: Make sure all nodes are updated via ComfyUI Manager (click Update All). If a node is still missing after updating, search for it by name in the Manager and install it manually. Clear your browser cache and restart ComfyUI completely after installing new nodes.

Frequently Asked Questions

Flux.2 Klein is a fast, flexible image generation and editing model from Black Forest Labs. It comes in two variants: a 9B Base model for best quality and a 4B Distilled model for fast generation in 4 steps. Both support text-to-image and image editing in ComfyUI.

Flux.2 Klein 9B responds best to detailed natural language prompts of 100–400 words — write full sentences describing your subject, setting, lighting, and style rather than comma-separated keyword tags. Set steps to 20–30 and CFG to 1.0. Negative prompts are optional. The Qwen text encoder also understands multilingual input including Chinese. See the full prompting guide at /tutorials/flux2-prompting-guide-comfyui for advanced techniques.

The 9B Base model produces higher quality images and handles complex prompts and detailed edits better. The 4B Distilled model generates images much faster (in exactly 4 steps), making it ideal for quick previews and rapid iteration. Both use the same workflow structure — you only need to swap the model and text encoder files.

Yes. Flux.2 Klein includes dedicated image editing workflows for single and multi-reference edits. You can change backgrounds, apply styles, adjust expressions, add or remove elements, and more — all using text prompts. Write your edit instruction at the start of the prompt, then describe the full intended result.

Diffusion models go in ComfyUI/models/diffusion_models/, text encoder files go in ComfyUI/models/text_encoders/, and the VAE file goes in ComfyUI/models/vae/. Filenames must match exactly. Do not place the text encoder in models/clip/ — it will not be detected.

Enable the SageAttention node inside the workflow subgraph by selecting the SageAttend node and pressing Ctrl+B. You can also switch to the 4B Distilled model, reduce output resolution, or lower the step count. For the 4B model specifically, keep steps at exactly 4 — using more steps does not improve quality and actually reduces it.

What to Do Next

Download the text-to-image workflow above and drag it into ComfyUI. Run it with the default settings first — use one of the 5 prompts from this guide to confirm everything is working. Once you have a successful generation, try swapping to the 4B Distilled model to compare speed vs quality on your hardware.

To go deeper on prompting — including the full 4-part formula, HEX color control, in-image text rendering, and JSON structured prompting — read the FLUX.2 prompting guide.

Discussion

Join the discussion

Sign in to leave a comment or reply

💬

No comments yet

Be the first to share your thoughts!