Home/APIs/Background Removal
Computer VisionFree tier available

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.

Background removed — transparent PNG - after
Background removed — transparent PNG - before
Original
Remove Background

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

multipart/form-dataapplication/jsonapplication/x-www-form-urlencoded
POSThttps://background-removal-ai.p.rapidapi.com/remove-background

Remove the background from an image. Returns a PNG with transparent background (RGBA).

imagefilerequired

Image file (JPEG, PNG, WebP, etc.) — use with multipart/form-data

image_urlstringrequired

Public URL of the image to process — use with application/json

Send either image (file upload) or image_url (JSON/form), not both.

POSThttps://background-removal-ai.p.rapidapi.com/blur-background

Blur the background while keeping the foreground subject sharp. Returns a PNG image.

imagefilerequired

Image file (JPEG, PNG, WebP, etc.)

image_urlstringrequired

Public URL of the image to process

blur_radiusinteger

Blur intensity, 1 (subtle) to 50 (heavy). Default: 15

Send either image or image_url, not both.

POSThttps://background-removal-ai.p.rapidapi.com/color-background

Replace the background with a solid color. Returns a PNG image.

imagefilerequired

Image file (JPEG, PNG, WebP, etc.)

image_urlstringrequired

Public URL of the image to process

bg_colorstringrequired

Background color as R,G,B,A (each 0-255), e.g. 255,140,0,255

Send either image or image_url, not both.

POSThttps://background-removal-ai.p.rapidapi.com/gradient-background

Replace the background with a vertical gradient (top to bottom). Returns a PNG image.

imagefilerequired

Image file (JPEG, PNG, WebP, etc.)

image_urlstringrequired

Public URL of the image to process

top_colorstringrequired

Top gradient color as R,G,B,A (each 0-255)

bottom_colorstringrequired

Bottom gradient color as R,G,B,A (each 0-255)

Send either image or image_url, not both.

Response

200

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.png

Pricing

Start free, scale as you grow. All plans include full API access with no credit card required for the free tier.

Free

Basic

$0Free

100 requests/mo

  • Full API access
  • All endpoints
  • Standard support

Pro

$12.99/mo

10,000 requests/mo

  • Full API access
  • All endpoints
  • Standard support
Recommended

Ultra

$49.99/mo

50,000 requests/mo

  • Full API access
  • All endpoints
  • Standard support

Mega

$159.99/mo

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.