Stretched Image Restoration API
Request
Image requirements
- Image format:
PNG
JPG
JPEG
BMP
- Image size: No more than 8 MB.
- Image resolution: Larger than 10x10px, smaller than 5000x5000px.
- Image aspect ratio: Aspect ratio within 4:1.
Body
Field | Required | Type |
---|---|---|
image | YES | file |
Response
Response Field Handling Flow
-
Handle
Public Response Fields
Parse and validate the
Public Response Fields
, checking the status code or response message to ensure the request is successful and error-free. -
Handle
Business Response Fields
If the
Public Response Fields
are valid and error-free, proceed with processing the business logic in theBusiness Response Fields
.
Public Response Fields
Viewing Public Response Fields and Error CodesBusiness Response Fields
Field | Type | Description |
---|---|---|
image | string | base64 encoded image. |
ratio | float | Recover ratio. |
Response Example
{
"request_id": "",
"log_id": "",
"error_code": 0,
"error_msg": "",
"error_detail": {
"status_code": 200,
"code": "",
"code_message": "",
"message": ""
},
"image": "",
"ratio": 0
}