AI Relighting
Last updated
Was this helpful?
Last updated
Was this helpful?
If your image has been underexposed or overexposed, the Image Editing API enables you to fix this issue by re-lighting the image.
To re-light an image, set the argument lighting.mode=ai.auto
.
AI Relight is a compute-intensive process: you can expect the API call to typically take between 5 and 10 seconds to complete.
Please note that AI Relight is currently limited to images with a maximum resolution of 3,500x3,500 pixels.
Known issue: we don't recommend using AI Relight along with AI Expand in a same API call.
Here are some example of what re-lighting can achieve:
Original
Re-lighted
If you want to give it a try, here's the code to reproduce the examples above: