Photoroom API Documentation
Ask or search…
K

AI Shadows

The Image Editing API allows you to add realistic shadows to the main subject of the input image.
To add a realistic shadow, set the argument shadow.mode with one of the following values:
(original image)
ai.soft
ai.hard
ai.floating
If you want to give it a try, here's the code to reproduce the examples above:
curl 'https://beta-sdk.photoroom.com/v2/edit?background.color=FFFFFF&outputSize=1000x1000&padding=0.1&shadow.mode=ai.soft&imageUrl=URL_OF_YOUR_IMAGE' \
--header 'x-api-key: YOUR_API_KEY' \
--output with-realistic-shadow.png