Skip to content


Use this api to upload image.

POST /openapi/common/v1/image/upload

Request Parameters

Parameter Type Required Description
image file true The image file to upload, image format should be one of jpg,jpeg,png, max image size should be less than 2M, and image dimension should be between 256 * 256 and 4096 * 4096.

Response Parameters

Name Type Description
imageId string The unique id identity the file uploaded.
imageUrl string A network address of the file with an expire time.

Request Example


curl -X POST  \
    -H "X-Advai-Country: ID" \
    -H "Authorization: {Your Access Key} + ':' + signature" \
    -H "Content-Type: multipart/form-data" \
    -f 'image=@image.png' \
    "{Ginee Host}/openapi/common/v1/image/upload"



Invalid image format

    "code": "PARAMETER_ERROR",
    "message": "Invalid image format, image format should be one of jpeg/jpg/png.",
    "data": null,
    "extra": null