Model reference · open weights

FLUX.2 Klein

On the AxForge API eu-se-1 · Stockholm Image black-forest-labs Image edit 7 builds Open weights 521k dl/mo

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.

  • FLUX.2-klein is a 3.9 billion parameter image-to-image model developed by Black Forest Labs.
  • It supports text-to-image generation and multi-reference editing, running on consumer hardware with approximately 13GB of VRAM.
  • The model is released under the Apache 2.0 license and supports English.

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 byBlack Forest Labs
Released2026-01-14
Parameters3.9B
VRAM34.7 GB for the weights

What it runs on

Memory and cards for FLUX.2-klein-9B (BF16)

34.7 GBweights, file size
18.2 GBbiggest part
5.0 GBworking memory, one 1024² image
537 MBruntime overhead
CardOne imageMemory
RTX 3060 12 GB … RTX 4090 24 GBdoes not fit
RTX 5090 32 GBfits (encoders offloaded)31.0 GB
L40S 48 GBtight44.0 GB
A100 80 GBfits78.2 GB
H100 80 GBfits78.1 GB
RTX PRO 6000 Blackwell 96 GBfits93.8 GB
DGX Spark (GB10) 128 GB unifiedfits107 GB
H200 141 GBfits138 GB
B200 180 GBfits176 GB

Builds

Sizes, precisions & builds

BuildParamsPrecisionWeightsSmallest setup
FLUX.2-klein-4B ↗ On the API 4BFP8 16.0 GBRTX 4060 Ti 16 GB
FLUX.2-klein-9B ↗ 9.1BBF16 34.7 GBRTX 5090 32 GB
FLUX.2-klein-4b-fp8 ↗
the transformer alone, to use with the text encoders and VAE
—FP8 4.1 GBRTX 3060 12 GB
FLUX.2-klein-9b-nvfp4 ↗
the transformer alone, to use with the text encoders and VAE
—NVFP4 5.8 GBRTX 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 GBRTX 3060 12 GB
FLUX.2-klein-9B (above) ↗
packaged by unsloth
9.1BBF16 34.7 GBRTX 5090 32 GB
FLUX.2-klein-4B ↗
packaged by unsloth
3.9BBF16 16.0 GBRTX 4060 Ti 16 GB

From the model card

What Black Forest Labs says about FLUX.2 Klein

Read 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.

Key Features

  1. Our fastest distilled model for sub-second image generation.
  2. Best suited for interactive workflows, production deployments, and latency-critical applications.
  3. Text-to-image and image-to-image multi-reference editing in a single unified model.
  4. Runs on consumer GPUs (~13GB VRAM).
  5. Open weights available for commercial use under the Apache 2.0 license.

Usage

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.

API Endpoints

The FLUX.2 [klein] 4B model is available via the BFL API:

FLUX.2 [klein] 4B is also available in both ComfyUI and Diffusers.

Using with 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

  • This model is not intended or able to provide factual information.
  • While the model can output text, text rendered may be inaccurate or subject to distortion.
  • As a statistical model, this checkpoint may represent or amplify biases observed in the training data.
  • The model may fail to generate output that matches the prompts.
  • Prompt following is heavily influenced by the prompting style.

Out-of-Scope Use

The model and its derivatives may not be used:

  • In any way that violates applicable law.
  • For the purpose of exploiting, harming or attempting to exploit or harm minors in any way; including but not limited to the solicitation, creation, acquisition, or dissemination of child exploitative content.
  • To generate or disseminate deceptive, fraudulent, misleading or otherwise harmful content.
  • To generate or disseminate personal identifiable information that can be used to harm an individual.
  • To harass, abuse, threaten, stalk, or bully individuals or groups of individuals.
  • To create non-consensual intimate imagery or illegal pornographic content.
  • For fully automated decision making or high risk applications that adversely impact an individual's legal rights or otherwise create or modify a binding, enforceable obligation.

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:

  1. Pre-training mitigation. We filtered pre-training data for multiple categories of "not safe for work" (NSFW) and known child sexual abuse material (CSAM) to help prevent a user generating unlawful content in response to text prompts or uploaded images. We have partnered with the https://www.iwf.org.uk/, an independent nonprofit organization dedicated to preventing online abuse, to filter known CSAM from the training data.
  2. Post-training mitigation. Subsequently, we undertook multiple rounds of targeted fine-tuning to provide additional mitigation against potential abuse, including both text-to-image (T2I) and image-to-image (I2I) attacks. By inhibiting certain behaviors and suppressing certain concepts in the trained model, these techniques can help to prevent a user generating synthetic CSAM or NCII from a text prompt, or transforming an uploaded image into synthetic CSAM or NCII.
  3. Ongoing evaluation. Throughout this process, we conducted multiple internal and external third-party evaluations of model checkpoints to identify further opportunities for mitigation. External third

Quoted from the model card on Hugging Face. The full card is behind the Hugging Face link above.

Using it via the API

Call it like any OpenAI endpoint

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
Images: sizes, seeds, editing

Create an account and your API key is available in the console. 3M free tokens every 30 days with every new account.

© 2026 AxForge · EU-hosted AI infrastructure Pricing Docs Trust Privacy Terms