Edit in GitHubLog an issue

Remove Background

This API uses advanced AI to automatically detect and isolate the main subject of an image and remove the background.

Overview

The /cutout endpoint can recognize the subject of an image and eliminate the background, providing the subject as the output.

alt image

Use the following curl command to remove the background from an image:

Copied to your clipboard
curl -X POST \
https://image.adobe.io/sensei/cutout \
-H "Authorization: Bearer $token" \
-H "x-api-key: $apiKey" \
-H "Content-Type: application/json" \
-d '{
"input":{
"storage":"<your_storage>",
"href":"<SIGNED_GET_URL>"
},
"output":{
"storage":"<your_storage>",
"href":"<SIGNED_POST_URL>",
"mask":{
"format":"soft"
}
}
}'

This initiates an asynchronous job and returns a response containing an href. Use the value in the href to poll for the status of the job.

Customized workflow

This customized workflow is for users who'd like to generate remove background results as a Photoshop path instead of a regular mask. You'll need to chain API calls to Remove Background service and Photoshop Service.

You'll need to open the result in the Photoshop Desktop application to see the path in the path panel.

You can download the sample end-to-end bash script and follow the comments to try out this customized workflow.

Sample input and output:

Steps

  1. Download the make-file.atn file. This file will be used in the Photoshop action API call.
  2. Make the first API call to the Remove Background service to generate an intermediate result as RGBA remove background.
  3. Make the second API call to the Photoshop Action service to use the intermediate result as well as the make-file.atn file to generate a final JPEG format result with the desired Photoshop path embedded.
  4. Open the final result with the Photoshop Desktop app to check the generated path in the path panel.
  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2025 Adobe. All rights reserved.