Skip to main content
POST
/
v1
/
flux-kontext-pro
Edit or create an image with Flux Kontext Pro
curl --request POST \
  --url https://api.bfl.ai/v1/flux-kontext-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>",
  "seed": 42,
  "aspect_ratio": "<string>",
  "output_format": "jpeg",
  "webhook_url": "<string>",
  "webhook_secret": "<string>",
  "prompt_upsampling": false,
  "safety_tolerance": 2
}'
{
  "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
seed
integer | null
Example:
aspect_ratio
string | null
output_format
enum<string> | null
default:png
Available options:
jpeg,
png
webhook_url
string<uri> | null
Required string length: 1 - 2083
webhook_secret
string | null
prompt_upsampling
boolean
default:false
safety_tolerance
integer
default:2
Required range: 0 <= x <= 6
Example:

Response

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