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