v1

latestOpenAPI 3.1.02026-07-2611077199.5 KB

Generate or edit images using the Flux Pro 1.1 model based on text prompts. <a href='https://docs.bfl.ai/api/tasks/generate-an-image-with-flux-11-[pro]' target='_blank'>Official documentation</a>

post/bfl/v1/flux-pro-1.1

Request body

promptstring required

Image description. Note: Flux supports multilingual understanding, but English performs best in testing.

image_promptstring

Reference image, base64 encoded

widthstring

Width of generated image. Range: 256-1440, must be a multiple of 32. Default: 1024

heightstring

Height of generated image. Range: 256-1440, must be a multiple of 32. Default: 768

output_format'jpeg' | 'png'

Output format

prompt_upsamplingboolean

Whether to enable prompt upsampling. true - yes, false - no

safety_toleranceinteger

Safety tolerance level for input and output adjustment. Range: 0-6, where 0 is strictest and 6 is most permissive. Default: 2

webhook_urlstring

Asynchronous callback URL

Example request

{
  "output_format": "jpeg"
}

Response

Request successful

statusstring required
messagestring required
dataobject required

Example response

{
  "status": "SUCCESS",
  "message": "success",
  "data": {
    "jobId": "jobId"
  }
}