FLUX.2 [dev]
a powerful new image generation and editing model
2 min readupdated
FLUX.2 [dev] is a 32-billion-parameter rectified flow transformer model built for text-guided image generation, editing, and composition. Out of the box, it transfers characters, objects, and styles without any fine-tuning. Trained using guidance distillation, it delivers higher overall efficiency. The project targets researchers, artists, and developers looking to build innovative visual workflows.
Key features
- State-of-the-art text-to-image generation alongside single- and multi-reference editing.
- Zero fine-tuning required for precise character, object, and style transfer.
- Higher efficiency thanks to guidance distillation.
- Open weights for advancing research and running commercial or personal creative projects under a non-commercial license.
What you can do
- Generate detailed images using complex text descriptions and prompts.
- Use multiple reference images simultaneously for precise control over characters and objects in the frame.
- Integrate the model into popular interfaces like ComfyUI or run it locally using the Diffusers library.
- Conduct generative AI research and build advanced creative pipelines.
Example
import torch
from diffusers import Flux2Pipeline
repo_id = "diffusers/FLUX.2-dev-bnb-4bit"
device = "cuda:0"
pipe = Flux2Pipeline.from_pretrained(
repo_id, text_encoder=None, torch_dtype=torch.bfloat16
).to(device)
prompt = "Realistic macro photograph of a hermit crab using a soda can as its shell..."
image = pipe(generator=torch.Generator(device=device).manual_seed(42)).images[0]
image.save("flux2_output.png")Read more
DetailsArchitecture: rectified flow transformer (32 billion parameters).
Tools: full support in Diffusers and ComfyUI.
License: FLUX [dev] Non-Commercial License.
Safety: built-in input and output filters to prevent unwanted content generation.










Comments