Official

black-forest-labs / flux-fill-pro

Professional inpainting and outpainting model with state-of-the-art performance. Edit or extend images with natural, seamless results.

  • Public
  • 722.3K runs
  • $0.05 per image
  • Commercial use
  • License
This model uses a mask. Visit the new playground to try this model with our mask editing tool.

Input

*string
Shift + Return to add a new line

Text prompt for image generation

*file
Preview
image

The image to inpaint. Can contain an alpha mask. Must be jpeg, png, gif, or webp.

file
Preview
mask

A black-and-white image that describes the part of the image to inpaint. Black areas will be preserved while white areas will be inpainted. Must have the same size as image. Optional if you provide an alpha mask in the original image. Must be jpeg, png, gif, or webp.

string

A quick option for outpainting an input image. Mask will be ignored.

Default: "None"

integer

Random seed. Set for reproducible generation

integer
(minimum: 15, maximum: 50)

Number of diffusion steps. Higher values yield finer details but increase processing time.

Default: 50

boolean

Automatically modify the prompt for more creative generation

Default: false

number
(minimum: 1.5, maximum: 100)

Controls the balance between adherence to the text prompt and image quality/diversity. Higher values make the output more closely match the prompt but may reduce overall image quality. Lower values allow for more creative freedom but might produce results less relevant to the prompt.

Default: 60

integer
(minimum: 1, maximum: 6)

Safety tolerance, 1 is most strict and 6 is most permissive

Default: 2

string

Format of the output images.

Default: "jpg"

Output

output
Generated in

Pricing

Official model
Pricing for official models works differently from other models. Instead of being billed by time, you’re billed by input and output, making pricing more predictable.

This model is priced by how many images are generated.

TypePer unitPer $1
Output
$0.05 / image
or
20 images / $1

For example, generating 100 images should cost around $5.00.

Check out our docs for more information about how per-image pricing works on Replicate.

Readme

FLUX.1 Fill [pro]

State-of-the-art inpainting and outpainting model. Edit or extend images with natural, seamless results.

FLUX.1 Fill [pro] makes editing images feel natural. Paint over what you want to change, describe what you want instead, and get results that blend perfectly with the original.

The model understands complex scenes and text, and maintains consistency across edits. Whether you’re removing objects, adding new elements, or expanding the canvas, Fill [pro] preserves lighting, perspective, and context.

License

By using FLUX.1 Fill [pro] through Replicate you agree to the Black Forest Labs API agreement and the Black Forest Labs Terms of Service.