API Reference (Legacy)
HD Enlargement

HD Enlargement

API 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