How to download the segmentation mask
curl --request POST \
--url https://sdk.photoroom.com/v1/segment \
--header 'x-api-key: YOUR_API_KEY' \
--form image_file=@/absolute/path/to/image.jpg \
--form channels=alpha \
--output segmentation-mask.pngLast updated
Was this helpful?




