Home › Model Docs › Black Forest Labs › FLUX.2 Klein 4B

FLUX.2 Klein 4B

Black Forest Labs · Image generation

No pricing information is on file for this model yet.

Pricing

Sellers set their own ask as a discount off the official list price, capped at 50%. The figure above is the deepest ask currently in force.

All prices are shown in US dollars; billing and settlement are in CNY.

About this model

FLUX.2 [klein] 4B is the fastest and most cost-effective model in the FLUX.2 family, optimized for high-throughput use cases while maintaining excellent image quality. Pricing is based on the output...

Parameters

Context windownot published
Max outputnot published
Input modalitiestext, image
Output modalitiesimage
Modality signaturetext+image->image
Endpoints1

Capabilities

Tool callingVision inputReasoningPrompt cachingStructured output

How to call it

curl

curl https://ai.dijinlong.com/v1/images/generations \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"flux.2-klein-4b","prompt":"A cat sunbathing on a windowsill, backlit afternoon light, film look","n":1,"size":"1024x1024"}'

Python

from openai import OpenAI

client = OpenAI(base_url="https://ai.dijinlong.com/v1", api_key="YOUR_API_KEY")
resp = client.images.generate(
    model="flux.2-klein-4b",
    prompt="A cat sunbathing on a windowsill, backlit afternoon light, film look",
    n=1,
    size="1024x1024",
)
print(resp.data[0].url)

The call returns image URLs (some models return b64_json inline). Set size and n to control dimensions and count.

Request parameters

Supported request parameters

seed

Other Black Forest Labs models

Explore

FAQ

How many supply endpoints serve FLUX.2 Klein 4B?

1 endpoints currently serve this model on LONG AI, so a single seller outage does not take it offline.