Skip to content
Dashboard

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.

Price
$0.014, Per megapixel
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.'
});
Read docs

Copy link to headingPlayground

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.

bfl logo
Prompt
Describe what you want the model to generate.
Reference images(optional)
Add up to 4 images
Images to generate
bfl logo

Your generated image will appear here

Copy link to headingProviders

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
Input
Output
Cache
Web Search
Capabilities
ZDR
No Training
Free Tier
Release Date
$0.014/MP
01/15/2026

Copy link to headingMore models by Black Forest Labs

Model
Context
Latency
Throughput
Input
Output
Cache
Web Search
Capabilities
Providers
ZDR
No Training
Free Tier
Release Date
$0.06/sec+2 more
bfl logo
08/04/2026
$0.015/MP
bfl logo
01/15/2026
$0.06/MP
bfl logo
11/25/2025
512
$0.08/img
bfl logo
05/29/2025
512
$0.04/img
bfl logo
prodia logo
05/29/2025
$0.05/img
bfl logo
10/01/2024

Copy link to headingAbout 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.

Copy link to headingWhat 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: Zero Data Retention is offered on a per-provider and model basis. See the documentation for details.
  • Authentication: AI Gateway authenticates requests using an API key or OIDC token. You do not need to manage provider credentials directly.

Copy link to headingWhen 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

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.

Copy link to headingFrequently 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.

Your use is subject to Black Forest Labs's Terms & Privacy Policies.