How to use AI Background Removal in Templates

Use AI to automatically crop subjects from a photo. Can be enabled from within the Template Editor, then flagged as "ai-background-remove": "enabled"  in your API requests.

Enable In Editor

  1. Add a Rectangle / Circle Image Container (doesn't work with static image)
  2. Find the AI Background Removal section on the right
  3. Select Enabled from the drop-down menu

Flag in API Request

We'll need to include the flag "ai-background-remove": "enabled" in the requests to let the API know we want to trigger the background removal.

{
  "template": "ax9mYepjJgDpg8bAnB",
  "modifications": {
    "objects": [
      {
        "name": "image",
        "background-image": "https://cdn.filestackcontent.com/05RUcWeQJqm3EAf4jTH5",
        "ai-background-remove": "enabled"
      }
    ]
  }
}

Note: AI Background Removal works best when there's a clear subject, otherwise, your results may be undesirable.

Start a Free Trial

Start a free trial with 30 API credits, no credit card required

Resize Video
Add Intro Animation
Add Subtitles

Get Started for Free