Last updated
Was this helpful?
Was this helpful?
curl --request POST \
--url https://image-api.photoroom.com/v2/edit \
--header 'x-api-key: YOUR_API_KEY' \
--form 'imageFile=@"/path/to/image.jpeg"' \
--form 'outputSize="1920x1080"' \
--form 'referenceBox="originalImage"' \
--form 'removeBackground="false"' \
--form 'expand.mode="ai.auto"' \
--output result-ai-expand.png