Remove background of any image/object

फ़्री
द्वारा Nur Aktar | अपडेट किया गया a month ago | Video, Images
लोकप्रियता

9.3 / 10

लेटेंसी

2,276ms

सेवा का स्तर

100%

Health Check

100%

रीडमी

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!

फॉलोवर: 2
API निर्माता:
Rapid account: Nur Aktar
Nur Aktar
sknuraktar1999
API को रेट करने के लिए लॉग इन करें
रेटिंग: 3.5 - वोट: 4