blackforestlabs

Black Forest Labs: FLUX.2 Klein 4B

blackforestlabs/flux-2-klein-4b
Context

41K

Input

text, image

Output

image

Tool calling

Not listed

About this model

FLUX.2 Klein 4B is Black Forest Labs' compact, fast image generation and editing model designed for low-latency inference and efficient local deployment. It uses a 4-billion-parameter flow-based architecture and supports text-to-image generation, image-to-image editing, and multi-reference visual composition. The model is suitable for rapid prototyping, interactive creative applications, local image generation, and resource-conscious deployment. The open-weight 4B variant is available under the Apache 2.0 license.

Input modalities

text

Accepted as model input

image

Accepted as model input

Providers

Available routing options for this model through OneInfer.

Image generation

$0.014 / image

Image generation

$0.015 / image

Routing

OneInfer optimized

Pricing

Current OneInfer pricing for this model.

UsagePrice
Image generationstandard · 512x512$0.014 / image
Image generationstandard · 1024x1024$0.014 / image
Image generationstandard · 1024x1536$0.015 / image
Image generationstandard · 1536x1024$0.015 / image
Image generationstandard · 1920x1088$0.015 / image
Image generationstandard · 1088x1920$0.015 / image
Image generationstandard · 1024x2048$0.015 / image
Image generationstandard · 2048x1024$0.015 / image
Image generationstandard · 1536x1536$0.016 / image
Image generationstandard · 2048x2048$0.017 / image

Performance & Benchmarks

Independent evaluations and live cluster operational metrics

We haven’t measured this model yet.

API Guide

API docs
  1. 1

    Generate your access token

    Use your API key to generate the JWT access token required by the Models API.

  2. 2

    Add the JWT token

    Copy the generated JWT token and replace JWT_TOKEN in the example below.

  3. 3

    Check your credits

    If your balance is too low, before calling the model.

  4. 4

    Run the API example

    Choose your preferred language, copy the example, and send your first model request.

    curl -X POST https://api.oneinfer.ai/v1/ula/generate-image \
      -H "Authorization: Bearer YOUR_JWT_TOKEN" \
      -H "Content-Type: application/json" \
      -d '{
      "provider": "blackforestlabs",
      "model": "blackforestlabs/flux-2-klein-4b",
      "messages": [
        {
          "role": "user",
          "content": "A futuristic city skyline at dusk"
        }
      ],
      "number": 1,
      "size": "512x512",
      "quality": "standard"
    }'

Community Model Reviews & Ratings

Verified visitor & developer evaluations on Black Forest Labs: FLUX.2 Klein 4B's real-world intelligence, code accuracy, and speed

4.8
Community consensus rating
Top Community Consensus Tags:
Be the first to rate and tag this model's coding and reasoning strengths!

No community reviews yet

Be the first to share developer feedback on Black Forest Labs: FLUX.2 Klein 4B's latency, code accuracy, and reliability in production.