SandBase is live — $1 in free credits on signupStart free ›
Use in agentBFL models

BFL modelsimage generation api

bfl/flux-pro/1.0/erase

Flux Pro 1.0 Erase by BFL - AI-powered image editing, style transfer, and transformation. Edit photos with natural language instructions, remove backgrounds, change styles, and enhance images effortlessly.

Input

PNG, JPEG, WebP, or GIF · 20 MiB maximum

The URL of the input image to erase content from.

PNG, JPEG, WebP, or GIF · 20 MiB maximum

The URL of a black/white mask image where white (255) marks pixels to erase and black (0) marks pixels to keep. Needs to match the dimensions of the input image.
The format of the generated image. Allowed values: jpeg, png.
0100
Number of pixels to expand the mask edges by. Higher values produce cleaner erase results around the masked region. Range: 0 to 100.
Idle

Example output — click Run to generate your own

API README

Flux Pro Erase

Flux Pro Erase is a image generation and editing workflow in the FLUX family. Flux Pro 1.0 Erase by BFL - AI-powered image editing, style transfer, and transformation. Edit photos with natural language instructions, remove backgrounds, change styles, and enhance images effortlessly. It is designed to translate deliberate creative direction and supplied reference material into a coherent production asset, with attention to subject identity, composition, visual detail, and the specific transformation implied by this exact route.

Use this route when the project needs clean object removal and background recovery. Describe the intended result, what must remain recognizable, and the required composition, lighting, materials, atmosphere, and finish; keep technical delivery choices in the schema fields below.

Highlights

  • Object removal. Eliminates the masked subject or region identified in a supplied image.
  • Context-aware fill. Reconstructs the revealed background so it agrees with surrounding texture, perspective, and lighting.
  • Mask-directed precision. Confines removal to the intended region while preserving unrelated content.
  • Natural boundary recovery. Blends the regenerated area into neighboring pixels without leaving a conspicuous cutout.

Pricing

ConfigurationBilling unitPrice
Base generationPer request$0.03

When to Use

✅ Good fit❌ Consider alternatives
The project needs this exact FLUX capabilityThe intended task belongs to a different media workflow
Required source and control media are availableNecessary assets or usage rights are unavailable
Creative direction can state change and preservation goalsOutput must be deterministic at pixel or frame level
Supported dimensions and formats match final deliveryPlacement requires unsupported specifications
An asynchronous generated result fits productionA live frame-synchronous response is mandatory

Prompt Guide

Lead with the main subject and action, then specify composition, context, lighting, materials, style, typography, and atmosphere. For editing, identify each source and clearly separate the requested transformation from the subjects, regions, geometry, or identity that must remain unchanged.

{
  "image": "https://example.com/reference.png",
  "mask": "https://example.com/reference.png",
  "dilate_pixels": 10,
  "output_format": "jpeg"
}

Technical Specs

SpecValue
Model IDbfl/flux-pro/1.0/erase
Input fieldsmask (string)<br>image (string)<br>dilate_pixels (integer; 0–100)<br>output_format (string; jpeg, png)
Required inputimage
Output fieldsurl, content_type
ExecutionAsynchronous job

Related Models

  • bfl/flux-1/dev/edit
  • bfl/flux-1/dev/image-to-image
  • bfl/flux-1/dev

Related Models

bfl/flux-pro/1.0/vtoFlux Pro 1.0 Vto by BFL - AI-powered image editing, style transfer, and transformation. Edit photos with natural language instructions, remove backgrounds, change styles, and enhance images effortlessly.bfl/flux-pro/v1.1-ultra-finetunedFlux Pro V1.1 Ultra Finetuned is BFL's advanced text-to-image AI model. Create photorealistic images, illustrations, and concept art from natural language descriptions with exceptional detail and prompt adherence.bfl/flux-pro/v1.1/reduxFlux Pro V1.1 Redux is BFL's intelligent image editing model. Transform, retouch, and reimagine existing images using text prompts - from background replacement to artistic style conversion.bfl/flux-1/devFlux 1 Dev by BFL - generate stunning images from text prompts with state-of-the-art AI. Supports multiple aspect ratios, styles, and high-resolution output for creative and commercial use.bfl/flux-1/dev/editFlux 1 Dev Edit is BFL's intelligent image editing model. Transform, retouch, and reimagine existing images using text prompts - from background replacement to artistic style conversion.bfl/flux-1/dev/image-to-imageFlux 1 Dev is BFL's intelligent image editing model. Transform, retouch, and reimagine existing images using text prompts - from background replacement to artistic style conversion.bfl/flux-1/dev/reduxFlux 1 Dev Redux by BFL - AI-powered image editing, style transfer, and transformation. Edit photos with natural language instructions, remove backgrounds, change styles, and enhance images effortlessly.bfl/flux-1/fillFlux 1 Fill is BFL's intelligent image editing model. Transform, retouch, and reimagine existing images using text prompts - from background replacement to artistic style conversion.