Skip to main content
Apply a realistic shadow to the subject.
https://fapihub.com/v2/rembg/gradient/

Request

Headers

ApiKey
string
required
Your API token.

Body

image
file
required
The image file to process. Send as multipart form data.
shadow_color
string
required
Shadow color in RGB format.
offset
string
required
Offset in pixels (x, y).
blur_radius
integer
required
Blur radius for the shadow.

Code Samples

curl -X POST "https://fapihub.com/v2/rembg/shadow/" \
  -H "ApiKey: API_TOKEN" \
  -F "image=@image.jpg" \
  -F "shadow_color=(0, 0, 0, 150)" \
  -F "offset=(10, 10)" \
  -F "blur_radius=15"

Responses

Binary image data (the processed image with background removed)