Skip to main content
POST
Skin Analyze Advanced

Request

  • URL: https://www.ailabapi.com/api/portrait/analysis/skin-analysis-advanced
  • Method: POST
  • Content-Type: multipart/form-data

Image requirements

  • Image format: JPG JPEG
  • Image size: No more than 5 MB.
  • Image resolution: Larger than 200x200px, smaller than 4096x4096px.
  • Minimum face pixel size: To ensure the effect, the minimum value of the face frame (square) in the image should be higher than 400 pixels (which can be verified by passing a reference through the interface).
  • Face quality: The higher the face quality, the more accurate the skin analysis. Factors affecting face quality include: occlusion of the five facial features, blurred images, improper lighting (bright, dark, backlight), excessive face angle (recommended yaw ≤ ±30°, pitch ≤ ±40°), etc.

Headers

Body

return_maps

  • Request Example red_area
  • Field Parsing

Response

Response Field Handling Flow
  1. Handle Public Response Fields Parse and validate the Public Response Fields, checking the status code or response message to ensure the request is successful and error-free.
  2. Handle Business Response Fields If the Public Response Fields are valid and error-free, proceed with processing the business logic in the Business Response Fields.

Public Response Fields

Viewing Public Response Fields and Error Codes

Business Response Fields

skintone_ita

ITA (Individual Typology Angle) is an international standard for skin color, which is a method to classify skin color by measuring the color attributes of skin color Lab space. The method is strongly dependent on ambient light, we recommend using flash to take HD face photos for uploading and processing, the ITA angle value measured in natural light or dark environment may not be allowed or abnormal. According to the data taken by the rear flash of the phone, the current skin color classification reference.
You can also use the returned ITA value to define your classification based on the returned ITA angle at the time of access.

skin_hue_ha

HA (Hue Angle) is an international standard for skin color, which is a method to classify skin color by measuring the color attributes of skin color Lab space. The method is strongly dependent on ambient light, we recommend using flash to take HD face photos for uploading and processing, the HA angle value measured in natural light or dark light environment may not be allowed or abnormal. According to the data taken by the rear flash of the phone, the current skin tone classification reference.
You can also use the returned HA value to define your classification based on the returned HA angle at the time of access.

Response Example

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.

  • 0: No face quality control is performed, and skin measurement results are returned as long as the face can be detected.
  • 1: Perform face quality control, if the face quality does not pass it will prompt an error.
return_rect_confidence
string

The confidence level of the area whether to return acne, occlusion, blemishes and moles.

  • 0: No regional confidence is returned.
  • 1: Returns the regional confidence.
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.