SkinCheckv1
DokumentationÜbersicht
ERSTE SCHRITTEv1

Bereiten Sie API-Schlüssel, Basis-URL und Produkt vor. Öffnen Sie anschließend die passende API-Seite für Parameter und Aufrufdetails.

01

API-Schlüssel abrufen

Gehen Sie zu Persönliches Center → Entwicklercenter → API-Schlüssel und erstellen Sie einen Entwicklerschlüssel. Der vollständige Schlüssel wird nur beim Erstellen oder Rotieren angezeigt; bewahren Sie ihn sicher auf.

02

API-Basis-URL konfigurieren

Diese Seite und die Online-Testfunktion verwenden NEXT_PUBLIC_API_BASE_URL, sofern konfiguriert, andernfalls den Ursprung der aktuellen Dokumentationsseite. Die Beispiele lesen die URL aus SKINCHECK_API_BASE_URL.

Verwendete API-Basis-URL

03

API-Produkt auswählen

Beginnen Sie mit Skin Analyze Basic. Die API akzeptiert ein frontales JPG/JPEG-Bild und gibt das Ergebnis nach Abschluss der Analyse in derselben Antwort zurück.

API-NameSkin Analyze
HTTP MethodPOST
Pfad/api/developer/v1/skin-analysis-basic
Formatmultipart/form-data
Pro erfolgreicher Anfrage— Credits
04

Synchrone und asynchrone APIs verstehen

Basic, Advanced und Pro geben das Analyseergebnis nach Abschluss der Anfrage direkt zurück. Hautpflegeempfehlungen, Gesichtsbewertung und Attraktivitätstest erstellen zuerst eine asynchrone Aufgabe; anschließend müssen Status und Ergebnis abgefragt werden.

Synchron

  1. POST-Analyseanfrage
  2. Analyse abwarten
  3. Antwort enthält result

Asynchron

  1. POST-Aufgabe erstellen
  2. task_id erhalten
  3. Status abfragen → Ergebnis lesen
05

Weiterentwickeln

Lesen Sie je nach Bedarf die Abschnitte zu Authentifizierung, Produktunterschieden, API-Aufrufen, Aufgabenabfrage und Fehlern.

AUTHENTIFIZIERUNG UND SICHERHEIT

API-Schlüssel erstellen

Create an API key in SkinCheck Developer Center to access the SkinCheck Developer API. Authenticate every request from your server using an HTTP header.

API-Schlüssel erstellen

Schützen Sie zuerst den Schlüssel

Ein API-Schlüssel ist ein persönliches Kontozugangsmittel. Speichern Sie ihn ausschließlich in serverseitigen Umgebungsvariablen oder einem dedizierten Secret Manager. Hinterlegen Sie ihn niemals in Browser-JavaScript, öffentlichen mobilen Paketen, öffentlichen Repositories, Anwendungsprotokollen oder URL-Parametern und teilen Sie den vollständigen Schlüssel nicht über unsichere Kanäle.

01

API-Schlüssel erstellen

Open key management and create a key using this path:

  1. 01Open Personal Center
  2. 02Open Developer Center
  3. 03Open API Key management
  4. 04Create a new API key
  5. 05Copy the full key and store it securely
API-Schlüssel erstellenThis opens Developer Center in Personal Center and selects the API Keys tab.
Save it immediately after creation: Der vollständige Schlüssel wird nach dem Erstellen oder Rotieren nur einmal angezeigt. Nach dem Schließen des Dialogs kann er nicht erneut angezeigt werden. Die Schlüsselliste zeigt nicht den vollständigen Schlüssel, sondern nur Name, maskiertes Präfix, Status und Zeitstempel.
02

API-Authentifizierung

Jede API-Anfrage muss den API-Schlüssel in einem HTTP-Header enthalten. Der folgende Header-Name entspricht der Authentifizierung im Backend:

HTTP Header
skincheck-api-key: YOUR_API_KEY

YOUR_API_KEY is a placeholder. Supply the key read by your server. Do not put the key in a URL query parameter.

03

Authentifizierungsbeispiele nach Sprache

These examples show only how to read the key securely and construct the authentication header. When using headers in an API call, add the endpoint URL, HTTP method, and body required by that API.

#!/usr/bin/env bash
set -euo pipefail
: "${SKINCHECK_API_KEY:?Set SKINCHECK_API_KEY}"
: "${SKINCHECK_API_BASE_URL:?Set SKINCHECK_API_BASE_URL}"
: "${SKINCHECK_API_PATH:?Set SKINCHECK_API_PATH to the API endpoint path}"

url="${SKINCHECK_API_BASE_URL%/}/${SKINCHECK_API_PATH#/}"
curl --include "$url" \
  --header "skincheck-api-key: ${SKINCHECK_API_KEY}"
# Add the HTTP method and body required by the selected API endpoint.

Keep SKINCHECK_API_KEY on the server only. These snippets show the authentication header; add the method and body required by the chosen API. Never print the key.

04

API-Schlüssel rotieren

Bei der Rotation wird ein neuer aktiver Schlüssel erstellt. Der alte Schlüssel bleibt gültig, bis Sie ihn separat widerrufen. Führen Sie die Migration in dieser Reihenfolge durch:

  1. 1

    Create a new key

    Rotate the current key in API Key management and copy the replacement.

  2. 2

    Deploy the new key

    Update the server environment variable or dedicated secret manager.

  3. 3

    Verify the new key

    Make a real API request from the server with the new key and confirm it succeeds.

  4. 4

    Revoke the old key

    Revoke the old key separately after the replacement is confirmed to work.

Widerrufen Sie den alten Schlüssel erst, nachdem Sie den neuen überprüft haben. Andernfalls kann die Authentifizierung Ihres Dienstes fehlschlagen.
05

Schlüssel widerrufen und auf Offenlegung reagieren

Nach dem Widerruf schlägt die Authentifizierung neuer Anfragen mit diesem Schlüssel fehl. Ein Widerruf löscht keine Kopien, die möglicherweise bereits offengelegt wurden. Wenn ein Schlüssel kompromittiert sein könnte, handeln Sie sofort:

  1. 1.Revoke the exposed key immediately.
  2. 2.Create a new API key.
  3. 3.Update and deploy the server configuration.
  4. 4.Review recent API calls and credit usage.
  5. 5.Find the exposure in repositories, logs, or deployment configuration.
API-Schlüssel erstellenA revoked key cannot authenticate new requests. Configure the replacement key.
06

Häufige Authentifizierungsprobleme

Invalid API key

Symptom
The response error_code is ERROR_API_KEY_INVALID.
Mögliche Ursache
The key was copied incorrectly, is inactive, or belongs to another account.
Prüfen und beheben
Reload the server-side secret and confirm the key status and account in API Key management.

Missing HTTP header

Symptom
Authentication fails with error_code ERROR_API_KEY_INVALID.
Mögliche Ursache
The request does not send the skincheck-api-key header.
Prüfen und beheben
Inspect the outgoing request headers and ensure the server passes the auth header to its HTTP client.

Misspelled header name

Symptom
Authentication fails with error_code ERROR_API_KEY_INVALID.
Mögliche Ursache
The request uses a different header name.
Prüfen und beheben
Use skincheck-api-key exactly; check spelling and hyphens.

Using a revoked key

Symptom
New requests with this key fail authentication.
Mögliche Ursache
The key was revoked separately.
Prüfen und beheben
Check its status in API Key management; create a replacement and update server configuration.

Old key still used after rotation

Symptom
The service still uses the old credential; it may work until revoked.
Mögliche Ursache
The new environment variable was not applied to the running process or deployment.
Prüfen und beheben
Check which key version the process reads, update configuration, restart/redeploy, and verify with the new key.

Calling from browser code

Symptom
The key can be exposed in source code, developer tools, or network requests.
Mögliche Ursache
A personal credential was placed in the browser environment.
Prüfen und beheben
Move the call behind your server, which reads the key; rotate any key that was exposed.

Server environment variable not loaded

Symptom
The auth header is missing, empty, or still contains an old key.
Mögliche Ursache
The variable name, deployment scope, or process startup configuration does not match.
Prüfen und beheben
Check variable presence without printing its value, deployment scope, and process restart status; then retry securely.

Skin-Analyse-Versionen

SkinCheck bietet die Skin-Analyse-APIs Basic, Advanced und Pro. Die Editionen unterscheiden sich in Erkennungsumfang, Detailtiefe, Bereichszuordnung und Visualisierung, damit Sie die passende API für Ihr Produkt auswählen können.

Die Angaben wurden mit den API-Anfragedefinitionen und Antwortschemas in diesem Repository abgeglichen. Fähigkeiten, die in einem veröffentlichten Schema nicht aufgeführt sind, sind als „Zu bestätigen“ markiert. „Nicht unterstützt“ wird nur verwendet, wenn der Endpoint diese Eingabe oder Ausgabe ausdrücklich ausschließt. Optionale Felder hängen außerdem von Anfrageparametern und Analyseergebnissen ab.
Edition-table reconciliation notes
  • • Pigmentation severity: the local overview and detail table both listed Pro support, though the overview lacked detail. They now share the Pro schema-backed status; maps/outlines show their required parameters.
  • • Fine-line counts and area: the old overview only summarized Pro support and the detail table did not identify count/area fields. The Pro schema defines fine_line, wrinkle_count, and wrinkle_area_ratio, now used consistently. Basic/Advanced remain pending.
  • • Skin type vs oiliness: Skin Type IV classification and regional oiliness are separate capabilities. The Pro detail now follows oily_intensity area/severity fields; Basic/Advanced remain pending.
  • • Sensitive areas: edition-comparison material says Advanced provides area/severity, while its published response schema currently documents only the red_area map. Area/severity remain pending product/backend confirmation.

Version auswählen

SKIN ANALYSIS API

Basic

— Credits / erfolgreiche Anfrage

Get foundational skin-analysis classifications and confidence values.

  • Skin type and eye features
  • Basic wrinkle, pore, acne, and spot detection
View API

SKIN ANALYSIS API

Advanced

— Credits / erfolgreiche Anfrage

Adds skin color, skin age, issue-region rectangles, and an optional redness map.

  • Skin color and skin age
  • Acne, closed-comedone, mole, and spot rectangles
  • Optional red_area map
View API

SKIN ANALYSIS API

Pro

— Credits / erfolgreiche Anfrage

Returns rich structured data, detailed regions, optional maps, and side-profile analysis.

  • Detailed metrics and scores
  • Rectangles/polygons and optional maps
  • Side-profile jawline, acne, and pigmentation results
View API

Vergleich der Kernfunktionen

Summary rows and the detailed table below share the same capability data.

Auf schmalen Bildschirmen horizontal scrollen
KernfunktionBasicAdvancedPro
Skin Type IV classification
Unterstützt

skin_type / details

Unterstützt

skin_type / details

Unterstützt

skin_type / details

Five-category skin-color classification
Zu bestätigen

Not listed in the current response schema

Unterstützt

skin_color.value / confidence

Unterstützt

skintone.value / confidence

Skin-age analysis
Zu bestätigen

Not listed in the current response schema

Unterstützt

skin_age.value

Unterstützt

skin_age

Acne-region localization
Zu bestätigen

Region fields are not listed in the current response schema

Unterstützt

Rectangular regions

Unterstützt

Rectangles and polygons

Pore and blackhead enhancement map
Nicht unterstützt

The Basic request does not expose map parameters

Nicht unterstützt

Advanced return_maps accepts red_area only

Parameter erforderlich

Pass return_maps=texture_enhanced_pores,texture_enhanced_blackheads, or texture_enhanced_bw

Redness map
Nicht unterstützt

The Basic request does not expose map parameters

Parameter erforderlich

Pass return_maps=red_area

Parameter erforderlich

Pass return_maps=red_area

Pigmentation severity analysis
Zu bestätigen

Not listed in the current response schema

Zu bestätigen

Not listed in the current response schema

Unterstützt

melanin fields; maps/outlines require return_maps / return_marks

Wrinkle/fine-line counts and area analysis
Zu bestätigen

Count/area fields are not listed in the current response schema

Zu bestätigen

Count/area fields are not listed in the current response schema

Unterstützt

fine_line, wrinkle_count, wrinkle_area_ratio, etc.; coordinates require return_marks

Side-profile jawline analysis
Nicht unterstützt

Basic accepts a front image only

Nicht unterstützt

Advanced accepts a front image only

Parameter erforderlich

Upload a side-profile image and pass return_side_results=jawline_info

Individual feature scores
Zu bestätigen

Not listed in the current response schema

Zu bestätigen

Not listed in the current response schema

Unterstützt

score_info includes feature scores and total_score

UnterstütztTeilweise unterstütztParameter erforderlichNicht unterstütztZu bestätigen

Detaillierte Analysemerkmale

Expand a category to see the published output fields for each edition. “Needs confirmation” means the available API information cannot establish support or non-support.

01Skin quality3
AnalysemerkmalBasicAdvancedProErgebnisformat
Skin Type IV classification
Unterstützt

skin_type / details

Unterstützt

skin_type / details

Unterstützt

skin_type / details

Classification and confidence by type
Oil-area detection
Zu bestätigen

Not listed in the current response schema

Zu bestätigen

Not listed in the current response schema

Unterstützt

Regional area share, severity, and score; map requires return_maps

Regional area share and oiliness; enhancement map is optional
Moisture testing
Zu bestätigen

Not listed in the current response schema

Zu bestätigen

Not listed in the current response schema

Unterstützt

Moisture severity and area share; map requires return_maps

Dehydration severity and regional area share; map is optional
02Skin tone3
AnalysemerkmalBasicAdvancedProErgebnisformat
Five-category skin-color classification
Zu bestätigen

Not listed in the current response schema

Unterstützt

skin_color.value / confidence

Unterstützt

skintone.value / confidence

Classification and confidence
ITA skin-color classification
Zu bestätigen

Not listed in the current response schema

Zu bestätigen

Not listed in the current response schema

Unterstützt

skintone_ita

ITA angle and category
HA skin-hue classification
Zu bestätigen

Not listed in the current response schema

Zu bestätigen

Not listed in the current response schema

Unterstützt

skin_hue_ha

HA angle and hue category
03Pores and blackheads3
AnalysemerkmalBasicAdvancedProErgebnisformat
Pore detection
Unterstützt

Full-face/regional classification and confidence

Unterstützt

Regional classification and confidence

Unterstützt

Regional values, counts, severity, and score

Classification and confidence; Pro also includes regional counts, severity, and score
Blackhead detection
Unterstützt

Presence classification and confidence

Unterstützt

Classification and confidence

Unterstützt

Count, severity, and score

Classification and confidence; Pro also includes count, severity, and score
Pore and blackhead enhancement map
Nicht unterstützt

The Basic request does not expose map parameters

Nicht unterstützt

Advanced return_maps accepts red_area only

Parameter erforderlich

Pass return_maps=texture_enhanced_pores,texture_enhanced_blackheads, or texture_enhanced_bw

Base64 image map
04Pigmentation and spots3
AnalysemerkmalBasicAdvancedProErgebnisformat
Pigmentation/spot detection
Teilweise unterstützt

Mole/spot presence and confidence

Unterstützt

Mole/spot rectangles

Unterstützt

Mole/spot rectangles and polygons

Classification; rectangles in Advanced; rectangles and polygons in Pro
Pigmentation severity analysis
Zu bestätigen

Not listed in the current response schema

Zu bestätigen

Not listed in the current response schema

Unterstützt

melanin fields; maps/outlines require return_maps / return_marks

Area share, concentration/severity, and score; optional map and outline
Mole detection
Unterstützt

mole.value / confidence

Unterstützt

mole.rectangle

Unterstützt

mole.rectangle / polygon / count

Presence and confidence; Advanced adds rectangles; Pro adds polygons
05Acne4
AnalysemerkmalBasicAdvancedProErgebnisformat
Acne presence detection
Unterstützt

acne.value / confidence

Unterstützt

acne.rectangle

Unterstützt

Acne types, regions, and counts

Classification and confidence; Advanced/Pro also return region data
Acne-region localization
Zu bestätigen

Region fields are not listed in the current response schema

Unterstützt

Rectangular regions

Unterstützt

Rectangles and polygons

Rectangles; Pro also includes polygon coordinates
Acne grading
Teilweise unterstützt

Presence classification only

Teilweise unterstützt

Region boxes; grading fields need confirmation

Unterstützt

Comedone, papule, pustule, nodule types and score

Types/severity, regional results, and score
Closed-comedone detection
Zu bestätigen

Not listed in the current response schema

Unterstützt

Rectangular regions

Unterstützt

Rectangles, polygons, and counts

Region boxes; Pro also includes polygons and counts
06Sensitivity4
AnalysemerkmalBasicAdvancedProErgebnisformat
Redness map
Nicht unterstützt

The Basic request does not expose map parameters

Parameter erforderlich

Pass return_maps=red_area

Parameter erforderlich

Pass return_maps=red_area

Optional base64 image map
Redness-region localization
Zu bestätigen

Not listed in the current response schema

Zu bestätigen

The schema documents only the red_area map

Parameter erforderlich

Pass return_marks=sensitivity_mark; sensitivity also requires the red_area map

Region coordinates/outlines; Pro requires annotation request
Sensitive-area size
Zu bestätigen

Not listed in the current response schema

Zu bestätigen

Edition comparison and API schema differ

Zu bestätigen

The current schema does not define an area field

Area or area share
Sensitivity level
Zu bestätigen

Not listed in the current response schema

Zu bestätigen

Edition comparison and API schema differ

Parameter erforderlich

The sensitivity field requires return_maps=red_area

Severity classification and score
07Aging and wrinkles10
AnalysemerkmalBasicAdvancedProErgebnisformat
Skin-age analysis
Zu bestätigen

Not listed in the current response schema

Unterstützt

skin_age.value

Unterstützt

skin_age

Skin-age value
Forehead lines/wrinkles
Unterstützt

forehead_wrinkle.value / confidence

Unterstützt

Forehead-line field; see response for severity details

Unterstützt

Severity, score, count/area, and coordinates

Presence and confidence; Advanced/Pro include severity
Facial lines/nasolabial folds
Unterstützt

nasolabial_fold.value / confidence

Unterstützt

nasolabial_fold.value / confidence

Unterstützt

nasolabial_fold and per-side details

Presence classification; Advanced/Pro include severity details
Crow’s feet
Unterstützt

crows_feet.value / confidence

Unterstützt

crows_feet.value / confidence

Unterstützt

Per-eye severity, scores, and coordinates

Presence and confidence; Pro adds severity and coordinates
Under-eye fine lines
Unterstützt

eye_finelines.value / confidence

Unterstützt

eye_finelines.value / confidence

Unterstützt

Per-eye severity, scores, and coordinates

Presence and confidence; Pro adds severity and coordinates
Mouth-corner lines
Zu bestätigen

Whether this is the same as nasolabial folds needs confirmation

Zu bestätigen

The schema does not distinguish mouth-corner lines

Unterstützt

Per-side severity; coordinates require return_marks

Per-side severity; Pro can return coordinates
Glabellar lines
Unterstützt

glabella_wrinkle.value / confidence

Unterstützt

glabella_wrinkle.value / confidence

Unterstützt

Severity, score, and coordinates

Presence and confidence; Pro adds severity and coordinates
Forehead wrinkles
Unterstützt

forehead_wrinkle.value / confidence

Unterstützt

forehead_wrinkle.value / confidence

Unterstützt

forehead_wrinkle_info / severity / score

Classification and confidence; Pro adds depth, area, and coordinates
Cheek wrinkles
Zu bestätigen

Not listed in the current response schema

Zu bestätigen

Not listed in the current response schema

Unterstützt

Per-side fields; coordinates require return_marks

Per-side severity, scores, and coordinates
Wrinkle/fine-line counts and area analysis
Zu bestätigen

Count/area fields are not listed in the current response schema

Zu bestätigen

Count/area fields are not listed in the current response schema

Unterstützt

fine_line, wrinkle_count, wrinkle_area_ratio, etc.; coordinates require return_marks

Counts, area share, severity, and score; annotation coordinates are optional
08Facial features5
AnalysemerkmalBasicAdvancedProErgebnisformat
Eyelid type
Unterstützt

left/right_eyelids

Unterstützt

left/right_eyelids

Unterstützt

left/right_eyelids

Per-eye classification and confidence
Eye bags
Unterstützt

eye_pouch.value / confidence

Unterstützt

eye_pouch.value / confidence

Unterstützt

Severity, score, and per-eye regions

Presence classification; Pro adds severity and regions
Dark circles
Unterstützt

dark_circle.value / confidence

Unterstützt

dark_circle.value / confidence

Unterstützt

Type, subtype severity, score; outline requires return_marks

Type and confidence; Pro adds per-eye severity and outlines
Side-profile jawline analysis
Nicht unterstützt

Basic accepts a front image only

Nicht unterstützt

Advanced accepts a front image only

Parameter erforderlich

Upload a side-profile image and pass return_side_results=jawline_info

Angle, quality status, and landmark coordinates
Apple-cheek coordinates
Zu bestätigen

Not listed in the current response schema

Zu bestätigen

Not listed in the current response schema

Parameter erforderlich

Pass return_marks=cheekbone_mark

Left/right coordinates
09Image quality and scores6
AnalysemerkmalBasicAdvancedProErgebnisformat
Face coordinates
Unterstützt

face_rectangle

Unterstützt

face_rectangle

Unterstützt

image_quality.face_rect

Face rectangle or landmark coordinates
Face-size ratio
Zu bestätigen

Not listed in the current response schema

Zu bestätigen

Not listed in the current response schema

Unterstützt

image_quality.face_ratio

Face area ratio in the image
Bangs occlusion ratio
Zu bestätigen

Not listed in the current response schema

Zu bestätigen

Not listed in the current response schema

Unterstützt

image_quality.hair_occlusion

Occlusion ratio
Face angle
Zu bestätigen

Not listed in the current response schema

Zu bestätigen

Not listed in the current response schema

Unterstützt

image_quality.face_orientation

yaw / pitch / roll
Glasses detection
Zu bestätigen

Not listed in the current response schema

Zu bestätigen

Not listed in the current response schema

Unterstützt

image_quality.glasses

Wearing status
Individual feature scores
Zu bestätigen

Not listed in the current response schema

Zu bestätigen

Not listed in the current response schema

Unterstützt

score_info includes feature scores and total_score

Per-feature scores and total score

Credits und Abrechnung

Basic— Credits / erfolgreiche Anfrage
Advanced— Credits / erfolgreiche Anfrage
Pro— Credits / erfolgreiche Anfrage
Alle drei Versionen arbeiten synchron: Während der Anfrage wird Guthaben reserviert, bei Erfolg abgebucht und bei Fehler freigegeben. Die Angaben beziehen sich auf die API-Kosten pro Anfrage, nicht auf Paketpreise. Es gelten die für jeden API-Endpoint konfigurierten Werte.

Welche Version sollte ich wählen?

Basic

Get foundational skin-analysis classifications and confidence values.

Advanced

Adds skin color, skin age, issue-region rectangles, and an optional redness map.

Pro

Returns rich structured data, detailed regions, optional maps, and side-profile analysis. Für Ergebnisse zu linker/rechter Kieferlinie, Akne oder Pigmentierung laden Sie das entsprechende Seitenbild hoch und übergeben return_side_results=jawline_info.

FAQ

Worin unterscheiden sich die drei Versionen?

Basic liefert grundlegende Klassifizierungen und Konfidenzwerte. Advanced ergänzt Hautton, Hautalter, Rechtecke für Problembereiche und eine optionale Rötungskarte. Pro bietet umfangreichere strukturierte Kennzahlen, Einzelbewertungen, optionale Konturen/Karten und Seitenprofil-Ergebnisse. Als ausstehend markierte Punkte sind weder als unterstützt noch als nicht unterstützt bestätigt.

Wie unterscheidet sich Advanced von Pro?

Advanced konzentriert sich auf Hautton, Hautalter, Rechtecke für Problembereiche und die Karte red_area. Pro umfasst außerdem ITA/HA, regionale Kennzahlen und Bewertungen, optionale Polygone/Markierungskarten sowie Ergebnisse für linke und rechte Seitenprofile. Fordern Sie optionale Ausgaben mit den dokumentierten Parametern an.

Werden Seitenprofilfotos unterstützt?

Pro accepts optional left and right side-profile files. Jawline information requires at least one side image and return_side_results=jawline_info. The current Basic and Advanced request definitions accept only the front image.

Werden Visualisierungskarten unterstützt?

Advanced supports only the redness map via return_maps=red_area. Pro supports the documented map values through return_maps; some outlines/annotations use return_marks. Basic has no map parameter.

Sind alle drei Versionen synchron?

Yes. Each request waits for analysis and returns the result in that response. They do not use an async queued-submission-and-polling flow.

Werden fehlgeschlagene Anfragen berechnet?

Credits are held when analysis is submitted. Successful tasks settle the charge; failed tasks release the hold. Validation errors before task creation do not enter task billing.

Kann ich mit Basic beginnen und später wechseln?

Yes. Switch to the Advanced or Pro endpoint and update the server integration for its parameters, response structure, and credit cost. Response fields differ by edition, so update your parser accordingly.

Endpoint-Referenz

Skin-Analyse Basic

Erkennt Hauttyp, Augenmerkmale, Falten, Akne, Poren, Mitesser, Muttermale und Pigmentflecken auf einem frontalen Porträt und gibt Klassifikationen samt Konfidenzwerten zurück.

— Credits / erfolgreiche AnfrageAPI-Schlüssel erstellen
POST/api/developer/v1/skin-analysis-basic

Inhaltstyp

multipart/form-data

Verarbeitung

Synchron · gibt das Analyseergebnis zurück

Anfragetext · multipart/form-data

ParameterTypErforderlichStandardBeschreibung
imagefileJa—Main portrait; JPG/JPEG, up to 2 MB, resolution above 200×200 and below 4096×4096.
Vollständige multipart/form-data-Anfrage · Auf-/Zuklappen
#!/usr/bin/env bash
set -euo pipefail
: "${SKINCHECK_API_BASE_URL:?Set SKINCHECK_API_BASE_URL}"
: "${SKINCHECK_API_KEY:?Set SKINCHECK_API_KEY}"

response=$(curl --silent --show-error --connect-timeout 10 --max-time 180 \
  --request POST "${SKINCHECK_API_BASE_URL%/}/api/developer/v1/skin-analysis-basic" \
  --header "skincheck-api-key: ${SKINCHECK_API_KEY}" \
  --form "image=@./portrait.jpg;type=image/jpeg")
if ! jq -e '.error_code == "OK" and .code == 0 and .data.status == "succeeded"' <<< "$response" >/dev/null; then
  jq '{error_code, code, msg, data: {task_id: .data.task_id, status: .data.status, error: .data.error}}' <<< "$response" >&2
  exit 1
fi
jq '.data.result.result' <<< "$response"

Set SKINCHECK_API_BASE_URL and SKINCHECK_API_KEY on your server, and replace the image path with a local JPG/JPEG file. The cURL example requires jq, Python requires requests, PHP requires the cURL extension, and Node.js uses built-in fetch / FormData. The 180-second value is a client read-timeout setting, not the server’s maximum processing time. If the client times out, check Developer Center task history before taking further action; do not retry blindly and create a duplicate request.

Bildanforderungen

Format und Größe
JPG/JPEG; no more than 2 MB.
Auflösung
Both dimensions must be above 200 px and below 4096 px.
Face size and angle
Recommended face-box side is at least 200 px (160 px calibration minimum); recommended roll, yaw, and pitch are within ±45°.

BILDER-HOCHLADELEITFADEN

Choose a clear, complete front-facing photo

Synthetische Illustrationen · keine API-Testergebnisse

All portraits below are synthetic illustrations showing framing and capture conditions. They do not represent real users or API analysis results. Click an image to enlarge it.

Empfohlenes Frontalfoto

Blicken Sie in die Kamera, sodass das ganze Gesicht, die Augen und die Gesichtszüge klar zu sehen sind. Sorgen Sie für gleichmäßige Beleuchtung und vermeiden Sie starke Schatten, Beauty-Filter und intensive Retusche.

Synthetic illustration, not an API test photo.

Conditions to avoid

Dark areas reduce the visibility of details around the eyes and lines; prefer even, clear lighting.
Move hair away from the eyes and other key facial features before taking the photo.
Keep the full face and features visible; avoid obstruction by hands or other objects.

Die Definition der Basic API legt nicht fest, wie sich eine Brille auf die Analyse auswirkt. Dies ist lediglich eine Empfehlung, Blendungen oder das Verdecken wichtiger Bereiche zu vermeiden; die tatsächlichen Auswirkungen sind nicht bestätigt.

Image dimensions and face-box dimensions

Dies sind getrennte Messwerte: Bildbreite und -höhe beschreiben die hochgeladene Datei; Breite und Höhe des Gesichtsrahmens beschreiben den Gesichtsbereich darin. Die Pixelwerte in der Grafik dienen nur der Veranschaulichung.

Full image · file pixel dimensions

Breite × Höhe in px. Die Basic-API-Dokumentation verlangt JPG/JPEG, höchstens 2 MB sowie eine Breite und Höhe von jeweils über 200 px und unter 4096 px.

Face box · face region in the image

Breite × Höhe in px. Für eine Seite des Gesichtsrahmens werden mindestens 200 px empfohlen; der dokumentierte Kalibrierungs-Mindestwert beträgt 160 px. 200 px sind eine Empfehlung und keine Begrenzung der Dateiabmessungen.

*Illustrative labels only; they are not measurements of this image or API response values. The face_rectangle origin, units, and coordinate mapping need backend confirmation.

Recommended size

Recommended face-box side ≥200 px · Recommendation

Near calibration minimum

Illustrative range: 160–199 px · 160 px calibration minimum

Face too small

Illustration: below 160 px · Avoid submitting

Face boxes are visual illustrations on synthetic portraits, not pixel measurements. They do not establish that the service rejects requests at a specific face-box size.

Face-angle guide

Die Dokumentation empfiehlt, roll, yaw und pitch jeweils innerhalb von ±45° zu halten. Sie beschreiben unterschiedliche Achsen der Kopfhaltung und dürfen nicht verwechselt werden.

Facing camera
Head tilts toward one shoulder; recommended within ±45°.
Head turns left or right; recommended within ±45°.
Head tilts up or down; recommended within ±45°.

Angle portraits illustrate the difference between roll, yaw, and pitch; they are not calibrated test images at exactly ±45°.

The response waits for analysis and returns result inline. — credits are charged on success; task_id is for history and follow-up recommendations.

Die Verbindung bleibt offen, bis die Analyse abgeschlossen ist. Legen Sie ein geeignetes Lese-Timeout für den Client fest. Prüfen Sie bei einem Client-Timeout den Aufgabenverlauf im Developer Center, bevor Sie es erneut versuchen, um doppelte Übermittlungen zu vermeiden.

Synchronous response fields

A successful Basic request returns the standard envelope and the full underlying result synchronously. Paths reflect the actual nesting: data.result is the raw underlying response, and data.result.result contains the skin-analysis fields. The success example does not use the async queued state.

Back to request
The sample values 0, 0.89, 1, empty strings, and empty arrays illustrate structure only. They are not analysis findings, thresholds, or accuracy claims. The current API reference does not fully define the codes in each detection value; this page does not infer them.

Envelope and task fields

JSONPathKategorieTypAvailability / requirednessBeschreibungBeispiel
$.error_codeStandard envelopestringIm aktuellen Erfolgsbeispiel enthalten; Erforderlichkeit nicht bestätigtBusiness error code in the standard envelope; OK in the success example. Distinct from underlying data.result.error_detail.code.OK
$.codeStandard envelopeintegerIm aktuellen Erfolgsbeispiel enthalten; Erforderlichkeit nicht bestätigtStandard response envelope code; 0 in the success example.0
$.msgStandard envelopestringIm aktuellen Erfolgsbeispiel enthalten; Erforderlichkeit nicht bestätigtStandard response envelope message; empty in the success example.""
$.hasnextStandard envelopeintegerIm aktuellen Erfolgsbeispiel enthalten; Erforderlichkeit nicht bestätigtPagination flag in the standard response envelope; 0 in this synchronous success example.0
$.lastidStandard envelopestring | integerIm aktuellen Erfolgsbeispiel enthalten; Erforderlichkeit nicht bestätigtCursor in the standard response envelope; empty in this synchronous success example.""
$.dataRequest info and statusobjectIm aktuellen Erfolgsbeispiel enthalten; Erforderlichkeit nicht bestätigtContainer for task metadata and synchronous result.{ ... }
$.data.task_idRequest info and statusstringIm aktuellen Erfolgsbeispiel enthalten; Erforderlichkeit nicht bestätigtTask ID associated with this synchronous analysis, used for Developer Center history and follow-up recommendation flows; the Basic result is already returned in this response."TASK_UUID"
$.data.productRequest info and statusstringIm aktuellen Erfolgsbeispiel enthalten; Erforderlichkeit nicht bestätigtProduct identifier; skin_analysis_basic in the Basic example."skin_analysis_basic"
$.data.statusRequest info and statusstringIm aktuellen Erfolgsbeispiel enthalten; Erforderlichkeit nicht bestätigtFinal status for a synchronous task: succeeded or failed; the success example is succeeded."succeeded"
$.data.created_atRequest info and statusintegerIm aktuellen Erfolgsbeispiel enthalten; Erforderlichkeit nicht bestätigtTask creation time; sample uses Unix seconds.1793840400
$.data.completed_atRequest info and statusinteger | nullIm aktuellen Erfolgsbeispiel enthalten; Erforderlichkeit nicht bestätigtTask completion time; the success sample uses Unix seconds.1793840460
$.data.expires_atRequest info and statusinteger | nullIm aktuellen Erfolgsbeispiel enthalten; Erforderlichkeit nicht bestätigtResult expiration time; successful results return a timestamp under the current retention policy, while failed tasks may be null.1793926860
$.data.resultRequest info and statusobjectIm aktuellen Erfolgsbeispiel enthalten; Erforderlichkeit nicht bestätigtPreserves the complete raw response from the underlying service for synchronous analysis.{ ... }
$.data.result.request_idRequest info and statusstringIm aktuellen Erfolgsbeispiel enthalten; Erforderlichkeit nicht bestätigtRequest identifier from the underlying analysis service; empty in the sample.""
$.data.result.log_idRequest info and statusstringIm aktuellen Erfolgsbeispiel enthalten; Erforderlichkeit nicht bestätigtLog identifier from the underlying analysis service; empty in the sample.""
$.data.result.error_detailErrors and warningsobjectIm aktuellen Erfolgsbeispiel enthalten; Erforderlichkeit nicht bestätigtUnderlying-service error details; separate from top-level error_code / code / msg.{"code":"","code_message":"","message":""}
$.data.result.error_detail.codeErrors and warningsstringIm aktuellen Erfolgsbeispiel enthalten; Erforderlichkeit nicht bestätigtUnderlying error-detail code; empty in the success sample, with enums defined by the underlying service.""
$.data.result.error_detail.code_messageErrors and warningsstringIm aktuellen Erfolgsbeispiel enthalten; Erforderlichkeit nicht bestätigtDescription of the underlying error code; empty in the success sample.""
$.data.result.error_detail.messageErrors and warningsstringIm aktuellen Erfolgsbeispiel enthalten; Erforderlichkeit nicht bestätigtUnderlying error-detail message; empty in the success sample.""
$.data.result.warningErrors and warningsarrayIm aktuellen Erfolgsbeispiel enthalten; Erforderlichkeit nicht bestätigtUnderlying-service warning array; empty in the current success sample. Item schema and warning-code meanings are not defined in the Basic docs.[]
$.data.result.face_rectangleFace locationobjectIm aktuellen Erfolgsbeispiel enthalten; Erforderlichkeit nicht bestätigtFace rectangle; coordinate origin, units, and mapping to the uploaded image need backend confirmation.{"top":0,"left":0,"width":0,"height":0}
$.data.result.face_rectangle.topFace locationnumberIm aktuellen Erfolgsbeispiel enthalten; Erforderlichkeit nicht bestätigtRectangle position field; origin and units need backend confirmation.0
$.data.result.face_rectangle.leftFace locationnumberIm aktuellen Erfolgsbeispiel enthalten; Erforderlichkeit nicht bestätigtRectangle position field; axis direction, origin, and units need backend confirmation.0
$.data.result.face_rectangle.widthFace locationnumberIm aktuellen Erfolgsbeispiel enthalten; Erforderlichkeit nicht bestätigtFace-rectangle width; units need backend confirmation.0
$.data.result.face_rectangle.heightFace locationnumberIm aktuellen Erfolgsbeispiel enthalten; Erforderlichkeit nicht bestätigtFace-rectangle height; units need backend confirmation.0
$.data.result.resultAnalyseergebnisfelderobjectIm aktuellen Erfolgsbeispiel enthalten; Erforderlichkeit nicht bestätigtContainer for skin-analysis fields; contains the 19 direct fields listed below.19 fields; see full JSON
$.data.error.codeErrors and warningsstringFailed tasks only; requiredness within failures is unconfirmedPresent only when task status is failed; use the code returned by the failure response.as returned by the failure response

Underlying result fields · data.result.result

Includes every analysis field in the Basic response sample. Search matches field names, paths, child fields, and descriptions.

JSONPathKategorieType / childrenErforderlichBeschreibungBeispielKopieren
$.data.result.result.left_eyelidsEye featuresobject

value, confidence

Present in current success sample; requiredness across all successes is unconfirmedField name is left_eyelids; the value enum and the reference for “left” are not defined in the current docs.{"value":0,"confidence":0.89}
$.data.result.result.right_eyelidsEye featuresobject

value, confidence

Present in current success sample; requiredness across all successes is unconfirmedField name is right_eyelids; the value enum and the reference for “right” are not defined in the current docs.{"value":0,"confidence":0.89}
$.data.result.result.eye_pouchEye featuresobject

value, confidence

Present in current success sample; requiredness across all successes is unconfirmedEye-pouch detection; value and confidence ranges are not defined in the current docs.{"value":0,"confidence":0.89}
$.data.result.result.dark_circleEye featuresobject

value, confidence

Present in current success sample; requiredness across all successes is unconfirmedDark-circle detection; value and confidence ranges are not defined in the current docs.{"value":0,"confidence":0.89}
$.data.result.result.forehead_wrinkleWrinklesobject

value, confidence

Present in current success sample; requiredness across all successes is unconfirmedForehead-wrinkle detection; its enum mapping is not defined in the current docs.{"value":0,"confidence":0.89}
$.data.result.result.crows_feetWrinklesobject

value, confidence

Present in current success sample; requiredness across all successes is unconfirmedCrow’s-feet detection; its enum mapping is not defined in the current docs.{"value":0,"confidence":0.89}
$.data.result.result.eye_finelinesWrinklesobject

value, confidence

Present in current success sample; requiredness across all successes is unconfirmedEye fine-line detection; its enum mapping is not defined in the current docs.{"value":0,"confidence":0.89}
$.data.result.result.glabella_wrinkleWrinklesobject

value, confidence

Present in current success sample; requiredness across all successes is unconfirmedGlabellar-wrinkle detection; its enum mapping is not defined in the current docs.{"value":0,"confidence":0.89}
$.data.result.result.nasolabial_foldWrinklesobject

value, confidence

Present in current success sample; requiredness across all successes is unconfirmedNasolabial-fold detection; its enum mapping is not defined in the current docs.{"value":0,"confidence":0.89}
$.data.result.result.skin_typeSkin typeobject

skin_type, details.0–3.value, details.0–3.confidence

Present in current success sample; requiredness across all successes is unconfirmedSkin-type object containing skin_type and details. The current Basic API documentation does not define the meaning of codes 0–3; do not map them to skin-type names. Each details item 0–3 contains value / confidence, but item meanings also need confirmation.{"skin_type":0,"details":{"0":{"value":1,"confidence":0.89},"1":{"value":1,"confidence":0.89},"2":{"value":1,"confidence":0.89},"3":{"value":1,"confidence":0.89}}}
$.data.result.result.poresPoresobject

value, confidence

Present in current success sample; requiredness across all successes is unconfirmedFull-face pore detection.{"value":0,"confidence":1}
$.data.result.result.pores_foreheadPoresobject

value, confidence

Present in current success sample; requiredness across all successes is unconfirmedForehead pore detection.{"value":0,"confidence":1}
$.data.result.result.pores_left_cheekPoresobject

value, confidence

Present in current success sample; requiredness across all successes is unconfirmedLeft-cheek pore detection.{"value":0,"confidence":1}
$.data.result.result.pores_right_cheekPoresobject

value, confidence

Present in current success sample; requiredness across all successes is unconfirmedRight-cheek pore detection.{"value":0,"confidence":1}
$.data.result.result.pores_jawPoresobject

value, confidence

Present in current success sample; requiredness across all successes is unconfirmedJaw-area pore detection.{"value":0,"confidence":1}
$.data.result.result.blackheadSkin concernsobject

value, confidence

Present in current success sample; requiredness across all successes is unconfirmedBlackhead detection.{"value":0,"confidence":1}
$.data.result.result.acneSkin concernsobject

value, confidence

Present in current success sample; requiredness across all successes is unconfirmedAcne detection.{"value":0,"confidence":1}
$.data.result.result.moleSkin concernsobject

value, confidence

Present in current success sample; requiredness across all successes is unconfirmedMole detection.{"value":0,"confidence":1}
$.data.result.result.skin_spotSkin concernsobject

value, confidence

Present in current success sample; requiredness across all successes is unconfirmedSkin-spot detection.{"value":0,"confidence":1}
Expand complete paths for child fields (46)
JSONPathTypAvailabilityBeschreibungBeispielKopieren
$.data.result.result.left_eyelids.valuenumberIm aktuellen Erfolgsbeispiel enthalten; Erforderlichkeit nicht bestätigtRaw detection value returned by the underlying service. The current API reference does not define its enum, range, or meaning, so no business interpretation is inferred.0
$.data.result.result.left_eyelids.confidencenumberIm aktuellen Erfolgsbeispiel enthalten; Erforderlichkeit nicht bestätigtConfidence field returned by the underlying service; the sample is numeric. Its range, interpretation, and whether all detections use the same rule are unconfirmed.0.89
$.data.result.result.right_eyelids.valuenumberIm aktuellen Erfolgsbeispiel enthalten; Erforderlichkeit nicht bestätigtRaw detection value returned by the underlying service. The current API reference does not define its enum, range, or meaning, so no business interpretation is inferred.0
$.data.result.result.right_eyelids.confidencenumberIm aktuellen Erfolgsbeispiel enthalten; Erforderlichkeit nicht bestätigtConfidence field returned by the underlying service; the sample is numeric. Its range, interpretation, and whether all detections use the same rule are unconfirmed.0.89
$.data.result.result.eye_pouch.valuenumberIm aktuellen Erfolgsbeispiel enthalten; Erforderlichkeit nicht bestätigtRaw detection value returned by the underlying service. The current API reference does not define its enum, range, or meaning, so no business interpretation is inferred.0
$.data.result.result.eye_pouch.confidencenumberIm aktuellen Erfolgsbeispiel enthalten; Erforderlichkeit nicht bestätigtConfidence field returned by the underlying service; the sample is numeric. Its range, interpretation, and whether all detections use the same rule are unconfirmed.0.89
$.data.result.result.dark_circle.valuenumberIm aktuellen Erfolgsbeispiel enthalten; Erforderlichkeit nicht bestätigtRaw detection value returned by the underlying service. The current API reference does not define its enum, range, or meaning, so no business interpretation is inferred.0
$.data.result.result.dark_circle.confidencenumberIm aktuellen Erfolgsbeispiel enthalten; Erforderlichkeit nicht bestätigtConfidence field returned by the underlying service; the sample is numeric. Its range, interpretation, and whether all detections use the same rule are unconfirmed.0.89
$.data.result.result.forehead_wrinkle.valuenumberIm aktuellen Erfolgsbeispiel enthalten; Erforderlichkeit nicht bestätigtRaw detection value returned by the underlying service. The current API reference does not define its enum, range, or meaning, so no business interpretation is inferred.0
$.data.result.result.forehead_wrinkle.confidencenumberIm aktuellen Erfolgsbeispiel enthalten; Erforderlichkeit nicht bestätigtConfidence field returned by the underlying service; the sample is numeric. Its range, interpretation, and whether all detections use the same rule are unconfirmed.0.89
$.data.result.result.crows_feet.valuenumberIm aktuellen Erfolgsbeispiel enthalten; Erforderlichkeit nicht bestätigtRaw detection value returned by the underlying service. The current API reference does not define its enum, range, or meaning, so no business interpretation is inferred.0
$.data.result.result.crows_feet.confidencenumberIm aktuellen Erfolgsbeispiel enthalten; Erforderlichkeit nicht bestätigtConfidence field returned by the underlying service; the sample is numeric. Its range, interpretation, and whether all detections use the same rule are unconfirmed.0.89
$.data.result.result.eye_finelines.valuenumberIm aktuellen Erfolgsbeispiel enthalten; Erforderlichkeit nicht bestätigtRaw detection value returned by the underlying service. The current API reference does not define its enum, range, or meaning, so no business interpretation is inferred.0
$.data.result.result.eye_finelines.confidencenumberIm aktuellen Erfolgsbeispiel enthalten; Erforderlichkeit nicht bestätigtConfidence field returned by the underlying service; the sample is numeric. Its range, interpretation, and whether all detections use the same rule are unconfirmed.0.89
$.data.result.result.glabella_wrinkle.valuenumberIm aktuellen Erfolgsbeispiel enthalten; Erforderlichkeit nicht bestätigtRaw detection value returned by the underlying service. The current API reference does not define its enum, range, or meaning, so no business interpretation is inferred.0
$.data.result.result.glabella_wrinkle.confidencenumberIm aktuellen Erfolgsbeispiel enthalten; Erforderlichkeit nicht bestätigtConfidence field returned by the underlying service; the sample is numeric. Its range, interpretation, and whether all detections use the same rule are unconfirmed.0.89
$.data.result.result.nasolabial_fold.valuenumberIm aktuellen Erfolgsbeispiel enthalten; Erforderlichkeit nicht bestätigtRaw detection value returned by the underlying service. The current API reference does not define its enum, range, or meaning, so no business interpretation is inferred.0
$.data.result.result.nasolabial_fold.confidencenumberIm aktuellen Erfolgsbeispiel enthalten; Erforderlichkeit nicht bestätigtConfidence field returned by the underlying service; the sample is numeric. Its range, interpretation, and whether all detections use the same rule are unconfirmed.0.89
$.data.result.result.skin_type.skin_typenumberIm aktuellen Erfolgsbeispiel enthalten; Erforderlichkeit nicht bestätigtSkin-type classification code; the mapping for 0–3 is not defined in the current API reference.0
$.data.result.result.skin_type.detailsobjectIm aktuellen Erfolgsbeispiel enthalten; Erforderlichkeit nicht bestätigtDetail object with string keys 0, 1, 2, and 3. Each item contains value and confidence; the meaning of each item is unconfirmed.{"0":{"value":1,"confidence":0.89},"1":{"value":1,"confidence":0.89},"2":{"value":1,"confidence":0.89},"3":{"value":1,"confidence":0.89}}
$.data.result.result.skin_type.details['0'].valuenumberIm aktuellen Erfolgsbeispiel enthalten; Erforderlichkeit nicht bestätigtRaw value for details key 0; item meaning and value encoding need confirmation.1
$.data.result.result.skin_type.details['0'].confidencenumberIm aktuellen Erfolgsbeispiel enthalten; Erforderlichkeit nicht bestätigtConfidence for details key 0; its range, interpretation, and relationship to other detection rules need confirmation.0.89
$.data.result.result.skin_type.details['1'].valuenumberIm aktuellen Erfolgsbeispiel enthalten; Erforderlichkeit nicht bestätigtRaw value for details key 1; item meaning and value encoding need confirmation.1
$.data.result.result.skin_type.details['1'].confidencenumberIm aktuellen Erfolgsbeispiel enthalten; Erforderlichkeit nicht bestätigtConfidence for details key 1; its range, interpretation, and relationship to other detection rules need confirmation.0.89
$.data.result.result.skin_type.details['2'].valuenumberIm aktuellen Erfolgsbeispiel enthalten; Erforderlichkeit nicht bestätigtRaw value for details key 2; item meaning and value encoding need confirmation.1
$.data.result.result.skin_type.details['2'].confidencenumberIm aktuellen Erfolgsbeispiel enthalten; Erforderlichkeit nicht bestätigtConfidence for details key 2; its range, interpretation, and relationship to other detection rules need confirmation.0.89
$.data.result.result.skin_type.details['3'].valuenumberIm aktuellen Erfolgsbeispiel enthalten; Erforderlichkeit nicht bestätigtRaw value for details key 3; item meaning and value encoding need confirmation.1
$.data.result.result.skin_type.details['3'].confidencenumberIm aktuellen Erfolgsbeispiel enthalten; Erforderlichkeit nicht bestätigtConfidence for details key 3; its range, interpretation, and relationship to other detection rules need confirmation.0.89
$.data.result.result.pores.valuenumberIm aktuellen Erfolgsbeispiel enthalten; Erforderlichkeit nicht bestätigtRaw detection value returned by the underlying service. The current API reference does not define its enum, range, or meaning, so no business interpretation is inferred.0
$.data.result.result.pores.confidencenumberIm aktuellen Erfolgsbeispiel enthalten; Erforderlichkeit nicht bestätigtConfidence field returned by the underlying service; the sample is numeric. Its range, interpretation, and whether all detections use the same rule are unconfirmed.1
$.data.result.result.pores_forehead.valuenumberIm aktuellen Erfolgsbeispiel enthalten; Erforderlichkeit nicht bestätigtRaw detection value returned by the underlying service. The current API reference does not define its enum, range, or meaning, so no business interpretation is inferred.0
$.data.result.result.pores_forehead.confidencenumberIm aktuellen Erfolgsbeispiel enthalten; Erforderlichkeit nicht bestätigtConfidence field returned by the underlying service; the sample is numeric. Its range, interpretation, and whether all detections use the same rule are unconfirmed.1
$.data.result.result.pores_left_cheek.valuenumberIm aktuellen Erfolgsbeispiel enthalten; Erforderlichkeit nicht bestätigtRaw detection value returned by the underlying service. The current API reference does not define its enum, range, or meaning, so no business interpretation is inferred.0
$.data.result.result.pores_left_cheek.confidencenumberIm aktuellen Erfolgsbeispiel enthalten; Erforderlichkeit nicht bestätigtConfidence field returned by the underlying service; the sample is numeric. Its range, interpretation, and whether all detections use the same rule are unconfirmed.1
$.data.result.result.pores_right_cheek.valuenumberIm aktuellen Erfolgsbeispiel enthalten; Erforderlichkeit nicht bestätigtRaw detection value returned by the underlying service. The current API reference does not define its enum, range, or meaning, so no business interpretation is inferred.0
$.data.result.result.pores_right_cheek.confidencenumberIm aktuellen Erfolgsbeispiel enthalten; Erforderlichkeit nicht bestätigtConfidence field returned by the underlying service; the sample is numeric. Its range, interpretation, and whether all detections use the same rule are unconfirmed.1
$.data.result.result.pores_jaw.valuenumberIm aktuellen Erfolgsbeispiel enthalten; Erforderlichkeit nicht bestätigtRaw detection value returned by the underlying service. The current API reference does not define its enum, range, or meaning, so no business interpretation is inferred.0
$.data.result.result.pores_jaw.confidencenumberIm aktuellen Erfolgsbeispiel enthalten; Erforderlichkeit nicht bestätigtConfidence field returned by the underlying service; the sample is numeric. Its range, interpretation, and whether all detections use the same rule are unconfirmed.1
$.data.result.result.blackhead.valuenumberIm aktuellen Erfolgsbeispiel enthalten; Erforderlichkeit nicht bestätigtRaw detection value returned by the underlying service. The current API reference does not define its enum, range, or meaning, so no business interpretation is inferred.0
$.data.result.result.blackhead.confidencenumberIm aktuellen Erfolgsbeispiel enthalten; Erforderlichkeit nicht bestätigtConfidence field returned by the underlying service; the sample is numeric. Its range, interpretation, and whether all detections use the same rule are unconfirmed.1
$.data.result.result.acne.valuenumberIm aktuellen Erfolgsbeispiel enthalten; Erforderlichkeit nicht bestätigtRaw detection value returned by the underlying service. The current API reference does not define its enum, range, or meaning, so no business interpretation is inferred.0
$.data.result.result.acne.confidencenumberIm aktuellen Erfolgsbeispiel enthalten; Erforderlichkeit nicht bestätigtConfidence field returned by the underlying service; the sample is numeric. Its range, interpretation, and whether all detections use the same rule are unconfirmed.1
$.data.result.result.mole.valuenumberIm aktuellen Erfolgsbeispiel enthalten; Erforderlichkeit nicht bestätigtRaw detection value returned by the underlying service. The current API reference does not define its enum, range, or meaning, so no business interpretation is inferred.0
$.data.result.result.mole.confidencenumberIm aktuellen Erfolgsbeispiel enthalten; Erforderlichkeit nicht bestätigtConfidence field returned by the underlying service; the sample is numeric. Its range, interpretation, and whether all detections use the same rule are unconfirmed.1
$.data.result.result.skin_spot.valuenumberIm aktuellen Erfolgsbeispiel enthalten; Erforderlichkeit nicht bestätigtRaw detection value returned by the underlying service. The current API reference does not define its enum, range, or meaning, so no business interpretation is inferred.0
$.data.result.result.skin_spot.confidencenumberIm aktuellen Erfolgsbeispiel enthalten; Erforderlichkeit nicht bestätigtConfidence field returned by the underlying service; the sample is numeric. Its range, interpretation, and whether all detections use the same rule are unconfirmed.1

Needs backend confirmation: meanings of skin_type and details.0–3; face_rectangle origin, units, and image-coordinate mapping; warning item schema and definitions such as improper_headpose.

Expand / collapse JSON
{
  "error_code": "OK",
  "code": 0,
  "msg": "",
  "data": {
    "task_id": "TASK_UUID",
    "product": "skin_analysis_basic",
    "status": "succeeded",
    "result": {
      "request_id": "",
      "log_id": "",
      "error_detail": {
        "code": "",
        "code_message": "",
        "message": ""
      },
      "warning": [],
      "face_rectangle": {
        "top": 0,
        "left": 0,
        "width": 0,
        "height": 0
      },
      "result": "{19 analysis fields; select “Full JSON” to expand}"
    }
  }
}
Vollständiges JSON herunterladenThe download always contains every field in the successful response sample.

Error responses use the standard top-level envelope (error_code, code, msg, data). Do not confuse underlying data.result.error_detail with top-level error fields. Sample timestamps are illustrative.

Endpoint-Referenz

Skin-Analyse Advanced

Advanced liefert strukturierte Hautanalysedaten für Produktoberflächen: Neben Hautton, Hautalter und Erkennungskategorien können Rechtecke für Akne, geschlossene Komedonen, Muttermale und Flecken enthalten sein. Anfrageoptionen steuern Qualitätsprüfung, Konfidenz der Bereiche und die Rötungskarte.

— Credits / erfolgreiche AnfrageAPI-Schlüssel erstellen
POST/api/developer/v1/skin-analysis-advanced

Inhaltstyp

multipart/form-data

Verarbeitung

Synchron · gibt das Analyseergebnis zurück

Anfragetext · multipart/form-data

ParameterTypErforderlichStandardBeschreibung
imagefileJa—Frontalbild; JPG/JPEG, bis zu 5 MB, Auflösung über 200×200 und unter 4096×4096.
face_quality_controlintegerNeinOhne Angabe ergänzt die API-Ebene keinen Wert0: Qualitätsprüfung des Gesichts überspringen; 1: aktivieren. Die API-Ebene setzt bei Auslassung keinen Wert. HTTP-Status, Geschäftscode und Antwortstruktur einer fehlgeschlagenen Prüfung müssen anhand einer echten Backend-Antwort bestätigt werden.
return_rect_confidenceintegerNeinOhne Angabe ergänzt die API-Ebene keinen Wert0: keine Bereichs-Konfidenz anfordern; 1: anfordern. Die API-Ebene setzt bei Auslassung keinen Wert. Das aktuelle Advanced-Antwortbeispiel zeigt die zurückgegebenen Felder nicht; JSON-Pfade, Wertebereich und Verhalten ohne Erkennung müssen anhand einer echten Antwort bestätigt werden.
return_mapsstringNeinOhne Angabe ergänzt die API-Ebene keinen WertDerzeit wird nur red_area akzeptiert. Die API-Ebene setzt bei Auslassung keinen Wert. Der dokumentierte Pfad ist data.result.result.face_maps.red_area; im aktuellen Antwortbeispiel fehlt das Feld. Base64-Präfix, Kodierung, MIME-Typ, Abmessungen und Koordinatenzuordnung müssen anhand einer echten Antwort bestätigt werden.

Parameter combinations and request / response mapping

Choose a combination to see a complete multipart request in four languages. Unselected options are omitted; no default values are assumed.

Structure example · not a live test

Observe the endpoint behavior when optional fields are omitted.

Vollständige multipart/form-data-Anfrage · Auf-/Zuklappen
#!/usr/bin/env bash
set -euo pipefail
: "${SKINCHECK_API_BASE_URL:?Set SKINCHECK_API_BASE_URL}"
: "${SKINCHECK_API_KEY:?Set SKINCHECK_API_KEY}"

http_status=$(curl --silent --show-error --connect-timeout 10 --max-time 180 \
  --output response.json --write-out '%{http_code}' \
  --request POST "${SKINCHECK_API_BASE_URL%/}/api/developer/v1/skin-analysis-advanced" \
  --header "skincheck-api-key: ${SKINCHECK_API_KEY}" \
  --form 'image=@./portrait.jpg;type=image/jpeg' \
  )
if [[ "$http_status" -lt 200 || "$http_status" -ge 300 ]] || ! jq -e '.error_code == "OK" and .code == 0 and .data.status == "succeeded"' response.json >/dev/null; then
  jq '{error_code, code, msg, data: {status: .data.status, error_detail: .data.result.error_detail, error: .data.error}}' response.json >&2 || cat response.json >&2
  exit 1
fi
jq '.data.result.result' response.json
ScenarioFields sentResponse path / what to inspect
A · Image onlyimagedata.result.result; defaults for omitted options are determined by the upstream service.
B · Enable face-quality controlimage · face_quality_controlRead data.result.result on success; failure code and shape need confirmation.
C · Region confidence + redness mapimage · return_rect_confidence · return_mapsRectangle paths appear in the sample; confidence paths and face_maps.red_area encoding need confirmation.
D · All optional parametersimage · face_quality_control · return_rect_confidence · return_mapsSame paths as individual options; compare actual response changes without assuming every field will appear.

All examples read credentials from SKINCHECK_API_KEY and SKINCHECK_API_BASE_URL. cURL, Python, PHP, and Node.js check HTTP and the standard response envelope, then read data.result.result on success.

Bildanforderungen

Format und Größe
JPG/JPEG; no more than 5 MB.
Auflösung
Both dimensions must be above 200 px and below 4096 px.
Gesichtsgröße und Qualität
Recommended face-box side is above 400 px. Avoid occlusion, blur, overexposure, low light, and backlight; recommended yaw ≤ ±30° and pitch ≤ ±40°.

LEITFADEN ZUR BILDQUALITÄT

Bereiten Sie Bilder für aussagekräftige strukturierte Ergebnisse vor

Synthetische Illustrationen · keine API-Testergebnisse

Die Porträts sind synthetische Illustrationen derselben fiktiven erwachsenen westlichen Frau. Sie erläutern die Aufnahmequalität und zeigen weder eine echte Person noch einen API-Test oder ein Analyseergebnis. Klicken Sie auf ein Bild, um es zu vergrößern.

Recommended front portrait

Face the camera with a full face and clear features. Use even lighting and avoid strong shadows, beauty filters, or heavy retouching.

Use a clear original as the upload; see the request table for enforced file limits.

Image dimensions and face size

Image width and height describe the uploaded file. Face-box width and height describe the face region inside it; these measurements are separate.

Full image: width × height (px)Face box: width × height (px)640 px* (示意 / illustrative)

API-Grenzwerte
JPG/JPEG; ≤ 5 MB; Breite und Höhe jeweils > 200 px und < 4096 px.

Face-box recommendation
Eine Seitenlänge von mehr als 400 px wird empfohlen. Dies ist eine Empfehlung und kein bestätigter API-Grenzwert.

Bei einem kleinen Gesicht sind weniger Details sichtbar. Die Illustration definiert keinen API-Grenzwert.
Move closer while keeping the full face and head in frame.

Beleuchtungsvergleich

Unterbelichtung verbirgt Details, Überbelichtung lässt die Hautstruktur verblassen und Gegenlicht legt das Gesicht in den Schatten. Gleichmäßige Beleuchtung hilft, sichtbare Details zu erhalten. Es wird keine Aussage zur Erfolgsquote gemacht.

Recommended · Even light
Avoid · Low light
Texture contrast is reduced in highlights.
Facial shadows obscure local features.

Vergleich der Verdeckung

Vermeiden Sie Haare vor den Augen sowie Hände oder Gegenstände, die Gesichtszüge verdecken. Die Advanced-API-Dokumentation legt den Einfluss einer Brille nicht fest; Blendungen zu vermeiden ist eine vorsorgliche Empfehlung, bis dies geprüft wurde.

Avoid · Hair over eyes
Avoid · Object occlusion

Face angle

Yaw bezeichnet die Drehung des Kopfes nach links/rechts (empfohlen ≤ ±30°). Pitch bezeichnet die Neigung nach oben/unten (empfohlen ≤ ±40°). Es sind getrennte Achsen.

Front reference
yaw · Left/right turn
pitch · Up/down tilt

Bildquelle: Für dieses Projekt synthetisch erzeugte fiktive Porträts erwachsener westlicher Personen, gekennzeichnet als Lehrillustrationen. Es handelt sich weder um echte Nutzerporträts noch um API-Testergebnisse.

The response waits for analysis and returns result inline. — credits are charged on success; task_id is for history and follow-up recommendations.

Die Verbindung bleibt offen, bis die Analyse abgeschlossen ist. Legen Sie ein geeignetes Lese-Timeout für den Client fest. Prüfen Sie bei einem Client-Timeout den Aufgabenverlauf im Developer Center, bevor Sie es erneut versuchen, um doppelte Übermittlungen zu vermeiden.

Advanced synchronous response fields

The Developer API wraps the result in the standard data task envelope; the upstream Advanced JSON is preserved under data.result. The table follows the current repository sample and marks conditional outputs and unresolved details explicitly.

Schema boundary: the current Advanced JSON sample contains neither confidence fields for return_rect_confidence nor face_maps.red_area. This page does not invent unknown fields, image formats, or analysis output.

GroupJSON PathTypMeaningCondition
Umschlagerror_codestringBusiness error code; the success sample is OK.始终返回 / Always present
UmschlagcodeintegerGeneral response code; the success sample is 0.始终返回 / Always present
UmschlagmsgstringResponse message.始终返回 / Always present
UmschlaghasnextintegerPagination marker; the synchronous sample is 0.始终返回 / Always present
UmschlaglastidstringPagination cursor; the synchronous sample is an empty string.始终返回 / Always present
Task metadatadataobjectSynchronous task metadata, status, and analysis result.始终返回 / Always present
Task metadatadata.task_idstringAnalysis task ID.始终返回 / Always present
Task metadatadata.productstringProduct identifier; Advanced is skin_analysis_advanced.始终返回 / Always present
Task metadatadata.statusstringSynchronous result status; succeeded on success and failed on failure.始终返回 / Always present
Task metadatadata.created_atnumberTask creation time (Unix seconds).始终返回 / Always present
Task metadatadata.completed_atnumber | nullAnalysis completion time (Unix seconds).响应可能为 null / May be null
Task metadatadata.expires_atnumber | nullResult expiry metadata (Unix seconds).响应可能为 null / May be null
Upstream responsedata.resultobjectThe original JSON result from the underlying Advanced service.成功时 / On success
Upstream responsedata.result.request_idstringUpstream request ID.当前结构样例 / In current sample
Upstream responsedata.result.log_idstringUpstream log ID.当前结构样例 / In current sample
Errors and warningsdata.result.error_detailobjectUpstream error detail with code, code_message, and message; distinct from top-level error_code.当前结构样例 / In current sample
Errors and warningsdata.result.warningarrayUpstream warnings; empty in the current sample.可能为空 / May be empty
Face localizationdata.result.face_rectangleobjectFace box with top, left, width, and height; origin, units, and boundary rules need backend confirmation.当前结构样例 / In current sample
Skin color and agedata.result.result.skin_colorobjectSkin-color detection object with value and confidence.当前结构样例 / In current sample
Skin color and agedata.result.result.skin_age.valuenumberSkin-age result; units and classification are not defined in the current sample.当前结构样例 / In current sample
Eye featuresdata.result.result.left_eyelids / right_eyelidsobjectLeft and right eyelid types and confidence.当前结构样例 / In current sample
Eye featuresdata.result.result.eye_pouch / dark_circleobjectEye-pouch and dark-circle values and confidence.当前结构样例 / In current sample
Wrinklesdata.result.result.forehead_wrinkle / crows_feet / eye_finelines / glabella_wrinkle / nasolabial_foldobjectForehead wrinkles, crow’s feet, eye fine lines, glabellar lines, and nasolabial folds; the sample contains value and confidence.当前结构样例 / In current sample
Skin type and poresdata.result.result.skin_type.skin_typeintegerSkin-type classification code; the current response sample does not define the code mapping.当前结构样例 / In current sample
Skin type and poresdata.result.result.skin_type.details.*.value / confidenceobjectEach indexed detail has value and confidence; the meaning of each index needs confirmation.当前结构样例 / In current sample
Skin type and poresdata.result.result.pores_forehead / pores_left_cheek / pores_right_cheek / pores_jaw / blackheadobjectRegional pore and blackhead values and confidence.当前结构样例 / In current sample
Issue regionsdata.result.result.acne.rectangle[]array<object>Acne detection rectangle array; each entry contains top, left, width, and height.当前结构样例 / In current sample
Issue regionsdata.result.result.closed_comedones.rectangle[]array<object>Closed-comedone rectangle array; each entry contains top, left, width, and height.当前结构样例 / In current sample
Issue regionsdata.result.result.mole.rectangle[]array<object>Mole rectangle array; each entry contains top, left, width, and height.当前结构样例 / In current sample
Issue regionsdata.result.result.skin_spot.rectangle[]array<object>Skin-spot rectangle array; each entry contains top, left, width, and height.当前结构样例 / In current sample
Parameter-dependent outputdata.result.result.*.confidence (for rectangles)not confirmedThe current Advanced sample does not show this field for return_rect_confidence=1; paths, range, and empty-result behavior need confirmation from a real response.待真实响应 / Awaiting real response
Parameter-dependent outputdata.result.result.face_maps.red_areaBase64 image (documented)Documented as conditional on return_maps=red_area; absent from the current sample. Encoding and Data URL prefix are not confirmed.条件返回 / Conditional
Expand complete synchronous response JSON
Advanced success response shape (illustrative)
{
  "error_code": "OK",
  "code": 0,
  "msg": "",
  "hasnext": 0,
  "lastid": "",
  "data": {
    "task_id": "TASK_UUID",
    "product": "skin_analysis_advanced",
    "status": "succeeded",
    "created_at": 1793840400,
    "completed_at": 1793840460,
    "expires_at": 1793926860,
    "result": {
      "request_id": "",
      "log_id": "",
      "error_detail": {
        "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
            }
          ]
        }
      }
    }
  }
}

Values illustrate field shape only and are not analysis results. Rectangle values and timestamps are not from a live API test.

REGION COORDINATE GUIDE

Map structured region results into your interface

The Advanced sample contains rectangle arrays for acne, closed_comedones, mole, and skin_spot; each entry has top, left, width, and height. These values can drive local callouts, filtering, or region detail views. The backend has not confirmed origin, units, normalization, or boundary rules, so the diagram explains the fields without overlaying fabricated detections on a portrait.

topleftwidthheightCoordinate reference must follow backend field definition

Not to scale. It does not establish a top-left origin or pixel units.

data.result.result.acne.rectangle[]

{
  "width": 3,
  "top": 17,
  "height": 1,
  "left": 35
}

Rectangle values reproduce the repository’s structural sample, not a real detection. Confirm coordinate conversion before integration.

Canvas multi-region drawing template (coordinate transform must be confirmed)
JavaScript Canvas
// The API coordinate mapping must be confirmed before drawing.
// Supply a transform that converts an API rectangle to source-image pixels.
function drawRectangles(ctx, rectanglesByType, imageSize, canvasSize, toImagePixels) {
  if (typeof toImagePixels !== "function") {
    throw new Error("Confirm coordinate units and origin before drawing");
  }
  const scaleX = canvasSize.width / imageSize.width;
  const scaleY = canvasSize.height / imageSize.height;
  const colors = { acne: "#d94841", closed_comedones: "#a14fc2", mole: "#2d79c7", skin_spot: "#bd7b20" };
  ctx.clearRect(0, 0, canvasSize.width, canvasSize.height);
  for (const [type, rectangles] of Object.entries(rectanglesByType)) {
    ctx.strokeStyle = colors[type] || "#263b37";
    ctx.lineWidth = 2;
    for (const rectangle of rectangles || []) {
      const box = toImagePixels(rectangle, imageSize);
      if (!box) continue;
      ctx.strokeRect(box.left * scaleX, box.top * scaleY, box.width * scaleX, box.height * scaleY);
    }
  }
}

The template scales from the image naturalWidth/naturalHeight to canvas size. The integrator must implement toImagePixels from the confirmed backend units, origin, and boundary rules. Without that mapping, drawing stops.

Redness map · Base64 output

After requesting return_maps=red_area, the documented path is data.result.result.face_maps.red_area. The current Advanced response sample has no map field, so this page does not show a fabricated map or overlay.

No verifiable red_area sample yet

A real response is required to confirm encoding, dimensions, transparency, and alignment with the source image.

Browser: validate, detect format, preview / download
function showRedArea(data, imageElement, onStatus) {
  const raw = data?.result?.result?.face_maps?.red_area;
  if (typeof raw !== "string" || !raw.trim()) {
    onStatus("No red_area was returned; check return_maps=red_area.");
    return () => {};
  }
  try {
    const match = raw.trim().match(/^data:([^;,]+)?;base64,(.+)$/s);
    const base64 = match ? match[2] : raw.trim();
    const bytes = Uint8Array.from(atob(base64), char => char.charCodeAt(0));
    const starts = (...signature) => signature.every((byte, index) => bytes[index] === byte);
    const mime = match?.[1] || (starts(0xff, 0xd8, 0xff) ? "image/jpeg"
      : starts(0x89, 0x50, 0x4e, 0x47) ? "image/png"
      : String.fromCharCode(...bytes.slice(0, 4)) === "RIFF" && String.fromCharCode(...bytes.slice(8, 12)) === "WEBP" ? "image/webp" : "");
    if (!mime) throw new Error("Unsupported or unknown image encoding");
    const url = URL.createObjectURL(new Blob([bytes], { type: mime }));
    imageElement.src = url;
    imageElement.onerror = () => { URL.revokeObjectURL(url); onStatus("Map image could not be decoded."); };
    imageElement.onload = () => onStatus("Map loaded; confirm image dimensions and alignment before overlay.");
    return () => URL.revokeObjectURL(url);
  } catch (error) {
    onStatus(error.message || "Invalid Base64 image data.");
    return () => {};
  }
}
Node.js: decode and save using detected format
import { writeFile } from "node:fs/promises";

function decodeImage(base64Value) {
  const match = base64Value.trim().match(/^data:([^;,]+)?;base64,(.+)$/s);
  const encoded = match ? match[2] : base64Value.trim();
  const bytes = Buffer.from(encoded, "base64");
  const mime = match?.[1]
    || (bytes[0] === 0xff && bytes[1] === 0xd8 && bytes[2] === 0xff ? "image/jpeg"
    : bytes.subarray(0, 4).toString() === "RIFF" && bytes.subarray(8, 12).toString() === "WEBP" ? "image/webp"
    : bytes.subarray(0, 4).equals(Buffer.from([0x89, 0x50, 0x4e, 0x47])) ? "image/png" : null);
  if (!mime || !bytes.length) throw new Error("Empty or unsupported image data");
  const ext = { "image/jpeg": "jpg", "image/png": "png", "image/webp": "webp" }[mime];
  if (!ext) throw new Error("Unsupported MIME type: " + mime);
  return { bytes, mime, ext };
}

const value = response.data?.result?.result?.face_maps?.red_area;
if (!value) throw new Error("red_area missing; request return_maps=red_area");
const { bytes, ext } = decodeImage(value);
await writeFile("red-area." + ext, bytes);

The snippets accept bare Base64 and Data URL input and identify JPEG/PNG/WebP from byte signatures; they do not assume the service returns a particular format. Successful decoding does not prove alignment or matching dimensions; inspect naturalWidth/naturalHeight before overlaying.

Endpoint-Referenz

Skin-Analyse Pro

Liefert strukturierte Hautanalysedaten synchron. Optional können Karten, Bereichsmarkierungen, Bewertungen und Ergebnisse für linke und rechte Seitenprofile angefordert werden, um Analyseberichte in Ihrem Produkt zu erstellen. Erfolgreiche Ergebnisse werden auch im Aufgabenverlauf gespeichert.

— Credits / erfolgreiche AnfrageAPI-Schlüssel erstellen

Vollständiges Pro-Berichtsbeispiel ansehen

Explore the complete report: overview, analysis visuals, and care plan.

Berichtsbeispiel ansehen
POST/api/developer/v1/skin-analysis-pro

Inhaltstyp

multipart/form-data

Verarbeitung

Synchron · gibt das Analyseergebnis zurück

Anfragetext · multipart/form-data

ParameterTypErforderlichStandardBeschreibung
imagefileJaKeine (erforderlich)Frontalbilddatei; JPEG/JPG, bis zu 8 MB, Auflösung über 200×200 und unter 4096×4096.
left_side_imagefileNeinOhne Angabe wird die linke Seite nicht analysiertOptionale Datei mit linkem Seitenprofil; JPEG/JPG, bis zu 8 MB.
right_side_imagefileNeinOhne Angabe wird die rechte Seite nicht analysiertOptionale Datei mit rechtem Seitenprofil; JPEG/JPG, bis zu 8 MB.
return_mapsstringNeinOhne Angabe werden keine zusätzlichen Karten angefordertKommagetrennte Werte. Optionen: red_area, brown_area, texture_enhanced_pores, texture_enhanced_blackheads, texture_enhanced_oily_area, texture_enhanced_lines, water_area, rough_area, roi_outline_map, texture_enhanced_bw, right_roi_outline_map, left_roi_outline_map. Fordert visuelle Karten an, die als Base64-Werte in face_maps zurückgegeben werden.
return_marksstringNeinOhne Angabe werden keine zusätzlichen Markierungen angefordertKommagetrennte Werte. Optionen: wrinkle_mark, right_nasolabial_list, right_mouth_list, right_eye_wrinkle_list, right_crowsfeet_list, right_cheek_list, left_nasolabial_list, left_mouth_list, left_eye_wrinkle_list, left_crowsfeet_list, left_cheek_list, glabella_wrinkle_list, forehead_wrinkle_list, dark_circle_outline, sensitivity_mark, melanin_mark, cheekbone_mark. Frontalansichten verwenden data.result.result.<field>; prüfen Sie die tatsächliche Rückgabe für die genaue Struktur.
return_side_resultsstringNeinOhne Angabe werden keine zusätzlichen Seitenprofil-Ergebnisse angefordertOption: jawline_info. Laden Sie mindestens ein Seitenprofilbild hoch, um diese Option zu verwenden.
roi_outline_colorstring (JSON)NeinStandardfarben des zugrunde liegenden Dienstes (siehe Beschreibung)JSON-Zeichenfolge zum Festlegen der ROI-Umrissfarben nach Kategorie. Verwenden Sie die aufgeführten Schlüssel und sechs Hexadezimalziffern ohne #. Standardwerte: Poren 0000FF, Mitesser FF0000, Falten 6E9900, feine Linien 8DFE2A, geschlossene Komedonen 00FF00, Pusteln 9F21F6, Knoten FF00FD, Akne FE0100, braune Flecken 7E2A28.

Skin Analysis Pro parameter details

Based on the locally archived Skin Analyze Pro V1.7.6 request reference. Optional outputs are not requested by default; pass comma-separated field names as needed.

Generate skincare advice from analysis data

1

Upload multi-view portraits

Front, optional left/right profiles

2

Call Pro synchronously

Wait for analysis in the same response

3

Compose report data

Maps, region marks, scores, structured fields

4

Continue to skincare advice

Pass the full data from the successful response

// Keep the complete data object from a successful Pro response.
const skin_analysis_data = proResponse.data;
// Send skin_analysis_data to the Skincare Advice API.

The skincare advice API does not accept only a task_id; do not extract or re-wrap data.result.

Optional output request example
curl -X POST "$API_BASE_URL/api/developer/v1/skin-analysis-pro" \
  -H "skincheck-api-key: $SKINCHECK_API_KEY" \
  -F "image=@./portrait.jpg;type=image/jpeg" \
  -F "return_maps=red_area,texture_enhanced_pores,roi_outline_map" \
  -F "return_marks=wrinkle_mark,dark_circle_outline,melanin_mark" \
  -F "return_side_results=jawline_info" \
  -F 'roi_outline_color={"pores_color":"0000FF","acne_color":"FE0100"}'

Add optional fields to multipart/form-data as needed. Use left_side_image and right_side_image for profile images. Omit maps, marks, or color overrides you do not need.

Request configurator · choose outputs

Optional outputs are off by default. Select maps, marks, side results, or color overrides, then copy the fields or use the existing API tester.

return_maps · 12 maps
return_marks · 17 marks
return_side_results
roi_outline_color · color overrides

Blank keeps the backend default; overrides are six hex RGB digits without #.

curl -X POST "$SKINCHECK_API_BASE_URL/api/developer/v1/skin-analysis-pro" \
  -H "skincheck-api-key: $SKINCHECK_API_KEY" \
  -F "image=@./portrait.jpg;type=image/jpeg"

Set SKINCHECK_API_BASE_URL and SKINCHECK_API_KEY server-side. Successful analysis is at data.result.result.

Map selection and preview

Frontal map path: data.result.result.face_maps.<map_name>. Profile outlines are under data.result.left_side_result / right_side_result face_maps. Transparent PNGs overlay the matching frontal photo; white-background and cropped maps are shown alone. No paired profile-photo sample is available.

This map is not present in the full response sample.

texture_enhanced_pores

transparent PNG overlay

Source + transparent PNG

Samples illustrate output formats, not guaranteed fields. Actual output depends on return_maps. Map-to-source alignment still needs backend confirmation.

Region annotations and coordinates

Inspect point sets and rectangles from a historical JSON field, overlaid on its source photo as a structure illustration. This view does not confirm the coordinate contract.

result.wrinkle_mark

Historical sample contains 0 rectangles and 0 point sets; up to 100 shapes are drawn.

Field absent from this sample.
Backend confirmation needed: coordinate units, origin, and mapping to each map. Rectangles and points are drawn as recorded in the historical sample; do not use this as a general production transform until confirmed.
enhanced_bw_info · cropped enhanced-image coordinate transform

The source describes a separate transform for the enhanced black-and-white crop: x_enhance=(x_img-left)×ratio, y_enhance=(y_img-top)×ratio; inverse: x_img=x_enhance/ratio+left, y_img=y_enhance/ratio+top.

Use only when enhanced_bw_info exists and ratio is finite and positive; do not apply to other maps.

function toEnhanced(x, y, info) {
  if (!Number.isFinite(info?.ratio) || info.ratio <= 0) throw new Error('Invalid ratio');
  return { x: (x - info.left) * info.ratio, y: (y - info.top) * info.ratio };
}
Sample portraits and result JSON

These four examples come from the Skin Analyze Pro reference. Download the JSON to inspect the full result structure; image URLs in historical samples may have expired.

Version history
DateVersionChanges
2024-08-06V1.7.6Added side-face acne and pigmentation detection parameters.
2023-07-28V1.7.1Added standard jawline-angle assessment.
2023-06-14V1.6.6Added glasses detection and regional pore/dark-circle scores; updated their total-score logic.
2023-04-05V1.6.2Added image-quality checks (face ratio, coordinates, bangs, angle) and side-profile results.
2023-02-17V1.5.1Added moisture, sensitivity, pigmentation, wrinkle, roughness and scoring features, plus contour coordinates and custom colors.
return_maps · Image maps
WertMeaning and output
red_areaFacial redness or sensitivity; white background with darker red indicating stronger intensity.
brown_areaFacial pigmentation areas on a white background.
texture_enhanced_poresPore overlay; transparent PNG at original image size.
texture_enhanced_blackheadsBlackhead overlay; transparent PNG at original image size.
texture_enhanced_oily_areaOily-area overlay; transparent PNG at original image size.
texture_enhanced_linesDeep and fine wrinkle overlay; transparent PNG at original image size.
water_areaDryness map; white background PNG, with darker blue indicating more dehydration.
rough_areaSkin roughness map on a white background.
roi_outline_mapPigmentation and acne outlines; transparent PNG at original image size.
texture_enhanced_bwEnhanced blackhead and pore image; cropped JPG. Use enhanced_bw_info rectangle and ratio to map coordinates to the original image.
right_roi_outline_map / left_roi_outline_mapRight/left pigmentation and acne outlines; transparent PNG at original image size.
return_marks · Region coordinates and marks
WertReturned data
wrinkle_markWrinkle contour coordinates for forehead, nose, crow’s feet, cheeks, and glabella.
right_nasolabial_list / left_nasolabial_listCoordinates, depth, and length of left/right nasolabial folds.
right_mouth_list / left_mouth_listCoordinates, depth, and length of left/right mouth-corner wrinkles.
right_eye_wrinkle_list / left_eye_wrinkle_listCoordinates of wrinkles around the left/right eyes.
right_crowsfeet_list / left_crowsfeet_listCoordinates, depth, and length of left/right crow’s feet.
right_cheek_list / left_cheek_listCoordinates, depth, and length of left/right cheek wrinkles.
glabella_wrinkle_list / forehead_wrinkle_listCoordinates, depth, and length of glabella and forehead wrinkles.
dark_circle_outlineLeft and right under-eye dark-circle contour coordinates.
sensitivity_mark / melanin_markCoordinates of redness/sensitivity and pigmentation regions.
cheekbone_markCoordinates for left and right cheekbone/apple-cheek regions.
roi_outline_color · Outline colors
JSON keyStandardApplies to
pores_color0000FFPore map
blackhead_colorFF0000Blackhead map
wrinkle_color6E9900Deep wrinkle map
fine_line_color8DFE2AFine-line map
closed_comedones_color00FF00Closed-comedone outlines
acne_pustule_color9F21F6Pustule outlines
acne_nodule_colorFF00FDNodule outlines
acne_colorFE0100Papule outlines
brown_spot_color7E2A28Pigmentation and brown-spot outlines

Send a JSON string. Colors use six hexadecimal RGB digits without #; either case is accepted. Override only the keys you need; other keys keep their defaults. Colors apply to outlines in return_maps outputs.

return_side_results · Side profile and jawline

Pass jawline_info and upload a left or right profile file to receive the corresponding left_side_result or right_side_result. Upload both for both sides. jawline_quality: 1 = accepted (profile angle 20°–120°, angle and landmarks returned); 2 = too low (<20°); 3 = too high (>120°); 4 = no face detected; 5 = invalid face; 6 = other. jawline_angle_level: 0 = standard (116°–120°); 1 = non-standard.

Side results may be JSON strings; check the type and JSON.parse strings before reading fields. Coordinates are relative to the image.

Image quality recommendations (not additional request fields): aim for a face-box side length above 400 px in the main image and a near-frontal angle (yaw within ±30°, pitch within ±40°); avoid blur, occlusion, overexposure, backlight, and underexposure. image_quality may include face_ratio, face_orientation (yaw/pitch/roll), face_rect, hair_occlusion, and glasses for client-side quality guidance.

Bildanforderungen

Übermittlung
Upload the main and side-profile images as files; do not pass image URLs.
Format und Größe
JPEG/JPG; no more than 8 MB per image.
Auflösung
Both dimensions must be above 200 px and below 4096 px.
Gesichtsgröße
A face-box side above 400 px is recommended for the main image.

The response waits for analysis and returns result inline. — credits are charged on success; task_id is for history and follow-up recommendations.

Die Verbindung bleibt offen, bis die Analyse abgeschlossen ist. Legen Sie ein geeignetes Lese-Timeout für den Client fest. Prüfen Sie bei einem Client-Timeout den Aufgabenverlauf im Developer Center, bevor Sie es erneut versuchen, um doppelte Übermittlungen zu vermeiden.

Struktur der synchronen Antwort
{
  "error_code": "OK",
  "code": 0,
  "msg": "",
  "data": {
    "task_id": "TASK_UUID",
    "product": "skin_analysis_pro",
    "status": "succeeded",
    "result": {
      "error_code": "OK",
      "error_detail": null,
      "face_rectangle": { "top": 0, "left": 0, "width": 0, "height": 0 },
      "result": {
        "score_info": { "total_score": 0 },
        "face_maps": { "[requested map key]": "[base64 image]" }
      },
      "left_side_result": null,
      "right_side_result": null
    }
  }
}
Skin Analysis Pro · synchronous response data.result
FeldTypBeschreibung
error_code / code / msgstring / integer / stringÄußeres API-Ergebnis: error_code OK und code 0 bedeuten Erfolg; msg enthält den Meldungstext.
hasnext / lastidinteger / stringAllgemeine Paginierungsmetadaten der Antwort, die in der äußeren synchronen Pro-Antwort erhalten bleiben.
dataobjectContainer für synchrone Aufgabe und Analyse. Eine erfolgreiche Pro-Analyse befindet sich unter data.result.result.
data.task_id / product / statusstringAufgaben-ID, Produktkennung und Aufgabenstatus. Der Ablauf ist synchron; der Erfolgsstatus lautet succeeded.
data.created_at / completed_at / expires_atstringZeitstempel für Erstellung und Abschluss der Aufgabe sowie Ablauf des Ergebnisses.
data.result.error_code / error_detail / log_id / request_idstring / object / stringErgebniscode des Analysedienstes, Fehlerdetails und Anfrage-Trace-IDs. Prüfen Sie HTTP-Status, äußeren code/error_code und Aufgabenstatus.
data.result.face_rectangleobjectGesichtsrechteck mit top, left, width und height.
data.result.resultobjectZentrales Pro-Analyseobjekt mit Hauttyp, Erkennungsergebnissen, Bewertungen, Karten und Metadaten des optimierten Bildes.
resultobjectZentrales Hautanalyse-Ergebnisobjekt; die folgenden result.*-Felder beziehen sich auf dieses Objekt.
result.image_qualityJSON string / objectface_ratio, face_orientation (yaw/pitch/roll), face_rect, hair_occlusion und glasses. Das Schema dokumentiert den Wert als JSON-String; verarbeiten Sie ihn entsprechend dem tatsächlich zurückgegebenen Typ.
result.skin_type / oily_intensity / waterobjectHauttyp und Konfidenz; Fettigkeit in T-Zone, Wangen, Kinn und ganzem Gesicht sowie Dehydrierungsfläche und -bereiche. Hauttyp: 0 fettig, 1 trocken, 2 normal, 3 Mischhaut.
result.skintone / skintone_ita / skin_hue_haobjectHauttonkategorie, ITA-Hauttonklassifizierung und HA-Farbtonklassifizierung; ungewöhnliche Beleuchtung kann die Kategorie abnormal/sonstige ergeben.
result.blackhead / blackhead_count / enlarged_pore_count / pores_* / roughobject / integerAnzahl der Mitesser, Porenzahl und Schweregrad je Bereich sowie Fläche und Schweregrad der Rauigkeit je Bereich.
result.melanin / melanin_mark / mole / brown_spot / melasma / freckleobjectPigmentierte Fläche und Konzentration sowie Erkennung von Muttermalen, braunen Flecken, Melasma und Sommersprossen; kann Anzahl, Konfidenz, Rechteck- und Polygonkoordinaten enthalten.
result.acne / acne_pustule / acne_nodule / acne_mark / closed_comedonesobjectErkennung von Akne, Pusteln, Knoten, Akneflecken und geschlossenen Komedonen; umfasst häufig Bewertung, Anzahl, Konfidenz, Rechteck und Polygon.
result.sensitivity / sensitivity_markobjectSchweregrad und Fläche von Empfindlichkeit/Rötung sowie zugehörige Koordinaten.
result.skin_age / forehead_wrinkle / crows_feet / eye_finelines / glabella_wrinkle / nasolabial_fold / …objectHautalter, Faltenbereiche, Schweregrad, Anzahl, Länge, Tiefe und Koordinaten der Markierungen. Die konkreten Felder hängen von den Erkennungsergebnissen ab.
result.eye_pouch / dark_circle / *_severity / *_rectangle / dark_circle_markobjectVorhandensein/Schweregrad von Tränensäcken, Typ/Schweregrad von Augenringen, linke/rechte Augenrahmen und Konturmarkierungen.
result.score_infoobjectdark_circle_score, skin_type_score, wrinkle_score, oily_intensity_score, pores_score, blackhead_score, acne_score, sensitivity_score, melanin_score, water_score, rough_score, total_score, plus regional pore and dark-circle scores.
result.face_mapsobject · base64Enthält nur angeforderte Karten; die Werte sind Base64-Bilddaten. Definitionen der Karten finden Sie oben unter return_maps.
result.enhanced_bw_infoobjectAusschnittrechteck mit left/top/width/height und Skalierungsverhältnis für das optimierte Bild. Koordinaten umrechnen mit x_enhance=(x_img-left)×ratio; y_enhance=(y_img-top)×ratio.
data.result.left_side_result / right_side_resultobject / JSON stringWird für das jeweilige Seitenfoto zurückgegeben, wenn return_side_results=jawline_info angefordert wird. Das Beispiel ist ein Objekt; die API-Referenz erlaubt auch einen JSON-String. Unterstützen Sie beide Typen. Kann Kieferlinien-, Akne-/Pigmentierungsergebnisse und optionale face_maps enthalten.

Handle object and JSON-string values

function parseJsonValue(value) {
  if (typeof value !== 'string') return value;
  try { return JSON.parse(value); } catch { return value; }
}
const analysis = response.data?.result?.result;
const imageQuality = parseJsonValue(analysis?.image_quality);
const leftSide = parseJsonValue(response.data?.result?.left_side_result);
const rightSide = parseJsonValue(response.data?.result?.right_side_result);

Das lokale vollständige Antwortbeispiel verwendet für image_quality und Seitenergebnisse Objekte, während die Feldreferenz auch JSON-Strings aufführt. Unterstützen Sie beide Formen.

Vollständige Antwortfelder (V1.7.6)

The complete field list loads on demand and can be searched by field name or description.

Bewertungsbereiche und Klassifizierungen

Score visualization (historical sample)

Displays returned scores as-is; no scores are recalculated.

total_score

—/ 100

Higher means better overall skin condition.

No numeric detail scores in this sample.

Product/backend confirmation needed: handling for total scores below 70 and whether undetected items contribute. The scoring reference defines total-score bands starting at 70; the behavior below 70 cannot be inferred.

Bewertungsbereiche und Klassifizierungen

Fields, score ranges, and notes below follow the Skin Analyze Pro scoring reference.

Overall Skin Score

The overall skin score represents the general condition of the analyzed skin. A higher score indicates better overall skin condition.

RatingScore Range
Poor[70, 75]
Fair[76, 87]
Good[88, 94]
Excellent[95, 100]

Skin Concern Severity

The following severity classification applies to all skin concern scores listed in this section.

Higher scores indicate less severe skin concerns.

SeverityScore Range
Severe[30, 49]
Moderate[50, 69]
Mild[70, 89]
None[90, 100]

Skin Concern Scores

Skin ConcernAPI Field
Porespores_score
Blackheadsblackhead_score
Acneacne_score
Wrinkleswrinkle_score
Dark Circlesdark_circle_score
Skin Moisturewater_score
Skin Sensitivitysensitivity_score
Melaninmelanin_score
Skin Roughnessrough_score
Oilinessoily_intensity_score

Regional Pore Scores

The API also provides individual pore scores for different facial regions.

All regional pore scores follow the same severity classification defined above.

Facial RegionAPI Field
Foreheadpores_type_score.pores_forehead_score
Right Cheekpores_type_score.pores_rightcheek_score
Left Cheekpores_type_score.pores_leftcheek_score
Jawpores_type_score.pores_jaw_score

Regional Dark Circle Scores

The API provides separate dark circle scores for each eye.

Both scores follow the same severity classification defined above.

Facial RegionAPI Field
Left Eyedark_circle_type_score.left_dark_circle_score
Right Eyedark_circle_type_score.right_dark_circle_score

Skin Type Classification

Unlike skin concern scores, this value is used to classify skin type rather than measure severity.

Higher values indicate different skin type categories, not necessarily better or worse skin condition.

Skin TypeScore Range
Normal Skin[1, 15]
Dry Skin[16, 40]
Combination Skin[41, 60]
Oily Skin[61, 100]

Score Interpretation Notes

Overall Skin Score: Higher scores indicate better overall skin condition.

Skin Concern Scores: Higher scores indicate less severe skin concerns.

Skin Type Score: Values represent skin type categories rather than quality or severity.

Score Ranges: All ranges are inclusive of their minimum and maximum values.

Endpoint-Referenz

Hautpflegeempfehlungen

Übergeben Sie das vollständige data-Objekt einer erfolgreichen Skin-Analysis-Pro-Antwort. Die API verwendet dessen result zur Erstellung von Pflegeempfehlungen. Basic- und Advanced-Antworten werden nicht unterstützt; eine task_id allein reicht nicht aus.

— credits / successAPI-Schlüssel erstellen

Pro analysis → async care task → raw JSON result

Dieser Endpoint akzeptiert das vollständige data-Objekt einer erfolgreichen Pro-Antwort. Der kostenlose Homepage-Bericht ist eine lokale Darstellung, die Ausgaben mehrerer Dienste kombiniert; er definiert nicht das Antwortschema dieses Endpoints.

View free report presentation
POST/api/developer/v1/skincare-advice/tasks

Inhaltstyp

application/json

Verarbeitung

Asynchron · gibt eine Aufgaben-ID zurück

Prerequisite: only a successful skin_analysis_pro result is accepted. See the Skin Analysis Pro API. Basic/Advanced results and a standalone task_id are not supported.

Anfragetext · application/json

ParameterTypErforderlichStandardBeschreibung
skin_analysis_dataobjectJaKeine (erforderlich)Übergeben Sie das vollständige data-Objekt einer erfolgreichen Skin-Analysis-Pro-Antwort (den Wert des data-Feldes; nicht erneut in ein data-Objekt einschließen). Es muss product="skin_analysis_pro", status="succeeded" und result als JSON-Objekt enthalten. Eine task_id allein reicht nicht aus.
languagestringNeinenUnterstützte Sprachcodes (Groß-/Kleinschreibung beachten; Code exakt übergeben): Englisch en, vereinfachtes Chinesisch zh-CN, traditionelles Chinesisch (Taiwan) zh-TW, traditionelles Chinesisch (Hongkong) zh-HK, Japanisch ja, Koreanisch ko, Französisch fr, Deutsch de, Spanisch es, Italienisch it, Portugiesisch pt, Vietnamesisch vi, Indonesisch id.

End-to-End-Integration

Von der Pro-Analyse zum Pflegebericht

On your server, call Skin Analysis Pro synchronously, then pass its complete successful data object unchanged to the asynchronous skincare advice endpoint. It returns personalized care guidance and does not search for or recommend products. Poll using the returned task_id and fetch the final result. Keep the API key in a server-side environment variable.

  1. 01Upload imagesFront image required; profiles optional
  2. 02Call ProReceive response.data synchronously
  3. 03Submit care taskskin_analysis_data = response.data
  4. 04Keep task_idAcceptance does not mean completion
  5. 05Poll statusEvery 2–5 seconds; stop at a terminal state
  6. 06Fetch final JSONPreserve the complete data.result
Do not immediately resubmit after a timeout. Idempotency keys are not supported. First check whether you received a task_id; if so, continue querying that task. If not, check task history before retrying because a new task may be created.

Serverseitige End-to-End-Beispiele

Each example calls Pro synchronously, submits the recommendation task, polls with a finite limit, fetches the final result, and saves the full JSON. The default language is en; replace it with an exact code from the table below. Run on a server.

import { readFile, writeFile } from 'node:fs/promises';
import { basename } from 'node:path';

const apiKey = process.env.SKINCHECK_API_KEY;
const baseUrl = process.env.SKINCHECK_API_BASE_URL?.replace(/\/+$/, '');
if (!apiKey || !baseUrl) throw new Error('Set SKINCHECK_API_KEY and SKINCHECK_API_BASE_URL');
const headers = { 'skincheck-api-key': apiKey };
const request = async (url, options = {}, timeoutMs = 60_000) => {
  const response = await fetch(url, { ...options, headers: { ...headers, ...options.headers }, signal: AbortSignal.timeout(timeoutMs) });
  const raw = await response.text();
  let json;
  try { json = JSON.parse(raw); } catch { throw new Error('API returned invalid JSON'); }
  if (!response.ok || json.error_code !== 'OK' || json.code !== 0) throw new Error(json.msg || 'API request failed');
  return json;
};

// Skin Analysis Pro is synchronous. Supply side-profile files only when available.
const form = new FormData();
for (const [field, path] of [['image', './front.jpg'], ['left_side_image', './left.jpg'], ['right_side_image', './right.jpg']]) {
  try { form.append(field, new Blob([await readFile(path)], { type: 'image/jpeg' }), basename(path)); }
  catch (error) { if (field === 'image') throw error; if (error.code !== 'ENOENT') throw error; }
}
if (form.has('left_side_image') || form.has('right_side_image')) form.append('return_side_results', 'jawline_info');
const analysisResponse = await request(`${baseUrl}/api/developer/v1/skin-analysis-pro`, { method: 'POST', body: form }, 240_000);
const analysisData = analysisResponse.data;
if (analysisData?.product !== 'skin_analysis_pro' || analysisData.status !== 'succeeded' || !analysisData.result || typeof analysisData.result !== 'object') throw new Error('Expected successful Skin Analysis Pro data');

// Pass analysisResponse.data as-is; do not add a data wrapper.
const submitted = await request(`${baseUrl}/api/developer/v1/skincare-advice/tasks`, {
  method: 'POST', headers: { 'Content-Type': 'application/json' },
  body: JSON.stringify({ skin_analysis_data: analysisData, language: 'en' }),
});
const taskId = submitted.data?.task_id;
if (!taskId) throw new Error('Submission response has no task_id');

let taskStatus;
for (let attempt = 0; attempt < 100; attempt += 1) { // 3 sec × 100 = 5 min maximum
  const state = await request(`${baseUrl}/api/developer/v1/tasks/${encodeURIComponent(taskId)}`);
  taskStatus = state.data?.status;
  if (taskStatus === 'succeeded' || taskStatus === 'failed') break;
  if (!['queued', 'processing'].includes(taskStatus)) throw new Error(`Unexpected task status: ${taskStatus}`);
  await new Promise(resolve => setTimeout(resolve, 3000));
}
if (taskStatus !== 'succeeded') throw new Error(`Task failed or exceeded polling window: ${taskStatus}`);
const finalResponse = await request(`${baseUrl}/api/developer/v1/tasks/${encodeURIComponent(taskId)}/result`);
const careResult = finalResponse.data?.result;
if (!careResult || typeof careResult !== 'object') throw new Error('Result is not a JSON object');
if (!['complete', 'partial'].includes(careResult.status)) console.warn('Review the returned care result status and full JSON.');
await writeFile('care-result.json', JSON.stringify(finalResponse, null, 2)); // Keep unknown fields intact.
console.log(JSON.stringify(careResult, null, 2));

Set SKINCHECK_API_KEY and SKINCHECK_API_BASE_URL and provide ./front.jpg. Optional ./left.jpg and ./right.jpg are uploaded when present, together with the Pro parameter return_side_results=jawline_info. The examples never print the key or place the key in a URL.

Anfrageobjekt und Validierung

Zu übergebendes Objekt
analysisResponse
└─ data  ← skin_analysis_data receives this complete object
   ├─ task_id
   ├─ product = "skin_analysis_pro"
   ├─ status = "succeeded"
   ├─ created_at / completed_at / expires_at
   └─ result  (JSON object)

Übergeben Sie response.data. Übergeben Sie weder die gesamte Antwort noch data.task_id und fügen Sie keine weitere data-Hülle hinzu. Die Ergebnisfelder stammen aus der tatsächlichen Pro-Antwort.

Akzeptierte Eingabe
Product
skin_analysis_pro
Eingabestatus
succeeded
result type
JSON object
Pflichtfeld
skin_analysis_data
Standardsprache
en

Diese Eingaben sind für diesen Endpoint ungültig

  • • task_id only: full analysis data is missing.
  • • An extra data wrapper: wrong request nesting.
  • • Basic result: product does not match.
  • • Advanced result: product does not match.
  • • Pro status other than succeeded: input is not a successful analysis.
  • • result as array, string, or null: a JSON object is required.
Unterstützte Sprachwerte (Groß-/Kleinschreibung beachten)
Englishen
简体中文zh-CN
繁體中文(台灣)zh-TW
繁體中文(香港)zh-HK
日本語ja
한국어ko
Françaisfr
Deutschde
Españoles
Italianoit
Portuguêspt
Tiếng Việtvi
Bahasa Indonesiaid

language steuert die Sprache der Empfehlungen. Die verfügbaren Informationen bestätigen nicht, dass sich JSON-Schlüssel je nach Sprache ändern; übernehmen Sie Schlüssel und unbekannte Felder unverändert.

API-JSON und Darstellung des Homepage-Berichts

Das kostenlose Homepage-Beispiel ist ein lokal gerenderter Bericht zur Veranschaulichung der Darstellungsebene. Es ist nicht das JSON, das ein einzelner Aufruf der SkinCare Recommendations API zurückgibt. Maßgeblich ist die tatsächliche API-Antwort; diese Seite definiert kein festes Schema.

Pro analysis

Input source from the Pro API.

Raw care-report JSON

Separate service sample; status complete, version skin-report-v1.

Homepage presentation

Local example combines service outputs, not one endpoint schema.

Open the complete free sample report

Häufig gestellte Fragen

Warum muss ich Daten aus Skin Analysis Pro verwenden?

Der Endpoint erfordert product=skin_analysis_pro und ein data-Objekt aus einer erfolgreichen Pro-Antwort.

Kann ich nur eine task_id übergeben?

Nein. Übergeben Sie das vollständige data-Objekt einer erfolgreichen Pro-Antwort.

Kann ich Basic-Ergebnisse übergeben?

Nein. Das Produkt Basic erfüllt die Eingabeanforderung dieses Endpoints nicht.

Kann ich Advanced-Ergebnisse übergeben?

Nein. Das Produkt Advanced erfüllt die Eingabeanforderung dieses Endpoints nicht.

Does this API recommend products?

No. It returns skincare advice only; product search and product recommendations are not included.

Warum gibt die Übermittlung nur eine task_id zurück?

Dies ist ein asynchroner Ablauf. Die Annahme bedeutet, dass die Aufgabe in die Warteschlange aufgenommen wurde. Rufen Sie das Ergebnis nach der Erstellung ab.

Woher weiß ich, wann die Aufgabe abgeschlossen ist?

Rufen Sie GET /api/developer/v1/tasks/{task_id} alle 2–5 Sekunden ab und beenden Sie die Abfragen bei succeeded oder failed.

Was ist der Unterschied zwischen queued und processing?

queued bedeutet, dass die Aufgabe in der Warteschlange wartet; processing bedeutet, dass der zugrunde liegende Dienst sie bearbeitet.

Was ist der Unterschied zwischen complete und partial?

Dies sind Statusangaben für Pflegeinhalte in data.result und sie sind vom äußeren Aufgabenstatus getrennt.

Werden bei partial Credits abgebucht?

Ja. Sowohl complete als auch partial gelten als Erfolg und kosten 50 Credits.

Werden fehlgeschlagene Aufgaben berechnet?

Bei fehlgeschlagenen Aufgaben wird das reservierte Guthaben freigegeben.

Kann ich nach einem Timeout erneut senden?

Senden Sie nicht blind erneut. Idempotenzschlüssel werden nicht unterstützt. Prüfen Sie zuerst, ob eine task_id oder ein Aufgabeneintrag vorliegt. Ein erneuter Versuch kann eine weitere Aufgabe erstellen.

Wie rufe ich das endgültige Pflege-JSON ab?

Rufen Sie nach erfolgreichem Abschluss der äußeren Aufgabe GET /api/developer/v1/tasks/{task_id}/result auf. Das vollständige rohe JSON befindet sich in data.result.

Wie wähle ich die Ausgabesprache?

Legen Sie language fest; der Standardwert ist en. Verwenden Sie einen exakten Wert aus der Sprachtabelle.

Hat das Pflege-JSON ein festes Schema?

Nein. Bewahren Sie data.result vollständig auf und tolerieren Sie unbekannte Felder. skin-report-v1 beschreibt ein vorhandenes Beispiel.

Accepted requests return a task_id. — credits are held and charged only after a successful saved result.

Async submission response · task metadata
{
  "error_code": "OK",
  "code": 0,
  "msg": "",
  "hasnext": 0,
  "lastid": "",
  "data": {
    "task_id": "TASK_UUID",
    "product": "skincare_recommendations",
    "status": "queued",
    "created_at": 1793840400,
    "completed_at": null,
    "expires_at": null
  }
}

The submission response contains task metadata only. Poll GET /api/developer/v1/tasks/{task_id}, then read GET /api/developer/v1/tasks/{task_id}/result after success. View the task result response format

Endpoint-Referenz

Gesichtsbewertung

Analysiert Gesichtssymmetrie, Gesichtsform, Proportionen sowie Haut- und Stileindruck. Das Ergebnis enthält Einzel- und Gesamtbewertungen, Kommentare, Problemlisten, Verbesserungsvorschläge und Ergebnisbilder.

— credits / successAPI-Schlüssel erstellen
POST/api/developer/v1/face-rating/tasks

Inhaltstyp

multipart/form-data

Verarbeitung

Asynchron · gibt eine Aufgaben-ID zurück

Anfragetext · multipart/form-data

ParameterTypErforderlichStandardBeschreibung
imagefileJaKeine (erforderlich)Portrait file; JPEG/JPG/PNG/WEBP, up to 10 MB, each dimension below 4096 px.
output_languagestringNeinen-USOptions: de-DE, en-US, es-ES, fr-FR, ja-JP, ko-KR, ru-RU, zh-CN, zh-TW.

Bildanforderungen

Übermittlung
Upload the portrait file directly; do not pass an image URL.
Format und Größe
JPEG/JPG/PNG/WEBP; no more than 10 MB.
Auflösung
Both image dimensions must be below 4096 px.

Accepted requests return a task_id. — credits are held and charged only after a successful saved result.

Async submission response · task metadata
{
  "error_code": "OK",
  "code": 0,
  "msg": "",
  "hasnext": 0,
  "lastid": "",
  "data": {
    "task_id": "TASK_UUID",
    "product": "face_rating",
    "status": "queued",
    "created_at": 1793840400,
    "completed_at": null,
    "expires_at": null
  }
}

The submission response contains task metadata only. Poll GET /api/developer/v1/tasks/{task_id}, then read GET /api/developer/v1/tasks/{task_id}/result after success. View the task result response format

Endpoint-Referenz

Attraktivitätstest

Erstellt ein teilbares Ergebnisbild zur Attraktivitätsanalyse und erhält dabei das ursprüngliche Porträt. Die Quelldokumentation nennt visuelle Balance, Gesichtsharmonie, Selbstbewusstsein und Stilanmutung; das Antwortschema definiert derzeit nur URLs der Ergebnisbilder.

— credits / successAPI-Schlüssel erstellen
POST/api/developer/v1/attractiveness-test/tasks

Inhaltstyp

multipart/form-data

Verarbeitung

Asynchron · gibt eine Aufgaben-ID zurück

Anfragetext · multipart/form-data

ParameterTypErforderlichStandardBeschreibung
imagefileJaKeine (erforderlich)Portrait file; JPEG/JPG/PNG/WEBP, up to 10 MB, each dimension below 4096 px.
promptstringNeinOhne Angabe wird die Standardanweisung des zugrunde liegenden Dienstes verwendetOptional analysis instruction text. Omit it to use the underlying default prompt.
aspect_ratiostringNein16:9Aspect-ratio string in “width:height” form; for example, 16:9.

Bildanforderungen

Übermittlung
Upload the portrait file directly; do not pass an image URL.
Format und Größe
JPEG/JPG/PNG/WEBP; no more than 10 MB.
Auflösung
Both image dimensions must be below 4096 px.

Accepted requests return a task_id. — credits are held and charged only after a successful saved result.

Async submission response · task metadata
{
  "error_code": "OK",
  "code": 0,
  "msg": "",
  "hasnext": 0,
  "lastid": "",
  "data": {
    "task_id": "TASK_UUID",
    "product": "attractiveness_test",
    "status": "queued",
    "created_at": 1793840400,
    "completed_at": null,
    "expires_at": null
  }
}

The submission response contains task metadata only. Poll GET /api/developer/v1/tasks/{task_id}, then read GET /api/developer/v1/tasks/{task_id}/result after success. View the task result response format

Aufgaben und Ergebnisse

Asynchrone Anfragen geben eine task_id zurück. Fragen Sie den Status regelmäßig ab und rufen Sie nach succeeded den Ergebnis-Endpunkt auf, um das vollständige result zu lesen. Basic, Advanced und Pro liefern Analyseergebnisse direkt in der synchronen Antwort. Ergebnisse sind nur für das persönliche API-Konto sichtbar, das die Anfrage erstellt hat.

GET/api/developer/v1/tasks/{task_id}

Try task lookup

Enter the task_id returned by an asynchronous submission to check its status or retrieve its result.

Regeln für Abfragen und Wiederholungen

Task states
queued → processing → succeeded / failed. Stop polling at succeeded or failed.
Polling interval
Poll every 2–5 seconds while processing.
Queue timeout
A task fails after 5 minutes in the queue; the execution timeout is server-configured.
Submission retries
Idempotency keys are not supported. After a submission timeout, first determine whether a task_id was received; each new submission attempts to create a task.

Antwort zum Aufgabenstatus

GET /tasks/{task_id} returns the standard envelope. The data fields are shown below; failed tasks include error.code.

Verarbeitungsbeispiel
{
  "error_code": "OK",
  "code": 0,
  "msg": "",
  "hasnext": 0,
  "lastid": "",
  "data": {
    "task_id": "TASK_UUID",
    "product": "face_rating",
    "status": "processing",
    "created_at": 1793840400,
    "completed_at": null,
    "expires_at": null
  }
}
Fehlerbeispiel
{
  "error_code": "OK",
  "code": 0,
  "msg": "",
  "hasnext": 0,
  "lastid": "",
  "data": {
    "task_id": "TASK_UUID",
    "product": "face_rating",
    "status": "failed",
    "created_at": 1793840400,
    "completed_at": 1793840520,
    "expires_at": null,
    "error": { "code": "queue_timeout" }
  }
}
GET/api/developer/v1/tasks/{task_id}/result

Bei Erfolg enthält data.result die JSON-Nutzdaten des jeweiligen zugrunde liegenden Produkts. Die Ergebnisstrukturen unterscheiden sich je nach Produkt und sind nicht vereinheitlicht. Verarbeiten Sie sie produktspezifisch und tolerieren Sie unbekannte Felder. Eine fehlgeschlagene Aufgabe gibt den Status failed und error.code ohne result zurück; queued- oder processing-Aufgaben liefern einen fachlichen Fehler „noch nicht bereit“. expires_at wird auf 24 Stunden nach der Ergebniserstellung gesetzt. Der Lese-Endpoint erzwingt den Ablauf derzeit jedoch nicht, und abgelaufene Daten werden nicht automatisch gelöscht.

Umschlag einer erfolgreichen Antwort
{
  "error_code": "OK",
  "code": 0,
  "msg": "",
  "hasnext": 0,
  "lastid": "",
  "data": {
    "task_id": "TASK_UUID",
    "product": "face_rating",
    "status": "succeeded",
    "created_at": 1793840400,
    "completed_at": 1793840460,
    "expires_at": 1793926860,
    "result": { "...": "Product-specific JSON returned by the underlying analysis service" }
  }
}

Antwortfelder des Produkts

The tables below document data.result for successful asynchronous tasks. Skin Analysis Pro’s synchronous response fields are documented in its API section. Results are returned by underlying services; tolerate fields added by later versions.

Face Rating · result
FeldTyp / WertebereichBeschreibung
result_urlsarray<string>Liste der Ergebnisbild-URLs. Jede URL ist 24 Stunden lang verfügbar.
result_urls[]stringURL eines Ergebnisbildes.
analysis_resultobjectErgebnisobjekt der Gesichtsbewertung.
analysis_result.face_symmetry_scoreinteger · 0–100Bewertung der Gesichtssymmetrie.
analysis_result.face_symmetry_commentstringKommentar zur Gesichtssymmetrie.
analysis_result.face_shape_scoreinteger · 0–100Bewertung der Gesichtsform.
analysis_result.face_shape_commentstringKommentar zur Gesichtsform.
analysis_result.facial_proportion_scoreinteger · 0–100Bewertung der Gesichtsproportionen.
analysis_result.facial_proportion_commentstringKommentar zu den Gesichtsproportionen.
analysis_result.skin_impression_scoreinteger · 0–100Bewertung des Hauteindrucks.
analysis_result.skin_impression_commentstringKommentar zum Hauteindruck.
analysis_result.style_impression_scoreinteger · 0–100Bewertung des Stileindrucks.
analysis_result.style_impression_commentstringKommentar zum Stileindruck.
analysis_result.overall_scoreinteger · 0–100Gesamtbewertung.
analysis_result.overall_commentstringGesamtkommentar.
analysis_result.style_tagsarray<string>Array mit Stil-Tags.
analysis_result.style_tags[]stringEin Stil-Tag.
analysis_result.visible_face_issuesarray<object>Liste sichtbarer Gesichtsmerkmale.
analysis_result.visible_face_issues[].issuestringBeschreibung des Problems.
analysis_result.visible_face_issues[].severitystring · low / medium / highSchweregrad des Problems.
analysis_result.visible_skin_issuesarray<object>Liste sichtbarer Hautmerkmale.
analysis_result.visible_skin_issues[].issuestringBeschreibung des Problems.
analysis_result.visible_skin_issues[].severitystring · low / medium / highSchweregrad des Problems.
analysis_result.improvement_suggestionsarray<object>Liste mit Verbesserungsvorschlägen.
analysis_result.improvement_suggestions[].suggestionstringText eines Vorschlags.
analysis_result.improvement_suggestions[].areastringVom Vorschlag angesprochener Bereich.
Die obigen Felder entsprechen der Face-Rating-API-Referenz. Die Produktausgabe befindet sich in data.result; task_id, status und expires_at bleiben Teil der asynchronen Aufgabenhülle dieses Produkts.
Vollständiges Ergebnisbeispiel
{
  "error_code": "OK",
  "code": 0,
  "msg": "",
  "data": {
    "task_id": "TASK_UUID",
    "product": "face_rating",
    "status": "succeeded",
    "result": {
      "result_urls": ["RESULT_IMAGE_URL"],
      "analysis_result": {
        "face_symmetry_score": 82,
        "face_shape_score": 78,
        "facial_proportion_score": 85,
        "skin_impression_score": 80,
        "style_impression_score": 88,
        "overall_score": 83,
        "face_symmetry_comment": "...",
        "face_shape_comment": "...",
        "facial_proportion_comment": "...",
        "skin_impression_comment": "...",
        "style_impression_comment": "...",
        "overall_comment": "...",
        "style_tags": ["..."] ,
        "visible_face_issues": [{ "issue": "...", "severity": "low" }],
        "visible_skin_issues": [{ "issue": "...", "severity": "medium" }],
        "improvement_suggestions": [{ "suggestion": "...", "area": "..." }]
      }
    }
  }
}

Three separate response stages

Übermitteln, Status prüfen, Ergebnis abrufen

A · Aufgabe übermitteln

POST/api/developer/v1/skincare-advice/tasks
Header: skincheck-api-key: YOUR_API_KEYContent-Type: application/json

Acceptance means the task was queued; data contains task metadata, not a generated report.

{
  "error_code": "OK",
  "code": 0,
  "msg": "",
  "hasnext": 0,
  "lastid": "",
  "data": {
    "task_id": "TASK_UUID",
    "product": "skincare_recommendations",
    "status": "queued",
    "created_at": 1793840400,
    "completed_at": null,
    "expires_at": null
  }
}

B · Status prüfen

GET/api/developer/v1/tasks/{task_id}
Header: skincheck-api-key: YOUR_API_KEY

queued → processing → succeeded / failed. Poll every 2–5 seconds and stop at succeeded or failed. queued for more than 5 minutes fails; total execution timeout is server-configured.

{
  "error_code": "OK",
  "code": 0,
  "msg": "",
  "hasnext": 0,
  "lastid": "",
  "data": {
    "task_id": "TASK_UUID",
    "product": "skincare_recommendations",
    "status": "processing",
    "created_at": 1793840400,
    "completed_at": null,
    "expires_at": null
  }
}

C · Ergebnis abrufen

GET/api/developer/v1/tasks/{task_id}/result
Header: skincheck-api-key: YOUR_API_KEY

Read after the outer task succeeds. The complete underlying raw JSON is in data.result; preserve it unchanged.

{
  "error_code": "OK",
  "code": 0,
  "msg": "",
  "hasnext": 0,
  "lastid": "",
  "data": {
    "task_id": "TASK_UUID",
    "product": "skincare_recommendations",
    "status": "succeeded",
    "created_at": 1793840400,
    "completed_at": 1793840460,
    "expires_at": 1793926860,
    "result": {
      "status": "complete",
      "…": "原样保存的底层服务 JSON"
    }
  }
}
Äußerer Aufgabenstatus

queued queued; processing processing; succeeded task succeeded; failed task failed and may include data.error.code. Failed tasks release held credits; successful tasks charge 50 credits.

Status des Pflegeergebnisses

data.result.status 为 complete 或 partial。Both are successful results and charge 50 credits. They are distinct from the outer task’s data.status=succeeded.

For request errors, inspect the standard envelope’s error_code / code; for task failures, inspect data.error.code. See Fehler. Do not request the final result while queued or processing.

Failed task example: data.status = "failed" (may contain data.error.code ); stop polling and do not request a result that is not ready. Failed tasks release held credits.
{
  "error_code": "OK",
  "code": 0,
  "msg": "",
  "hasnext": 0,
  "lastid": "",
  "data": {
    "task_id": "TASK_UUID",
    "product": "skincare_recommendations",
    "status": "failed",
    "created_at": 1793840400,
    "completed_at": 1793840520,
    "expires_at": null,
    "error": {
      "code": "queue_timeout"
    }
  }
}
Skincare Report · result

The final result endpoint stores the underlying raw JSON in data.result. Task query data.status and care result data.result.status are separate statuses. The skincare advice API returns care guidance only, not product recommendations, and has no fixed JSON Schema. The table describes fields in the homepage example’s skin-report-v1 care-report sample only; it does not guarantee every response contains these fields or constrain future fields. Arrays may be empty and some values may be null.

Pflegebericht-Beispiel wird geladen …
Attractiveness Test · result

The developer task result is available in data.result. The source reference defines only the result_urls array; it does not define poster internals or a parseable scoring JSON schema. Treat returned image URLs as the documented result and tolerate additional fields.

FeldTypBeschreibung
result_urlsarray<string>Liste der Ergebnisbild-URLs.
result_urls[]stringURL eines Ergebnisbildes, laut Dokumentation 24 Stunden gültig.
Vollständiges Ergebnisbeispiel
{
  "error_code": "OK",
  "code": 0,
  "msg": "",
  "data": {
    "task_id": "TASK_UUID",
    "product": "attractiveness_test",
    "status": "succeeded",
    "result": {
      "result_urls": ["RESULT_IMAGE_URL"]
    }
  }
}
StatusBeschreibungAbrechnung
queuedWartet in der WarteschlangeReserviert
processingDer zugrunde liegende Dienst verarbeitet die AnfrageReserviert
succeededErgebnis erstellt und gespeichertAbgerechnet
failedAufgabe fehlgeschlagen oder ZeitüberschreitungFreigegeben
Antwort auf erfolgreiche Übermittlung
{
  "error_code": "OK",
  "code": 0,
  "msg": "",
  "hasnext": 0,
  "lastid": "",
  "data": {
    "task_id": "TASK_UUID",
    "product": "face_rating",
    "status": "queued",
    "created_at": 1793840400,
    "completed_at": null,
    "expires_at": null
  }
}

Fehlerbehandlung

Verzweigen Sie anhand von error_code oder task data.error.code, nicht anhand der lokalisierten msg. Geschäftsfehler verwenden einen JSON-Umschlag und werden derzeit mit HTTP 200 zurückgegeben; das code-Feld im Umschlag bezeichnet die Fehlerklasse (zum Beispiel 401 oder 500). Netzwerkfehler und Gateway-Timeouts müssen separat behandelt werden.

error_code / data.error.codeOrtBedeutung und Maßnahme
ERROR_API_KEY_INVALIDUmschlagDer Schlüssel fehlt, ist ungültig oder wurde widerrufen. Prüfen Sie den Header skincheck-api-key und den Schlüsselstatus.
ERROR_PARAMUmschlagEin Feld fehlt oder ist ungültig, oder Bildformat bzw. -größe werden nicht unterstützt. Korrigieren Sie die Anfrage vor dem erneuten Senden.
ERROR_PARAM_VALUEUmschlagEin Anfrageparameter erfüllt die API-Anforderungen nicht. Prüfen Sie Feldtypen, Formate und zulässige Werte.
ERROR_NOT_ENOUGH_CREDITSUmschlagDas Guthaben der Developer API reicht nicht aus; daher wird keine Aufgabe erstellt. Laden Sie vor einem erneuten Versuch genügend Guthaben auf.
ERROR_INTERFACE_RECORD_NOT_EXISTSUmschlagDie Aufgabe fehlt oder gehört zu einem anderen Konto. Prüfen Sie task_id und Kontozugehörigkeit.
ERROR_AI_NOT_SERVICEUmschlagDer Bildspeicher oder die zugrunde liegende API ist nicht verfügbar oder nicht konfiguriert. Versuchen Sie es später erneut oder wenden Sie sich an den Support. Vermeiden Sie wiederholte Übermittlungen.
ERROR_SYSTEMUmschlagInterner Dienstfehler. Notieren Sie den Anfragezeitpunkt und, falls vorhanden, task_id. Versuchen Sie es später erneut oder wenden Sie sich an den Support.
queue_timeoutAufgabe data.error.codeDie Wartezeit in der Warteschlange hat 5 Minuten überschritten. Die Aufgabe schlägt fehl und reserviertes Guthaben wird freigegeben. Senden Sie die Anfrage erst erneut, nachdem Sie den Endstatus bestätigt haben.
task_timeoutAufgabe data.error.codeDie Aufgabe hat das serverseitige Ausführungslimit überschritten; reserviertes Guthaben wird freigegeben. Das Zeitlimit wird serverseitig konfiguriert.
analysis_failed / ai_*Aufgabe data.error.codeDie zugrunde liegende Analyse oder Ergebnisprüfung ist fehlgeschlagen; reserviertes Guthaben wird freigegeben. Notieren Sie den Fehlercode und wenden Sie sich an den Support.

Diese Tabelle enthält häufige Fehler, jedoch nicht alle Fehlercodes der zugrunde liegenden Dienste. Anfragefehler verwenden error_code, code, msg und data; Fehler asynchroner Aufgaben stehen unter data.error.code. Bewahren Sie bei nicht aufgeführten Fehlern die unveränderte Antwort, task_id und den Anfragezeitpunkt auf.