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.
FieldRequiredTypeDescription
ailabapi-api-keyYESstringApplication API KEY. Get API KEY

Body

FieldRequiredType
imageYESfile

Response

Processing Flow
  1. Handle Public Parameters:

    First, parse and validate the Public Parameters, checking the status code or response message to ensure the request is successful and no errors are present.

  2. Handle Business Parameters:

    If the public parameters are valid and no exceptions are found, proceed to process the business logic in the Business Parameters.

Public Parameters

Viewing Public Parameters and Error Codes

Business Parameters

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

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
}
}
}

Code example