Browse ModelsWavespeed AIFlux V1 Pro Erase

Flux V1 Pro Erase

Flux V1 Pro Erase

Playground

Try it on WavespeedAI!

FLUX.1 Pro Erase is a fast AI object removal and image inpainting model that removes objects from images using a black-and-white mask, then fills the selected area with natural, context-aware detail. Ready-to-use REST inference API for object removal, photo cleanup, product image editing, background repair, creative retouching, marketing assets, and professional image editing workflows with simple integration, no coldstarts, and affordable pricing.

Features

WaveSpeed AI FLUX V1 Pro Erase

WaveSpeed AI FLUX V1 Pro Erase removes selected elements from an image using a mask, then fills the masked region with regenerated content that blends naturally with the surrounding scene. It is suitable for object removal, cleanup, retouching, and image refinement workflows.


Why Choose This?

  • Mask-based object removal Remove unwanted objects, distractions, or visual clutter from an image with a dedicated mask input.

  • Clean scene-aware fill Regenerate the selected region so it blends with the surrounding image content.

  • Simple erase workflow Upload an image, provide a mask, adjust dilation, and generate a cleaned result.

  • Flexible edge expansion Use dilate_pixels to slightly expand the masked region for smoother inpainting boundaries.

  • Multiple output formats Export the result in supported formats such as jpeg.

  • Production-ready API Suitable for photo cleanup, product image refinement, background editing, and visual post-processing workflows.


Parameters

ParameterRequiredDescription
imageYesInput image to edit.
mask_imageYesMask image indicating the region to erase and regenerate.
dilate_pixelsNoNumber of pixels to expand the mask before regeneration. Default: 10.
output_formatNoOutput image format, such as jpeg.

How to Use

  1. Upload your image — provide the source image you want to clean up.
  2. Upload the mask — mark the object or region you want to erase.
  3. Adjust mask dilation (optional) — use dilate_pixels to slightly expand the masked area for cleaner blending.
  4. Choose output format (optional) — select the format that best fits your workflow.
  5. Submit — run the model and download the cleaned image.

Example Use Case

Remove small desk objects from a workspace photo so the final scene looks cleaner and more minimal.


Pricing

Just $0.08 per image.

Billing Rules

  • Each erase request costs $0.08
  • Pricing is fixed per image
  • dilate_pixels and output_format do not affect pricing

Best Use Cases

  • Object removal — Remove unwanted items, clutter, or distractions from photos.
  • Photo cleanup — Refine scenes for cleaner presentations and commercial use.
  • Product image retouching — Remove background props or accidental objects from listings and ads.
  • Creative editing — Clear space in an image before adding other edits or design elements.
  • Workflow preparation — Clean up images before downstream compositing or publishing.

Pro Tips

  • Use a precise mask for better removal quality.
  • Slightly increase dilate_pixels when edges need smoother blending.
  • Avoid masking too much of the image at once unless the surrounding context is strong.
  • Use the cleanest source image possible for more natural regeneration.
  • Export as jpeg for convenience, or choose another format when your workflow needs it.

Notes

  • Both image and mask_image are required.
  • dilate_pixels defaults to 10.
  • Pricing is fixed at $0.08 per image.
  • Better masks generally produce cleaner erase results.

  • WaveSpeed AI image editing workflows — Useful when you need broader prompt-based transformations instead of object removal only.
  • WaveSpeed AI inpainting workflows — Useful when you want more general masked-region regeneration tasks.
  • WaveSpeed AI text-to-image workflows — Useful when you need fresh image generation rather than editing an existing image.

Authentication

For authentication details, please refer to the Authentication Guide.

API Endpoints

Submit Task & Query Result


# Submit the task
curl --location --request POST "https://api.wavespeed.ai/api/v3/wavespeed-ai/flux-v1-pro/erase" \
--header "Content-Type: application/json" \
--header "Authorization: Bearer ${WAVESPEED_API_KEY}" \
--data-raw '{
    "dilate_pixels": 10,
    "output_format": "jpeg"
}'

# Get the result
curl --location --request GET "https://api.wavespeed.ai/api/v3/predictions/${requestId}/result" \
--header "Authorization: Bearer ${WAVESPEED_API_KEY}"

Parameters

Task Submission Parameters

Request Parameters

ParameterTypeRequiredDefaultRangeDescription
imagestringYes-The input image to erase content from.
mask_imagestringYes-Black/white mask image. White pixels mark the region to erase, black pixels mark the region to keep. The mask must match the input image dimensions.
dilate_pixelsintegerNo100 ~ 100Number of pixels to expand the mask edges by. Higher values can produce cleaner erase results around the masked region.
output_formatstringNojpegjpeg, pngThe format of the generated image.

Response Parameters

ParameterTypeDescription
codeintegerHTTP status code (e.g., 200 for success)
messagestringStatus message (e.g., “success”)
data.idstringUnique identifier for the prediction, Task Id
data.modelstringModel ID used for the prediction
data.outputsarrayArray of URLs to the generated content (empty when status is not completed)
data.urlsobjectObject containing related API endpoints
data.urls.getstringURL to retrieve the prediction result
data.statusstringStatus of the task: created, processing, completed, or failed
data.created_atstringISO timestamp of when the request was created (e.g., “2023-04-01T12:34:56.789Z”)
data.errorstringError message (empty if no error occurred)
data.timingsobjectObject containing timing details
data.timings.inferenceintegerInference time in milliseconds

Result Request Parameters

ParameterTypeRequiredDefaultDescription
idstringYes-Task ID

Result Response Parameters

ParameterTypeDescription
codeintegerHTTP status code (e.g., 200 for success)
messagestringStatus message (e.g., “success”)
dataobjectThe prediction data object containing all details
data.idstringUnique identifier for the prediction, the ID of the prediction to get
data.modelstringModel ID used for the prediction
data.outputsstringArray of URLs to the generated content.
data.urlsobjectObject containing related API endpoints
data.urls.getstringURL to retrieve the prediction result
data.statusstringStatus of the task: created, processing, completed, or failed
data.created_atstringISO timestamp of when the request was created (e.g., “2023-04-01T12:34:56.789Z”)
data.errorstringError message (empty if no error occurred)
data.timingsobjectObject containing timing details
data.timings.inferenceintegerInference time in milliseconds
© 2025 WaveSpeedAI. All rights reserved.