Text-to-Image Generation
Black Forest Labs
flux-2-pro
Generate an image from a text prompt using FLUX.2 [pro]. Supports up to 4MP resolution and multi-reference consistency. Returns the result synchronously as base64-encoded JSON.
POST
Text-to-Image Generation
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
Model ID
Available options:
flux-2-pro Example:
"flux-2-pro"
Text description of the image to generate.
Example:
"A cute baby polar bear"
Number of images to generate.
Required range:
1 <= x <= 4Output image size, e.g. 1024x1024. Supports up to 4MP resolution.
Example:
"1024x1024"
Output image format.
Available options:
jpeg, png Example:
"jpeg"
Random seed for reproducible generation.