providerblack-forest-labs /

FLUX-2-dev

3.5 DZD× (width / 1024) × (height / 1024) × (steps / 28)

Brand-new Flux2 Dev introduces a faster, more modular architecture for next-generation image generation pipelines. It delivers improved performance, cleaner control APIs, and a significantly more flexible development workflow for custom inference setups.

Public
FLUX-2-dev
ArchitectureDense
Context WindowImage

FLUX.2

by Black Forest Labs: https://bfl.ai

Documentation for our API can be found here: docs.bfl.ai.

This repo contains minimal inference code to run image generation & editing with our FLUX.2 open-weight models.


FLUX.2 [dev]

FLUX.2 [dev] is a 32B parameter flow matching transformer model capable of generating and editing (multiple) images. The model is released under the FLUX.2-dev Non-Commercial License and can be found here.

Note that the below script for FLUX.2 [dev] needs considerable amount of VRAM (H100-equivalent GPU). We partnered with Hugging Face to make quantized versions that run on consumer hardware; below you can find instructions on how to run it on a RTX 4090 with a remote text encoder, for other quantization sizes and combinations, check the diffusers quantization guide here.


Text-to-Image Examples

Text-to-image examples


Editing Examples

Editing examples


Citation

If you find the provided code or models useful for your research, consider citing them as:

BIBTEX
@misc{flux-2-2025,
    author={Black Forest Labs},
    title={{FLUX.2: Frontier Visual Intelligence}},
    year={2025},
    howpublished={\url{https://bfl.ai/blog/flux-2}},
}