Background Remover API for Developers

Background Remover API

Generate transparent cutouts or composite onto new backplates—ideal for catalogs, avatars, and design tools.

Free to start
No watermarks on paid plans
Subscription or usage-based
Auto-scaling

Trusted by teams at

meta
nba
loreal
puma
cisco
deel
shopify
decathlon
dallas-mavericks
pittsburgh-pirates
tala
dyson
dazn
wsc-sports

Everything You Need to Ship Background Remover

High-quality masking with optional replacement backgrounds, integrated into your existing upload flow.

Precise Matting
Segment subjects from busy scenes for marketplaces, ID photos, and creative compositing.
Optional Background Swap
Provide a background_image_file_path to drop subjects onto branded scenes or templates.
Portrait-Ready
Handles people, products, and mixed content common in e-commerce and profile flows.
Fast Processing
Images return quickly enough for interactive editors and batch enrichment jobs.
Auto-Scaling Infrastructure
Burst through huge catalogs during imports without resizing your own GPU pool.
Commercial-Ready
Paid tiers deliver production assets suitable for client work and downstream ads.

Integrate in 3 Steps

Automate cutouts for every SKU or user upload.

1
Get Your API Key
Sign up free and generate an API key from the Developer dashboard. You get free credits to start.
2
Send Image Assets
Upload source photos, optionally include a background plate, and POST to /v1/image-background-remover.
3
Get Results & Scale
Receive the swapped output via response or webhook. Deploy to production — infrastructure scales automatically.
Get Started Free

Code Examples

Background Remover in a few lines of code. Install an SDK or use the REST API directly.

from magic_hour import Client
from os import getenv

client = Client(token=getenv("MAGIC_HOUR_API_KEY"))

res = client.v1.image_background_remover.generate(
    name="Cutout",
    assets={"image_file_path": "/path/to/photo.png"},
)
API Docs

Background Remover API Pricing

Subscription plans for standard usage.

Prefer usage-based pricing?

Email us or message us in Intercom and we will set up your usage-based pricing.

API Calculator
Use our calculator to estimate your API costs.
Tier
Estimated monthly cost

$1.73

Based on 24 FPS

Built for Builders

See how developers use the Background Remover API to power real products.

E-Commerce Imagery
Normalize product shots onto white or branded backgrounds for PDPs and feeds.
Ads & Creative Automation
Prep assets for compositing into thousands of localized banners automatically.
Social & UGC
Let users drop themselves onto stickers and scenes inside your app.
Photo Apps
Power cutout tools, collage editors, and sticker makers with one API.
Games & Avatars
Isolate characters or items for inventories and profile flair.
Education & ID
Prepare compliant portraits and diagrams for badges and coursework.
Try before integrating

Try Background Remover Free — No Code Required

Test quality first with the free tool, then plug the same output quality into your app with the API when you are ready.

Background Remover API — Frequently Asked Questions

POST /v1/image-background-remover with an image_file_path pointing at an uploaded asset.

Yes. Optionally pass background_image_file_path to composite the subject onto another image.

Use the image formats supported by Magic Hour uploads—see the file upload documentation.

Most still images complete in seconds, depending on resolution and queue depth.

Image tools typically bill per successful generation; consult the pricing page for credit costs.

Magic Hour follows its standard data handling practices; review security documentation for details.

Python and Node clients expose image_background_remover / imageBackgroundRemover helpers.

Complete payloads are documented at docs.magichour.ai under image background remover.

Start Building with the Magic Hour Background Remover API

Free credits on signup. SDKs for Python, Node.js, Go, and Rust. Production-ready in minutes.