ComfyUI Flux.1 Text-to-Image Workflow Example
This guide provides a brief introduction to the Flux.1 model and guides you through using the Flux.1 model for text-to-image generation with examples including the full version and the FP8 Checkpoint version.
Flux is one of the largest open-source text-to-image generation models, with 12B parameters and an original file size of approximately 23GB. It was developed by Black Forest Labs, a team founded by former Stable Diffusion team members. Flux is known for its excellent image quality and flexibility, capable of generating high-quality, diverse images.
Currently, the Flux.1 model has several main versions:
- Flux.1 Pro: The best performing model, closed-source, only available through API calls.
- Flux.1 [dev]: Open-source but limited to non-commercial use, distilled from the Pro version, with performance close to the Pro version.
- Flux.1 [schnell]: Uses the Apache2.0 license, requires only 4 steps to generate images, suitable for low-spec hardware.
Flux.1 Model Features
- Hybrid Architecture: Combines the advantages of Transformer networks and diffusion models, effectively integrating text and image information, improving the alignment accuracy between generated images and prompts, with excellent fidelity to complex prompts.
- Parameter Scale: Flux has 12B parameters, capturing more complex pattern relationships and generating more realistic, diverse images.
- Supports Multiple Styles: Supports diverse styles, with excellent performance for various types of images.
In this example, we’ll introduce text-to-image examples using both Flux.1 Dev and Flux.1 Schnell versions, including the full version model and the simplified FP8 Checkpoint version.
- Flux Full Version: Best performance, but requires larger VRAM resources and installation of multiple model files.
- Flux FP8 Checkpoint: Requires only one fp8 version of the model, but quality is slightly reduced compared to the full version.
All workflow images’s Metadata contains the corresponding model download information. You can load the workflows by:
- Dragging them directly into ComfyUI
- Or using the menu
Workflows
->Open(ctrl+o)
If you’re not using the Desktop Version or some models can’t be downloaded automatically, please refer to the manual installation sections to save the model files to the corresponding folder. Make sure your ComfyUI is updated to the latest version before starting.
Flux.1 Full Version Text-to-Image Example
If you can’t download models from black-forest-labs/FLUX.1-dev, make sure you’ve logged into Huggingface and agreed to the corresponding repository’s license agreement.
Flux.1 Dev
1. Workflow File
Please download the image below and drag it into ComfyUI to load the workflow.
2. Manual Model Installation
- The
flux1-dev.safetensors
file requires agreeing to the black-forest-labs/FLUX.1-dev agreement before downloading via browser. - If your VRAM is low, you can try using t5xxl_fp8_e4m3fn.safetensors to replace the
t5xxl_fp16.safetensors
file.
Please download the following model files:
- clip_l.safetensors
- t5xxl_fp16.safetensors Recommended when your VRAM is greater than 32GB.
- ae.safetensors
- flux1-dev.safetensors
Storage location:
3. Steps to Run the Workflow
Please refer to the image below to ensure all model files are loaded correctly
- Ensure the
DualCLIPLoader
node has the following models loaded:- clip_name1: t5xxl_fp16.safetensors
- clip_name2: clip_l.safetensors
- Ensure the
Load Diffusion Model
node hasflux1-dev.safetensors
loaded - Make sure the
Load VAE
node hasae.safetensors
loaded - Click the
Queue
button, or use the shortcutCtrl(cmd) + Enter
to run the workflow
Thanks to Flux’s excellent prompt following capability, we don’t need any negative prompts
Flux.1 Schnell
1. Workflow File
Please download the image below and drag it into ComfyUI to load the workflow.
2. Manual Models Installation
In this workflow, only two model files are different from the Flux1 Dev version workflow. For t5xxl, you can still use the fp16 version for better results.
- t5xxl_fp16.safetensors -> t5xxl_fp8.safetensors
- flux1-dev.safetensors -> flux1-schnell.safetensors
Complete model file list:
File storage location:
3. Steps to Run the Workflow
- Ensure the
DualCLIPLoader
node has the following models loaded:- clip_name1: t5xxl_fp8_e4m3fn.safetensors
- clip_name2: clip_l.safetensors
- Ensure the
Load Diffusion Model
node hasflux1-schnell.safetensors
loaded - Ensure the
Load VAE
node hasae.safetensors
loaded - Click the
Queue
button, or use the shortcutCtrl(cmd) + Enter
to run the workflow
Flux.1 FP8 Checkpoint Version Text-to-Image Example
The fp8 version is a quantized version of the original Flux.1 fp16 version. To some extent, the quality of this version will be lower than that of the fp16 version, but it also requires less VRAM, and you only need to install one model file to try running it.
Flux.1 Dev
Please download the image below and drag it into ComfyUI to load the workflow.
Please download flux1-dev-fp8.safetensors and save it to the ComfyUI/models/checkpoints/
directory.
Ensure that the corresponding Load Checkpoint
node loads flux1-dev-fp8.safetensors
, and you can try to run the workflow.
Flux.1 Schnell
Please download the image below and drag it into ComfyUI to load the workflow.
Please download flux1-schnell-fp8.safetensors and save it to the ComfyUI/models/checkpoints/
directory.
Ensure that the corresponding Load Checkpoint
node loads flux1-schnell-fp8.safetensors
, and you can try to run the workflow.
Was this page helpful?