HD Enlargement
Action
GenerateEnlargeImage
Introduction
⚠️
This interface is no longer maintained.
This interface is used for high-definition picture enlargement
Request
Parameter Name | Type | Description | Required |
---|---|---|---|
Action | String | The corresponding API command name, the current API is GenerateEnlargeImage | ✓ |
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 | |
UpScaler | String | Enlargement algorithm ,reference value: R-ESRGAN 4x+ 、R-ESRGAN 4x+ Anime6B | ✓ |
UpScaleSize | String | Enlargement multiple,1 multiple default size remains unchanged | ✓ |
Image | String | Pictures Base64 that need to be enlarged | ✓ |
Request Example
{
"Action": "GenerateEnlargeImage",
"PublicKey": "your PublicKey",
"request_uuid":"b91fcfbe-bb35-47ce-a168-bd6252c75270",
"UpScaler": "R-ESRGAN 4x+",
"UpScaleSize": 2,
"Signature": "d5c03c9a5ad5cd77073010876976fc4ac90e7814",
"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"
}