FLUX.2 Klein 9B Preview API

Preview release of the compact FLUX.2 Klein 9B model.

Modalities
Image, TextImage
Price
$0.015per Megapixel
Model type
Image generation
Released
Jun 12, 2026

FLUX.2 Klein 9B Preview overview

Sample FLUX.2 Klein 9B Preview image generated through AI/ML API: A ginger cat asleep on a stack of exactly three hardcover books in a rainy bookshop window at dusk. Gold lette

FLUX.2 Klein 9B Preview specs

Model ID
blackforestlabs/flux-2-klein-9b-preview
Developer
Black Forest Labs
Input
Image, Text
Output
Image
Endpoint
POST https://api.aimlapi.com/v1/images/generations

What is FLUX.2 Klein 9B Preview API?

Preview release of the compact FLUX.2 Klein 9B model.

FLUX.2 Klein 9B Preview API Pricing
- Pricing on request

Where to Use FLUX.2 Klein 9B Preview

Use cases

Generate or edit images from text prompts. It is documented for image generation and image-to-image editing workflows, including prompts with optional photos.

Create ad variants with consistent faces and product mockups in different contexts. The documentation also gives fashion editorials as an example where model identity stays consistent across complex scenes.

Use it for real-time, interactive image applications. The model is described as fast enough for prompt-and-preview workflows and as suitable for production apps where latency matters.

Use it for multi-reference image editing. The docs specifically note maintaining identity across complex scenes and support for advanced editing workflows with multiple reference images.

FLUX.2 Klein 9B Preview benchmarks by Artificial Analysis

Human-preference results for FLUX.2 Klein 9B Preview in text to image, next to models available on AI/ML API. Data retrieved Nov 3, 2026.

Text to image

Elo · text-to-image arena

AI/ML API price

USD per Megapixel

Models on AI/ML API

Arena results for models you can call with the same API key.

Text to image

Blind pairwise human votes on images generated from text prompts. FLUX.2 Klein 9B Preview ranks #68 of 98.

FLUX.2 Klein 9B Preview API pricing

FLUX.2 Klein 9B Preview pricing in US dollars
UsagePriceUnit
Image generation$0.015per Megapixel

The final price depends on request parameters such as resolution or duration.

Prices from the AI/ML API price list, checked on Nov 4, 2026.

FLUX.2 Klein 9B Preview vs other image models: prices

AI/ML API rates for 5 models, per Megapixel.

AI/ML API prices in USD per Megapixel
ModelPer Megapixel
FLUX.2 Klein 9B Preview$0.015
FLUX.2 Klein 4B$0.014
FLUX.2 Klein 9B$0.015
FLUX.2 Pro Preview$0.03
FLUX.2 Flex$0.05

How to use the FLUX.2 Klein 9B Preview API

View docs

Build with your agent

Give your agent the model details, code and documentation.

1Get your API key

Create API key
export AIMLAPI_KEY="8f2b4c7d9a1e6b3f…"

2Make your first request

curl 'https://api.aimlapi.com/v1/images/generations' \
  -H "Authorization: Bearer $AIMLAPI_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "model": "blackforestlabs/flux-2-klein-9b-preview",
  "prompt": "A ginger cat asleep on a stack of exactly three hardcover books in a rainy bookshop window at dusk. Gold lettering on the glass reads OPEN LATE. Warm lamp light inside, raindrops and blurred neon reflections outside, 35mm film photo."
}'

Related articles

All posts

FLUX.2 Klein 9B Preview FAQ

What inputs and outputs does FLUX.2 Klein 9B Preview support?

FLUX.2 Klein 9B Preview takes image, text as input and returns image.

When was FLUX.2 Klein 9B Preview released?

FLUX.2 Klein 9B Preview became available on June 12, 2026.

How much does FLUX.2 Klein 9B Preview cost?

FLUX.2 Klein 9B Preview costs $0.015 per Megapixel on AI/ML API, billed as you go with no subscription.

How is FLUX.2 Klein 9B Preview billed?

FLUX.2 Klein 9B Preview is billed per generation, a fixed charge per output rather than by prompt length.

Can FLUX.2 Klein 9B Preview take an existing image as input?

Yes, FLUX.2 Klein 9B Preview accepts image input as well as a text prompt.

Who created FLUX.2 Klein 9B Preview?

FLUX.2 Klein 9B Preview was built by Black Forest Labs.

How do I call FLUX.2 Klein 9B Preview on AI/ML API?

Send a request to https://api.aimlapi.com/v1/images/generations with blackforestlabs/flux-2-klein-9b-preview as the model id.

Is FLUX.2 Klein 9B Preview available through a single API key?

Yes. FLUX.2 Klein 9B Preview is served through AI/ML API, so the same key and endpoint format used for other models applies.

Is this a full release or a preview version of the model?

It is a preview release of the compact FLUX.2 Klein 9B model from Black Forest Labs.

What is the FLUX.2 Klein 9B Preview model ID?

Use blackforestlabs/flux-2-klein-9b-preview as the model parameter. Requests go to https://api.aimlapi.com/v1/images/generations with your AI/ML API key.

Start building with FLUX.2 Klein 9B Preview

FLUX.2 Klein 9B Preview API

blackforestlabs/flux-2-klein-9b-preview

Build with your agent

Give your agent the model details, code and documentation.

1Get your API key

Create API key
export AIMLAPI_KEY="8f2b4c7d9a1e6b3f…"

2Make your first request

curl 'https://api.aimlapi.com/v1/images/generations' \
  -H "Authorization: Bearer $AIMLAPI_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "model": "blackforestlabs/flux-2-klein-9b-preview",
  "prompt": "A ginger cat asleep on a stack of exactly three hardcover books in a rainy bookshop window at dusk. Gold lettering on the glass reads OPEN LATE. Warm lamp light inside, raindrops and blurred neon reflections outside, 35mm film photo."
}'