Model reference · open weights
FLUX.2 Klein is an open-weight image model from black-forest-labs, available today on the AxForge serverless API, OpenAI-compatible and hosted in the EU.
Create an account and your API key is available in the console. 3M free tokens every 30 days with every new account.
Summary of the black-forest-labs/FLUX.2-klein-4B model card, 2026-10-01. The estimate below is for another build of the family.
What it is
| Released by | Black Forest Labs |
|---|---|
| Released | 2026-01-14 |
| Parameters | 3.9B |
| VRAM | 4.1 GB for the weights |
What it runs on
| Card | One image | Memory |
|---|---|---|
| RTX 3060 12 GB | fits | 11.6 GB |
| RTX 4060 Ti 16 GB | fits | 15.4 GB |
| RTX 3090 24 GB | fits | 23.4 GB |
| RTX 4090 24 GB | fits | 23.4 GB |
| RTX 5090 32 GB | fits | 31.0 GB |
| L40S 48 GB | fits | 44.0 GB |
| A100 80 GB | fits | 78.2 GB |
| H100 80 GB | fits | 78.1 GB |
| RTX PRO 6000 Blackwell 96 GB | fits | 93.8 GB |
| DGX Spark (GB10) 128 GB unified | fits | 107 GB |
| H200 141 GB | fits | 138 GB |
| B200 180 GB | fits | 176 GB |
Builds
| Build | Params | Precision | Weights | Smallest setup |
|---|---|---|---|---|
| FLUX.2-klein-4B ↗ On the API | 4B | FP8 | 16.0 GB | RTX 4060 Ti 16 GB |
| FLUX.2-klein-9B ↗ | 9.1B | BF16 | 34.7 GB | RTX 5090 32 GB |
| FLUX.2-klein-4b-fp8 (above) ↗ the transformer alone, to use with the text encoders and VAE |
— | FP8 | 4.1 GB | RTX 3060 12 GB |
| FLUX.2-klein-9b-nvfp4 ↗ the transformer alone, to use with the text encoders and VAE |
— | NVFP4 | 5.8 GB | RTX 3060 12 GB |
| FLUX.2-klein-4B-GGUF ↗ packaged by unsloth 15 builds: Q2_K 1.8 GB … F16 7.8 GB the transformer alone, to use with the text encoders and VAE |
— | GGUF | 2.6 GB | RTX 3060 12 GB |
| FLUX.2-klein-9B ↗ packaged by unsloth |
9.1B | BF16 | 34.7 GB | RTX 5090 32 GB |
| FLUX.2-klein-4B ↗ packaged by unsloth |
3.9B | BF16 | 16.0 GB | RTX 4060 Ti 16 GB |
From the model card
The FLUX.2 [klein] model family are our fastest image models to date. FLUX.2 [klein] unifies generation and editing in a single compact architecture, delivering state-of-the-art quality with end-to-end inference in as low as under a second. Built for applications that require real-time image generation without sacrificing quality, and runs on consumer hardware, with as little as 13GB VRAM.
FLUX.2 [klein] 4B is a 4 billion parameter rectified flow transformer capable of generating images from text descriptions and supports multi-reference editing capabilities.
Fully open under Apache 2.0. Our most accessible model runs on consumer GPUs like the RTX 3090/4070. Compact but capable: supports text-to-image, image editing, and multi-reference at quality that punches above its size. Built for local development, edge deployment, and production use.
For more information, please read our blog post.
We provide a reference implementation of FLUX.2 [klein] 4B, as well as sampling code, in a dedicated GitHub repository. Developers and creatives looking to build on top of FLUX.2 [klein] 4B are encouraged to use this as a starting point.
The FLUX.2 [klein] 4B model is available via the BFL API:
FLUX.2 [klein] 4B is also available in both ComfyUI and Diffusers.
To use FLUX.2 [klein] 4B with the 🧨 Diffusers python library, first install or upgrade diffusers:
pip install git+https://github.com/huggingface/diffusers.git
Then you can use Flux2KleinPipeline to run the model:
import torch
from diffusers import Flux2KleinPipeline
device = "cuda"
dtype = torch.bfloat16
pipe = Flux2KleinPipeline.from_pretrained("black-forest-labs/FLUX.2-klein-4B", torch_dtype=dtype)
pipe.enable_model_cpu_offload() # save some VRAM by offloading the model to CPU
prompt = "A cat holding a sign that says hello world"
image = pipe(
prompt=prompt,
height=1024,
width=1024,
guidance_scale=1.0,
num_inference_steps=4,
generator=torch.Generator(device=device).manual_seed(0)
).images[0]
image.save("flux-klein.png")
Limitations
Out-of-Scope Use
The model and its derivatives may not be used:
Nothing contained in this Model Card should be interpreted as or deemed a restriction or modification to the license the model is released under.
Hardware
The FLUX.2 [klein] 4B model fits in ~13GB VRAM and is accessible on NVIDIA RTX 3090/4070 and above.
Responsible AI Development
Black Forest Labs is committed to the responsible development and deployment of our models. Prior to releasing the FLUX.2 family of models, we evaluated and mitigated a number of risks in our model checkpoints and hosted services, including the generation of unlawful content, including child sexual abuse material (CSAM) and nonconsensual intimate imagery (NCII). We implemented a series of pre-release mitigations to help prevent misuse by third parties, with additional post-release mitigations to help address residual risks:
Quoted from the model card on Hugging Face. The full card is behind the Hugging Face link above.
Using it via the API
FLUX.2 Klein answers on the OpenAI-compatible API today as qwen-image-edit, with the same
base URL and keys as every other model.
# your API key, from API Keys
export AXFORGE_API_KEY="YOUR_KEY"
curl --max-time 300 https://api.axforge.ai/v1/images/generations \
-H "Authorization: Bearer $AXFORGE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"qwen-image-edit","prompt":"a red bicycle","size":"1024x1024"}' \
| sed -n 's/.*"b64_json":"\([^"]*\)".*/\1/p' | base64 -d > image.png
# your API key, from API Keys
$env:AXFORGE_API_KEY = "YOUR_KEY"
$call = @{
Method = "Post"
Uri = "https://api.axforge.ai/v1/images/generations"
Headers = @{ Authorization = "Bearer $env:AXFORGE_API_KEY" }
ContentType = "application/json"
Body = '{"model":"qwen-image-edit","prompt":"a red bicycle","size":"1024x1024"}'
TimeoutSec = 300
}
$r = Invoke-RestMethod @call
[IO.File]::WriteAllBytes("$PWD\image.png", [Convert]::FromBase64String($r.data[0].b64_json))
Create an account and your API key is available in the console. 3M free tokens every 30 days with every new account.