Skip to main content

AILabTools API - Detect Skin Disease - API

Request

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

Image requirements

  • Image format: JPG PNG
  • Image size: No more than 20 MB.
  • Image resolution: Less than 1280x1280px.

Headers

FieldRequiredTypeDescription
ailabapi-api-keyYESstringApplication API KEY. Get API KEY

Body

FieldRequiredType
imageYESfile

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

FieldTypeDescription
dataobjectThe content of the result data returned.
+body_partstringSkin lesion site identification.
+image_qualityfloatImage quality score.
+image_typestringImage classification.
+results_englishobject【English】The predicted results. Contains Key-Value pairs, where Key is the disease name and Value is the probability.
++acnefloatAcne
++actinic_keratosisfloatActinic Keratosis
++alopecia_androgeneticafloatAlopecia Androgenetica
++alopecia_areatafloatAlopecia Areata
++bullous_dermatosisfloatBullous Dermatosis
++chloasmafloatChloasma
++cornfloatCorn
++dermatofibromafloatDermatofibroma
++eczema_dermatitisfloatEczema Dermatitis
++erysipelasfloatErysipelas
++erythema_multiformefloatErythema Multiforme
++folliculitisfloatFolliculitis
++furunclefloatFuruncle
++haemangiomafloatHaemangioma
++herpesfloatHerpes
++herpes_simplexfloatHerpes Simplex
++iga_vasculitisfloatIga Vasculitis
++keloidfloatKeloid
++keratosis_follicularismfloatKeratosis Follicularism
++lichen_planusfloatLichen Planus
++lupus_erythematosusfloatLupus Erythematosus
++molluscum_contagiosumfloatMolluscum Contagiosum
++nevusfloatNevus
++paronychiafloatParonychia
++pityriasis_albafloatPityriasis Alba
++pityriasis_roseafloatPityriasis Rosea
++prurigo_nodularisfloatPrurigo Nodularis
++psoriasisfloatPsoriasis
++rosaceafloatRosacea
++sebaceous_cystfloatSebaceous Cyst
++sebaceousnevusfloatSebaceousnevus
++seborrheic_dermatitisfloatSeborrheic Dermatitis
++seborrheic_keratosisfloatSeborrheic Keratosis
++skin_tagfloatSkin Tag
++stasis_dermatitisfloatStasis Dermatitis
++syringomafloatSyringoma
++tinea_capitisfloatTinea Capitis
++tinea_corporisfloatTinea Corporis
++tinea_crurisfloatTinea Cruris
++tinea_manuumfloatTinea Manuum
++tinea_pedisfloatTinea Pedis
++tinea_unguiumfloatTinea Unguium
++tinea_versicolorfloatTinea Versicolor
++urticariafloatUrticaria
++urticaria_papularfloatUrticaria Papular
++varicellafloatVaricella
++verruca_planafloatVerruca Plana
++verruca_vulgarisfloatVerruca Vulgaris
++vitiligofloatVitiligo

Response Example

{
"request_id": "",
"log_id": "",
"error_code": 0,
"error_code_str": "",
"error_msg": "",
"error_detail": {
"status_code": 200,
"code": "",
"code_message": "",
"message": ""
},
"data": {
"body_part": "",
"image_quality": "",
"image_type": "",
"results_english": {
"acne": 0
}
}
}

Sample Code