Back to Gallery
Remove an object from a photo by providing a black-and-white mask of the area to clean. Flux-fill restores the background seamlessly.
$0.48/request 2026-04-28
Install
pip install requestsRun the model
import requests
response = requests.post(
"https://api.runflow.io/v1/run/object-removal",
headers={"Authorization": "Bearer RUNFLOW_API_KEY"},
json={
"file_mask": "06-portrait-person-bg-mask.png",
"image_url": "https://public.runflow.io/images/models/runflow/object-removal/examples/1/bef...",
"file_input": "06-portrait-person-bg-image.png"
},
)
data = response.json()
print(data["images"][0]["url"])Input schema
| Parameter | Type | Description |
|---|---|---|
| image_url | image | URL of the image to process. HTTPS required. |
| file_input | string | Filename inside `image_url` (e.g. `photo.png` if the zip contains `photo.png`). Frontend should set this to match the inner filename when composing the zip. |
| file_mask | string | Filename of the B&W mask inside the URL/zip (white = remove, black = keep). Same shape as `file_input` but for the mask file. |
Output schema
| Field | Type | Description |
|---|---|---|
| outputs | json | Array of result items, each with at minimum a `url` field. |
| seed | json | Random seed used (null if N/A). |
| timing | json | Provider timing breakdown (null if not surfaced). |
| nsfw_detected | json | Provider NSFW flag (null if not surfaced). |
Related models
Background Removal
runflow/background-removal
Remove the background from an image and return a clean cutout with a transparent...
$0.045/request
Model Removal
runflow/model-removal
Remove the human model from a garment or apparel photo and recover a clean flat-...
$0.27/request
Product Isolation
runflow/product-isolation
Isolate the main product from a busy scene onto a clean background, using an opt...
$0.27/request
Tag Removal
runflow/tag-removal
Remove price tags, stickers, and labels from product images while preserving the...
$0.14/request
Start generating with Object Removal
Get API access in minutes. No GPU setup, no infrastructure to manage.