Image Editing

Flux Fill ProAPI

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

Test in Dashboard View Docs ← All Tools

Three ways to use this tool

REST API

One POST request. Get the result back directly — as an image, video, or JSON depending on the tool.

terminal
curl -X POST https://apiai.me/api/workflow/flux-fill-pro \
     -H "X-API-Key: YOUR_API_KEY" \
     -F "image=@input.jpg" \
     -F "guidance=60" \
     -F "mask=@image.jpg" \
     -F "outpaint=None" \
     -F "format=jpg" \
     -F "prompt=VALUE" \
     -F "prompt_upsampling=false" \
     -F "safety_tolerance=2" \
     -F "seed=VALUE" \
     -F "steps=50"
     --output result.png

Dashboard Playground

Test this tool visually before writing any code. Upload an image, set parameters, and see the result live. When it looks right, copy the auto-generated curl command and paste it into your app.

  1. Open the dashboard → API Toolbox
  2. Find Flux Fill Pro and click it
  3. Upload your input and adjust parameters
  4. Copy the curl command and ship
Open Dashboard →

Batch Processing

Process hundreds of images at once without writing a loop. Upload a CSV with one row per item, set your parameters, and download the results as a ZIP when they're done.

  1. Open the dashboard → Batches
  2. Select Flux Fill Pro
  3. Add your content and start the batch
  4. Download results ZIP when complete
Go to Batches →

Parameters

Name Required Description Default / Options
guidance optional 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. 60
mask optional 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.
outpaint optional A quick option for outpainting an input image. Mask will be ignored. NoneZoom out 1.5xZoom out 2xMake squareLeft outpaintRight outpaintTop outpaintBottom outpaint
format optional Format of the output images. jpgpng
prompt required Text prompt for image generation
prompt_upsampling optional Automatically modify the prompt for more creative generation false
safety_tolerance optional Safety tolerance, 1 is most strict and 6 is most permissive 2
seed optional Random seed. Set for reproducible generation
steps optional Number of diffusion steps. Higher values yield finer details but increase processing time. 50

Ready to integrate?

Get an API key, test Flux Fill Pro in the dashboard, and copy the curl command.

Get API Key Full API Reference