API Reference
Resize Image

Resize Image

API ResizeImage

Introduction

This interface is used for keeping details by AI when resizing images.

Request

Parameter NameTypeDescriptionRequired
ActionstringThe corresponding API command name, the current API is ResizeImage
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
Widthintresize target width(64~4096)
Heightintresize target height(64~4096)
ImagestringPictures Base64 that need to be resize

Request Example

{
    "Action": "ResizeImage",
    "request_uuid": "fe6d53f4-b4de-4c64-90bd-8991df85e145",
    "PublicKey": "ALLak9M4cNdHXKOJAJJ4k8Hh1hZS2EgJF1D0FlPwfl",
    "Signature": "c46eacd2dcde770b43cbceea81d900f34d31d95e",
    "Width": 1024,
    "Height": 1024,
    "Image": "data:image/png;base64,xxx"
}

Response

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
request_uuidstringReturns the requested uuid
TaskUIDstringTask UID, used to query task details and get results

Response Example

{
	"Action": "ResizeImage",
	"RetCode": 0,
	"Message": "",
	"request_uuid": "8482d350-04f9-421b-817b-1d98b3a4dcfa",
	"TaskUID": "cktlm6lrh4miq8ng9nf0"
}