AI Shadows
Last updated
Last updated
The Image Editing API allows you to add realistic shadows to the main subject of the input image.
Here's an example of how you can use AI Shadows to post-process product images at scale:
To add a realistic shadow, set the argument shadow.mode
with one of the following values:
If you've also added an AI Background to your image, then it's not recommended to also add an AI Shadow as the generated background will already include a shadow for the subject.
If you want to give it a try, here's the code to reproduce the examples above:
(original image)
ai.soft
ai.hard
ai.floating