What is Flux.1?

Flux.1 is an image generation model from Black Forest Labs, a company founded by members of the team behind Stable Diffusion. It's more than just a "better-performing version": it also marked a major turning point in architecture.

  • The core of the image generator moved from the traditional UNet to a Transformer (DiT).
  • A T5-family LLM was adopted as the text encoder.

Together, these made it possible to train efficiently on large datasets and to tap directly into an LLM's language understanding, and Flux.1 became the point where today's mainstream image generation models branched off.

Flux.1 comes in 3 variants.

  • Flux.1 pro
    • A version available only via API; model weights are not public.
  • Flux.1 dev
    • A model distilled from pro, intended for research and testing. This is the one most people use locally.
  • Flux.1 schnell
    • A model further distilled from dev, released under the relatively loose Apache-2.0 license.

Model Download

Here, we use the fp8 versions of dev / schnell.

📂ComfyUI/
└── 📂models/
    ├── 📂diffusion_models/
    │   ├── flux1-dev-fp8.safetensors
    │   └── flux1-schnell-fp8.safetensors
    ├── 📂clip/
    │   ├── clip_l.safetensors
    │   └── t5xxl_fp8_e4m3fn_scaled.safetensors
    └── 📂vae/
        └── ae.safetensors

text2image - Flux.1 [dev]

flux1_dev.json

Flux.1 dev / schnell are distilled with CFG fixed at 1.0. So they aren't designed for tuning CFG scale or the negative prompt the way you would with Stable Diffusion, and the negative prompt has no effect at all.

I just leave the negative prompt empty, but some other workflows plug in a ConditioningZeroOut node instead of the negative CLIP Text Encode node.

Either way, the negative conditioning gets multiplied by 0, so nothing you write there affects the output.


text2image - Flux.1 [schnell]

A further distilled version of Flux.1 [dev] that can generate images in 4-6 steps.

flux1_schnell.json
  • Set steps to 4-6.

LoRA - Flux.1 [dev]

Let's try a LoRA that improves the quality of portraits.

flux1_dev_lora.json
  • 🟪 As mentioned in LoRA, from Flux onward LoRAs no longer train the text encoder, so instead of the Load LoRA node, use the LoraLoaderModelOnly node, which applies only to the model weights.

ControlNet - Flux.1 [dev]

Several ControlNet models have been released for Flux.1. Here, we'll use a Union-type model as the example.

Model Download

📂ComfyUI/
└── 📂models/
    └── 📂controlnet/
        └── FLUX.1-dev-ControlNet-Union-Pro-2.0-fp8.safetensors

workflow

ControlNet-Union packs several common ControlNets into a single model.

flux_1_dev_controlnet_union_pro_depth.json
  • 🟩 This is just a Flux image2image workflow with ControlNet added.

    • It's image2image, but denoise is 1.0, so it behaves almost exactly like text2image.
    • I use this setup a lot because it gives you an image the same size as the input with fewer nodes.
  • 🟩 Set the ControlNet type you want to use in SetUnionControlNetType.

    • Basically auto is fine.

GGUF (Making Flux.1 Lighter)

Finally, a quick word on the GGUF version of Flux.1.

GGUF was originally a format for shrinking LLMs (a quantized weight format), but applying it to Flux.1 lets you cut VRAM usage while still running at a decent speed.

Custom Nodes

Model Download

There are several variants trading off quality against model size. Pick one that suits your PC and what you're doing.

📂ComfyUI/
└── 📂models/
    └── 📂unet/
        └── flux1-dev.gguf

workflow

flux_1_dev_gguf.json
  • 🟪 Replace the Load Diffusion Model node with the Unet Loader (GGUF) node.

  • The CLIP / T5 / VAE parts stay the same.

    • You can switch T5 to GGUF too, but in my experience it doesn't make a big difference.

Many current models have GGUF versions. There's hardly any downside to using GGUF, so don't hesitate to try it when you're short on VRAM.