Run FLUX.1 Locally in 2026: VRAM Needs + 5-Minute Setup
Want to go deeper than this article?
Free account unlocks the first chapter of all 20 courses — RAG, agents, MCP, voice AI, MLOps, real GitHub repos.
Generating images locally? Take it further. From FLUX and ComfyUI setup to building real image pipelines and apps. First chapter free, no card.
FLUX Quick Reference
| Variant | Steps | License | VRAM (Q4) |
|---|---|---|---|
| FLUX.1 schnell | 1-4 | Apache 2.0 | 6-8GB |
| FLUX.1 dev | 20-30 | Non-Commercial | 6-8GB |
| FLUX.1 pro | Variable | API Only | — |
Can you run FLUX locally?
Yes. FLUX.1 [dev] runs locally on an 8GB GPU (RTX 3060/4060) using a GGUF Q4/Q5 quantized model in ComfyUI, and on a 24GB RTX 4090 at full FP16 in 10–18 seconds per 1024×1024 image. The Apache-2.0 FLUX.1 [schnell] generates in 1–4 steps for free commercial use, and as of January 2026 the new FLUX.2 [klein] 4B (also Apache 2.0) brings near-instant generation to consumer hardware. The fastest setup is the ComfyUI route below — install, drop in the model files, and you are generating in about five minutes.
Reading articles is good. Building is better.
Free account = 20+ free chapters across 20 courses, with a per-chapter AI tutor. No card. Cancel anytime if you ever upgrade.
What is FLUX?
FLUX is a 12-billion parameter text-to-image model from Black Forest Labs—the same team that created Stable Diffusion. Released in 2024, FLUX represents the next generation of open image generation.
Why FLUX Over Stable Diffusion?
| Feature | FLUX.1 | Stable Diffusion 3.5 |
|---|---|---|
| Photorealism | Excellent | Good |
| Typography | Excellent | Good (3.5), Poor (1.5/XL) |
| Human anatomy | Excellent | Struggles with fingers |
| Prompt adherence | Excellent | Good |
| Parameters | 12B | 2-8B |
Company Background
Black Forest Labs secured:
- $300M funding at $3.25B valuation (2025)
- $140M Meta partnership
- NVIDIA Blackwell integration
- Adobe Photoshop integration
FLUX Model Variants
FLUX.1 Family (12B Parameters)
| Variant | Steps | Quality | License |
|---|---|---|---|
| schnell | 1-4 | Good | Apache 2.0 (free commercial) |
| dev | 20-30 | High | Non-commercial |
| pro | Variable | Highest | API only |
FLUX.1 [schnell] ("fast" in German):
- Generates in just 1-4 steps via adversarial distillation
- Free for commercial use (Apache 2.0)
- Best for rapid prototyping
FLUX.1 [dev]:
- Guidance-distilled from pro
- Best quality for local use
- Requires commercial license for business use
FLUX.2 Family (32B Parameters)
FLUX.2 [dev] launched November 25, 2025 with major improvements:
- Multi-reference support (up to 10 images)
- 4-megapixel editing
- Complex typography and infographics
- Couples a Mistral-3 24B vision-language model for stronger prompt understanding
FLUX.2 [klein] is the distilled, low-VRAM tier and now ships in two sizes. The 4B variant is released under an Apache 2.0 license (free commercial use), needs only ~13GB VRAM at FP16, runs on an RTX 3060 12GB, and—being step-distilled to roughly 4 steps—generates in about a second on a capable GPU. It is the first FLUX.2 weight you can actually run locally without a data-center GPU. A larger 9B klein variant (non-commercial license, ~29GB VRAM at FP16) trades some accessibility for noticeably better detail and coherence on complex prompts. Both klein sizes have native ComfyUI and Diffusers support, plus GGUF builds (via city96's ComfyUI-GGUF) for even lower memory. The full FLUX.2 [dev] is still a 32B non-commercial model that needs 24GB+ when heavily quantized and 80GB+ at full precision, so most local users on a single consumer card should reach for FLUX.2 [klein] 4B or stay on FLUX.1.
| Variant | Parameters | License | VRAM (FP16) | Notes |
|---|---|---|---|---|
| FLUX.2 klein 4B | 4B | Apache 2.0 | ~13GB | Sub-second on consumer GPUs; runs on RTX 3060 12GB |
| FLUX.2 klein 9B | 9B | Non-commercial | ~29GB | Better detail; needs RTX 5090/RTX 6000 class |
| FLUX.2 dev | 32B | Non-commercial | 80GB+ (24GB+ quantized) | Multi-reference, 4MP editing |
Ready to install the new generation? Our FLUX.2 local setup guide walks through the klein 4B and dev weights step by step, including ComfyUI node files and GGUF quants for lower-VRAM cards.
For a faster, even lighter alternative to FLUX entirely, see our Z-Image Turbo in ComfyUI guide—a newer turbo model that targets near-real-time generation on modest GPUs.
Hardware Requirements
VRAM by Precision
| Precision | VRAM | Quality | GPU Examples |
|---|---|---|---|
| FP16 (full) | 24-33GB | Maximum | RTX 4090, A6000 |
| FP8 | 12-16GB | Near-identical | RTX 4070 Ti, 3060 12GB |
| GGUF Q8 | 12-16GB | Near-identical | RTX 4070 Ti |
| GGUF Q5 | 8-10GB | 95%+ quality | RTX 4060, 3060 |
| GGUF Q4/NF4 | 6-8GB | Good | RTX 4060, 3060 |
For a card-by-card breakdown of which precision fits each GPU, see our FLUX VRAM requirements by GPU reference.
Recommended GPUs
High-End (Full Models):
| GPU | VRAM | Speed |
|---|---|---|
| RTX 5090 | 32GB | ~7 sec/image |
| RTX 4090 | 24GB | ~10-18 sec/image |
| H100 | 80GB | ~1.6 sec/image |
Mid-Range (Quantized):
| GPU | VRAM | Best Quantization |
|---|---|---|
| RTX 4070 Ti Super | 16GB | Q8 |
| RTX 3060 | 12GB | Q5/Q6 |
| RTX 4060 Ti | 16GB | Q6/Q8 |
Budget:
| GPU | VRAM | Max Quantization |
|---|---|---|
| RTX 3050 | 8GB | Q4/Q5 |
| GTX 1660 Ti | 6GB | Q3/Q4 |
Apple Silicon
| Chip | Memory | Time (1024x1024) |
|---|---|---|
| M4 Max | 32-128GB | ~85 sec |
| M3 Max | 32-128GB | ~105 sec |
| M2 Max | 32-96GB | ~145 sec |
Note: 2-4x slower than NVIDIA. Use Draw Things or Stability Matrix for best Mac support.
Reading articles is good. Building is better.
Free account = 20+ free chapters across 20 courses, with a per-chapter AI tutor. No card. Cancel anytime if you ever upgrade.
ComfyUI Setup
ComfyUI is the most flexible and best-supported front end for FLUX. If you are brand new to node-based workflows, read our complete ComfyUI guide first—it covers the interface, the Manager, and how workflows connect—then come back here for the FLUX-specific model files.
Step 1: Install ComfyUI
git clone https://github.com/comfyanonymous/ComfyUI.git
cd ComfyUI
pip install -r requirements.txt
Step 2: Download Required Files
Text Encoders (models/clip/):
| File | Size | Use |
|---|---|---|
| clip_l.safetensors | ~250MB | Required |
| t5xxl_fp16.safetensors | ~9.4GB | High VRAM |
| t5xxl_fp8_e4m3fn.safetensors | ~4.7GB | Low VRAM |
VAE (models/vae/):
| File | Size |
|---|---|
| flux_ae.safetensors | ~335MB |
UNET Model (models/unet/):
| File | VRAM | Quality |
|---|---|---|
| flux1-dev.safetensors | 24GB+ | Maximum |
| flux1-dev-fp8.safetensors | 12-16GB | Excellent |
| flux1-dev-Q8_0.gguf | 12-16GB | Excellent |
| flux1-dev-Q5_0.gguf | 8-10GB | Very good |
| flux1-dev-Q4_0.gguf | 6-8GB | Good |
Step 3: For GGUF Models (Low VRAM)
- Open ComfyUI Manager
- Install "ComfyUI-GGUF" node
- Restart ComfyUI
- Use GGUF-specific workflow
Step 4: Run ComfyUI
# Standard
python main.py
# Low VRAM (8-12GB)
python main.py --lowvram
# Very Low VRAM (6-8GB)
python main.py --lowvram --cpu-text-encoder
Forge WebUI Setup
Note: Automatic1111 does NOT support FLUX. Use Forge instead.
Installation
- Download Forge one-click package (CUDA 12.1 + PyTorch 2.3.1)
- Extract and run
update.bat - Run
run.bat
Model Download
Download flux1-dev-bnb-nf4 from Hugging Face:
https://huggingface.co/lllyasviel/flux1-dev-bnb-nf4/tree/main
Place in: stable-diffusion-webui-forge/models/Stable-diffusion/
Python/Diffusers Setup
import torch
from diffusers import FluxPipeline
# Load model
pipe = FluxPipeline.from_pretrained(
"black-forest-labs/FLUX.1-dev",
torch_dtype=torch.bfloat16
)
# Memory optimization
pipe.enable_model_cpu_offload()
# Generate image
image = pipe(
"A photorealistic portrait of a woman, golden hour lighting, "
"shot on Fujifilm X-T5, 35mm f/1.4",
num_inference_steps=28,
guidance_scale=3.5
).images[0]
image.save("output.png")
4-bit Quantization (Low VRAM)
from diffusers import FluxPipeline, BitsAndBytesConfig
quantization_config = BitsAndBytesConfig(load_in_4bit=True)
pipe = FluxPipeline.from_pretrained(
"black-forest-labs/FLUX.1-dev",
quantization_config=quantization_config,
device_map="cpu"
)
pipe.enable_model_cpu_offload()
Prompting Guide
Prompt Structure
Subject + Action + Style + Context
Example Prompts
Photorealistic:
A weathered fisherman with deep wrinkles, wearing a yellow raincoat,
standing on a wooden dock at golden hour, dramatic rim lighting,
shot on Fujifilm X-T5, 35mm f/1.4
Artistic:
A bioluminescent forest with crystalline trees, ethereal mist
rising from an obsidian lake, otherworldly atmosphere,
hyper-detailed fantasy illustration
Typography:
A neon sign reading "OPEN 24 HOURS" in pink and blue,
mounted on a brick wall, rain-slicked street reflections,
night photography, shallow depth of field
Prompting Do's and Don'ts
| Do | Don't |
|---|---|
| Write naturally | Use prompt weights |
| Be specific | Use negative prompts |
| Include camera details | Overload with keywords |
| Layer foreground to background | Describe sequential actions |
Recommended Settings
FLUX.1 [dev]
| Setting | Value |
|---|---|
| Steps | 20-30 (25 optimal) |
| CFG Scale | 3.5 (art) or 1-3 (photo) |
| Sampler | Euler |
| Resolution | 1024x1024 |
| Seed | -1 (variety) |
FLUX.1 [schnell]
| Setting | Value |
|---|---|
| Steps | 1-4 (up to 8 possible) |
| CFG Scale | 4-9 |
| Sampler | Euler |
| Resolution | 1024x1024 |
Speed LoRAs
Use HyperFlux or FluxTurbo LoRAs to reduce dev from 25 steps to 4-9:
| LoRA | Steps | Quality |
|---|---|---|
| HyperFlux | 4-8 | 90%+ |
| FluxTurbo | 7-9 | 95%+ |
Memory Optimization
ComfyUI Launch Flags
python main.py \
--lowvram \
--cpu-text-encoder \
--preview-method none \
--disable-xformers
Flag Reference
| Flag | Effect |
|---|---|
--lowvram | Aggressive memory management |
--cpu-text-encoder | Offload T5 to CPU (saves 1-2GB) |
--cpu-vae | Offload VAE to CPU |
--preview-method none | Disable previews |
General Tips
- Close background apps (browsers, Discord)
- Reduce resolution for testing (768x768)
- Keep batch size at 1
- Use GGUF Q5 - 95%+ quality at 1/4 memory
- Restart ComfyUI between model changes
VRAM Rule of Thumb
GGUF file size ≈ VRAM usage
- Q8: ~12-13GB file = ~12-13GB VRAM
- Q5: ~6-8GB file = ~6-8GB VRAM
- Q4: ~4-6GB file = ~4-6GB VRAM
How do you make FLUX faster on a small GPU? (Nunchaku / SVDQuant)
If GGUF Q4/Q5 still feels slow, the biggest 2026 speedup for local FLUX is Nunchaku, the MIT HAN Lab inference engine that runs FLUX as a true 4-bit (INT4) model using the SVDQuant method. Unlike GGUF—which is mainly about shrinking the file to fit VRAM—Nunchaku is built for raw throughput. For the full low-memory playbook, our guide to running FLUX on a low-VRAM GPU covers tiling, CPU offload, and the 6-8GB tricks in detail.
Measured gains (approximate, vendor/community figures):
| Setup | Throughput | Notes |
|---|---|---|
| FLUX.1 dev FP8 | ~1.7 it/s | Baseline on RTX 4090 |
| FLUX.1 dev Nunchaku INT4 | ~4.8 it/s | ~2.8× faster than FP8 |
| NF4 W4A16 baseline | 1× | Nunchaku ~3.0× faster |
SVDQuant shrinks the 12B FLUX.1 model ~3.6× and Nunchaku cuts memory ~3.5× versus 16-bit, so an RTX 3080 10GB can generate in under 10 seconds at quality comparable to FP16. To use it: install the ComfyUI-nunchaku plugin (by nunchaku-ai / MIT HAN Lab) through ComfyUI Manager, download the matching Nunchaku INT4 FLUX checkpoint, and load it with the Nunchaku loader node. As of the v1.2.0 release (January 2026) it added native-ComfyUI LoRA support and INT4 support for older 20-series GPUs.
When to pick which:
| Goal | Best choice |
|---|---|
| Lowest VRAM / simplest setup | GGUF Q4/Q5 |
| Maximum speed at low VRAM | Nunchaku INT4 (SVDQuant) |
| Maximum quality, 24GB+ card | FP16 or FP8 |
| Near-instant, free commercial | FLUX.1 schnell or FLUX.2 klein 4B |
Picking the right card for any of these matters more than the quantization method—see our best GPUs for AI in 2026 breakdown for price-per-image and VRAM-tier guidance before you buy.
FLUX ControlNets
Available Tools
| Tool | Purpose | Location |
|---|---|---|
| Canny | Edge-guided | models/diffusion_models/ |
| Depth | Depth-map control | models/diffusion_models/ |
| Redux | Image mixing | models/style_models/ |
| Fill | Inpainting | models/diffusion_models/ |
Download
Full models from Hugging Face:
flux1-canny-dev.safetensorsflux1-depth-dev.safetensors
LoRA versions for lower VRAM:
flux1-canny-dev-lora.safetensorsflux1-depth-dev-lora.safetensors
Redux requires sigclip_vision encoder in models/clip_vision/.
Performance Benchmarks
Generation Speed
| GPU | Resolution | Steps | Time |
|---|---|---|---|
| RTX 5090 | 1024x1024 | 20 | ~7 sec |
| RTX 4090 | 1024x1024 | 20 | ~10-18 sec |
| RTX 4090 (first) | 1024x1024 | 20 | ~41 sec |
| M4 Max | 1024x1024 | 20 | ~85 sec |
Quality vs Speed Trade-off
| Model | Steps | Speed | Quality |
|---|---|---|---|
| schnell | 4 | Fastest | Good |
| dev + HyperFlux | 8 | Fast | Very good |
| dev | 25 | Moderate | Excellent |
| dev | 30 | Slower | Maximum |
Which FLUX model should you run locally in 2026?
With three generations now available, the right pick depends on your VRAM, your license needs, and whether you want speed or fidelity.
| Your situation | Recommended model | Why |
|---|---|---|
| 6-8GB VRAM, any use | FLUX.1 dev GGUF Q4/Q5 | Smallest footprint, mature tooling |
| 8-10GB VRAM, want speed | FLUX.1 dev + Nunchaku INT4 | ~3× faster than FP8 at low VRAM |
| Need free commercial use | FLUX.1 schnell or FLUX.2 klein 4B | Both Apache 2.0 |
| 12GB card, newest model | FLUX.2 klein 4B | ~13GB FP16, sub-second, native ComfyUI |
| 24GB card, best 1-image quality | FLUX.1 dev FP16 | Proven quality, huge LoRA/ControlNet library |
| 32GB+/multi-GPU, frontier features | FLUX.2 dev (32B) | Multi-reference + 4MP editing |
The honest takeaway: FLUX.1 [dev] still has the deepest ecosystem of LoRAs, ControlNets, and community workflows, so it remains the safest local default in mid-2026. FLUX.2 [klein] 4B is the model to adopt if you want the newest architecture on a mainstream GPU, and Nunchaku is the upgrade to reach for when speed—not just fitting in VRAM—is the bottleneck.
Key Takeaways
- FLUX.1 schnell is Apache 2.0 - Free for commercial use
- 8GB GPUs work with GGUF Q4/Q5 quantization
- RTX 4090 generates in 10-18 seconds at full quality
- Natural language prompting - No weights or negatives
- Use FP8 T5 encoder to save 5GB VRAM
- Apple Silicon is 2-4x slower but works with MPS
- FLUX.2 [klein] 4B (Apache 2.0, Jan 2026) runs on consumer GPUs; FLUX.2 [dev] 32B needs 24GB+ quantized, so most stay on FLUX.1 or klein
Next Steps
- Check VRAM requirements for your GPU
- Compare with RTX 5090 for upgrades
- Learn quantization techniques
- Explore local AI tools for LLMs
- Set up RAG for text-based AI
FLUX represents the cutting edge of open-source image generation, delivering Midjourney-level quality that runs on consumer hardware. Whether you're using a high-end RTX 4090 for instant generation or an 8GB GPU with quantized models, FLUX enables professional-quality AI art creation without cloud dependencies or API costs.
Generating images locally? Take it further.
From FLUX and ComfyUI setup to building real image pipelines and apps. First chapter free, no card.
Liked this? 20 full AI courses are waiting.
From fundamentals to RAG, agents, MCP servers, voice AI, and production deployment with real GitHub repos. First chapter free, every course.
Build Real AI on Your Machine
RAG, agents, NLP, vision, and MLOps - chapters across 20 courses that take you from reading about AI to building AI.
Want structured AI education?
20 courses, 495+ chapters, from $9. Understand AI, don't just use it.
Continue Your Local AI Journey
- Best GPU for Local AI Image Generation (2026): Ranked
- Best Local AI Image Models 2026: FLUX vs SDXL vs Qwen
- ComfyUI 2026: Install + ControlNet + FLUX Setup (Full Tutorial)
- ComfyUI FLUX Workflow (2026): JSON Nodes Explained
- FLUX VRAM Requirements by GPU (2026): 8GB to 24GB Guide
- Image-to-Text AI: 89% Caption Accuracy (2026)
- Ollama Image Generation: Run Z-Image & FLUX.2 Locally (2026)
- Run FLUX on 6-8GB VRAM (2026): GGUF & Offloading
- Run FLUX.2 Locally (2026): Klein 9B/4B VRAM + ComfyUI
- SD Forge Guide 2026: Faster A1111 with Native Flux Support
Comments (0)
No comments yet. Be the first to share your thoughts!