Skip to main content

AILabTools API - Image composition aesthetics score - API

Request

  • URL: https://www.ailabapi.com/api/image/rating/image-composition-aesthetics-scoring
  • Method: POST
  • Content-Type: multipart/form-data

Image requirements

  • Image format: JPG JPEG BMP PNG WEBP
  • Image size: No more than 3 MB.
  • Image resolution: Larger than 32x32px, smaller than 4096x4096px.
FieldRequiredTypeDescription
ailabapi-api-keyYESstringApplication API KEY.

Body

FieldRequiredType
imageYESfile

Response

Parameters

FieldTypeDescription
error_codeintegerStatus Code.
error_code_strstringError Code.
error_msgstringError Message.
request_idstringRequest ID.
log_idstringLog ID.
dataobjectThe content of the result data returned.
+scorefloatThe higher the score, the better the composition, with a recommended score of 3.8 or higher being the better composition score.

Example

{
"error_code": 0,
"error_code_str": "",
"error_msg": "",
"request_id": "",
"log_id": "",
"data": {
"score": 0
}
}

Code example