Introducing the official FLUX MCP • Try now
curl --request POST \
--url https://api.bfl.ai/v1/flux-tools/outpainting-v1 \
--header 'Content-Type: application/json' \
--header 'x-key: <api-key>' \
--data '
{
"input_image": "<string>",
"width": 65,
"height": 65,
"auto_crop": false,
"output_format": "png",
"prompt": "<string>",
"reference_offset_x": 123,
"reference_offset_y": 123
}
'{
"id": "<string>",
"polling_url": "<string>",
"cost": 123,
"input_mp": 123,
"output_mp": 123
}Submits an outpainting task. The input image is placed on a (width, height) canvas at the given offset, and the surrounding region is generated by a FLUX outpainting model.
curl --request POST \
--url https://api.bfl.ai/v1/flux-tools/outpainting-v1 \
--header 'Content-Type: application/json' \
--header 'x-key: <api-key>' \
--data '
{
"input_image": "<string>",
"width": 65,
"height": 65,
"auto_crop": false,
"output_format": "png",
"prompt": "<string>",
"reference_offset_x": 123,
"reference_offset_y": 123
}
'{
"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.
Public contract for /v1/flux-tools/outpainting-v1.
Base64-encoded input (reference) image.
Target output width.
x >= 64Target output height.
x >= 64If True, crop the input image to the canvas bounds when it extends beyond the edges. If False, an error is raised instead.
jpeg, png, webp Experimental: optional text guidance for the outpainted region. The model may not strictly follow this prompt; the visual content of the input image is the primary signal. Leave unset for default behavior.
Left offset (px) of the reference image's top-left corner on the output canvas. Negative values are allowed. None = center horizontally.
Top offset (px) of the reference image's top-left corner on the output canvas. Negative values are allowed. None = center vertically.
Was this page helpful?