Age & Gender swap
开发环境
开发环境
POST
/api/portrait/effects/face-attribute-editing
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/api/portrait/effects/face-attribute-editing' \
--header 'ailabapi-api-key;' \
--form 'image=@""' \
--form 'action_type=""' \
--form 'quality_control=""' \
--form 'face_location=""' \
--form 'target=""'
响应示例响应示例
0 - TO_KID|TO_OLD|TO_FEMALE|TO_MALE - TO_KID|TO_OLD|TO_FEMALE|TO_MALE
{
"error_code": 0,
"error_msg": "",
"request_id": "",
"log_id": "",
"data": {
"image": ""
}
}
请求参数
Header 参数
ailabapi-api-key
string
必需
Body 参数multipart/form-data
image
file
必需
action_type
string
必需
quality_control
string
必需
Please select the appropriate option based on quality information such as masking, lighting, blurriness, and integrity of the face.
If selecting a higher quality causes the image to be unprocessable, please select a lower quality to try.
face_location
string
必需
target
string
必需