Smart Cropping
Overview
curl --request POST \
--url https://image-api.photoroom.com/v2/edit \
--header 'x-api-key: YOUR_API_KEY_HERE' \
--form imageFile=@/path/to/image.png \
--form removeBackground=false \
--form outputSize=2000x2000 \
--form padding=10% \
--form segmentation.prompt=product \
--output result-smart-crop.pngExamples
Last updated
Was this helpful?











