Remove image backgrounds instantly with AI
Remove image backgrounds automatically in seconds. Upload a photo or pass a URL and get back a clean PNG with transparent background — no manual selection needed. Also replace backgrounds with blur, solid color, or gradient effects.
See It in Action
Drag the slider to compare the original image with the processed result. Switch between endpoints below.


Features
High Accuracy
Handles people, products, animals, complex scenes, and fine details like hair, fur, and semi-transparent objects.
Fast Processing
Optimized for low latency. Get results in seconds with our production-ready inference pipeline.
Flexible Input
Upload a file via multipart or pass a public image URL via JSON — both work seamlessly.
Background Effects
Go beyond removal: blur, solid color, or gradient backgrounds with dedicated endpoints.
Multiple Formats
Supports JPEG, PNG, WebP, BMP, TIFF and other common image formats. Up to 10 MB.
Cloud-Based
No GPU needed on your end. Fully managed cloud infrastructure handles the processing.
API Reference
4 endpoints, simple integration. Here's everything you need.
Supported Content Types
https://background-removal-ai.p.rapidapi.com/remove-backgroundRemove the background from an image. Returns a PNG with transparent background (RGBA).
imagefilerequiredImage file (JPEG, PNG, WebP, etc.) — use with multipart/form-data
image_urlstringrequiredPublic URL of the image to process — use with application/json
Send either image (file upload) or image_url (JSON/form), not both.
https://background-removal-ai.p.rapidapi.com/blur-backgroundBlur the background while keeping the foreground subject sharp. Returns a PNG image.
imagefilerequiredImage file (JPEG, PNG, WebP, etc.)
image_urlstringrequiredPublic URL of the image to process
blur_radiusintegerBlur intensity, 1 (subtle) to 50 (heavy). Default: 15
Send either image or image_url, not both.
https://background-removal-ai.p.rapidapi.com/color-backgroundReplace the background with a solid color. Returns a PNG image.
imagefilerequiredImage file (JPEG, PNG, WebP, etc.)
image_urlstringrequiredPublic URL of the image to process
bg_colorstringrequiredBackground color as R,G,B,A (each 0-255), e.g. 255,140,0,255
Send either image or image_url, not both.
https://background-removal-ai.p.rapidapi.com/gradient-backgroundReplace the background with a vertical gradient (top to bottom). Returns a PNG image.
imagefilerequiredImage file (JPEG, PNG, WebP, etc.)
image_urlstringrequiredPublic URL of the image to process
top_colorstringrequiredTop gradient color as R,G,B,A (each 0-255)
bottom_colorstringrequiredBottom gradient color as R,G,B,A (each 0-255)
Send either image or image_url, not both.
Response
Returns the processed image directly as binary PNG data. Content-Type: image/png
Limits
- Maximum image size: 10 MB
- Supported formats: JPEG, PNG, WebP, BMP, TIFF
- Output format: PNG
- URL download timeout: 10 seconds
Quick Start
Copy-paste code to get started in seconds. Replace YOUR_API_KEY with your RapidAPI key.
# File upload
curl -X POST "https://background-removal-ai.p.rapidapi.com/remove-background" \
-H "x-rapidapi-key: YOUR_API_KEY" \
-H "x-rapidapi-host: background-removal-ai.p.rapidapi.com" \
-F "image=@photo.jpg" \
--output result.png
# JSON with URL
curl -X POST "https://background-removal-ai.p.rapidapi.com/remove-background" \
-H "x-rapidapi-key: YOUR_API_KEY" \
-H "x-rapidapi-host: background-removal-ai.p.rapidapi.com" \
-H "Content-Type: application/json" \
-d '{"image_url": "https://example.com/photo.jpg"}' \
--output result.pngPricing
Start free, scale as you grow. All plans include full API access with no credit card required for the free tier.
Basic
100 requests/mo
- Full API access
- All endpoints
- Standard support
Pro
10,000 requests/mo
- Full API access
- All endpoints
- Standard support
Ultra
50,000 requests/mo
- Full API access
- All endpoints
- Standard support
Mega
200,000 requests/mo
- Full API access
- All endpoints
- Standard support
Start Using Background Removal Today
Sign up on RapidAPI to get your API key. The free tier includes generous monthly requests — no credit card required.