Skip to main content
Replace the background with a solid color.
https://fapihub.com/v2/rembg/color/

Request

Headers

ApiKey
string
required
Your API token.

Body

image
file
required
The image file to process. Send as multipart form data.
bgcolor
string
required
Background color in RGB format. Example: (255, 140, 0, 255)

Code Samples

curl -X POST "https://fapihub.com/v2/rembg/color/" \
  -H "ApiKey: API_TOKEN" \
  -F "image=@image.jpg" \
  -F "bgcolor=(255, 140, 0, 255)"

Responses

Binary image data (the processed image with background removed)