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