Skip to main content
POST
/
api
/
portrait
/
analysis
/
skin-analysis-advanced
Skin analyze Advanced
curl --request POST \
  --url https://www.ailabapi.com/api/portrait/analysis/skin-analysis-advanced \
  --header 'Content-Type: multipart/form-data' \
  --header 'ailabapi-api-key: <api-key>' \
  --form 'face_quality_control=<string>' \
  --form 'return_rect_confidence=<string>' \
  --form 'return_maps=<string>' \
  --form image=@example-file
{
  "request_id": "",
  "log_id": "",
  "error_code": 0,
  "error_code_str": "",
  "error_msg": "",
  "error_detail": {
    "status_code": 200,
    "code": "",
    "code_message": "",
    "message": ""
  },
  "warning": [],
  "face_rectangle": {
    "top": 0,
    "left": 0,
    "width": 0,
    "height": 0
  },
  "result": {
    "skin_color": {
      "value": 0,
      "confidence": 0.89
    },
    "skin_age": {
      "value": 9
    },
    "left_eyelids": {
      "value": 0,
      "confidence": 0.89
    },
    "right_eyelids": {
      "value": 0,
      "confidence": 0.89
    },
    "eye_pouch": {
      "value": 0,
      "confidence": 0.89
    },
    "dark_circle": {
      "value": 0,
      "confidence": 0.89
    },
    "forehead_wrinkle": {
      "value": 0,
      "confidence": 0.89
    },
    "crows_feet": {
      "value": 0,
      "confidence": 0.89
    },
    "eye_finelines": {
      "value": 0,
      "confidence": 0.89
    },
    "glabella_wrinkle": {
      "value": 0,
      "confidence": 0.89
    },
    "nasolabial_fold": {
      "value": 0,
      "confidence": 0.89
    },
    "skin_type": {
      "skin_type": 0,
      "details": {
        "0": {
          "value": 1,
          "confidence": 0.89
        },
        "1": {
          "value": 1,
          "confidence": 0.89
        },
        "2": {
          "value": 0,
          "confidence": 0.01
        },
        "3": {
          "value": 0,
          "confidence": 0.01
        }
      }
    },
    "pores_forehead": {
      "value": 0,
      "confidence": 1
    },
    "pores_left_cheek": {
      "value": 0,
      "confidence": 1
    },
    "pores_right_cheek": {
      "value": 0,
      "confidence": 1
    },
    "pores_jaw": {
      "value": 0,
      "confidence": 1
    },
    "blackhead": {
      "value": 0,
      "confidence": 1
    },
    "acne": {
      "rectangle": [
        {
          "width": 3,
          "top": 17,
          "height": 1,
          "left": 35
        },
        {
          "width": 4,
          "top": 20,
          "height": 1,
          "left": 35
        }
      ]
    },
    "closed_comedones": {
      "rectangle": [
        {
          "width": 3,
          "top": 17,
          "height": 1,
          "left": 35
        },
        {
          "width": 4,
          "top": 20,
          "height": 1,
          "left": 35
        }
      ]
    },
    "mole": {
      "rectangle": [
        {
          "width": 3,
          "top": 17,
          "height": 1,
          "left": 35
        },
        {
          "width": 4,
          "top": 20,
          "height": 1,
          "left": 35
        }
      ]
    },
    "skin_spot": {
      "rectangle": [
        {
          "width": 3,
          "top": 17,
          "height": 1,
          "left": 35
        },
        {
          "width": 4,
          "top": 20,
          "height": 1,
          "left": 35
        }
      ]
    }
  }
}

Authorizations

ailabapi-api-key
string
header
required

API Key for authentication

Body

multipart/form-data
image
file

Main Image.

face_quality_control
string

Whether to restrict the quality of faces in incoming images. <li>0: No face quality control is performed, and skin measurement results are returned as long as the face can be detected.</li> <li>1: Perform face quality control, if the face quality does not pass it will prompt an error.</li>

return_rect_confidence
string

The confidence level of the area whether to return acne, occlusion, blemishes and moles. <li>0: No regional confidence is returned.</li> <li>1: Returns the regional confidence.</li>

return_maps
string

Enter a comma-separated string containing the type of skin chromatography image to be returned.

Response

200 - application/json

Success

The response is of type object.