DOCUMENT:
Remove Background | Clipdrop APIs
Request Body Parameters
image_file (required)
- Type: file
- Required: Yes
- Description: The original image to process. The image should be a PNG, JPG, or WEBP file, with a maximum resolution of 25 megapixels and a max file size of 30 MB.
- Example: "[email protected]"
transparency_handling (optional)
- Type: string
- Required: No
- Description: Specifies how to handle transparency in the image.
- Enum: "return_input_if_non_opaque" (default), "discard_alpha_layer"
- Example: "discard_alpha_layer"
Example Requests
CURL Example
curl -X POST <https://clipdrop-api.co/remove-background/v1> \\\\
-H 'x-api-key: YOUR_API_KEY' \\\\
-F '[email protected]' \\\\
-o result.png