Generate image with FLUX 2 Pro
Black Forest Labs FLUX 2 Pro — premium quality with megapixel-based resolution and seed control.
Asynchronous. Returns a job id (the image is not in this response). Poll GET /v1/images/{id} until status is succeeded — the generated image URLs are in that response’s images array (each { url, position }).
Authorizations
API key as a bearer token: Authorization: Bearer bpx_live_xxx
Body
Text description of the image to generate.
Output aspect ratio.
1:1, 4:3, 3:4, 9:16, 16:9, 2:3, 3:2 Optional image-to-image input. Provide a public image URL, a data URI, raw base64, or an uploaded-file URL from POST /v1/uploads. Omit for text-to-image.
Number of images to generate.
1 <= x <= 4Seed for reproducible generation. Omit for random.
Output resolution (megapixels).
0.5MP, 1MP, 2MP, 4MP