AI removes unwanted objects, watermarks, blemishes, or distractions from images. Mark the removal area with a mask image or rectangles, then get a naturally inpainted result. It works for ecommerce product photos, portraits, and design assets, with async and sync request modes.
The result image URL is valid for 1 hour. Please download and store it promptly.
Authentication
Every API request must include your API Key in the X-API-KEY request header. Send it with each request exactly as shown in the examples and parameter descriptions.
X-API-KEY: YOUR_API_KEY Create an objects removal task
/api/tasks/visual/inpaint Body Parameters
image_url string optional Source image URL. If this parameter is present, image_file must be empty.
image_file file optional Source image file as binary data. If this parameter is present, image_url must be empty.
For image upload requirements, see Guidelines and Limits #6.
mask_url string optional Mask image URL. If this parameter is present, the other removal-area parameters must be empty.
For removal-area requirements, see Guidelines and Limits #5.
mask_file file optional Mask image file as binary data. If this parameter is present, the other removal-area parameters must be empty.
For removal-area requirements, see Guidelines and Limits #5.
rectangles string optional One or more rectangular areas to erase, up to 50 rectangles. Example: [{"x":0,"y":0,"width":100,"height":100}]. If this parameter is present, the other removal-area parameters must be empty.
For removal-area requirements, see Guidelines and Limits #5.
return_type integer optional Result return type. 1 returns an image URL; 2 returns a base64-encoded image string. Default is 1.
sync integer optional Whether to return the result immediately. 0 returns task_id asynchronously and lets you fetch the result later through the query endpoint; 1 waits for the result and returns it immediately. Results are retained for up to 1 hour after submission.
Return Parameters
status number HTTP response status code. 200 means success, and non-200 means failure. See Status Code Definitions.
message string Response message. If the task fails, refer to this field or contact support.
data.task_id string Objects removal task ID used for polling.
status number HTTP response status code. 200 means success, and non-200 means failure. See Status Code Definitions.
message string Response message. If the task fails, refer to this field or contact support.
data.task_id string Objects removal task ID. If the task fails, contact support with this task_id.
data.created_at string Timestamp of task creation.
data.processed_at string Timestamp when the task started to be processed.
data.completed_at string Timestamp of task completion.
data.image string Result image URL or Base64 data. URL results are valid for 1 hour.
data.progress number Task progress. 100 means processing is complete.
data.state number Task status. 1 means succeeded, 0 or greater than 1 means processing, and less than 0 means failed. -7 means invalid image file. See Status Code Definitions.
Query objects removal result
/api/tasks/visual/inpaint/{task_id} Path Parameters
task_id string required Task ID returned after creating an async objects removal task. Use it to query the processing result.
Return Parameters
status number HTTP response status code. 200 means success, and non-200 means failure. See Status Code Definitions.
message string Response message. If the task fails, refer to this field or contact support.
data.task_id string Objects removal task ID. If the task fails, contact support with this task_id.
data.created_at string Timestamp of task creation.
data.processed_at string Timestamp when the task started to be processed.
data.completed_at string Timestamp of task completion.
data.image string Result image URL or Base64 data. URL results are valid for 1 hour.
data.progress number Task progress. 100 means processing is complete.
data.state number Task status. 1 means succeeded, 0 or greater than 1 means processing, and less than 0 means failed. -7 means invalid image file. See Status Code Definitions.
Guidelines and Limits
-
The result image URL is valid for 1 hour. Please download and store it promptly.
-
HTTP status 200 means the HTTP request succeeded, not that object removal succeeded. Check data.state for the task result. See Status Code Definitions.
-
When passing URLs as parameters, follow URL encoding standards to prevent parameter parsing issues.
-
You must not use this service for any activity that violates laws, regulations, or the legitimate rights of others.
-
You need to mark the removal area before processing. The API supports mask images and rectangles. For a mask image, the mask must have the same size as the source image; the removal area is white and the rest is black. The removal area should not exceed 50% of the source image.
Source Image Mask Image Result Image
-
Uploaded images must meet the following format, resolution, and file size limits.
Format Resolution Size jpg, jpeg, bmp, png, webp, tiff, tif, bitmap, raw, rgb, jfif, lzw Up to 4096 x 4096 Up to 20MB
# Objects Removal API
Remove unwanted objects, watermarks, blemishes, or distractions from images. Mark the removal area with a mask image or rectangles, then get a naturally inpainted result. The API supports asynchronous and synchronous request modes.
> Note: The result image URL is valid for 1 hour. Please download and store it promptly.
## Base URL
All paths below are relative to the Base URL:
```
https://techhk.aoscdn.com
```
## Authentication
Every request must include your API key in the `X-API-KEY` request header:
```http
X-API-KEY: YOUR_API_KEY
```
Get or manage your API key from [API Key](https://picwish.com/my-account?subRoute=api-key).
Requests without a valid key are rejected.
## Request modes
The mode is controlled by the `sync` body parameter:
- Asynchronous (`sync=0`, recommended): the create request returns immediately with `data.task_id`. Poll the query endpoint with that task ID until processing finishes.
- Synchronous (`sync=1`): the create request waits for processing to finish and returns the result directly in the same response.
Result images are retained for up to 1 hour after a successful request.
## Providing the source image and removal area
One source image is required, and `image_url` / `image_file` are mutually exclusive:
- `image_url` - source image URL. If this parameter is present, the other image source parameter must be empty.
- `image_file` - source image file uploaded as `multipart/form-data` binary data. If this parameter is present, the other image source parameter must be empty.
One removal-area input is also required, and `mask_url` / `mask_file` / `rectangles` are mutually exclusive:
- `mask_url` - mask image URL.
- `mask_file` - mask image uploaded as binary data.
- `rectangles` - one or more rectangles, up to 50 rectangles.
## Endpoints
| Purpose | Method | Path |
| --- | --- | --- |
| Create an objects removal task | POST | /api/tasks/visual/inpaint |
| Query a task result (async) | GET | /api/tasks/visual/inpaint/{task_id} |
## Create an objects removal task
`POST /api/tasks/visual/inpaint`
Content-Type: `multipart/form-data`
### Body parameters
| Name | Type | Required | Description |
| --- | --- | --- | --- |
| image_url | string | one of image_url / image_file | Source image URL. If this parameter is present, image_file must be empty. |
| image_file | file | one of image_url / image_file | Source image file as binary data. If this parameter is present, image_url must be empty. |
| mask_url | string | one of mask_url / mask_file / rectangles | Mask image URL. If this parameter is present, the other removal-area parameters must be empty. |
| mask_file | file | one of mask_url / mask_file / rectangles | Mask image file as binary data. If this parameter is present, the other removal-area parameters must be empty. |
| rectangles | string | one of mask_url / mask_file / rectangles | One or more rectangular areas to erase, up to 50 rectangles. Example: `[{"x":0,"y":0,"width":100,"height":100}]`. If this parameter is present, the other removal-area parameters must be empty. |
| return_type | integer | optional | 1 = return image URL; 2 = return base64-encoded image string. Default is 1. |
| sync | integer | optional | 0 = asynchronous; 1 = synchronous. If sync=0, the API returns task_id and the result can be fetched later through the query endpoint. |
### Return parameters - asynchronous (sync=0)
| Name | Type | Description |
| --- | --- | --- |
| status | number | HTTP response status code. 200 means the request succeeded, and non-200 means failure. See /states. |
| message | string | Response message. If the task fails, refer to this field or contact support. |
| data.task_id | string | Task ID used for polling. |
### Return parameters - synchronous (sync=1)
| Name | Type | Description |
| --- | --- | --- |
| status | number | HTTP response status code. 200 means the request succeeded, and non-200 means failure. See /states. |
| message | string | Response message. If the task fails, refer to this field or contact support. |
| data.task_id | string | Task ID. If the task fails, contact support with this task_id. |
| data.created_at | string | Timestamp of task creation. |
| data.processed_at | string | Timestamp when the task started to be processed. |
| data.completed_at | string | Timestamp of task completion. |
| data.image | string | Result image URL or Base64 data. URL results are valid for 1 hour. |
| data.progress | number | Task progress. 100 means processing is complete. |
| data.state | number | Task status. 1 = succeeded; 0 or > 1 = processing; < 0 = failed. -7 means invalid image file. See /states. |
### Examples
Asynchronous, image URL and mask URL:
```bash
curl -k 'https://techhk.aoscdn.com/api/tasks/visual/inpaint' \
-H 'X-API-KEY: YOUR_API_KEY' \
-F 'sync=0' \
-F 'image_url=YOUR_IMAGE_URL' \
-F 'mask_url=YOUR_MASK_IMAGE_URL'
```
Asynchronous, image file and mask file:
```bash
curl -k 'https://techhk.aoscdn.com/api/tasks/visual/inpaint' \
-H 'X-API-KEY: YOUR_API_KEY' \
-F 'sync=0' \
-F 'image_file=@/path/to/image.jpg' \
-F 'mask_file=@/path/to/mask.png'
```
Synchronous, image URL and rectangles:
```bash
curl -k 'https://techhk.aoscdn.com/api/tasks/visual/inpaint' \
-H 'X-API-KEY: YOUR_API_KEY' \
-F 'sync=1' \
-F 'image_url=YOUR_IMAGE_URL' \
-F 'rectangles=[{"x":0,"y":0,"width":100,"height":100}]'
```
Example async create response:
```json
{
"status": 200,
"message": "success",
"data": { "task_id": "TASK_ID" }
}
```
## Query objects removal result
`GET /api/tasks/visual/inpaint/{task_id}`
Use this in asynchronous mode to poll for the result.
### Path parameters
| Name | Type | Required | Description |
| --- | --- | --- | --- |
| task_id | string | required | The task ID returned after creating an async objects removal task. |
### Return parameters
| Name | Type | Description |
| --- | --- | --- |
| status | number | HTTP response status code. 200 means the request succeeded, and non-200 means failure. See /states. |
| message | string | Response message. If the task fails, refer to this field or contact support. |
| data.task_id | string | Task ID. If the task fails, contact support with this task_id. |
| data.created_at | string | Timestamp of task creation. |
| data.processed_at | string | Timestamp when the task started to be processed. |
| data.completed_at | string | Timestamp of task completion. |
| data.image | string | Result image URL or Base64 data. URL results are valid for 1 hour. |
| data.progress | number | Task progress. 100 means processing is complete. |
| data.state | number | Task status. 1 = succeeded; 0 or > 1 = processing; < 0 = failed. -7 means invalid image file. See /states. |
### Example
```bash
curl -k 'https://techhk.aoscdn.com/api/tasks/visual/inpaint/{task_id}' \
-H 'X-API-KEY: YOUR_API_KEY'
```
Example completed response:
```json
{
"status": 200,
"message": "success",
"data": {
"task_id": "TASK_ID",
"state": 1,
"progress": 100,
"image": "https://.../result.jpg",
"completed_at": "1634884056"
}
}
```
## Recommended asynchronous flow
1. POST to /api/tasks/visual/inpaint with `sync=0`, one source image, and one removal-area input.
2. Read `data.task_id` from the create response.
3. GET /api/tasks/visual/inpaint/{task_id} every 1 second.
4. Inspect `data.state`: 1 = done (read `data.image`); 0 or > 1 = keep polling; < 0 = failed.
5. Download the result image within 1 hour.
## Guidelines and Limits
- The result image URL is valid for **1 hour**. Please download and store it promptly.
- HTTP status 200 means the HTTP request succeeded, not that object removal succeeded. Check data.state for the task result. See /states.
- When passing URLs as parameters, follow URL encoding standards to prevent parameter parsing issues.
- You must not use this service for any activity that violates laws, regulations, or the legitimate rights of others.
- You need to mark the removal area before processing. The API supports mask images and rectangles. For a mask image, the mask must have the same size as the source image; the removal area is white and the rest is black. The removal area should not exceed 50% of the source image.
- The image examples below show how the source image, mask image, and result image correspond to each other.
| Source Image | Mask Image | Result Image |
| --- | --- | --- |
| [](https://picwish.comhttps://cfcdn.apowersoft.info/astro/picwish/_astro/origin.B1phYP7c.jpg) | [](https://picwish.com/data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAmoAAAFwBAMAAAD6WUosAAAAKlBMVEUAAAAAAAAAAAAAAAAAAAD////9/f0HBwf6+voODg4LCwsVFRX4+Pj29vYuRf2RAAAABHRSTlMAgL9ARyeO/QAADbdJREFUeNrs1sFJAwEURdEIFqBgAS4sQOwgcfqvyej+gZPVX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ONXM2sN7fxEWTTjAOsAahtTSLZX8/39B+cUOHRIAAMNAEPPvemC0zw8kEvJZO1hLsGZtsJZgzdpgLcGatcFagjVrg7UEa9YGawnWrA3WEqy9duuYBgEABqJoAQOQ4AAkIABI/WsisHco0w3vS3hpk6M2RC0iatSGqEVEjdoQtYioURuiFhE1akPUIqJGbYhaRNSoDVGLiBq1IWoRUaM2RC0iatSGqEVEjdoQtYio/VPdW9ve1P7oVY/WXu3Y2vasU2vbuera2j5o1aG1PjXHtu1Wvy7Wx2KrfdE+0+SPaPs5Do8AAAAASUVORK5CYII=) | [](https://picwish.comhttps://cfcdn.apowersoft.info/astro/picwish/_astro/result.wKBK6h1C.jpg) |
- Uploaded images must meet the following format, resolution, and file size limits.
| Format | Resolution | File size |
| --- | --- | --- |
| jpg, jpeg, bmp, png, webp, tiff, tif, bitmap, raw, rgb, jfif, lzw | Up to 4096 x 4096 | Up to 20MB |
## Status codes
Determine success by combining the HTTP response status code (`status`) with the task status code (`data.state`).
### HTTP response status codes
| Code | Meaning |
| --- | --- |
| 200 | The request is successful. |
| 400 | Wrong parameter passed by the client. Check whether a parameter is missing or has an incorrect value. |
| 401 | Unauthorized API key. Check that X-API-KEY is correct and the service is enabled. |
| 404 | The requested URL or resource does not exist. Check that the URL or task_id is correct. |
| 413 | The uploaded file exceeds the allowed size. Refer to the supported image size. |
| 429 | Request frequency exceeds the QPS limit (default QPS is 2). Slow down or contact us to raise your QPS. |
| 500 | Server-side exception. Please contact support. |
### Task status codes (data.state)
1 = succeeded; greater than 1 = still processing; less than 0 = failed.
| Code | Meaning |
| --- | --- |
| -17 | Processing failed because the prompt is invalid. |
| -16 | Processing failed because a third-party review detected prohibited content. |
| -15 | Processing failed due to insufficient resources. |
| -14 | Processing failed because the input image content does not meet the requirements. |
| -13 | Processing failed because the task was canceled due to an exception. |
| -11 | Processing failed because the result is empty. |
| -10 | Processing failed because internal review detected prohibited content. |
| -9 | Processing failed because the internal program failed during loop processing. |
| -8 | Processing timed out. The maximum processing time is 180 seconds. |
| -7 | Invalid image file (e.g. corrupted image or incorrect format). |
| -5 | The image_url image exceeds the size limit (30MB). |
| -3 | The server failed to download your file. Check that the source image URL is available. |
| -2 | Processing completed, but uploading the result to OSS failed. |
| -1 | Processing failed. |
| 0 | Queued. The task is waiting in the queue. |
| 1 | Completed. Processing succeeded. |
| 2 | Preparing. |
| 3 | Waiting. |
| 4 | Processing in progress. |
| 5 | Internally publishing the result. |
| 6 | Processing. Internal loop processing is in progress. |