Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.fapihub.com/llms.txt

Use this file to discover all available pages before exploring further.

Replace the background with a solid color.
https://fapihub.com/v2/rembg/color/

Result

Image
Image

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)