Skip to main content
POST
Image Eraser
This is an asynchronous API and only returns an asynchronous task_id. You need to use the task_id to call the task result query API to retrieve the image erasing result.
This is an asynchronous API and will only return the task_id of the asynchronous task. You should use this task_id to request the Get Task Result API to retrieve the generated result.

Request Headers

string
required
Enum value: application/json
string
required
Bearer authentication format: Bearer {{API Key}}.

Request Body

string
The mask image used to indicate the area to erase. The area to erase should be white, and the area to keep should be black.
string
required
The original image to generate the image from.
string
A text prompt used to specify the object or area to remove from the image. For example: ‘dog’ or ‘hat’.
string
default:"jpeg"
The format of the output image.Optional values: jpeg, png, webp

Response Information

string
required
Use task_id to request the Get Task Result API to retrieve the generated output.