Background Remover API for Developers
Background Remover API
Generate transparent cutouts or composite onto new backplates—ideal for catalogs, avatars, and design tools.
Free credits on signup
Transparent per-credit pricing
No watermarks on paid plans
Subscription or usage-based
Auto-scaling
Trusted by teams at














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 output via response or webhook. Deploy to production — infrastructure scales automatically.
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"},
)Estimate Your API Costs
Build with model-specific APIs for video, image generation, and image editing. Compare inputs, examples, and capabilities across Magic Hour's supported models.
Pricing tier options
Images Per Month
10 images
images
Recommended plan
Creator Annual
$120
/year
120,000 credits per year
Up to 1.4 hours of video
Up to 12,000 images
PRO ANNUAL covers your usage
- 2,500credits / month
- 25,000credits / month
- 22,500credits / month
Estimated usage
Included
Remaining headroom
TOTAL BILL
$300
/year
SDKs for Every Stack
Official open-source SDKs with full TypeScript/type support. Install and start building.
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.
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.
Magic Hour offers subscription plans starting at $15/month (Creator), $39/month (Pro), and $99/month (Business), each including a monthly credit allotment. Credits are consumed per generation based on output length and model. You can also contact us to set up usage-based (pay-as-you-go) pricing. A free tier with credits is available on signup — no credit card required.
Sign up at magichour.ai/developer — no credit card required. You'll receive free credits and an API key immediately. The key works across all Magic Hour API endpoints including Background Remover. Start making API calls in minutes using our Python, Node.js, Go, or Rust SDKs.
Yes. Every new Magic Hour account gets free credits on signup that work across all API endpoints. No credit card is required to get started. Paid plans unlock higher credit limits, higher concurrency, and commercial use rights.