About this endpoint
What it does
Removes the background from an uploaded image using SAM-2 auto-segmentation and returns the result as a transparent PNG. The request sends one image file, and the response is a binary image payload.
Request Body
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| file | String | Yes | Image file to process. Binary upload, max 20 MB. |
Response
Returns a binary file response containing the background-removed image as a transparent PNG.
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| binary response | String | Yes | The processed image file returned by the endpoint. |