Skip to content

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.

Image Gen
index.ts
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.

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
Context
Latency
Throughput
Input
Output
Cache
Web Search
Per Query
Capabilities
ZDR
No Training
Release Date
Black Forest Labs
Legal:Terms
Privacy

More models by Black Forest Labs

Model
Context
Latency
Throughput
Input
Output
Cache
Web Search
Per Query
Capabilities
Providers
ZDR
No Training
Release Date
512
bfl logo
06/01/2025
512
bfl logo
prodia logo
06/01/2025
bfl logo
10/01/2024
bfl logo
bfl logo
67K
bfl logo

About FLUX.2 [klein] 4B

Black Forest Labs released FLUX.2 [klein] 4B on N/A 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.

Frequently Asked Questions

  • What does the Apache 2.0 license allow for FLUX.2 [klein] 4B?

    Apache 2.0 permits unrestricted commercial use, modification, redistribution, and sublicensing of the model weights. Black Forest Labs adds no additional terms on top of the standard Apache 2.0 conditions. You can incorporate Klein 4B into commercial products or open-source projects without seeking separate permission.

  • Is the Klein 4B available through AI Gateway the same as the open-weight release?

    The API version is the step-distilled variant, optimized for inference speed. The undistilled Klein 4B Base is available as open weights for workflows that need the full training signal rather than minimum generation latency.

  • What image tasks does FLUX.2 [klein] 4B support?

    Klein 4B handles text-to-image (T2I), image-to-image editing (I2I), and multi-reference generation in a single unified model. You don't need separate checkpoints for different task types.

  • How does Klein 4B differ from Klein 9B in terms of licensing?

    Klein 4B is Apache 2.0, fully open for commercial and non-commercial use. Klein 9B is released under the FLUX Non-Commercial License, which restricts commercial deployment. For production commercial pipelines that need open licensing, Klein 4B is the appropriate choice.

  • What does FLUX.2 [klein] 4B cost per image?

    Current pricing is shown on this page. AI Gateway routes across providers, and rates may vary by provider.