Restore Faces
Action
GenerateRepairFace
Introduction
⚠️
This interface is no longer maintained.
This interface is used for Restoring Faces
Request
Parameter Name | Type | Description | Required |
---|---|---|---|
Action | String | The corresponding API command name, the current API is GenerateRepairFace | ✓ |
PublicKey | String | User's public key, can be obtained from User Center (opens in a new tab) | ✓ |
Signature | String | User signature generated based on public key and API command, see Signature | ✓ |
request_uuid | String | Request UUID, randomly generated using UUID generation method | |
RepairWeight | String | Repair ratio,Range: 0 ~ 1, the larger the value, the stronger the repair effect. | ✓ |
Image | String | Picture Base64 that needs facial repair | ✓ |
Request Example
{
"Action": "GenerateRepairFace",
"PublicKey": "ALLak9M4cNdHXKOJAJJ4k8Hh1hZS2EgJF1D0FlPwfl",
"request_uuid": "b91fcfbe-bb35-47ce-a168-bd6252c75270",
"RepairWeight": 0.8,
"Signature": "4b0e2666680e03641c1ad2eb3863d2089e67995b",
"Image": "data:image/jpeg;base64,xxx"
}
Response
Parameter Name | Type | Description | Required |
---|---|---|---|
RetCode | Int | Return status code, 0 for successful return, non-zero for failure | ✓ |
Action | String | Operation command name | ✓ |
Message | String | Return error message, provide detailed description when RetCode is non-zero | |
TaskUID | String | Task UID, used to query task details and get results | ✓ |
Response Example
{
"Action":"",
"RetCode":0,
"Message":"",
"TaskUID":"cjr997tleg738lelk3n0"
}