Human background removal
开发环境
开发环境
POST
/api/cutout/portrait/portrait-background-removal
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/api/cutout/portrait/portrait-background-removal' \
--header 'ailabapi-api-key;' \
--form 'image=@""' \
--form 'return_form=""'
响应示例响应示例
{
"error_code": 0,
"error_code_str": "",
"error_msg": "",
"request_id": "",
"log_id": "",
"data": {
"image_url": ""
}
}
请求参数
Header 参数
ailabapi-api-key
string
必需
Body 参数multipart/form-data
image
file
必需
return_form
string
必需
mask
: Returns a single channel mask.whiteBK
: Return to white background image.crop
: Returns the four-channel PNG image after cropping (cropping out the blank areas around the edges).