Background Remover API
FreemiumRemove image backgrounds in one call — transparent PNG/WebP cut-outs or a solid-colour background, from a file, URL or base64.
Documentation
Remove the background from any photo with a single API call — people, products, animals, cars and more.
What you get
- Transparent PNG or WebP cut-outs, or a JPG on any solid colour
- Send a file upload, an image URL, or base64
- Optional crop to subject, custom background colour, and mask-only output
- Fast: typically 2–5 seconds per image, up to 10 MB / 4096 px
Great for e-commerce product photos, profile pictures, marketplaces, design tools and print-on-demand.
Quick start
POST /v1/remove-background with the image as multipart/form-data in the field image:
curl -X POST "https://background-remover.p.apihiver.com/v1/remove-background" \
-H "x-api-key: YOUR_API_KEY" \
-F image=@photo.jpg -o result.pngOr send JSON with image_url or image_base64:
{ "image_url": "https://example.com/photo.jpg", "output_format": "webp", "crop": true }Options
| Option | Values | Default |
|---|---|---|
output_format | png, webp, jpg | png |
bg_color | Hex colour, e.g. #FFFFFF or #FFFFFF80 | transparent (white for jpg) |
crop | true / false — trim to the subject | false |
only_mask | true / false — return the black & white mask | false |
response | image (raw bytes) or json (base64 + metadata) | image |
Response
By default the processed image is returned directly (image/png, image/webp or image/jpeg), with headers
X-Processing-Time-Ms, X-Image-Width and X-Image-Height. With response=json you get
{ image_base64, content_type, width, height, processing_time_ms }.
Limits & errors
Max upload 10 MB; images larger than 4096 px on the long side are scaled down. Supported inputs: JPG, PNG, WebP, GIF, BMP, TIFF.
Errors are JSON: {"error": {"code": "...", "message": "..."}} — MISSING_IMAGE, INVALID_IMAGE, INVALID_PARAMETER,
INVALID_IMAGE_URL, IMAGE_URL_UNREACHABLE (400), IMAGE_TOO_LARGE (413), UNSUPPORTED_CONTENT_TYPE (415), SERVER_BUSY (503).
Background Remover API FAQ
- Is the Background Remover API free?
- Yes. The Basic plan is free and includes 50 requests per month — no card needed. Paid plans start at ₹499 per month for 2,000 requests.
- How much does the Background Remover API cost?
- Basic: free for 50 requests; Pro: ₹499/month for 2,000 requests; Ultra: ₹1,999/month for 10,000 requests; Mega: ₹4,999/month for 30,000 requests. Billing is monthly and you can cancel any time.
- How do I use the Background Remover API?
- Subscribe to a plan on APIHiver, create an API key in the Console, then send requests to https://background-remover.p.apihiver.com with your key in the X-API-Key header. You can also try every endpoint in the browser playground first.
- What endpoints does the Background Remover API have?
- It has 1 endpoint: Remove Background (POST /v1/remove-background).
- What are the Background Remover API rate limits?
- Basic: 1 request per second; Pro: 2 requests per second; Ultra: 4 requests per second; Mega: 8 requests per second. Monthly quotas depend on the plan; every response includes X-RateLimit headers showing what's left.
- Can I use one API key for the Background Remover API and other APIs?
- Yes. One APIHiver key works for every API you subscribe to, so you don't need a separate account or key per provider.
Related APIs
Resize, crop, convert, rotate and compress images, add text watermarks, extract colour palettes and make placeholder images.
Create QR codes for links, text, UPI payments, Wi-Fi logins and contact cards (PNG/SVG, custom colours) and read QR codes from images.
Get video info, grab thumbnails, make storyboard contact sheets, extract audio (MP3/WAV/M4A) and convert clips to GIF.
Extract text from images and scans in English, Hindi and Marathi, and pull out emails, phone numbers, URLs, PAN and GSTIN.
Generate EAN-13, UPC, Code 128, ISBN and other barcodes as PNG or SVG, read barcodes from images, and validate check digits.