FLUX.2 Flex API
black-forest-labs/flux.2-flex
Make images with FLUX.2 Flex through UberLLM — $0.0165 per megapixel, routed to the cheapest healthy seller. Black Forest Labs. Fee included.
FLUX.2 Flex pricing
Price now
$0.0165 per megapixel
% off list
75% off
List price
$0.066 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-flex", "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 Flex API — FAQ
How much does FLUX.2 Flex cost?
FLUX.2 Flex is $0.0165 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 Flex?
Send a POST to https://api.uberllm.dev/v1/images/generations with your UberLLM key, model "black-forest-labs/flux.2-flex" and a prompt. The image comes back in the answer.