# AI Object Removal

# Overview
Remove unwanted objects with precision from your photos while preserving intricate details.
To use this amazing feature, simply input a photo along with a grayscale mask where white pixels indicate foreground elements and black pixels represent background areas. The AI Object Removal then leverages advanced algorithms to produce natural-looking images by effectively removing unwanted objects such as people, reflections, shadows, and other distractions from your photos.

Sample input:
![](https://bcw-media.s3.ap-northeast-1.amazonaws.com/yce_removal_s4_poster_1_594c5b12a3.jpg)

Sample output:
![](https://bcw-media.s3.ap-northeast-1.amazonaws.com/yce_removal_s4_poster_2_4a858c74b7.jpg)

Sample input:
![](https://bcw-media.s3.ap-northeast-1.amazonaws.com/yce_removal_s3_poster_1_f7a922c2fd.jpg)

Sample output:
![](https://bcw-media.s3.ap-northeast-1.amazonaws.com/yce_removal_s3_poster_2_8894e78c01.jpg)


License: Privacy policy

## Servers

```
https://yce-api-01.makeupar.com
```

## Security

### BearerAuthenticationV2

Use the standard 'Bearer authentication'. Put your 'API Key' in header: `Authorization:Bearer YOUR_API_KEY`. Notice that there is ' ' a space between 'Bearer' and the 'YOUR_API_KEY'.

Type: http
Scheme: bearer

## Download OpenAPI description

[AI Object Removal](https://docs.perfectcorp.com/_bundle/reference/ai_object_removal.yaml)

## V1.0

Remove unwanted objects from photos using AI-powered segmentation and inpainting.

### Create a new file.

 - [POST /s2s/v2.0/file/obj-removal](https://docs.perfectcorp.com/reference/ai_object_removal/v1.0/paths/~1s2s~1v2.0~1file~1obj-removal/post.md): To upload a new file, you'll first need to use the File API. It will give you a URL – use that URL to upload your file. Once the upload is finished, you can use the file_id from the same response to start using our AI features.

### Run an AI Object Removal task.

 - [POST /s2s/v2.0/task/obj-removal](https://docs.perfectcorp.com/reference/ai_object_removal/v1.0/paths/~1s2s~1v2.0~1task~1obj-removal/post.md): This endpoint initiates the object removal process. You must provide a file ID obtained from the file upload API and a mask file (either via URL or File ID) indicating the area to remove. The task will be processed asynchronously, and you can check its status using the task_id returned in this response.

### Check an AI Object Removal task status.

 - [GET /s2s/v2.0/task/obj-removal/{task_id}](https://docs.perfectcorp.com/reference/ai_object_removal/v1.0/paths/~1s2s~1v2.0~1task~1obj-removal~1%7Btask_id%7D/get.md)

