Remove background of any image/object

FREE
By Nur Aktar | Updated 1ヶ月前 | Video, Images
Popularity

9.4 / 10

Latency

2,234ms

Service Level

100%

Health Check

100%

README

Background Removal API for FREE!!

Welcome to the Background Removal API! This API allows you to remove the background from an image by providing the image URL as input. The API returns a new image with the background removed in JPEG format.

We use the U2-Net deep learning algorithm to remove the background from images.

image
image
image
image


How to Use

API Endpoint :

GET /rembg Http Request : /rembg?url=https://images.pexels.com/photos/1697220/pexels-photo-1697220.jpeg

POST /rembg /rembg?url=https://images.pexels.com/photos/1697220/pexels-photo-1697220.jpeg

Using Formdata/Upload jpg file:

POST /rembg_file

const data = new FormData();
data.append('file', 'name.jpg');

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
	if (this.readyState === this.DONE) {
		console.log(this.responseText);
	}
});

xhr.open('POST', 'https://remove-background-of-any-image-object.p.rapidapi.com/rembg_file');
xhr.setRequestHeader('X-RapidAPI-Key', '3de5bebbe3mshd3a0b5ff25ac46apxxxxxxxxxxx');
xhr.setRequestHeader('X-RapidAPI-Host', 'remove-background-of-any-image-object.p.rapidapi.com');
xhr.send(data);

Notes

This API uses Powerful Background Removal Algorithm (U2-Net^2) for efficient background removal.
For security and production use, consider implementing authentication and authorization mechanisms.
Handle errors gracefully and provide meaningful error responses.
Ensure that the input image URL is publicly accessible.


Feel free to contribute, report issues, or suggest improvements!

Followers: 2
API Creator:
Rapid account: Nur Aktar
Nur Aktar
sknuraktar1999
Log In to Rate API
Rating: 3.7 - Votes: 3