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)

shadow.mode=ai.soft

shadow.mode=ai.hard

shadow.mode=ai.floating

Try it now!

circle-exclamation

Here's an example of how you can use AI Shadows to post-process product images at scale:

If you want to give it a try, here's the code to reproduce the examples above:

Last updated

Was this helpful?