Skip to main content
POST
/
v1
/
flux-2-pro
Generate or edit an image with FLUX.2 [PRO]
curl --request POST \
  --url https://api.bfl.ai/v1/flux-2-pro \
  --header 'Content-Type: application/json' \
  --header 'x-key: <api-key>' \
  --data '{
  "prompt": "ein fantastisches bild",
  "input_image": "<string>",
  "input_image_2": "<string>",
  "input_image_3": "<string>",
  "input_image_4": "<string>",
  "input_image_5": "<string>",
  "input_image_6": "<string>",
  "input_image_7": "<string>",
  "input_image_8": "<string>",
  "seed": 42,
  "width": 65,
  "height": 65,
  "safety_tolerance": 2,
  "output_format": "jpeg",
  "webhook_url": "<string>",
  "webhook_secret": "<string>"
}'
{
  "id": "<string>",
  "polling_url": "<string>",
  "cost": 123,
  "input_mp": 123,
  "output_mp": 123
}

Authorizations

x-key
string
header
required

Body

application/json
prompt
string
required
Example:
input_image
string | null
input_image_2
string | null
input_image_3
string | null
input_image_4
string | null
input_image_5
string | null
input_image_6
string | null
input_image_7
string | null
input_image_8
string | null
seed
integer | null
Example:
width
integer | null
default:0
Required range: x >= 64
height
integer | null
default:0
Required range: x >= 64
safety_tolerance
integer
default:2
Required range: 0 <= x <= 5
Example:
output_format
enum<string> | null
default:jpeg
Available options:
jpeg,
png
webhook_url
string<uri> | null
Required string length: 1 - 2083
webhook_secret
string | null

Response

  • AsyncResponse
  • AsyncWebhookResponse
id
string
required
polling_url
string
required
cost
number | null
input_mp
number | null
output_mp
number | null