API Reference (Legacy)
Restore Faces

Restore Faces

API GenerateRepairFace

Introduction

⚠️

This interface is no longer maintained.

This interface is used for Restoring Faces

Request

Parameter NameTypeDescriptionRequired
ActionstringThe corresponding API command name, the current API is GenerateRepairFace
PublicKeystringUser's public key, can be obtained from User Center (opens in a new tab)
SignaturestringUser signature generated based on public key and API command, see Signature
request_uuidstringRequest UUID, randomly generated using UUID generation method
RepairWeightstringRepair ratio,Range: 0 ~ 1, the larger the value, the stronger the repair effect.
ImagestringPicture 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 NameTypeDescriptionRequired
RetCodeintReturn status code, 0 for successful return, non-zero for failure
ActionstringOperation command name
MessagestringReturn error message, provide detailed description when RetCode is non-zero
TaskUIDstringTask UID, used to query task details and get results

Response Example

{
    "Action":"",
    "RetCode":0,
    "Message":"",
    "TaskUID":"cjr997tleg738lelk3n0"
}