Images · V0.1.0 · 2 ENDPOINTS
Background Removal API

Keep the subject. Change the possibilities.

Separate a subject from its background, export a transparent cutout or create an alpha mask.

Production access through RapidAPI & ApyHub.
Compare available capabilities & plans

From input to outputSample preview
INPUTproduct.png
Your original product imageYour original product image
OUTPUTcutout.png
Illustrated plant with its background removed
Original plant image for comparison
Transparent cutouts 1 / 3

Illustrated cutout, not live API output. Fine edges may need editing.

Try this in the Playground

Try it in the Playground.

Pick an example to open it in the Playground. Change anything and run it yourself.

Open full Playground

Your first request

Replace the base64 placeholder with your file. See the tutorial for an upload example.

import os
import httpx

base_url = "https://background-removal-api-cutouts-masks.p.rapidapi.com"
headers = {
    "X-RapidAPI-Key": os.environ["RAPIDAPI_KEY"],
    "X-RapidAPI-Host": "background-removal-api-cutouts-masks.p.rapidapi.com",
}
payload = {
    "format": "png",
    "max_size": 900,
    "image": {
        "base64": "BASE64_IMAGE",
    },
}
response = httpx.post(
    base_url + "/v1/background/remove",
    headers=headers, json=payload, timeout=120
)
response.raise_for_status()
with open("result.png", "wb") as output:
    output.write(response.content)
5 MIN
Remove a product photo backgroundComplete task tutorial

Access & plans

Subscribe through a marketplace. They issue credentials, enforce plan allowances and handle billing. Check each capability’s listing for current plans and units.

CapabilityRapidAPIApyHub
Remove image backgrounds Live Live
Generate foreground masks Live Live

Good to know

Live cutout and mask demos have a maximum 900 px long edge. Fine hair, translucent objects and low-contrast edges may need editing. Review the cutout before publishing.

Website demos use small inputs and an anonymous allowance. Production limits depend on your marketplace plan.

Demo limits & data handling

FAQ

Which marketplace should I pick?

Choose an available listing for the capability you need. Compare its current plans, allowance and billing units. Examples on this site support both providers.

How does the demo allowance work?

When enabled, demos share 10 light and 2 heavy dispatched attempts per UTC day, with browser and network limits. This is an anonymous allowance, not a guaranteed per-person entitlement.

What if a live demo is paused?

Use the supplied sample preview and integration examples. Available marketplace listings provide production access independently of the website’s demo gate.

Can I use my own files?

The demo accepts local files up to 2 MiB. Images are limited to 4 megapixels, PDFs to one selected page, and audio to 15 seconds. Review processing and retention details before submitting sensitive data.