🚀 FLUX.2 [klein] — Sub-second generation. Open weights, Apache 2.0, API from $0.014/image. Learn more →
curl --request POST \
--url https://api.bfl.ai/v1/flux-pro-1.0-fill \
--header 'Content-Type: application/json' \
--header 'x-key: <api-key>' \
--data '
{
"image": "<string>",
"mask": "<string>",
"prompt": "ein fantastisches bild",
"steps": 50,
"prompt_upsampling": false,
"seed": 123,
"guidance": 60,
"output_format": "jpeg",
"safety_tolerance": 2,
"webhook_url": "<string>",
"webhook_secret": "<string>"
}
'{
"id": "<string>",
"polling_url": "<string>",
"cost": 123,
"input_mp": 123,
"output_mp": 123
}Submits an image generation task with the FLUX.1 Fill [pro] model using an input image and mask. Mask can be applied to alpha channel or submitted as a separate image.
curl --request POST \
--url https://api.bfl.ai/v1/flux-pro-1.0-fill \
--header 'Content-Type: application/json' \
--header 'x-key: <api-key>' \
--data '
{
"image": "<string>",
"mask": "<string>",
"prompt": "ein fantastisches bild",
"steps": 50,
"prompt_upsampling": false,
"seed": 123,
"guidance": 60,
"output_format": "jpeg",
"safety_tolerance": 2,
"webhook_url": "<string>",
"webhook_secret": "<string>"
}
'{
"id": "<string>",
"polling_url": "<string>",
"cost": 123,
"input_mp": 123,
"output_mp": 123
}Documentation Index
Fetch the complete documentation index at: https://docs.bfl.ml/llms.txt
Use this file to discover all available pages before exploring further.
A Base64-encoded string representing the image you wish to modify. Can contain alpha mask if desired.
A Base64-encoded string representing a mask for the areas you want to modify in the image. The mask should be the same dimensions as the image and in black and white. Black areas (0%) indicate no modification, while white areas (100%) specify areas for inpainting. Optional if you provide an alpha mask in the original image. Validation: The endpoint verifies that the dimensions of the mask match the original image.
The description of the changes you want to make. This text guides the inpainting process, allowing you to specify features, styles, or modifications for the masked area.
"ein fantastisches bild"
Number of steps for the image generation process
15 <= x <= 5050
Whether to perform upsampling on the prompt. If active, automatically modifies the prompt for more creative generation
Optional seed for reproducibility
Guidance strength for the image generation process
1.5 <= x <= 100Output format for the generated image. Can be 'jpeg', 'png', or 'webp'.
jpeg, png, webp Tolerance level for input and output moderation. Between 0 and 6, 0 being most strict, 6 being least strict.
0 <= x <= 62
URL to receive webhook notifications
1 - 2083Optional secret for webhook signature verification
Was this page helpful?