black-forest-labs /
flux2
Why it matters
- According to the README, the klein 4B version fits in about 8 GB of graphics memory, so on a consumer card.
- One model handles text-to-image generation and editing, with one or several reference images.
- The authors say the klein family produces images in under a second on modern hardware.
Before you start
- Only the klein 4B models are Apache 2.0. The others, including FLUX.2 dev, carry a non-commercial license.
- The 32-billion-parameter dev model needs an H100-class GPU unless you use a quantized version.
Try it
python3.12 -m venv .venv
source .venv/bin/activate
pip install -e . --extra-index-url https://download.pytorch.org/whl/cu129 --no-cache-dir
PYTHONPATH=src python scripts/cli.pyRun these from a copy of the repository (the README does not show the clone line). Weights download automatically if you do not set the environment variables. The authors tested the code on GB200 with CUDA 12.9. Commands copied from the official README (December 2, 2026).
Install it with your AI agent

I install everything without reading and then I cry. You've got an agent, make it read. 😹
Milky
Hi, Milky from Silicium Rose sent me. Help me install black-forest-labs/flux2: https://github.com/black-forest-labs/flux2
1. Read the official README at that address (not from memory) and tell me in two sentences what it does and what it touches on my machine.
2. Check that my machine is suitable (system, versions, memory, graphics card, disk space). If anything is missing, say so before you start.
3. Install in its own folder, with an isolated environment if the project needs one.
4. Show me each command and wait for my go-ahead before any downloaded script, admin rights, large download or key. Never ask me to paste a key into the chat.
5. Finish with a very simple test, show me the result, and tell me how to run it and uninstall it.
Commands from the README, check them before running:
python3.12 -m venv .venv
source .venv/bin/activate
pip install -e . --extra-index-url https://download.pytorch.org/whl/cu129 --no-cache-dir
PYTHONPATH=src python scripts/cli.py
Good to know:
- Only the klein 4B models are Apache 2.0. The others, including FLUX.2 dev, carry a non-commercial license.
- The 32-billion-parameter dev model needs an H100-class GPU unless you use a quantized version.Paste it into Claude Code, Codex, Cursor, Gemini CLI or any agent with access to your terminal. Read what it proposes before you say yes.
Articles that cover it
Flux, quelle version choisir ? Trois générations, quatre licences et un « BONJUUR »
SDXL ou Flux ? Lequel choisir, pancarte en main
Spelled right?
MOSS Image vs Z-Image, FLUX, SDXL and Krea 2
MOSS Image, the OpenMOSS team's open image model, goes all in on accurate text inside the image. White Rose compares it with Z-Image, FLUX, SDXL and Krea 2: size, license, commercial use, what each one announces, and what we actually tested.
Similar repositories
CompVisstable-diffusion
The original Stable Diffusion repository, a model that creates images from a sentence. It is for people who want to run it themselves with a reference script.
1 articlehuggingfacediffusers
Diffusers is the Hugging Face Python library for generating images, audio and other content with diffusion models, the model family behind many image generators. It is for developers who want to run a model in a few lines or build their own.
2 articles
black-forest-labsflux
Official Black Forest Labs repository with the minimal code to run its FLUX.1 image models on your own machine. It is for generating or editing images from text.
4 articles