Our Universal Background Removal API is designed to accurately identify and separate the central objects from backgrounds in any image, producing high-quality segmented foreground images with four channels (RGBA). Perfect for various applications including e-commerce, digital marketing, graphic design, and content creation, this versatile API ensures clean and professional cutouts of the main subject, enhancing the visual appeal and focus of your images. By leveraging our API, you can streamline your image processing workflows, improve visual presentations, and boost user engagement. Experience seamless integration, outstanding performance, and high scalability with our Universal Background Removal API, tailored to meet the diverse needs of modern digital applications.
Precisely separate central objects from backgrounds in any image with our Universal Background Removal API, delivering high-quality segmented foreground images.
JPEG JPG BMP WEBP PNG (8-bit, 16-bit, 64-bit PNG not supported)| Field | Required | Type | Scope | Description |
|---|---|---|---|---|
image |
YES | file |
||
return_form |
NO | string |
|
Specifies the form of the returned image.
|
Universal Background Removal - Endpoint Features
| Object | Description |
|---|---|
return_form |
Optional Specifies the form of the returned image. If not set, the four-channel PNG map is returned. `mask`: Returns a single channel mask. `whiteBK`: Return to white background image. `crop`: Returns the four-channel PNG image after cropping (cropping out the blank areas around the edges). |
Request Body |
[Required] File Binary |
{"data":{"image_url":"https:\/\/ai-result-rapidapi.ailabtools.com\/cutout\/segmentCommonImage\/2024-06-07\/112914-37b10058-447f-be97-45ab-ef463179c24c-1717759754.png"},"error_code":0,"error_detail":{"status_code":200,"code":"","code_message":"","message":""},"log_id":"481A1C04-3503-5B07-A4A1-7B218310DB5C","request_id":"481A1C04-3503-5B07-A4A1-7B218310DB5C"}
curl --location 'https://zylalabs.com/api/4355/universal+background+removal+api/5338/universal+background+removal' \
--header 'Content-Type: application/json' \
--form 'image=@"FILE_PATH"'
| Header | Description |
|---|---|
Authorization
|
[Required] Should be Bearer access_key. See "Your API Access Key" above when you are subscribed. |
No long-term commitment. Upgrade, downgrade, or cancel anytime.
Our Universal Background Removal API is designed to accurately identify and separate the central objects from backgrounds in any image, producing high-quality segmented foreground images with four channels (RGBA). Perfect for various applications including e-commerce, digital marketing, graphic design, and content creation, this versatile API ensures clean and professional cutouts of the main subject, enhancing the visual appeal and focus of your images. Experience seamless integration, outstanding performance, and high scalability with our Universal Background Removal API, tailored to meet the diverse needs of modern digital applications.
E-commerce Product Photography: Enhancing the visual appeal of product images by removing distracting backgrounds and making the products stand out more clearly. Social Media Content Creation: Creating professional-looking images for social media posts, advertisements, and other online content by removing and replacing backgrounds. Personal Photography and Portraits: Enhancing personal photos by removing unwanted backgrounds and replacing them with more suitable or aesthetically pleasing ones. Identity Verification: Assisting in the creation of standardized ID photos by ensuring a uniform background.
High Accuracy: Provides precise background removal, ensuring clean and professional results. Speed: Processes images quickly, saving time for users. Versatility: Suitable for a wide range of applications, from e-commerce to personal photography. Consistency: Delivers consistent results across different types of images and backgrounds. Automatic subject recognition: automatically identifies the subject object in the image without additional specification. Applicable to multiple scenes: Applicable to people, animals, food, objects, home and other keying scenes, not applicable to cartoon pictures.
The API returns a URL to the processed image after background removal. The response includes a `data` object containing the `image_url`, which points to the resulting image file.
The key fields in the response data include `request_id`, `log_id`, `error_code`, `error_msg`, and `data`. The `data` object specifically contains the `image_url` for accessing the processed image.
The endpoint accepts two parameters: `image` (required) for the input image file and `return_form` (optional) to specify the output format, which can be `mask`, `whiteBK`, or `crop`.
The response data is structured as a JSON object. It includes public parameters for request tracking and error handling, along with a `data` object that contains the URL of the processed image.
The endpoint provides information about the processed image, including its URL. It also returns metadata such as request IDs and error codes to help users track and troubleshoot requests.
Users can access the processed image via the `image_url` provided in the response. It is important to download the image within 24 hours, as the URL is temporary and will expire.
The `return_form` parameter accepts three values: `mask` for a single-channel mask, `whiteBK` for an image with a white background, and `crop` for a cropped four-channel PNG image.
The API employs advanced algorithms for automatic subject recognition and background removal, ensuring high accuracy in identifying and processing central objects in images. Regular updates and quality checks are implemented to maintain performance.
Please have a look at our Refund Policy: https://zylalabs.com/terms#refund
To obtain your API key, you first need to sign in to your account and subscribe to the API you want to use. Once subscribed, go to your Profile, open the Subscription section, and select the specific API. Your API key will be available there and can be used to authenticate your requests.
You can’t switch APIs during the free trial. If you subscribe to a different API, your trial will end and the new subscription will start as a paid plan.
If you don’t cancel before the 7th day, your free trial will end automatically and your subscription will switch to a paid plan under the same plan you originally subscribed to, meaning you will be charged and gain access to the API calls included in that plan.
The free trial ends when you reach 50 API requests or after 7 days, whichever comes first.
No, the free trial is available only once, so we recommend using it on the API that interests you the most. Most of our APIs offer a free trial, but some may not include this option.
Yes, we offer a 7-day free trial that allows you to make up to 50 API calls at no cost, so you can test our APIs without any commitment.
Zyla API Hub is like a big store for APIs, where you can find thousands of them all in one place. We also offer dedicated support and real-time monitoring of all APIs. Once you sign up, you can pick and choose which APIs you want to use. Just remember, each API needs its own subscription. But if you subscribe to multiple ones, you'll use the same key for all of them, making things easier for you.
Service Level:
100%
Response Time:
5,867ms
Service Level:
100%
Response Time:
0ms
Service Level:
100%
Response Time:
3,629ms
Service Level:
100%
Response Time:
6,570ms
Service Level:
100%
Response Time:
0ms
Service Level:
100%
Response Time:
2,041ms
Service Level:
100%
Response Time:
0ms
Service Level:
100%
Response Time:
153ms
Service Level:
67%
Response Time:
105ms
Service Level:
100%
Response Time:
478ms
Service Level:
100%
Response Time:
587ms
Service Level:
100%
Response Time:
449ms
Service Level:
100%
Response Time:
628ms
Service Level:
100%
Response Time:
417ms
Service Level:
100%
Response Time:
0ms
Service Level:
100%
Response Time:
201ms
Service Level:
100%
Response Time:
1,120ms
Service Level:
100%
Response Time:
2,283ms
Service Level:
100%
Response Time:
266ms
Service Level:
100%
Response Time:
2,379ms