Costume background removal
开发环境
开发环境
POST
/api/cutout/general/apparel-background-removal
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/api/cutout/general/apparel-background-removal' \
--header 'ailabapi-api-key;' \
--form 'image=@""' \
--form 'cloth_class=""' \
--form 'return_form=""'
响应示例响应示例
{
"error_code": 0,
"error_code_str": "",
"error_msg": "",
"request_id": "",
"log_id": "",
"data": {
"elements": [
{
"image_url": ""
},
{
"class_url": {
"tops": "",
"coat": "",
"skirt": "",
"pants": "",
"bag": "",
"shoes": "",
"hat": ""
}
}
]
}
}
请求参数
Header 参数
ailabapi-api-key
string
必需
Body 参数multipart/form-data
image
file
必需
cloth_class
string
必需
tops
: Tops.coat
: Coat.skirt
: Skirt.pants
: Pants.bag
: Bag.shoes
: Shoes.hat
: Hat.return_form
string
必需
whiteBK
: Returns an image with a white background.