Black Forest Labs logo

FLUX.2 Klein 4B API

black-forest-labs/flux.2-klein-4b

Make images with FLUX.2 Klein 4B through UberLLM — $0.0041 per megapixel, routed to the cheapest healthy seller. Black Forest Labs. Fee included.

FLUX.2 Klein 4B pricing

Price now
$0.0041 per megapixel
% off list
75% off
List price
$0.0165 per megapixel

UberLLM routes every request to the cheapest healthy seller for this model. The price shown includes UberLLM’s 10% fee.

How to use it

One request with your UberLLM key; the image comes back in the answer.

bash
# Make an image: the answer comes back when it is ready.
curl https://api.uberllm.dev/v1/images/generations \
  -H "Authorization: Bearer $UBERLLM_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "black-forest-labs/flux.2-klein-4b", "prompt": "a red apple on a white table", "n": 1, "size": "1024x1024"}'

# → {"created": …, "data": [{"url": "https://api.uberllm.dev/v1/media/artifacts/<id>/0"}]}
#   (or "b64_json" when you send "response_format": "b64_json")

# Download it
curl -L -o image.png -H "Authorization: Bearer $UBERLLM_API_KEY" "https://api.uberllm.dev/v1/media/artifacts/<id>/0"

FLUX.2 Klein 4B API — FAQ

How much does FLUX.2 Klein 4B cost?

FLUX.2 Klein 4B is $0.0041 per megapixel through UberLLM right now. That price for an image includes UberLLM's 10% fee. A request that fails costs nothing.

How do I make an image with FLUX.2 Klein 4B?

Send a POST to https://api.uberllm.dev/v1/images/generations with your UberLLM key, model "black-forest-labs/flux.2-klein-4b" and a prompt. The image comes back in the answer.

More Black Forest Labs models