Remove Background

POST https://api.chatseystudio.com/api/async/remove_background

The Remove Background API allows developers to automatically isolate subjects from their backgrounds. This service identifies the primary subject of an image and removes the surrounding environment to create a transparent or clean output.

  • Submit a POST request to the Remove Background API to obtain a taskId.
  • Submit a POST request to the Polling API to retrieve the background removal results.

Request Headers

Content-Type string Required
Enum: application/json
Authorization string Required
Bearer authentication token. Example: Bearer {{APIKey}}.

Request Body

url string Required
The URL of the image to process. Must be a publicly accessible URL.
outputFormat string
Output format: "png" (with transparency) or "jpg". Default: "png".
Request
1curl -X POST 'https://api.chatseystudio.com/api/async/remove_background' \
2  -H 'Content-Type: application/json' \
3  -H 'Authorization: Bearer {{key}}' \
4  -d '{
5    "url": "https://storage.chatseystudio.com/api/uploads/image.jpg"
6  }'
Successful
1{
2  "code": 0,
3  "message": "success",
4  "data": {
5    "taskId": "b0a337dc8d7428daa64b3d5e61b835d"
6  }
7}