Model Type
FLUX
Model Class
FLUX
Recommended Sampler
Euler a
Recommended Steps
4
Recommended CFG
1
CLIP Skip
1
Requests (24h)
756
Requests (7d)
1K
Capabilities
Image to image, Inpainting, IP-Adapter
Added At
2/4/2026
Generate images with FLUX.2-klein-4B through the OpenAI-style image endpoint. Send sd_model_checkpoint as the model name and the API renders the result without logging your prompts.
cURL
curl -X POST https://api.arliai.com/v1/txt2img \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ARLIAI_API_KEY" \
-d '{
"sd_model_checkpoint": "FLUX.2-klein-4B",
"prompt": "a red fox in fresh snow, cinematic light",
"negative_prompt": "lowres, bad anatomy, watermark",
"steps": 4,
"sampler_name": "Euler a",
"cfg_scale": 1,
"width": 1024,
"height": 1024
}'Python
import requests
response = requests.post(
"https://api.arliai.com/v1/txt2img",
headers={"Authorization": "Bearer YOUR_ARLIAI_API_KEY"},
json={
"sd_model_checkpoint": "FLUX.2-klein-4B",
"prompt": "a red fox in fresh snow, cinematic light",
"steps": 4,
"sampler_name": "Euler a",
"cfg_scale": 1,
"width": 1024,
"height": 1024,
},
)
print(response.json())See the image generation docs for every parameter, or read the quick start guide to make your first request.
license: apache-2.0 language:

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:
License
This model is licensed under the https://www.apache.org/licenses/LICENSE-2.0.
Trademarks & IP
This project may contain trademarks or logos for projects, products, or services. Use of Black Forest Labs and FLUX trademarks or logos in modified versions of this project must not cause confusion or imply sponsorship or endorsement. Any use of third-party trademarks, intellectual property or logos are subject to those third-party's policies.