curl --location --request POST 'https://image-api.photoroom.com/v1/segment' \
--header 'x-api-key;'
{
"base64img": "string"
}
#FF00FF
) or a HTML color (red
, green
, etc.)preview
(0.25 Megapixels), medium
(1.5 MP), hd
(4 MP) or full
(36 MP, can be slower for large images). Useful for mobile apps that need smaller images.true
, the image returned is cropped to the cutout border. Transparent pixels are removed from the border