Remove background of any image/object

無料
よって Nur Aktar | 更新済み hace un mes | Video, Images
人気

9.3 / 10

レイテンシー

2,276ms

サービスレベル

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!

フォロワー:2
API作成者:
Rapid account: Nur Aktar
Nur Aktar
sknuraktar1999
評価APIにログイン
評価:3.5-投票:4