API Reference (Legacy)
HD Enlargement

HD Enlargement

Action GenerateEnlargeImage



This interface is no longer maintained.

This interface is used for high-definition picture enlargement


Parameter NameTypeDescriptionRequired
ActionStringThe corresponding API command name, the current API is GenerateEnlargeImage
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
UpScalerStringEnlargement algorithm ,reference value: R-ESRGAN 4x+R-ESRGAN 4x+ Anime6B
UpScaleSizeStringEnlargement multiple,1 multiple default size remains unchanged
ImageStringPictures Base64 that need to be enlarged

Request Example

    "Action":    "GenerateEnlargeImage",
    "PublicKey": "your PublicKey",
    "UpScaler": "R-ESRGAN 4x+",
    "UpScaleSize": 2,
    "Signature": "d5c03c9a5ad5cd77073010876976fc4ac90e7814",
    "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