DOCUMENT:
Cleanup | Clipdrop APIs
Request Body Parameters
image_file (required)
- Type: file
- Required: Yes
- Description: The original image to process. The image should be a JPG or PNG file, with a maximum resolution of 16 megapixels and a max file size of 30 MB.
- Example: "[email protected]"
mask_file (required)
- Type: file
- Required: Yes
- Description: The mask image defining the areas that need to be removed. The mask image should be a PNG with the same resolution as the original image and a max file size of 30 MB. The mask should be black and white with no grey pixels (0 indicating a pixel to keep, 255 indicating a pixel to clean up).
- Example: "[email protected]"
mode (optional)
- Type: text
- Required: No
- Description: Controls the tradeoff between speed and quality.
- Enum: "fast" (default), "quality"
- Example: "quality"
Example Requests