Skip to main content
Remove background from an image. This is a synchronous endpoint that returns the processed image directly in the response body.
https://fapihub.com/v2/rembg/

Request

Headers

ApiKey
string
required
Your API token.

Body

image
file
required
The image file to process. Send as multipart form data.
model
string
Optional processing model. Allowed values: falcon, aurora, ghost. Default is falcon.Supported only for /v2/rembg/ and /v2/rembg/mask/.

Code Samples

curl -X POST "https://fapihub.com/v2/rembg/" \
  -H "ApiKey: your_api_token" \
  -F "image=@/path/to/image.jpg" \
  -F "model=falcon" \
  -o result.png

Responses

Binary image data (the processed image with background removed)