Image Eraser
Images
Image Eraser
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.
Request Headers
Enum value:
application/jsonBearer authentication format: Bearer {{API Key}}.
Request Body
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.
The original image to generate the image from.
A text prompt used to specify the object or area to remove from the image. For example: ‘dog’ or ‘hat’.
The format of the output image.Optional values:
jpeg, png, webpResponse Information
Use task_id to request the Get Task Result API to retrieve the generated output.