Seedance 2.0 20% OFF | Create in Video Generator →
Black Forest Labs·image·From $0.008/run

Flux 2 Klein API

Black Forest Labs FLUX.2 [klein] — high-quality 4B and 9B text-to-image and edit models with enhanced realism, crisper text generation, and LoRA support for fast customization. Base and LoRA variants for both generation and editing.

4B and 9B parameter tiers for text-to-image and edit. LoRA-supported variants (text-to-image-lora, edit-lora) enable fast customization. Edit endpoints accept natural-language instructions for precise modifications.

Flux 2 Klein sample output

About the Flux 2 Klein API

What Flux 2 Klein does, how it fits in the Black Forest Labs model lineup, and why teams reach for it.

Flux 2 Klein is a image generation and editing model from Black Forest Labs, available through the WaveSpeedAI REST API. Black Forest Labs FLUX.2 [klein] — high-quality 4B and 9B text-to-image and edit models with enhanced realism, crisper text generation, and LoRA support for fast customization. Base and LoRA variants for both generation and editing.

4B and 9B parameter tiers for text-to-image and edit. LoRA-supported variants (text-to-image-lora, edit-lora) enable fast customization. Edit endpoints accept natural-language instructions for precise modifications.

The Flux 2 Klein family on WaveSpeedAI ships 16 REST endpoints covering Lora-Support, Image-To-Image, Text-To-Image workflows. Each variant carries its own pricing, parameter knobs, and example outputs — pick the one that matches your input modality and production constraints, or call several from the same API key to compose multi-step pipelines.

Run Flux 2 Klein through the same API key, billing account, and rate-limit envelope you use for the other 1,000+ AI models on WaveSpeedAI. No separate vendor setup, no per-provider SDKs, no per-vendor rate-limit envelopes — one integration covers everything from text-to-image and text-to-video through audio synthesis, 3D generation, upscaling, and editing.

All Flux 2 Klein API endpoints

16 endpoints available now on WaveSpeedAI — pick the variant that matches your workflow.

Edit Lora — Flux 2 Klein lora-support preview from Black Forest Labs

Edit Lora

FLUX.2 [klein] Base 4B Edit with LoRA support enables precise image-to-image editing with natural language instructions, multi-reference support, and LoRA customization. Ready-to-use REST inference API, best performance, no cold starts, affordable pricing.

lora-supportfrom $0.020
Text To Image Lora — Flux 2 Klein lora-support preview from Black Forest Labs

Text To Image Lora

FLUX.2 [klein] Base 4B with LoRA support is a compact 4-billion-parameter text-to-image model that delivers fast generation with quality results and LoRA customization. Ready-to-use REST inference API, best performance, no cold starts, affordable pricing.

lora-supportfrom $0.015
Edit — Flux 2 Klein image-to-image preview from Black Forest Labs

Edit

FLUX.2 [klein] Base 4B Edit enables precise image-to-image editing with natural language instructions and multi-reference support. Ready-to-use REST inference API, best performance, no cold starts, affordable pricing.

image-to-imagefrom $0.015
Text To Image — Flux 2 Klein text-to-image preview from Black Forest Labs

Text To Image

FLUX.2 [klein] Base 4B is a compact 4-billion-parameter text-to-image model that delivers fast generation with quality results. Ready-to-use REST inference API, best performance, no cold starts, affordable pricing.

text-to-imagefrom $0.010
Edit Lora — Flux 2 Klein lora-support preview from Black Forest Labs

Edit Lora

FLUX.2 [klein] Base 9B Edit with LoRA support is a high-quality image editing model with 9B parameters, offering precise modifications using natural language instructions and personalized styles via custom LoRA adapters. Ready-to-use REST inference API, best performance, no cold starts, affordable pricing.

lora-supportfrom $0.026
Text To Image Lora — Flux 2 Klein lora-support preview from Black Forest Labs

Text To Image Lora

FLUX.2 [klein] Base 9B with LoRA support is a high-quality text-to-image model with 9B parameters, offering enhanced realism, crisper text generation, and fast LoRA customization. Ready-to-use REST inference API, best performance, no cold starts, affordable pricing.

lora-supportfrom $0.020
Edit — Flux 2 Klein image-to-image preview from Black Forest Labs

Edit

FLUX.2 [klein] Base 9B Edit is a high-quality image editing model with 9B parameters, offering precise modifications using natural language instructions. Ready-to-use REST inference API, best performance, no cold starts, affordable pricing.

image-to-imagefrom $0.021
Text To Image — Flux 2 Klein text-to-image preview from Black Forest Labs

Text To Image

FLUX.2 [klein] Base 9B is a high-quality text-to-image model with 9B parameters, offering enhanced realism and crisper text generation. Ready-to-use REST inference API, best performance, no cold starts, affordable pricing.

text-to-imagefrom $0.015
Edit Lora — Flux 2 Klein lora-support preview from Black Forest Labs

Edit Lora

FLUX.2 [klein] 4B Edit with LoRA support enables precise image-to-image editing with natural language instructions, multi-reference support, and LoRA customization. Ready-to-use REST inference API, best performance, no cold starts, affordable pricing.

lora-supportfrom $0.017
Text To Image Lora — Flux 2 Klein lora-support preview from Black Forest Labs

Text To Image Lora

FLUX.2 [klein] 4B with LoRA support is a compact 4-billion-parameter text-to-image model that delivers fast generation with quality results and LoRA customization. Ready-to-use REST inference API, best performance, no cold starts, affordable pricing.

lora-supportfrom $0.013
Text To Image Lora — Flux 2 Klein lora-support preview from Black Forest Labs

Text To Image Lora

FLUX.2 [klein] 9B with LoRA support is a high-quality text-to-image model with 9B parameters, offering enhanced realism, crisper text generation, and fast LoRA customization. Ready-to-use REST inference API, best performance, no cold starts, affordable pricing.

lora-supportfrom $0.015
Edit Lora — Flux 2 Klein lora-support preview from Black Forest Labs

Edit Lora

FLUX.2 [klein] 9B Edit with LoRA support is a high-quality image editing model with 9B parameters, offering precise modifications using natural language instructions and personalized styles via custom LoRA adapters. Ready-to-use REST inference API, best performance, no cold starts, affordable pricing.

lora-supportfrom $0.021
Edit — Flux 2 Klein image-to-image preview from Black Forest Labs

Edit

FLUX.2 [klein] 4B Edit enables precise image-to-image editing with natural language instructions and multi-reference support. Ready-to-use REST inference API, best performance, no cold starts, affordable pricing.

image-to-imagefrom $0.012
Edit — Flux 2 Klein image-to-image preview from Black Forest Labs

Edit

FLUX.2 [klein] 9B Edit is a high-quality image editing model with 9B parameters, offering precise modifications using natural language instructions. Ready-to-use REST inference API, best performance, no cold starts, affordable pricing.

image-to-imagefrom $0.016
Text To Image — Flux 2 Klein text-to-image preview from Black Forest Labs

Text To Image

FLUX.2 [klein] 9B is a high-quality text-to-image model with 9B parameters, offering enhanced realism and crisper text generation. Ready-to-use REST inference API, best performance, no cold starts, affordable pricing.

text-to-imagefrom $0.010
Text To Image — Flux 2 Klein text-to-image preview from Black Forest Labs

Text To Image

FLUX.2 [klein] 4B is a compact 4-billion-parameter text-to-image model that delivers fast generation with quality results. Ready-to-use REST inference API, best performance, no cold starts, affordable pricing.

text-to-imagefrom $0.008

See Flux 2 Klein in action

Real outputs generated by the Flux 2 Klein API. Hover any video to preview, click to open the full-size viewer.

How to use the Flux 2 Klein API

Four steps from signup to a finished generation. Full Python, Node.js, and cURL examples are in the API section below.

  1. 1

    Get an API key

    Sign up for a WaveSpeedAI account and copy your API key from the dashboard. New accounts come with free starter credits — enough to run the playground a few dozen times before billing kicks in.

  2. 2

    Submit a prediction

    POST your input as JSON to https://api.wavespeed.ai/api/v3/wavespeed-ai/flux-2-klein-9b/text-to-image. The endpoint returns a prediction id immediately — generations are async so you don't hold an open connection during inference.

  3. 3

    Poll for completion

    GET https://api.wavespeed.ai/api/v3/predictions/{request_id}/result every 1-2 seconds. The response includes a status field; keep polling until it flips from"queued" or"processing" to"completed".

  4. 4

    Read the output URL

    Once status is"completed", read the URL from data.outputs[0]. The URL points to your generated media on the WaveSpeedAI CDN — image, video, audio, or 3D file depending on the Flux 2 Klein variant you called.

What you can build with Flux 2 Klein

Common workflows developers and creators use the Flux 2 Klein API for.

9B text-to-image with crisp text

wavespeed-ai/flux-2-klein-9b/text-to-image is a high-quality 9B text-to-image model with enhanced realism and crisper text generation — the higher-fidelity Klein tier for delivery work.

9btext-to-imagetypography

4B tier for speed and cost

wavespeed-ai/flux-2-klein-4b/text-to-image offers the same Klein architecture at 4B parameters — useful for prompt iteration and high-volume pipelines where 9B fidelity isn't required.

4bfastiteration

Natural-language image editing

wavespeed-ai/flux-2-klein-9b/edit performs precise modifications using natural-language instructions — generate a base image, then refine via edit rather than full re-generation.

editnlprefinement

LoRA customization

text-to-image-lora and edit-lora variants support fast LoRA customization for style, character, or brand consistency — apply trained LoRA checkpoints without fine-tuning the base model.

loracustomizationstyle

Enhanced realism

Catalog claim: enhanced realism across Klein variants. Write prompts with specific lighting, material, and camera language to pull from FLUX's photorealistic training.

realismphotorealisticlighting

4B vs 9B tier selection

Same prompt format across 4B and 9B endpoints — iterate on 4B for direction, switch to 9B for delivery. Edit variants mirror the same tier structure.

tiers4b-9bworkflow

Tips for prompting Flux 2 Klein

Practical advice for getting better outputs from Flux 2 Klein — drawn from the patterns that work across image models in production pipelines.

Iterate on 4B, deliver on 9B

Same prompt format across 4B and 9B tiers. Use flux-2-klein-4b for prompt direction and A/B testing; switch to 9b for delivery when crisper text and realism matter.

Use edit for refinements

Generate with text-to-image, refine with edit using natural-language instructions — faster convergence than re-rolling full generations.

LoRA for production consistency

Train or apply LoRA checkpoints via text-to-image-lora and edit-lora when you need recurring style, character, or brand identity across a production run.

Typography in prompts

Catalog claim: crisper text generation. Include the exact text you want rendered in quotes within the prompt — Klein is tuned for readable typography in marketing creatives.

Structured prompts beat boilerplate

Subject + scene + lighting + camera language pulls best from FLUX training. Avoid generic quality modifiers — specificity wins.

Flux 2 Klein API pricing

Pricing is per-output. The final charge scales with the parameters you set in each variant's playground (resolution, duration, output count, references).

Call the Flux 2 Klein API

Sign up for an API key at wavespeed.ai/accesskey, then submit a prediction via REST. The playground generates ready-to-paste samples for any combination of inputs.

HTTP example
# 1. Submit a prediction
curl -X POST "https://api.wavespeed.ai/api/v3/wavespeed-ai/flux-2-klein-9b/text-to-image" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $WAVESPEED_API_KEY" \
  -d '{}'

# 2. Poll the result until status = "completed"
curl -X GET "https://api.wavespeed.ai/api/v3/predictions/{request_id}/result" \
  -H "Authorization: Bearer $WAVESPEED_API_KEY"

# Read the output URL from data.outputs[0].
Node.js example
// npm install wavespeed
const WaveSpeed = require('wavespeed');
const client = new WaveSpeed(); // reads WAVESPEED_API_KEY

const result = await client.run("wavespeed-ai/flux-2-klein-9b/text-to-image", {});
console.log(result.outputs[0]); // → URL of the generated output
Python example
# pip install wavespeed
import wavespeed

output = wavespeed.run(
    "wavespeed-ai/flux-2-klein-9b/text-to-image",
    {}
)
print(output["outputs"][0])  # → URL of the generated output

Flux 2 Klein vs alternatives

When to pick Flux 2 Klein over similar models on WaveSpeedAI.

Flux 2 Klein vs Seedream 5 Lite

Seedream 5 Lite emphasizes typography and ships Sequential variants for multi-image consistency. Flux 2 Klein covers LoRA customization natively and crisper text generation in the FLUX architecture at competitive per-call cost.

Flux 2 Klein vs GPT Image 2

GPT Image 2 has explicit quality tiers (low/medium/high) and reference-image edit. Flux 2 Klein ships dedicated LoRA endpoints and 4B/9B size tiers for cost-quality trade-offs.

Flux 2 Klein vs Qwen Image

Qwen Image covers multi-image Edit-Plus, camera angles, and layered compositing. Flux 2 Klein stays focused on high-quality text-to-image and natural-language edit with LoRA support — simpler surface, strong realism.

Flux 2 Klein API — Frequently asked questions

Pricing, license, integration — common questions about running Flux 2 Klein on WaveSpeedAI.

What is the Flux 2 Klein API?

Flux 2 Klein is a Black Forest Labs image generation model exposed as a REST API on WaveSpeedAI. Black Forest Labs FLUX.2 [klein] — high-quality 4B and 9B text-to-image and edit models with enhanced realism, crisper text generation, and LoRA support for fast customization. Base and LoRA variants for both generation and editing. You can call it programmatically or try it from the playground linked above.

How do I call the Flux 2 Klein API?

Sign up for a WaveSpeedAI account, copy your API key from /accesskey, then POST to https://api.wavespeed.ai/api/v3/wavespeed-ai/flux-2-klein-9b/text-to-image with your input as JSON. The endpoint returns a prediction id; poll the prediction endpoint until status flips to "completed", then read the output URL from data.outputs[0]. Full Python / Node.js / cURL examples are above.

How much does the Flux 2 Klein API cost?

Flux 2 Klein starts at $0.008 per run. The exact cost scales with the parameters you set (resolution, duration, output count, references). The live cost preview next to the Generate button in the playground shows the exact price for your current input.

Which Flux 2 Klein variants are available?

WaveSpeedAI hosts 16 Flux 2 Klein endpoints: wavespeed-ai/flux-2-klein-base-4b/edit-lora, wavespeed-ai/flux-2-klein-base-4b/text-to-image-lora, wavespeed-ai/flux-2-klein-base-4b/edit, wavespeed-ai/flux-2-klein-base-4b/text-to-image, wavespeed-ai/flux-2-klein-base-9b/edit-lora, wavespeed-ai/flux-2-klein-base-9b/text-to-image-lora, wavespeed-ai/flux-2-klein-base-9b/edit, wavespeed-ai/flux-2-klein-base-9b/text-to-image, and more. Each variant has its own playground page and pricing.

Can I use Flux 2 Klein outputs commercially?

Commercial usage rights follow the Black Forest Labs model license. Most Black Forest Labs models permit commercial output use; see each model's playground page for the specific license summary, and WaveSpeedAI's Terms of Service for platform-level conditions.

Why use Flux 2 Klein on WaveSpeedAI instead of going direct?

One API key + one billing account across Flux 2 Klein AND 1,000+ other AI models from other providers. No per-vendor SDK setup, no separate rate-limit envelopes, no rewrite-per-vendor integration code. Pricing is typically at parity with or below Black Forest Labs's direct API.

About Black Forest Labs

The team behind Flux 2 Klein and the broader Black Forest Labs model lineup on WaveSpeedAI.

Black Forest Labs created the FLUX family of open-weight image models. FLUX.2 [klein] ships 4B and 9B text-to-image and edit endpoints with enhanced realism, crisper text rendering, and native LoRA support — a cost-efficient alternative to larger FLUX variants for high-volume image pipelines.

Start building with Flux 2 Klein on WaveSpeedAI

Free starter credits on signup. One API key across 1,000+ AI models from Black Forest Labs and every other provider.