FLUX.2 [klein] 4B
FLUX.2 [klein] 4B is Black Forest Labs's Apache 2.0 licensed compact image model. It delivers sub-second text-to-image, image editing, and multi-reference generation from a single checkpoint.
import { experimental_generateImage as generateImage } from 'ai';
const result = await generateImage({ model: 'bfl/flux-2-klein-4b', prompt: 'A red balloon on a wooden table.'});Playground
Try out FLUX.2 [klein] 4B by Black Forest Labs. Usage is billed to your team at API rates. Free users (those who haven't made a payment) get $5 of credits every 30 days.
Your generated image will appear here
Providers
Route requests across multiple providers. Copy a provider slug to set your preference. Visit the docs for more info. Using a provider means you agree to their terms, listed under Legal.
| Provider |
|---|
More models by Black Forest Labs
| Model |
|---|
About FLUX.2 [klein] 4B
Black Forest Labs released FLUX.2 [klein] 4B on January 15, 2026 as the entry point of the Klein family: compact image models Black Forest Labs positions for minimal latency. "Klein" is German for "small," reflecting the model's compact parameter footprint and minimal latency target.
The Apache 2.0 license separates Klein 4B from the rest of the FLUX family. Klein 9B carries the FLUX Non-Commercial License (NCL), and FLUX.2 Pro is a proprietary API model. Klein 4B places no commercial use restrictions on its weights. You can deploy it in commercial products, include it in open-source projects, and redistribute derivative works without seeking additional permission from Black Forest Labs.
The model unifies text-to-image generation, image-to-image editing, and multi-reference generation in a single checkpoint. Black Forest Labs describes Klein 4B as "compact but capable." The entire inference pipeline targets under 500 milliseconds.
What To Consider When Choosing a Provider
- Configuration: Apache 2.0 licensing means you can incorporate Klein 4B weights into commercial products, fork them, modify them, and redistribute them. That's a meaningful distinction for teams with open-source or compliance requirements. Check N/A for the managed API.
- Zero Data Retention: AI Gateway does not currently support Zero Data Retention for this model. See the documentation for models that support ZDR.
- Authentication: AI Gateway authenticates requests using an API key or OIDC token. You do not need to manage provider credentials directly.
When to Use FLUX.2 [klein] 4B
Best For
- Apache 2.0 licensing requirements: Klein 4B is the only FLUX.2 model with unrestricted commercial use rights for commercial products and open-source projects
- Sub-second latency: Interactive design tools, live creative interfaces, and agentic visual loops where speed is a product requirement
- One-model workflows: Text-to-image, image editing, and multi-reference generation unified in a single checkpoint
Consider Alternatives When
- Maximum output quality: FLUX.2 Klein 9B or FLUX.2 Pro deliver higher fidelity
- Masked region inpainting: FLUX.1 Fill Pro is purpose-built for mask-based fill rather than generative or editing tasks
Conclusion
FLUX.2 [klein] 4B is the Apache 2.0 entry in the FLUX.2 lineup, capable of sub-second image generation and editing. If open licensing and a compact, fast model are the requirements, Klein 4B is the right starting point in the FLUX.2 family.