Remove Background
POST
/crop/remove-backgroundThe Remove Background API empowers you to effortlessly eliminate backgrounds from your images, delivering PNG files with transparent backgrounds. Whether you're enhancing product images for your e-commerce platform, refining portraits for professional use, or creating visually appealing designs, this API streamlines the process of background removal with precision and ease.
Example 1: Below given example removes the background from the image and streams it back to you.
curl --location --request POST 'https://us1-api.crop.photo/v1/crop/remove-background' \
--header 'User-Agent: Apidog/1.0.0 (https://apidog.com)' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--data-raw '{
"image_url": "https://loremflickr.com/640/480/sports",
"response_type": "stream"
}'
Request
Body Params application/json
object {0}
Example
{}
Request samples
Responses
Success(200)
HTTP Code: 200
Content Type : Binaryapplication/octet-stream
Example
Not configured
Last modified: a month ago