Green screen despill

The Remove Background API offers a feature to handle green screen despill.

Green screen despill works by automatically removing colored reflections that have been left on the main subject by a green background, learn more about it in this blog article.

Please note that the green screen despill feature is currently in beta and is subject to changes.

To enable green screen despill, set the argument despill to the value true:

(original image)

despill=false

despill=true

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

curl --request POST \
  --url https://sdk.photoroom.com/v1/segment \
  --header 'x-api-key: YOUR_API_KEY' \
  --form 'image_file=@"/path/to/your/image.jpeg"' \
  --form 'despill=true' \
  --output result-with-green-screen-despill.png

Last updated

Was this helpful?