API Reference (Legacy)
Restore Faces

Restore Faces

Action GenerateRepairFace



This interface is no longer maintained.

This interface is used for Restoring Faces


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"


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