← All modelsText to image · Black Forest Labs

Flux 2

Next-gen flagship with sharp subject fidelity and tight prompt adherence, in base and highest-fidelity tiers.

Text to imageBlack Forest Labs$0.02 / imagetext-to-imagehigh-qualitypro
Preview
Flux 2
Pricing
$0.02/ image

$0.02 per image. For $1 you can run this model 50 times.

Pay only for successful generations. No idle, no minimums, no per-seat.

API

Wire it up.

EndpointPOST https://api.tryinfer.com/v1/inference/flux-2-pro/text-to-image
request
curl https://api.tryinfer.com/v1/inference/flux-2-pro/text-to-image \
-H "Authorization: Bearer $INFER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"prompt": "editorial portrait of a chef in a warm kitchen, medium format, shallow depth of field"
}
}'
Parameters
NameTypeRequiredDefaultDescription
seedinteger
promptstringYes
num_imagesinteger1
aspect_ratiostring1:121:916:93:24:31:13:42:39:16
output_formatstringpngjpegpngwebp

Authenticate with a bearer token. Get an API key →

Try it

Run Flux 2 now.

Try it in the playground