Tasks
- POSTEdit or create an image with Flux Kontext Pro
- POSTEdit or create an image with Flux Kontext Max
- POSTGenerate an image with FLUX 1.1 [pro].
- POSTGenerate an image with FLUX.1 [pro].
- POSTGenerate an image with FLUX.1 [dev].
- POSTGenerate an image with FLUX 1.1 [pro] with ultra mode and optional raw mode.
- POSTGenerate an image with FLUX.1 Fill [pro] using an input image and mask.
- POSTExpand an image by adding pixels on any side.
- POSTGenerate an image with FLUX.1 Canny [pro] using a control image.
- POSTGenerate an image with FLUX.1 Depth [pro] using a control image.
- POSTFinetune
- POSTGenerate an image with FLUX.1 [pro] finetune
- POSTGenerate an image with FLUX.1 Depth [pro] finetune using a control image.
- POSTGenerate an image with FLUX.1 Canny [pro] finetune using a control image.
- POSTGenerate an image with FLUX.1 Fill [pro] finetune using an input image and mask.
- POSTGenerate an image with FLUX 1.1 [pro] finetune with ultra mode.
Tasks
Edit or create an image with Flux Kontext Pro
POST
/
v1
/
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>",
"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>"
}
Authorizations
Body
application/json
Response
200
application/json
Successful Response
The response is of type object
.
The response is of type object
.
The response is of type object
.
Was this page helpful?
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>",
"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>"
}
Assistant
Responses are generated using AI and may contain mistakes.