Skip to main content
Generate a subject mask from an image. Returns a processed image directly in the response body.
https://fapihub.com/v2/rembg/mask/

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/mask/" \
  -H "ApiKey: API_TOKEN" \
  -F "image=@image.jpg" \
  -F "model=falcon" \
  -o mask.png

Responses

Binary image data (the processed image with background removed)