v2

OpenAPI 3.1.02026-07-26262762.2 KB
Models

Expand an image with FLUX.1 Expand [pro] by adding pixels on any side

Submits an image expansion task that adds the specified number of pixels to any combination of sides (top, bottom, left, right) while maintaining context.

post/v1/flux-pro-1.0-expand

Request body

imagestring required

A Base64-encoded string representing the image you wish to expand.

topinteger nullable

Number of pixels to expand at the top of the image

bottominteger nullable

Number of pixels to expand at the bottom of the image

leftinteger nullable

Number of pixels to expand on the left side of the image

rightinteger nullable

Number of pixels to expand on the right side of the image

promptstring nullable

The description of the changes you want to make. This text guides the expansion process, allowing you to specify features, styles, or modifications for the expanded areas.

stepsinteger nullable

Number of steps for the image generation process

prompt_upsamplingboolean nullable

Whether to perform upsampling on the prompt. If active, automatically modifies the prompt for more creative generation

seedinteger nullable

Optional seed for reproducibility

guidancenumber nullable

Guidance strength for the image generation process

output_format'jpeg' | 'png' | 'webp'
safety_toleranceinteger

Tolerance level for input and output moderation. Between 0 and 6, 0 being most strict, 6 being least strict.

webhook_urlstring uri nullable

URL to receive webhook notifications

webhook_secretstring nullable

Optional secret for webhook signature verification

Example request

{
  "prompt": "ein fantastisches bild",
  "steps": 50,
  "safety_tolerance": 2
}

Response

Successful Response

OR