Query Unwatermarked Images

Description

This API is used for ID Photo - Query Unwatermarked Images requests. For specific effects, please refer to the details in the following documentation.

Version

1.0

Image Requirements

Image formats: JPG, PNG

Changelog

Request URL

Production environment: https://openapi.meitu.com/idphoto/business/v1/query/unwatermarked_images

Request Method

POST

The request header type should include: Content-Type:application/json

Permission

Open Platform API Signature

Credits cannot be used to pay for API calls. Please visit the MV console to activate this API and purchase or manage resource packages.

Request Parameters

Parameter NameTypeMaximum LengthRequiredRemarks
mt_generate_idstring200YesMeitu generation ID returned by the watermarked image request

Request Example

{
     "mt_generate_id":"36936"
}

Return Value Description

Successful Return Value Description

Field NameTypeExample ValueDescription
codeinteger100000Response status code
msgstringOperation successfulResponse status code description
dataobjectResponse data
data.sd_photostringStandard-definition unwatermarked image or basic unwatermarked image (the unwatermarked image corresponding to the single image returned by the special effects API)
data.hd_photostringHigh-definition unwatermarked image
data.typesetting_photostringTypesetting unwatermarked image

Failed Return Value Description

FieldTypeDescription
dataStringReturned content
messageStringError message
codeIntError code

Return Value Example

Successful Request Return Example

Response Status: 200

content-type is application/json; charset=utf-8

{
    "code": 100000,
    "msg": "Operation successful",
    "data": {
        "sd_photo": "http://o%3D",
        "hd_photo": "http://%3D",
        "typesetting_photo": "http://1234"
    },
    "log_id": "sPR1rSoaU7bqzuooGjWTzDunw6IsB58k"
}

Return Status Codes

Status CodeDescription
100000Success
100001Parameter error

Common Error Codes and Information

For details, see API Error Codes

Note: If this API returns code 555, it indicates an image generation error, but no fee will be charged.