Replace the background with a solid color.
https://fapihub.com/v2/rembg/color/
Request
Body
The image file to process. Send as multipart form data.
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)