Remove image background.
POST/ai/removebg
Remove background from image url or buffer.
Request
Header Parameters
ipaas string
- application/json
Bodyrequired
urlstring
The URL of the image that will be processed.
bufferstring
A Base64-encoded image. Can be specified instead of body.url
.
getAsUrlbooleanrequired
If true, returns the result image as a URL. Otherwise, it will be returned directly.
fileNamestring
If body.getAsUrl
is true, specifies the file name that will be used when downloading the result.
Responses
- 200
- 400
Success
- application/json
- Schema
- Example (auto)
Schema
object
{}
Bad Request
- application/json
- Schema
- Example (auto)
Schema
statusnumber
errorMessagestring
{
"status": 0,
"errorMessage": "string"
}