Earngenix Logo
Skip to main content

ComfyUI Tutorial · Beginner Friendly · 2026

Install Flux in ComfyUI: Schnell, Dev & Flux 2

Install Flux.1 Schnell, Flux.1 Dev, and Flux.2 (Klein & Dev) locally in ComfyUI — with exact model files, VRAM requirements for fp8, GGUF, and NF4, and free downloadable workflows.

By Earngenix TeamTested on RTX 4090 (24GB)13 min read
Flux AI installation guide for ComfyUI — hero image showing Flux-generated artwork

How to Install Flux AI Locally in ComfyUI

Quick answer: Pick your Flux variant (Schnell, Dev, Flux.2 Klein, or Flux.2 Dev), download its diffusion model, text encoder(s), and VAE, place each in the matching ComfyUI model subfolder, then load the matching workflow JSON and set CFG to 1.0. Full steps for every variant — plus a VRAM/quantization guide for fp8, GGUF, and NF4 — are below.

Flux, developed by Black Forest Labs, is one of the most capable open-weight text-to-image model families available. This guide covers the full lineup as of mid-2026: the original Flux.1 Schnell and Dev, and the newer Flux.2 generation (Klein and Dev), along with which VRAM tier and quantization format fits your GPU.

Before you start, you'll need:

  • ComfyUI installed and updated to the latest version — see our ComfyUI install guide if you haven't yet.
  • ComfyUI Manager installed — makes downloading missing nodes and updating far easier.
  • An NVIDIA GPU with at least 8 GB VRAM (see the VRAM guide below for exactly which variant fits your card).
  • Roughly 15–65 GB of free disk space per model, depending on which variant and precision you choose.

Why Flux Replaced SDXL as the Go-To Model

SDXL was the default choice for local image generation through 2024. Flux overtook it because it follows prompts far more literally — including counting, spatial relationships ("to the left of"), and multi-subject scenes — and because it renders readable text inside images, something SDXL consistently failed at.

SDXL still wins on one thing: the LoRA and fine-tune ecosystem built up over years is larger and more mature. If your workflow depends on a specific character or style LoRA that only exists for SDXL, that's a real reason to stay. For everything else — photorealism, prompt accuracy, and text — Flux is the stronger default in 2026, and Flux 2 widens that gap further with better world-physics reasoning and multi-reference support.

Flux Model Variants Explained

Flux comes in two generations. Flux.1 (Schnell, Dev, Pro) is the original lineup. Flux.2 (Klein, Dev) is the newer generation with better detail, multi-reference support, and — with Klein — a genuinely fast, commercial-friendly small model. Here's how all of them compare:

ModelLicenseVRAM (best case)SpeedQualityPrice
Flux.1 SchnellApache 2.016 GB⚡ Very Fast★★★☆Free
Flux.1 DevNon-commercial24 GB (12 GB GGUF Q8)🐢 Moderate★★★★Free
Flux.2 Klein 4BApache 2.012 GB⚡ Very Fast★★★★Free
Flux.2 Klein 9BApache 2.016 GB⚡ Fast★★★★☆Free
Flux.2 DevNon-commercial32 GB (19 GB GGUF Q4)🐢 Slow★★★★★Free
Flux.1 ProAPI OnlyCloud⚡ Fast★★★★$0.05/img
Flux1.1 ProAPI OnlyCloud⚡ Fast★★★★★$0.04/img

Free Models (Local Install)

  • Flux.1 Schnell: Fast, Apache 2.0 licensed — free for personal and commercial use. Needs ~16 GB VRAM.
  • Flux.1 Dev: Higher quality, non-commercial license. Needs ~24 GB VRAM (or ~12 GB as a GGUF Q8).
  • Flux.2 Klein 4B: Apache 2.0, distilled for speed. Runs on 12 GB cards, sub-second generation.
  • Flux.2 Klein 9B: Apache 2.0, sharper detail than 4B. Fits 16 GB cards at fp8.
  • Flux.2 Dev: The largest, highest-quality Flux model (32B params), non-commercial. Needs ~32 GB at fp8 or ~19 GB as a GGUF Q4 on a 24 GB card.
  • Flux.1 Pro: High-speed, high-quality via API — $0.05 per image.
  • Flux1.1 Pro: Best overall API performance — $0.04 per image.
💡 Tip: If you're not sure where to start: Flux.2 Klein 4B is the best first install for most people in 2026 — it's free for commercial use, fast, and fits a 12 GB card. Reach for Flux.1 Dev or Flux.2 Dev only when you specifically need the extra detail and have the VRAM to spare.

VRAM & Quantization Guide: Full, fp8, GGUF, and NF4

Every Flux model above is listed at its "best case" VRAM — meaning a quantized version. Quantization shrinks the model file so it fits smaller GPUs, at a small, usually hard-to-notice quality cost. Here's what each format actually means:

FormatTypical VRAMQuality vs. fullNode neededBest for
BF16 / FP16 (full)24–64 GBBaseline (100%)Load Diffusion ModelCards with 24 GB+ and no compromise on quality
FP8 (e4m3fn)12–32 GBVery close to fullLoad Diffusion Model (set weight_dtype)16 GB+ cards — the default choice for most people
GGUF (Q8)~50% of fullNear-identical to FP8Unet Loader (GGUF)12 GB cards, or anyone who wants fine control over size
GGUF (Q4–Q5)~25–35% of fullSlightly softer on complex promptsUnet Loader (GGUF)6–8 GB cards — the only realistic path at this tier
NF4~25% of fullComparable to GGUF Q4Community NF4 loader nodeForge/A1111 users; less standardized in ComfyUI than GGUF

fp8 — the default for 16 GB+ cards

fp8 halves the file size of the full BF16/FP16 model with minimal quality loss. It uses the same Load Diffusion Model node as the full-precision model — just set weight_dtype to fp8_e4m3fn inside the node. This is the simplest option if your card has enough VRAM, and it's what most of the download links in this guide point to by default.

GGUF — the standard low-VRAM path

GGUF compresses the model further, with selectable compression levels from Q8 (near-fp8 quality) down to Q4 (smallest, for 6–8 GB cards). It requires the community ComfyUI-GGUF custom node, which adds a new Unet Loader (GGUF) node — this replaces Load Diffusion Model in your workflow. Install it from ComfyUI Manager by searching "GGUF," or via git clone https://github.com/city96/ComfyUI-GGUF custom_nodes/ComfyUI-GGUF. You'll also need the matching GGUF version of your text encoder — not the fp16 one.

NF4 — a less common alternative

NF4 (4-bit NormalFloat) is another 4-bit format, more associated with Forge and A1111 through the bitsandbytes library than with ComfyUI. Community NF4 loader nodes exist for ComfyUI, but they're less mature and less widely tested than GGUF. Unless you already have an NF4 workflow you're attached to, GGUF is the safer, better-supported choice for low-VRAM Flux in ComfyUI today.

⚠️ Warning: Set CFG to 1.0 for every Flux model — Schnell, Dev, Klein, and Flux.2 Dev alike. Flux uses embedded guidance, not classifier-free guidance like Stable Diffusion, so a CFG of 5–10 will oversaturate and distort your images instead of improving prompt-following. Leave the negative prompt field empty — Flux ignores it.

Installing Flux.1 Schnell on ComfyUI

Flux.1 Schnell is the fastest option for local image generation. It produces good quality results in fewer steps and is available under the Apache 2.0 license. You will need 16 GB of VRAM to run it effectively at full precision.

1Update ComfyUI

Make sure ComfyUI is updated to the latest version before proceeding. Open the Manager, click Update All, and reload the page once complete.

Manager → Update All → Reload Page
2Download the Flux.1 Schnell Model

Download the model from Hugging Face and place it in the correct folder:

Place the file in:

ComfyUI/models/diffusion_models/
💡 Tip: Older ComfyUI installs use models/unet/ instead of models/diffusion_models/ — both work, ComfyUI checks either folder. The loader node itself was also renamed: it used to be called UNETLoader, it's now labeled Load Diffusion Model in the node search.
3Download the Text Encoders

Download both required text encoders (CLIP-L and T5):

Place both files in:

ComfyUI/models/text_encoders/
4Download the VAE Model

Download the Flux VAE and place it in the VAE folder:

ComfyUI/models/vae/
5Load the Flux.1 Schnell Workflow

Download the workflow below, then drag and drop the JSON file into ComfyUI to load it. If you see red nodes, refresh the page first. If they persist, open the Manager, click Install Missing Custom Nodes, and restart ComfyUI.

Download Flux Schnell Workflow

Once everything is loaded, set CFG to 1.0 and click Queue Prompt to generate your first Flux image. Schnell is fast — expect results in just a few seconds.

Image Generated Using Flux.1 Schnell

Sample Prompt

A young artistic Japanese woman with tousled bangs, smudged eyeliner, and a focused expression of creative absorption, dressed in a patchwork denim jacket over a sheer mesh top, high-waisted cargo skirt, and rugged combat boots, snaps a playful mirror selfie inside a vibrant purikura booth, her cheeks puffed out dramatically while surrounded by floating cartoon sparkles, digital hearts, and kawaii stickers on the glowing screen. The booth opens to a bustling retro arcade hallway where rainbow neon lights flash in rapid sequence, reflecting vividly in the wide eyes of excited passersby and glossy storefront displays filled with anime merchandise. Photorealistic cyberpunk style, wide-angle shot from inside the booth using a 35mm prime lens, dynamic neon lighting with high contrast and colorful glows casting dramatic shadows, ultra-detailed textures on fabrics, skin, and digital effects, sharp focus on the woman's face and screen with soft bokeh in the arcade background.

Image generated with Flux.1 Schnell in ComfyUI — close-up portrait of a woman with green eyes and Flux face tattoo
Output from Flux.1 Schnell in ComfyUI using the sample prompt above.

Installing Flux.1 Dev on ComfyUI

Flux.1 Dev produces higher-quality images than Schnell and follows prompts more precisely. It is licensed for non-commercial use and needs 24 GB of VRAM at full precision — or around 12 GB using a GGUF Q8 quant (see the low-VRAM section below).

1Download the Flux.1 Dev Model

Visit the Flux.1 Dev page on Hugging Face and accept the license conditions before downloading. Then place the model file in:

ComfyUI/models/diffusion_models/
2Download the Text Encoders

Dev uses the same clip_l encoder, but a different (larger) T5 encoder — fp16 instead of fp8:

ComfyUI/models/text_encoders/
💡 Tip: If you already downloaded clip_l.safetensors for Schnell, you do not need to download it again — it is the same file.
3Download the VAE Model

Download the Dev VAE from Hugging Face:

ComfyUI/models/vae/
4Load the Flux.1 Dev Workflow

Download the Dev workflow and drag it into ComfyUI. If you see red nodes, try refreshing first. If they persist, open the Manager, click Install Missing Custom Nodes, install any missing nodes, then restart ComfyUI.

Download Flux Dev Workflow

Once loaded, set CFG to 1.0 and click Queue Prompt. Dev takes longer than Schnell but produces noticeably sharper and more detailed output.

Image Generated Using Flux.1 Dev

Sample Prompt

A young artistic Japanese woman with tousled bangs, smudged eyeliner, and a focused expression of creative absorption, dressed in a patchwork denim jacket over a sheer mesh top, high-waisted cargo skirt, and rugged combat boots, snaps a playful mirror selfie inside a vibrant purikura booth, her cheeks puffed out dramatically while surrounded by floating cartoon sparkles, digital hearts, and kawaii stickers on the glowing screen. The booth opens to a bustling retro arcade hallway where rainbow neon lights flash in rapid sequence, reflecting vividly in the wide eyes of excited passersby and glossy storefront displays filled with anime merchandise. Photorealistic cyberpunk style, wide-angle shot from inside the booth using a 35mm prime lens, dynamic neon lighting with high contrast and colorful glows casting dramatic shadows, ultra-detailed textures on fabrics, skin, and digital effects, sharp focus on the woman's face and screen with soft bokeh in the arcade background.

Image generated with Flux.1 Dev in ComfyUI — high-quality close-up portrait of a woman with green eyes and Flux face tattoo showing superior detail
Output from Flux.1 Dev in ComfyUI — notice the sharper detail and more accurate prompt following compared to Schnell.
⚠️ Warning: Flux.1 Dev is licensed for non-commercial use only. Do not use Dev model outputs in commercial projects. For commercial work, use Flux.1 Schnell, Flux.2 Klein (both Apache 2.0), or the paid API models.

Installing Flux.2 Klein on ComfyUI (New for 2026)

Flux.2 Klein is the newest addition to the lineup — a distilled model built for speed, released in two sizes: 4B (for 12 GB cards) and 9B (for 16 GB cards). It's Apache 2.0 licensed, so unlike Flux.1 Dev, you can use the output commercially. If you want the best free Flux experience on a mid-range GPU in 2026, this is it.

Flux.2 Klein uses a different text encoder than Flux.1 (Qwen instead of CLIP/T5), and its own VAE. Don't mix Flux.1 and Flux.2 files — they are not interchangeable.
1Choose your Klein size and download the diffusion model

Pick 4B for 12 GB cards or 9B for 16 GB cards. Both are hosted on Hugging Face under Comfy-Org.

ComfyUI/models/diffusion_models/
2Download the matching text encoder

Each Klein size uses its own text encoder — don't mix them up.

ComfyUI/models/text_encoders/
3Download the Flux.2 VAE

Both Klein sizes share the same VAE — the one used across the whole Flux.2 family.

ComfyUI/models/vae/
4Load the workflow and generate

Flux.2 Klein ships as a built-in workflow template — in ComfyUI, go to Workflow → Browse Templates → Flux and pick the Klein 4B or 9B template. If you don't see it, your ComfyUI build is out of date; run Manager → Update All and restart. Set CFG to 1.0, use 20–30 steps on the 9B model or exactly 4 steps on the 4B (more steps on 4B makes results worse, not better), write your prompt, and queue.

Image Generated Using Flux.2 Klein

Sample Prompt

A young artistic Japanese woman with tousled bangs, smudged eyeliner, and a focused expression of creative absorption, dressed in a patchwork denim jacket over a sheer mesh top, high-waisted cargo skirt, and rugged combat boots, snaps a playful mirror selfie inside a vibrant purikura booth, her cheeks puffed out dramatically while surrounded by floating cartoon sparkles, digital hearts, and kawaii stickers on the glowing screen. The booth opens to a bustling retro arcade hallway where rainbow neon lights flash in rapid sequence, reflecting vividly in the wide eyes of excited passersby and glossy storefront displays filled with anime merchandise. Photorealistic cyberpunk style, wide-angle shot from inside the booth using a 35mm prime lens, dynamic neon lighting with high contrast and colorful glows casting dramatic shadows, ultra-detailed textures on fabrics, skin, and digital effects, sharp focus on the woman's face and screen with soft bokeh in the arcade background.

Image generated with Flux.2 Klein in ComfyUI — close-up portrait of a woman with green eyes and Flux face tattoo, sharper detail than Flux.1
Output from Flux.2 Klein 9B in ComfyUI using the sample prompt above.
This is just the install. For prompting technique (natural-language structure, the 4-part subject/setting/lighting/style formula), 5 tested prompt examples, image editing workflows (single and multi-reference), and a full troubleshooting section specific to Klein, see the dedicated Flux.2 Klein ComfyUI guide.
💡 Tip: Want multi-reference generation with up to 10 input images for brand-consistent product shots or character consistency across scenes using Flux.2 Dev instead? See the Flux.2 ComfyUI Workflow guide.

Running Flux on Low VRAM (6–8 GB) with GGUF

If your card doesn't meet the VRAM numbers above, GGUF is the way to run Flux.1 Dev or Flux.2 Klein anyway. This applies to any Flux variant — swap in the GGUF build of whichever model you chose above.

1Install the ComfyUI-GGUF custom node

Open Manager → Custom Nodes Manager → search "GGUF" → install → restart ComfyUI.

git clone https://github.com/city96/ComfyUI-GGUF custom_nodes/ComfyUI-GGUF
2Download a GGUF build of your chosen model

Search Hugging Face for "[model name] GGUF" — city96 and Unsloth publish the most widely used quants. Pick Q4_K_S for 6–8 GB cards, or Q5_K_S/Q8_0 if you have a little more headroom. Place the file in ComfyUI/models/diffusion_models/ alongside your other models.

3Download the GGUF text encoder — not the fp16 one

Use the quantized T5 or Qwen encoder that matches your model's GGUF set, not the full-precision version — mixing a full-size text encoder with a GGUF diffusion model defeats the point and can still run out of VRAM.

4Swap the loader node in your workflow

In your workflow, replace Load Diffusion Model with Unet Loader (GGUF) (right-click canvas → Add Node → search "GGUF"), point it at your downloaded file, then reconnect it the same way the original loader was wired.

5Launch with the low-VRAM flag and queue
python main.py --lowvram

Set CFG to 1.0 as usual and click Queue Prompt. Expect slower generation than fp8 — that's the VRAM/speed trade-off GGUF is making on your behalf.

Troubleshooting

Red nodes when you load the workflow

Red nodes mean missing custom nodes. Open Manager → Install Missing Custom Nodes → restart ComfyUI. If they're still red, make sure ComfyUI itself is updated first (Manager → Update All) — outdated cores are the most common cause.

"CUDA out of memory" during generation

Your VRAM tier is too small for the model you loaded. Switch to a GGUF build (see the low-VRAM section above), lower your output resolution, or launch ComfyUI with --lowvram. Also check nothing else is holding VRAM — close browsers with hardware acceleration and other GPU apps.

Blurry, washed-out, or heavily distorted output

Almost always a VAE mismatch, or CFG set too high. Confirm you're using the correct VAE for your model family (Flux.1 vs. Flux.2 use different VAEs) and that CFG is set to 1.0, not 5–7 like a Stable Diffusion workflow.

Model doesn't appear in the loader dropdown after downloading

Confirm the file is in the exact folder the node expects — diffusion_models for the main model, text_encoders for CLIP/T5/Qwen, vae for the VAE. Then refresh ComfyUI in the browser (press R) or fully restart it — new files aren't picked up live.

Frequently Asked Questions

Flux.1 Schnell is fast and Apache 2.0 licensed, good for 16GB cards. Flux.1 Dev has higher quality but is non-commercial and needs 24GB. Flux 2 is the newer generation: Flux.2 Klein (4B or 9B, Apache 2.0) is fast and commercial-friendly on 12-16GB cards, while Flux.2 Dev is a much larger 32B model aimed at maximum quality on 24GB+ cards using fp8 or GGUF.

Flux.1 Schnell needs about 16GB at full precision. Flux.1 Dev needs about 24GB, or around 12GB using a Q8 GGUF quant. Flux.2 Klein 4B fits 12GB cards, Klein 9B fits 16GB cards. Flux.2 Dev needs roughly 32GB at fp8 or about 19GB using a Q4 GGUF quant on a 24GB card. Lower-VRAM cards (6-8GB) can run smaller GGUF quant levels with reduced speed.

The diffusion model goes in ComfyUI/models/diffusion_models. Text encoders (CLIP, T5, or Mistral/Qwen for Flux 2) go in ComfyUI/models/text_encoders. The VAE goes in ComfyUI/models/vae. Older ComfyUI installs use models/unet and models/clip instead — both still work, ComfyUI reads either folder.

Flux.1 Schnell and Flux.2 Klein are both Apache 2.0 licensed and free for personal and commercial use. Flux.1 Dev and Flux.2 Dev are free to download but licensed for non-commercial use only. Flux.1 Pro and Flux1.1 Pro are paid, API-only models.

Yes, using a GGUF quantized model with the ComfyUI-GGUF custom node. A Q4_K_S or Q5_K_S GGUF build of Flux.1 Dev or Flux.2 Klein fits comfortably in 8GB. Generation is slower than fp8 and detail on complex prompts is slightly reduced, but it runs.

Set CFG to 1.0 for all Flux models, including Flux 2. Flux uses embedded guidance instead of classifier-free guidance, so higher CFG values oversaturate the image instead of improving prompt following. Leave the negative prompt empty — Flux does not use it.

Red nodes mean missing custom nodes. Open ComfyUI Manager, click Install Missing Custom Nodes, install the listed nodes, then restart ComfyUI. Make sure ComfyUI itself is fully updated via Manager > Update All first, since outdated cores are the most common cause.

Ready to go further? Check the ComfyUI roadmap for the recommended next steps after installing Flux.

Discussion

Join the discussion

Sign in to leave a comment or reply

💬

No comments yet

Be the first to share your thoughts!