docs
APIs
Background Removal

Background Removal


POST https://sdk.beeble.ai/v1/remove-background

Remove background from an image.

Request

Authentication


Requests are authenticated with an API key. You need x-api-key header of your request.
Example: x-api-key: YOUR_API_KEY

Body

source_image
string($binary)
The source image to remove background.
Please upload the file as a part of the form data. Supported formats include .jpg, .png, and .webp. Images up to 2048x2048 resolution are accepted; images with higher resolution will be downscaled accordingly.

Response

Body

OK
200
Returns a 4-channel image including an alpha with background removed. (image/png)

Example Usage

For those who are not familiar with using API, we recommend using Postman (opens in a new tab).


curl --request POST \
  --url https://sdk.beeble.ai/v1/remove-background \
  --header 'x-api-key: YOUR_API_KEY' \
  --form source_image=@original.jpg \
  -o result.png # Remove if the image is broken; error will show.

Examples of input and output


Original Image
source_image
Result Image
result

Support

Any question? Contact us at info@beeble.ai or join our Discord channel (opens in a new tab).