Zum Inhalt springen

V1.0

Mit der API zur KI-Haartyp-Erkennung erkennen Sie den Haartyp in Bildern anhand einer Drei-Winkel-Aufnahme (vorne, rechts, links).

Haartyp-Erkennung: Task ausführen.

Anfrage

Informationen zur Statusabfrage finden Sie im Polling-Leitfaden.

Sicherheit
BearerAuthenticationV2
Bodyapplication/jsonerforderlich
Any of:
src_file_urlsArray of strings, = 3 itemserforderlich

Die Datei-URLs aus der File API. Die Datei-IDs in der Reihenfolge der Quellbilder sind 'frontFace', 'rightFace' und 'leftFace'. Geben Sie entweder 'src_file_urls' oder 'src_file_ids' an.

Beispiel:
[ "https://example.com/selfie.jpg", "https://example.com/selfie.jpg", "https://example.com/selfie.jpg" ]
curl -i -X POST \
  https://yce-api-01.makeupar.com/s2s/v2.0/task/hair-type-detection \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "src_file_urls": [
      "https://example.com/selfie.jpg",
      "https://example.com/selfie.jpg",
      "https://example.com/selfie.jpg"
    ]
  }'

Antworten

Task erfolgreich ausgeführt

Bodyapplication/json
statusinteger

Antwortstatus

Beispiel:200
dataobject
Antwort
{ "status": 200, "data": { "task_id": "grH0CvsgXuAIHLUzD0V1Ol34hoet3R1tvdbtiVHrDb6_UqCLKIejAIajwxrhOAfe" } }