BlackForestLabs logo

FLUX.2 Klein 4B

BlackForestLabsReleased Jan 15, 2026black-forest-labs/flux-2-klein-4b
CostCompare

FLUX.2 [klein] 4B is Black Forest Labs' fastest text-to-image model, a 4-billion-parameter distilled model released under the Apache 2.0 license. It generates images in as few as 4 inference steps, with sub-second latency on modern hardware, enhanced realism, crisper text rendering, and native editing capabilities from a single checkpoint. Suited to real-time apps, interactive workflows, rapid iteration, and high-volume generation.

Context
4K
Max output
4K
Input /1M
—
Output /1M
$0.005/img
AcceptsTextProducesImage

Providers

FastRouter routes your requests to this provider. You can also bring your own key.

FAL AI logo
FAL AI
falai
Input /1M—
Output /1M$0.005/img
Context4K
Max output4K

Supported parameters

Request parameters you can send with this model.

Parameter
Type
FAL AI
Core (Sampling & basic generation)
nNumber of completions to generate.
number
1 to 4default: 1
seedSeed for deterministic sampling.
number
-
Other
enable_safety_checker
bool
true | falsedefault: true
num_inference_steps
number
4 to 8default: 4
output_format
string
"jpeg", "png", "webp"default: png
prompt
string
-
size
string
"square_hd", "square", "portrait_4_3", "portrait_16_9", "landscape_4_3", "landscape_16_9"default: landscape_4_3
sync_mode
bool
true | falsedefault: false

Make your first API call

OpenAI-compatible. Point your SDK at FastRouter, or call the API directly.

Full API docs
Replace <FASTROUTER_API_KEY> with your key · Get your key →Install
OpenAI SDKHTTP
import base64
from openai import OpenAI
client = OpenAI(
api_key="<FASTROUTER_API_KEY>",
base_url="https://api.fastrouter.ai/api/v1"
)
img = client.images.generate(
model="black-forest-labs/flux-2-klein-4b",
prompt="A cute baby sea otter",
n=1,
size="1024x1024"
)
image_base64 = img.data[0].b64_json
image_bytes = base64.b64decode(image_base64)
with open("otter.png", "wb") as f:
f.write(image_bytes)

Frequently asked questions

More models from BlackForestLabs

BlackForestLabs logo
FLUX Devblack-forest-labs/flux-dev

FLUX.1 [dev] is a 12 billion parameter text-to-image model developed by Black Forest Labs for high-quality image generation and editing from text prompts.It excels at generating photorealistic images with strong prompt adherence, real-world physics understanding (e.g., lighting, spatial relationships), and readable text rendering.

BlackForestLabs logo
FLUX Kontext Problack-forest-labs/flux-kontext-pro

FLUX.1 Kontext [pro] is an advanced image generation and editing model from Black Forest Labs that supports both text prompts and reference images for in-context modifications.

BlackForestLabs logo
FLUX 2 Problack-forest-labs/flux-pro-2.0

FLUX.2 Pro (also styled as Flux-2-Pro or FLUX.2 [pro]) is a production-grade AI image generation and editing model developed by Black Forest Labs, released in November 2025 as the flagship of the FLUX.2 family. It excels in creating high-quality, photorealistic images up to 4 megapixels from text prompts, with advanced controls for editing, multi-reference image use (up to 8 references), and precise outputs suitable for commercial workflows like product photography, UI prototyping, and brand design.

BlackForestLabs logo
FLUX Schnellblack-forest-labs/flux-schnell

FLUX.1 [schnell] is a 12-billion-parameter rectified flow transformer model for text-to-image generation, developed by Black Forest Labs. "Schnell" (German for "fast") is the speed-optimized variant of the FLUX.1 model family, distilled for rapid inference — it can generate high-quality images in as few as 1–4 diffusion steps, making it significantly faster than typical diffusion models while maintaining strong prompt adherence and image fidelity.

Model scores sourced from ArtificialAnalysis