Smart Beauty
开发环境
开发环境
POST
/api/portrait/effects/smart-beauty
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/api/portrait/effects/smart-beauty' \
--header 'ailabapi-api-key;' \
--form 'image_target=@""' \
--form 'multi_face=""' \
--form 'beauty_level=""'
响应示例响应示例
{
"error_code": 0,
"error_code_str": "",
"error_msg": "",
"request_id": "",
"log_id": "",
"data": {
"image": ""
}
}
请求参数
Header 参数
ailabapi-api-key
string
必需
Body 参数multipart/form-data
image_target
file
必需
multi_face
string
必需
1
, beauty enhancement is applied to all faces (it is recommended that the number of faces in the image be less than 18, as too many faces may lead to instability). When set to any other value or not specified, only the largest face is processed.beauty_level
string
必需