{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-@l10n/de/develop/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"type":"markdown"},"seo":{"title":"youcam-cli","description":"YouCam API documentation by Perfect Corp. Learn how to use Skin analysis API, Virtual try-on API, Image editing API, and Video generative AI APIs.","siteUrl":"https://docs.perfectcorp.com","keywords":"AI Skin Analysis, AI Clothes, AI Hairstyle, AI Outfits","image":"/assets/favicon.cd6fa4d833b2a573b3c6dae68386b293da205b203402cb0c97b80bd2acc07ea2.8351e24f.png"},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"youcam-cli","__idx":0},"children":["youcam-cli"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["youcam"]}," ist die Kommandozeilen-Schnittstelle für die ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://yce.perfectcorp.com/ai-api"},"children":["YouCam AI APIs"]},". Jede ihrer KI-Funktionen (Gesichts- und Körperbearbeitung, Haar, Hautanalyse, Makeup, Virtual Try-On, Hintergrund- und Fotobearbeitung, Bild- und Videoerzeugung … usw.) läuft im Terminal mit denselben Modellen und Parametern wie die API. Sie können außerdem den Task-Status prüfen, vordefinierte Templates durchsuchen und Ihre Einheiten und Funktionskosten einsehen."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Die CLI funktioniert, ob Sie eine Funktion evaluieren, eine Integration bauen oder eine Pipeline automatisieren:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["YouCam-API-KI-Funktionen evaluieren"]},": Führen Sie eine Funktion mit Ihren eigenen Fotos aus und prüfen Sie die Ergebnisse, z. B. um Stile zu vergleichen oder zu bestätigen, dass eine Funktion zu Ihrem Produkt passt. Kein Code nötig."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Die API integrieren"]},": Testen Sie jeden Endpunkt im Terminal, bevor Sie Code schreiben. Optionen entsprechen den Anfrage-Feldern eins zu eins, und jede Funktion verlinkt auf ihre ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"#available-ai-features"},"children":["API-Referenz"]},"."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["KI-Agenten"]},": Claude Code, Cursor, Codex und andere Agenten können jede YouCam-Funktion als einfachen Shell-Befehl nutzen. Jeder Befehl gibt JSON aus und beendet sich bei Fehlern mit Code 1, jede Funktion und Option erklärt sich selbst in ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--help"]},", und ungültige Werte werden abgewiesen, bevor eine Anfrage gesendet wird."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Automatisierung und Batch-Jobs"]},": Führen Sie Funktionen aus Shell-Skripten, CI-Pipelines oder Containern über ganze Ordner mit Produktfotos und Porträts aus. Lokale Dateien werden für Sie hochgeladen, ohne einen Upload-Schritt, den Sie skripten müssten."]}]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"anforderungen","__idx":1},"children":["Anforderungen"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://nodejs.org/"},"children":["Node.js"]}," 18 oder später"]}," (und npm)."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Ein ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://yce.perfectcorp.com/api-console/en/api-keys/"},"children":["YouCam-API-Schlüssel"]},"."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"installation","__idx":2},"children":["Installation"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"npm install -g @youcam_cli/youcam-cli\n\n# Verify the installation\nyoucam --help\n\n# Version of the YouCam CLI\nyoucam --version\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Zum Deinstallieren führen Sie ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["npm uninstall -g @youcam_cli/youcam-cli"]}," aus."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"authentifizierung","__idx":3},"children":["Authentifizierung"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["youcam auth login <apiKey>"]}," speichert Ihren API-Schlüssel einmalig; der Schlüssel wird lokal abgelegt und von jedem späteren Befehl wiederverwendet."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"youcam auth login <apiKey>\n\n# or explicitly with a flag\nyoucam auth login --api-key <apiKey>\n\n# Remove the saved API key (logout CLI tool)\nyoucam auth logout\n\n# List the available authentication options\nyoucam auth --help\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["auth login"]}," schreibt den Schlüssel in eine einfache JSON-Datei, ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["~/.youcam-cli/credentials.json"]},":"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n  \"apiKey\": \"<your-api-key>\"\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Jeder ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["run"]},"-, ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["status"]},"-, ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["template"]},"- und ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["client"]},"-Befehl liest diese Datei automatisch."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Wenn die Umgebungsvariable ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["YOUCAM_CLI_API_KEY"]}," gesetzt ist, hat sie Vorrang vor dem gespeicherten Schlüssel."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"schnellstart","__idx":4},"children":["Schnellstart"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Führen Sie Ihren ersten KI-Task aus – vom Prüfen Ihrer Einheiten bis zum Herunterladen des Ergebnisses. Hier wird ein echter Task ausgeführt, er verbraucht also Einheiten (siehe ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"#checking-feature-cost"},"children":["Funktionskosten prüfen"]},")."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Jede YouCam-Funktion läuft als Hintergrund-Task: Sie starten ihn, erhalten eine ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["task_id"]}," zurück und prüfen dann diese ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["task_id"]},", bis das Ergebnis bereitsteht."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["1. Installieren und einloggen"]}," (Details siehe ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"#installation"},"children":["Installation"]}," und ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"#authentication"},"children":["Authentifizierung"]},")"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"npm install -g @youcam_cli/youcam-cli\nyoucam auth login <apiKey>\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["2. Einheiten prüfen"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"youcam client credit\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Antwort:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n  \"status\": 200,\n  \"results\": [\n {\n \"id\": 0,\n \"type\": \"ApiPaygToken\",\n \"amount\": 8193,\n \"amount_dec\": 8193,\n \"expiry\": 1801958399000\n }\n  ]\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["amount"]}," ist die Anzahl der Einheiten im jeweiligen Eintrag, und ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["expiry"]}," ist der Zeitpunkt ihres Verfalls (Millisekunden seit der Unix-Epoche). Der Befehl heißt ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["credit"]},", weil die API eine Einheit als „credit\" bezeichnet (siehe ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"#units-and-feature-cost"},"children":["Einheiten und Funktionskosten"]},")."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["3. Einen Task starten"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Dies verbessert ein Beispiel-Foto auf die doppelte Auflösung mit KI-Fotoverbesserung (",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.perfectcorp.com/reference/ai_photo_enhance/v1.0/paths/~1s2s~1v2.0~1task~1enhance/post"},"children":["AI Photo Enhance"]},"):"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"youcam run enhance --src_file \"https://plugins-media.makeupar.com/strapi/assets/hair_color_03_81c0c8a3c8.jpg\" --scale 2\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Antwort:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n  \"status\": 200,\n  \"data\": {\n \"task_id\": \"32tu4jQvRbI9NfnKlw13cls8tyT1zA2ZoOtKq-RkiTL_FrIEOLYHJX1HxYVrnWz\"\n  }\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Die CLI gibt auch den Befehl für den nächsten Schritt aus. Er geht nach stderr, damit stdout für Skripte reines JSON bleibt:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"Run `youcam status enhance 32tu4jQvRbI9NfnKlw13cls8tyT1zA2ZoOtKq-RkiTL_FrIEOLYHJX1HxYVrnWz` to check the result.\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Um Ihr eigenes Foto zu verwenden, übergeben Sie stattdessen einen lokalen Pfad, z. B. ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--src_file ./photo.jpg"]},"."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["4. Ergebnis prüfen und herunterladen"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"youcam status enhance <task_id>\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Während der Task noch verarbeitet wird, ist ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["task_status"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["running"]},"; führen Sie den Befehl nach ein paar Sekunden erneut aus. Sobald er fertig ist:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n  \"status\": 200,\n  \"data\": {\n \"error\": null,\n \"results\": {\n \"url\": \"https://yce-us.s3-accelerate.amazonaws.com/ttl30/.../509f8acd-8d41-4459-aa31-1d4738d7a922.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&...&X-Amz-Expires=7200&...\"\n },\n \"task_status\": \"success\"\n  }\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["results.url"]}," ist das verbesserte Bild. Es ist ein signierter Link, der nach 2 Stunden verfällt (",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["X-Amz-Expires=7200"]},"), laden Sie es also bald herunter."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Nächste Schritte"]}]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Durchstöbern Sie die ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"#available-ai-features"},"children":["verfügbaren KI-Funktionen"]}," und führen Sie ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["youcam run <feature> --help"]}," aus, um die Optionen einer Funktion zu sehen."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Erfahren Sie, wie Optionen, Dateien und JSON-Parameter funktionieren, im Abschnitt ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"#running-an-ai-task"},"children":["Einen KI-Task ausführen"]},"."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Manche Funktionen erkennen zuerst Gesichter oder Körper, siehe ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"#pre-process-face-and-body-detection"},"children":["Vorverarbeitung"]},"."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"einheiten-und-funktionskosten","__idx":5},"children":["Einheiten und Funktionskosten"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Einheiten sind das Verbrauchsgut für die YouCam API, und jede KI-Funktion nutzt eine andere Anzahl davon. Die API – und damit die CLI – bezeichnet eine Einheit als „credit\", weshalb die Befehle ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["client credit"]}," und ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["client credit-history"]}," heißen. Siehe ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.perfectcorp.com/develop/faq"},"children":["What does 'Unit' mean, and how is it used?"]}," in der offiziellen FAQ."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"einheiten-prüfen","__idx":6},"children":["Einheiten prüfen"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"youcam client credit  # remaining units\nyoucam client credit-history  # unit usage history\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"funktionskosten-prüfen","__idx":7},"children":["Funktionskosten prüfen"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Schlagen Sie nach, wie viele Einheiten eine Funktion verbraucht, bevor Sie sie im großen Maßstab ausführen."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"youcam client feature-cost\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Beide Befehle geben ihre Ergebnisse seitenweise mit ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--page_size"]}," und ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--starting_token <token>"]}," aus:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["credit-history"]},": ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--page_size <1-30>"]},", Standard 20."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["feature-cost"]},": ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--page_size <1-20>"]},", Standard 20."]}]},{"$$mdtype":"Tag","name":"blockquote","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Hinweis: ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"#pre-process-face-and-body-detection"},"children":["Vorverarbeitungs"]},"-Erkennungs-Tasks und das ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"#listing-predefined-templates"},"children":["Auflisten vordefinierter Templates"]}," verbrauchen keine Einheiten."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"befehlsübersicht","__idx":8},"children":["Befehlsübersicht"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"youcam <command> [options]\n\nCommands:\n  auth Manage authentication credentials\n  run  Run an AI task\n  status  Check the status of an AI task\n  template   List predefined templates\n  client  Get account/credit info\n  help Display help for a command\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Jeder Befehl und Unterbefehl unterstützt ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["-h, --help"]},", um die eigene Verwendung und Optionen anzuzeigen:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"youcam run --help\nyoucam run face-swap --help\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Ergebnisse werden als JSON ausgegeben. Ein Befehl beendet sich mit Code 1, wenn die Anfrage fehlschlägt."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"api--cli-befehlszuordnung","__idx":9},"children":["API ↔ CLI-Befehlszuordnung"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Jeder Endpunkt in der ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.perfectcorp.com/"},"children":["API-Referenz"]}," bildet sich vorhersehbar auf einen CLI-Befehl ab:"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"REST-Endpunkt"},"children":["REST-Endpunkt"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"CLI-Befehl"},"children":["CLI-Befehl"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["POST /s2s/v{ver}/task/{feature}"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["youcam run <feature> [options]"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET /s2s/v{ver}/task/{feature}/{task_id}"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["youcam status <feature> <task_id>"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["POST /s2s/v{ver}/task/{feature}/pre-process"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["youcam run pre-process <feature> [options]"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET /s2s/v{ver}/task/{feature}/pre-process/{task_id}"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["youcam status pre-process <feature> <task_id>"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET /s2s/v{ver}/task/template/{feature}"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["youcam template <feature> [--page_size] [--starting_token]"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Öffentliche makeup-vto-Musterkataloge"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["youcam template makeup-vto <categories...>"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET /s2s/v1.0/client/credit"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["youcam client credit"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET /s2s/v1.0/client/credit/history"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["youcam client credit-history [--page_size] [--starting_token]"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET /s2s/v2.0/credit/feature-cost"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["youcam client feature-cost [--page_size] [--starting_token]"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["POST /s2s/v2.0/file"]}," + presigned ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PUT"]},"-Upload"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Erfolgt automatisch, wenn eine Datei-Option ein lokaler Pfad ist (siehe ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"#uploading-files"},"children":["Dateien hochladen"]},")"]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Faustregeln zum Ableiten von ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["<feature>"]}," aus der API-Referenz:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Der CLI-Funktionsname ist das Pfad-Segment direkt vor ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["{task_id}"]},", z. B. ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/s2s/v2.0/task/abs-shape/{task_id}"]}," → ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["abs-shape"]},"."]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Der API-Versions-Präfix (",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["v2.0"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["v2.1"]},", …) wird für Sie erledigt: Jeder Befehl ruft die neueste API-Version in der ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.perfectcorp.com/"},"children":["API-Referenz"]}," auf, z. B. rufen ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["skin-analysis"]}," und ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["hair-transfer"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/s2s/v2.1/..."]}," auf. Wenn eine Funktion mehrere Engine-Versionen hat, wird nur die neueste angeboten, z. B. ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["cloth-v4"]},", aber nicht ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["cloth-v3"]},"."]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Ein paar Endpunkte haben ein zusätzliches Pfad-Segment; lassen Sie es weg, um den CLI-Namen zu erhalten:"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"API-Pfad"},"children":["API-Pfad"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"CLI-Befehl"},"children":["CLI-Befehl"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/s2s/v2.0/task/2d-vto/earring"]}," (gleiches gilt für ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["necklace"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["ring"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["bracelet"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["watch"]},")"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["youcam run earring"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/s2s/v2.0/task/image-to-image/youcam"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/text-to-image/youcam"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/image-to-video/youcam"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/text-to-video/youcam"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["youcam run image-to-image"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["run text-to-image"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["run image-to-video"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["run text-to-video"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/s2s/v2.0/task/colorize/color-correct"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["youcam run color-correct"]}]}]}]}]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Eigenschaften des Request-Bodys werden zu ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--<property_name>"]},"-Optionen des passenden ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["run"]},"-Befehls (siehe ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"#uploading-files"},"children":["Dateien hochladen"]}," und ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"#passing-json-parameters"},"children":["JSON-Parameter übergeben"]},"). Query-Parameter wie ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["page_size"]}," und ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["starting_token"]}," werden ebenfalls zu ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--<param_name>"]},"-Optionen."]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Nehmen Sie als Beispiel ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.perfectcorp.com/reference/ai_hair_color/v1.0/paths/~1s2s~1v2.0~1task~1hair-color/post"},"children":["Virtual Try On für Haarfarbe"]},"; seine beiden Endpunkte sind:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"POST /s2s/v2.0/task/hair-color   { src_file_url | src_file_id, preset?, pattern?, palettes? }\nGET  /s2s/v2.0/task/hair-color/{task_id}\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["bilden sich auf diese CLI-Befehle ab:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"youcam run hair-color --src_file <url-or-path> [--preset <value> | --pattern <json> --palettes <json>]\nyoucam status hair-color <task_id>\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Um eine Preset-Farbe anzuwenden:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"youcam run hair-color --src_file \"https://plugins-media.makeupar.com/strapi/assets/hair_color_09_76a7a1081e.jpg\" --preset \"Honey Blonde\"\nyoucam status hair-color <task_id>\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Der ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["run"]},"-Befehl sendet diesen Request-Body:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n  \"src_file_url\": \"https://plugins-media.makeupar.com/strapi/assets/hair_color_09_76a7a1081e.jpg\",\n  \"preset\": \"Honey Blonde\"\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Um stattdessen eine eigene Farbe anzuwenden, übergeben Sie die Objekte ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["pattern"]}," und ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["palettes"]},":"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"youcam run hair-color --src_file \"https://plugins-media.makeupar.com/strapi/assets/hair_color_09_76a7a1081e.jpg\" \\\n  --pattern '{\"name\": \"full\"}' \\\n  --palettes '[{\"color\": \"#8B4513\", \"color_intensity\": 80, \"shine_intensity\": 50}]'\nyoucam status hair-color <task_id>\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Der entsprechende JSON-Request-Body ist:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n  \"src_file_url\": \"https://plugins-media.makeupar.com/strapi/assets/hair_color_09_76a7a1081e.jpg\",\n  \"pattern\": { \"name\": \"full\" },\n  \"palettes\": [{ \"color\": \"#8B4513\", \"color_intensity\": 80, \"shine_intensity\": 50 }]\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["youcam run"]}," gibt die neue ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["task_id"]}," aus; übergeben Sie sie an ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["youcam status"]}," und wiederholen Sie dies, bis ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["task_status"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["success"]}," ist."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"einen-ki-task-ausführen","__idx":10},"children":["Einen KI-Task ausführen"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Jede KI-Funktion ist ein Unterbefehl von ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["run"]},". Die Optionen variieren je nach Funktion; nutzen Sie ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--help"]}," bei der Funktion, um ihre Eingaben zu sehen."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"youcam run <feature> [options]\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Um beispielsweise ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.perfectcorp.com/reference/ai_abs_filter/v1.0/paths/~1s2s~1v2.0~1task~1abs-shape/post"},"children":["KI Abs Filter"]}," auszuführen:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"youcam run abs-shape --src_file \"https://example.com/photo.jpg\" --mode \"Six-pack\" --intensity 2\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Das Ausführen eines Tasks liefert eine ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["task_id"]},", mit der Sie ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"#checking-task-status"},"children":["seinen Status prüfen"]},"."]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Vorverarbeitung:"]}," Ein paar Funktionen erkennen zuerst die Gesichter oder Körper im Foto, damit Sie wählen können, welche Person verarbeitet wird. Siehe ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"#pre-process-face-and-body-detection"},"children":["Vorverarbeitung"]},"."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Templates:"]}," Manche Funktionen akzeptieren ein fertiges Stil-Preset über ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--template_id"]},". Siehe ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"#listing-predefined-templates"},"children":["Vordefinierte Templates auflisten"]},"."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Validierung:"]}," Optionswerte werden gegen das API-Schema geprüft, bevor irgendetwas gesendet wird. Optionen mit einem festen Wertesatz listen ihn in ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--help"]}," auf, und ein ungültiger Wert wird mit den erlaubten Auswahlmöglichkeiten abgewiesen."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"dateien-hochladen","__idx":11},"children":["Dateien hochladen"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Jede Funktion, die ein Bild oder Video entgegennimmt, gibt es als einzelne ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--src_file"]},"-Option aus, obwohl die API zwei sich ausschließende Felder akzeptiert: ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["src_file_url"]}," (eine öffentliche URL) oder ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["src_file_id"]}," (die ID einer hochgeladenen Datei). Die CLI wählt das richtige anhand dessen, was Sie übergeben:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Eine öffentlich erreichbare URL"]}," wird als ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["src_file_url"]}," gesendet. Es wird nichts hochgeladen.",{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"youcam run enhance --src_file \"https://example.com/photo.jpg\" --scale 2\n","lang":"bash"},"children":[]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Ein lokaler Dateipfad"]}," wird für Sie hochgeladen, und der Task wird mit ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["src_file_id"]}," gesendet:",{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["POST /s2s/v2.0/file"]}," registriert die Datei (Name, Content-Type, Größe) und liefert eine presigned Upload-URL und eine ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["file_id"]},"."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Die Bytes der Datei werden per ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PUT"]}," an diese presigned URL gesendet."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["run <feature>"]}," wird mit ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["src_file_id"]}," auf diesen ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["file_id"]},"-Wert aufgerufen."]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"youcam run enhance --src_file ./photo.jpg --scale 2\n","lang":"bash"},"children":[]},"Windows-Pfade funktionieren in PowerShell oder cmd ebenfalls:",{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"powershell","header":{"controls":{"copy":{}}},"source":"youcam run enhance --src_file .\\photo.jpg --scale 2\n","lang":"powershell"},"children":[]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Hinweise:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Lokale Dateien müssen ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":[".jpg"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":[".jpeg"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":[".png"]}," oder ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":[".mp4"]}," sein."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Größen-, Auflösungs- und Dauerlimits hängen von der Funktion ab; eine zu große Datei lässt den Task mit ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["exceed_max_filesize"]}," im ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["status"]}," fehlschlagen."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Es gibt keinen separaten Upload-CLI-Befehl; Uploads erfolgen ausschließlich über Datei-Optionen."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"weitere-datei-optionen","__idx":12},"children":["Weitere Datei-Optionen"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Neben ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--src_file"]}," nehmen manche Funktionen zusätzliche Bilder (Masken, Referenzfotos, Produktfotos). Sie folgen derselben Regel: übergeben Sie eine öffentliche URL oder einen lokalen Pfad, und lokale Pfade werden für Sie hochgeladen."]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Option"},"children":["Option"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Was sie ist"},"children":["Was sie ist"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Werte"},"children":["Werte"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Genutzt von"},"children":["Genutzt von"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--src_file <input>"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Das Haupt-Quellfoto oder -video"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["einzeln"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["die meisten Funktionen"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--src_files <inputs...>"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Mehrere Quellfotos"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["mehrere"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["hair-frizziness-detection"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["hair-type-detection"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["image-to-image"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--ref_file <input>"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Ein Referenzbild als Vorlage (z. B. ein Makeup-Look, ein Outfit, ein Produkt)"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["einzeln"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["bag"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["cloth-v4"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["eye-color-vto"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["hair-transfer"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["hat"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["mu-transfer"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["ai-nail"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["scarf"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["shoes-transfer"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["bg-replace-vid"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["face-swap-vid"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--ref_files <inputs...>"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Mehrere Referenzbilder (z. B. ein Gesicht pro Ziel, Produktfotos)"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["mehrere"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["bracelet"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["earring"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["face-swap"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["nail-vto"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["necklace"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["ring"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["watch"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--msk_file <input>"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Maske über der Quelle: Weiß markiert den zu ändernden Bereich, Schwarz bleibt, wie es ist"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["einzeln"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["generative-fill"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["obj-replace"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["obj-rem-vid"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--srcmsk_file <input>"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Maske, die den relevanten Körperteil in der Quelle freistellt (z. B. Ohren, Hals, Handgelenk)"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["einzeln"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["bracelet"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["earring"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["necklace"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["ring"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["watch"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--refmsk_files <inputs...>"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Masken passend zu jedem ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--ref_files"]},"-Eintrag, in derselben Reihenfolge"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["mehrere"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["bracelet"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["earring"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["ring"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["watch"]}]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Optionen mit ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["..."]}," nehmen mehrere Werte nach einem Flag entgegen, getrennt durch Leerzeichen (nicht Kommas):"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"youcam run face-swap \\\n  --src_file group-photo.jpg \\\n  --ref_files person-a.jpg person-b.jpg \\\n  --face_mapping '[{\"index\":0,\"position\":0},{\"index\":1,\"position\":1}]'\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Wenn eine Option mit mehreren Werten öffentliche URLs und lokale Pfade mischt, z. B. ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--ref_files https://example.com/a.jpg ./b.jpg"]},", wird jede Datei darin hochgeladen, die URLs eingeschlossen: Die CLI lädt jede URL herunter, lädt sie wie eine lokale Datei hoch und sendet alle als Datei-IDs (z. B. ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["ref_file_ids"]},"). Diese URLs müssen dann ein JPG, PNG oder MP4 ausliefern. Um URLs als URLs senden zu lassen, übergeben Sie in dieser Option nur URLs."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Führen Sie ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["youcam run <feature> --help"]}," aus, um exakt zu sehen, welche davon eine Funktion akzeptiert."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"options-syntax","__idx":13},"children":["Options-Syntax"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Die unten aufgelisteten Formen sind gleichwertig; nutzen Sie, was Ihnen lieber ist:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"youcam run skin-simulation --src_file https://example.com/face.png --acne 1\nyoucam run skin-simulation --src_file=https://example.com/face.png --acne=1\nyoucam run skin-simulation --src_file=\"https://example.com/face.png\" --acne=\"1\"\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Anführungszeichen sind nur nötig, wenn ein Wert Leerzeichen oder Zeichen enthält, die Ihre Shell speziell behandelt (z. B. ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["&"]}," in einer URL oder JSON)."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Optionen, die mehrere Werte nehmen, akzeptieren sie leerzeichengetrennt nach einem Flag oder als wiederholtes Flag:",{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--src_files a.jpg b.jpg"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--src_files=a.jpg --src_files=b.jpg"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Nicht ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--src_files=a.jpg b.jpg"]},", das wird abgewiesen."]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"json-parameter-übergeben","__idx":14},"children":["JSON-Parameter übergeben"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Optionen, die in ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--help"]}," als ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["<json>"]}," erscheinen (statt ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["<value>"]},"), entsprechen einem ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["object"]},"- oder ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["array"]},"-Feld im API-Request-Body. Übergeben Sie die ganze Struktur als einen JSON-Wert:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Inline-JSON, z. B. ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--pattern '{\"name\":\"full\"}'"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["ein Pfad zu einer ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":[".json"]},"-Datei, z. B. ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--effects ./effects.json"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["-"]},", um das JSON von stdin zu lesen, z. B. ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["cat effects.json | youcam run makeup-vto --src_file photo.jpg --effects -"]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Inline-JSON quoten:"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"# bash / zsh / macOS / Linux / Git Bash: single quotes protect the double quotes\nyoucam run hair-color --src_file photo.jpg --pattern '{\"name\":\"full\"}' --palettes '[{\"color\":\"#8B4513\",\"color_intensity\":80,\"shine_intensity\":50}]'\n\n# Windows PowerShell: escape the inner double quotes\nyoucam run hair-color --src_file photo.jpg --pattern '{\\\"name\\\":\\\"full\\\"}' --palettes '[{\\\"color\\\":\\\"#8B4513\\\",\\\"color_intensity\\\":80,\\\"shine_intensity\\\":50}]'\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Verschachteltes Objekt und Array:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--pattern"]}," von ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["hair-color"]}," ist ein ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["object"]},", und ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--palettes"]}," ein ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["array"]}," von ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["{color, color_intensity, shine_intensity}"]},"-Objekten (eines für den Full-Modus, zwei für den Ombre-Modus):"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"youcam run hair-color \\\n  --src_file photo.jpg \\\n  --pattern '{\"name\":\"full\"}' \\\n  --palettes '[{\"color\":\"#FF5733\",\"color_intensity\":80,\"shine_intensity\":50}]'\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Sobald ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["photo.jpg"]}," hochgeladen und zu einer ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["src_file_id"]}," aufgelöst ist, sendet die CLI diesen Body an ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["POST /s2s/v2.0/task/hair-color"]},":"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n  \"src_file_id\": \"<file_id from the upload>\",\n  \"pattern\": {\n \"name\": \"full\"\n  },\n  \"palettes\": [\n {\n \"color\": \"#FF5733\",\n \"color_intensity\": 80,\n \"shine_intensity\": 50\n }\n  ]\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Jeder ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--<option> <json>"]},"-Wert wird as-is als Wert dieser Eigenschaft verwendet: ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--pattern"]}," wird das ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["pattern"]},"-Objekt und ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--palettes"]}," das ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["palettes"]},"-Array. Nichts wird umbenannt oder umgeformt, und für ausgelassene Optionen werden keine Standardwerte ergänzt."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Tief verschachtelte Arrays:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--effects"]}," von ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["makeup-vto"]}," ist ein Array von Effekt-Objekten, manche mit eigenem ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["pattern"]}," und ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["palettes"]},". Mehrzeiliges JSON ist problemlos:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"youcam run makeup-vto --src_file photo.jpg --effects '[\n  {\"category\":\"skin_smooth\",\"skinSmoothStrength\":55,\"skinSmoothColorIntensity\":45},\n  {\"category\":\"blush\",\"pattern\":{\"name\":\"1color1\"},\"palettes\":[\n {\"color\":\"#e19f9f\",\"texture\":\"matte\",\"colorIntensity\":60}\n  ]}\n]'\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Muster-Namen wie ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["1color1"]}," stammen aus ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["youcam template makeup-vto"]}," (siehe ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"#listing-makeup-vto-pattern-names"},"children":["makeup-vto-Musternamen auflisten"]},")."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Ungültiges JSON oder ein Wert des falschen Typs wird abgewiesen, bevor die Anfrage gesendet wird, und nennt das beanstandete Feld, z. B. ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Invalid value for --palettes: [{\"color\":123}] (0.color: Invalid input: expected string, received number)"]},"."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"task-status-prüfen","__idx":15},"children":["Task-Status prüfen"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"youcam status <feature> <task_id>\n# or\nyoucam status <feature> --task_id <task_id>\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Beispiel:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"youcam status abs-shape 1234567890abcdef\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Pollen Sie, bis ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["task_status"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["success"]}," (oder ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["error"]},") ist; die Antwort enthält dann die Ergebnisse, etwa Ausgabe-Datei-URLs. Für einen Vorverarbeitungs-Task nutzen Sie ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["youcam status pre-process <feature> <task_id>"]},"."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"vorverarbeitung-gesichts--und-körpererkennung","__idx":16},"children":["Vorverarbeitung (Gesichts- und Körpererkennung)"]},{"$$mdtype":"Tag","name":"blockquote","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Vorverarbeitungs-Tasks verbrauchen keine Einheiten, nur der Haupt-Task."]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Bei den folgenden Funktionen kann ein Foto mehrere Personen enthalten, also wählen Sie aus, welche verarbeitet wird. ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["youcam run pre-process <feature>"]}," erkennt die Gesichter oder Körper im Foto und gibt sie als Liste zurück. Jeder Eintrag ist nach seiner Position in dieser Liste nummeriert: ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["0"]}," für den ersten, ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["1"]}," für den zweiten und so weiter."]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Erkennen: ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["youcam run pre-process <feature> --src_file <photo>"]}," liefert eine ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["task_id"]},"."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Erkennungen lesen: ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["youcam status pre-process <feature> <task_id>"]}," listet die erkannten Gesichter oder Körper. Die Form der Liste hängt von der Funktion ab: ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["body-reshape"]}," liefert ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["results.result[]"]},", Boxen relativ zur Bildgröße (",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["0"]},"–",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["1"]},"), während ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["face-swap"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["results.faces[].bbox"]}," liefert, Pixel-Boxen als ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["[x1, y1, x2, y2]"]}," (Ecken oben links und unten rechts)."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Führen Sie die Funktion mit demselben Foto aus und übergeben Sie die gewählte Nummer mit der Option in dieser Tabelle:"]}]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Funktion"},"children":["Funktion"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Option, die die Nummer des erkannten Gesichts oder Körpers nimmt"},"children":["Option, die die Nummer des erkannten Gesichts oder Körpers nimmt"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["body-reshape"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--index <number>"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["face-lift"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--index <number>"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["face-reshape"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--index <number>"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["fitzpatrick-scale-analyzer"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--index <number>"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["teeth-whiten"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--index <number>"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["face-swap"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["\"position\""]}," in jedem ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--face_mapping"]},"-Eintrag. Dessen ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["\"index\""]}," wählt aus, welches ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--ref_files"]},"-Bild genutzt wird"]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Zum Beispiel hebt ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["youcam run face-lift --src_file <photo> --index 1 ..."]}," das zweit erkannte Gesicht an. Siehe den ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"#example-workflow"},"children":["Beispiel-Workflow"]}," für einen kompletten Durchlauf mit echter Ausgabe."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"vordefinierte-templates-auflisten","__idx":17},"children":["Vordefinierte Templates auflisten"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Manche Funktionen bringen einsatzbereite Templates (Stil- oder Look-Presets) mit, auf die Sie über ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--template_id"]}," verweisen, statt Parameter selbst zu bauen."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"youcam template <feature> [--page_size <1-20>] [--starting_token <token>]\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["<feature>"]}," ist eines von:"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Kategorie"},"children":["Kategorie"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Funktionen"},"children":["Funktionen"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Haare & Bart"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["hair-bang"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["hair-curl"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["hair-ext"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["hair-transfer"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["hair-vol"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["beard-style"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Makeup & Try-on"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["look-vto"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["fabric"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Bilder"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["ai-avatar"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["ai-studio"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["headshot"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["bg-replace"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Video"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["video-trans"]}]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Für ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["makeup-vto"]}," siehe ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"#listing-makeup-vto-pattern-names"},"children":["makeup-vto-Musternamen auflisten"]}," für die Details seiner Muster."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Beispiel:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"youcam template ai-avatar --page_size 10\nyoucam run ai-avatar --src_file ./photo.jpg --template_id <id> --output_count 1\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Übergeben Sie den ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["next_token"]}," aus einer Antwort als ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--starting_token"]},", um die nächste Seite abzurufen."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Wenn der ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["ai-avatar"]},"-Task erfolgreich ist, listet ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["youcam status ai-avatar <task_id>"]}," die erzeugten Bilder in ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["results.output[].url"]},", ein Eintrag pro Ausgabe."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"makeup-vto-musternamen-auflisten","__idx":18},"children":["makeup-vto-Musternamen auflisten"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["makeup-vto"]},"-Effekte wählen ihre Form nach Namen, z. B. ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["\"pattern\":{\"name\":\"1color1\"}"]}," für Blush oder ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["\"shape\":{\"name\":\"plump\"}"]}," für Lippenfarbe. Listen Sie die gültigen Namen je Effekt-Kategorie:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"youcam template makeup-vto <categories...>\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Übergeben Sie eine oder mehrere von ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["blush"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["bronzer"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["contour"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["eyebrows"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["eyeliner"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["eyeshadow"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["eyelashes"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["lipshape"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["lipliner"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["highlighter"]}," (oder dieselben Namen nach ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--category"]},"). Mindestens eines ist erforderlich. Die Kataloge sind öffentlich, das Auflisten verbraucht also keine Einheiten."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"youcam template makeup-vto blush lipshape\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Das Ergebnis ist nach Kategorie geschlüsselt. Nutzen Sie das ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["label"]}," eines Eintrags als Muster-Name; ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["colorNum"]}," (nur blush, eyeliner und eyeshadow) gibt an, wie viele ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["palettes"]}," das Muster braucht:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n  \"blush\": [\n {\n \"category\": \"1 color\",\n \"label\": \"1color1\",\n \"thumbnail\": \"https://app-cdn-01.makeupar.com/.../a53cd4f4-43b6-4e19-b85a-ec7a95c6a47f.jpg\",\n \"tags\": [\n  { \"id\": 100, \"name\": \"Blush 3D\" },\n  { \"id\": 103, \"name\": \"Oblong\" }\n ],\n \"colorNum\": 1\n }\n  ],\n  \"lipshape\": [\n {\n \"category\": \"general\",\n \"label\": \"original\",\n \"thumbnail\": \"https://plugins-media.makeupar.com/wcm-saas/images/lipshapes/original.png\",\n \"tags\": []\n }\n  ]\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Eine Kategorie, die nicht abgerufen werden kann, zeigt stattdessen ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["{ \"error\": \"...\" }"]},", und der Befehl beendet sich mit Code 1."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"verfügbare-ki-funktionen","__idx":19},"children":["Verfügbare KI-Funktionen"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Übergeben Sie eine davon als ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["<feature>"]}," an ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["run"]}," und ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["status"]},". Jede verlinkt auf ihre API-Referenz-Seite. Für die Funktionen mit Erkennungsschritt siehe ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"#pre-process-face-and-body-detection"},"children":["Vorverarbeitung"]},". Für die mit ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["youcam template"]}," siehe ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"#listing-predefined-templates"},"children":["Vordefinierte Templates auflisten"]},"."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"beauty","__idx":20},"children":["Beauty"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.perfectcorp.com/reference/makeup_vto/v1.0/paths/~1s2s~1v2.0~1task~1makeup-vto/post"},"children":["makeup-vto"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"#listing-makeup-vto-pattern-names"},"children":["Muster-Namen"]}]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.perfectcorp.com/reference/ai_makeup_transfer/v1.0/paths/~1s2s~1v2.0~1task~1mu-transfer/post"},"children":["mu-transfer"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.perfectcorp.com/reference/ai_look_vto/v1.0/paths/~1s2s~1v2.0~1task~1look-vto/post"},"children":["look-vto"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.perfectcorp.com/reference/ai_eye_color_lens/v1.0/paths/~1s2s~1v2.0~1task~1eye-color-vto/post"},"children":["eye-color-vto"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.perfectcorp.com/reference/ai_nail_vto/v1.0/paths/~1s2s~1v2.0~1task~1nail-vto/post"},"children":["nail-vto"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.perfectcorp.com/reference/ai_nail_transfer/v1.0/paths/~1s2s~1v2.0~1task~1ai-nail/post"},"children":["ai-nail"]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"haut-gesicht--körper","__idx":21},"children":["Haut, Gesicht & Körper"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.perfectcorp.com/reference/ai_face_analyzer/v1.0/paths/~1s2s~1v2.0~1task~1face-attr-analysis/post"},"children":["face-attr-analysis"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.perfectcorp.com/reference/ai_skin_analysis/v2.1/paths/~1s2s~1v2.1~1task~1skin-analysis/post"},"children":["skin-analysis"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.perfectcorp.com/reference/ai_skin_tone_analysis/v1.0/paths/~1s2s~1v2.0~1task~1skin-tone-analysis/post"},"children":["skin-tone-analysis"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.perfectcorp.com/reference/ai_fitzpatrick_skin_type/v1.0/paths/~1s2s~1v2.0~1task~1fitzpatrick-scale-analyzer/post"},"children":["fitzpatrick-scale-analyzer"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.perfectcorp.com/reference/ai_skin_simulation/v1.0/paths/~1s2s~1v2.0~1task~1skin-simulation/post"},"children":["skin-simulation"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.perfectcorp.com/reference/ai_abs_filter/v1.0/paths/~1s2s~1v2.0~1task~1abs-shape/post"},"children":["abs-shape"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.perfectcorp.com/reference/ai_aging_simulation/v1.0/paths/~1s2s~1v2.0~1task~1aging/post"},"children":["aging"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.perfectcorp.com/reference/ai_body_reshape/v1.0/paths/~1s2s~1v2.0~1task~1body-reshape/post"},"children":["body-reshape"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.perfectcorp.com/reference/ai_breast_augmentation/v1.0/paths/~1s2s~1v2.0~1task~1breast-shape/post"},"children":["breast-shape"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.perfectcorp.com/reference/ai_face_lift/v1.0/paths/~1s2s~1v2.0~1task~1face-lift/post"},"children":["face-lift"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.perfectcorp.com/reference/ai_face_reshape/v1.0/paths/~1s2s~1v2.0~1task~1face-reshape/post"},"children":["face-reshape"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.perfectcorp.com/reference/ai_smile/v1.0/paths/~1s2s~1v2.0~1task~1ai-smile/post"},"children":["ai-smile"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.perfectcorp.com/reference/ai_teeth_whitening/v1.0/paths/~1s2s~1v2.0~1task~1teeth-whiten/post"},"children":["teeth-whiten"]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"haare--bart","__idx":22},"children":["Haare & Bart"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.perfectcorp.com/reference/ai_hair_density_detection/v1.0/paths/~1s2s~1v2.0~1task~1hair-density-detection/post"},"children":["hair-density-detection"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.perfectcorp.com/reference/ai_hair_frizziness_detection/v1.0/paths/~1s2s~1v2.0~1task~1hair-frizziness-detection/post"},"children":["hair-frizziness-detection"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.perfectcorp.com/reference/ai_hair_length_detection/v1.0/paths/~1s2s~1v2.0~1task~1hair-length-detection/post"},"children":["hair-length-detection"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.perfectcorp.com/reference/ai_hair_type_detection/v1.0/paths/~1s2s~1v2.0~1task~1hair-type-detection/post"},"children":["hair-type-detection"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.perfectcorp.com/reference/ai_bangs/v1.0/paths/~1s2s~1v2.0~1task~1hair-bang/post"},"children":["hair-bang"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.perfectcorp.com/reference/ai_hair_color/v1.0/paths/~1s2s~1v2.0~1task~1hair-color/post"},"children":["hair-color"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.perfectcorp.com/reference/ai_wavy_hair/v1.0/paths/~1s2s~1v2.0~1task~1hair-curl/post"},"children":["hair-curl"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.perfectcorp.com/reference/ai_hair_extension/v1.0/paths/~1s2s~1v2.0~1task~1hair-ext/post"},"children":["hair-ext"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.perfectcorp.com/reference/ai_hairstyle/v2.1/paths/~1s2s~1v2.1~1task~1hair-transfer/post"},"children":["hair-transfer"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.perfectcorp.com/reference/ai_hair_volume/v1.0/paths/~1s2s~1v2.0~1task~1hair-vol/post"},"children":["hair-vol"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.perfectcorp.com/reference/ai_beard_style/v1.0/paths/~1s2s~1v2.0~1task~1beard-style/post"},"children":["beard-style"]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"virtuelle-anprobe","__idx":23},"children":["Virtuelle Anprobe"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.perfectcorp.com/reference/ai_earrings/v1.0/paths/~1s2s~1v2.0~1task~12d-vto~1earring/post"},"children":["earring"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.perfectcorp.com/reference/ai_necklace/v1.0/paths/~1s2s~1v2.0~1task~12d-vto~1necklace/post"},"children":["necklace"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.perfectcorp.com/reference/ring_vto/v1.0/paths/~1s2s~1v2.0~1task~12d-vto~1ring/post"},"children":["ring"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.perfectcorp.com/reference/ai_bracelet/v1.0/paths/~1s2s~1v2.0~1task~12d-vto~1bracelet/post"},"children":["bracelet"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.perfectcorp.com/reference/ai_watch/v1.0/paths/~1s2s~1v2.0~1task~12d-vto~1watch/post"},"children":["watch"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.perfectcorp.com/reference/ai_bag/v2.0/paths/~1s2s~1v2.0~1task~1bag/post"},"children":["bag"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.perfectcorp.com/reference/ai_hat/v2.0/paths/~1s2s~1v2.0~1task~1hat/post"},"children":["hat"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.perfectcorp.com/reference/ai_scarf/v2.0/paths/~1s2s~1v2.0~1task~1scarf/post"},"children":["scarf"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.perfectcorp.com/reference/ai_clothes/v4.0/paths/~1s2s~1v2.0~1task~1cloth-v4/post"},"children":["cloth-v4"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.perfectcorp.com/reference/ai_fabric/v1.0/paths/~1s2s~1v2.0~1task~1fabric/post"},"children":["fabric"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.perfectcorp.com/reference/ai_shoes/v3.0/paths/~1s2s~1v2.0~1task~1shoes-transfer/post"},"children":["shoes-transfer"]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"bilder","__idx":24},"children":["Bilder"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.perfectcorp.com/reference/ai_photo_enhance/v1.0/paths/~1s2s~1v2.0~1task~1enhance/post"},"children":["enhance"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.perfectcorp.com/reference/ai_photo_lighting/v2.0/paths/~1s2s~1v2.0~1task~1lighting/post"},"children":["lighting"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.perfectcorp.com/reference/ai_photo_colorize/v1.0/paths/~1s2s~1v2.0~1task~1colorize/post"},"children":["colorize"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.perfectcorp.com/reference/ai_color_correction/v1.0/paths/~1s2s~1v2.0~1task~1colorize~1color-correct/post"},"children":["color-correct"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.perfectcorp.com/reference/ai_background_removal/v1.0/paths/~1s2s~1v2.0~1task~1sod/post"},"children":["sod"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.perfectcorp.com/reference/ai_photo_background_blur/v2.0/paths/~1s2s~1v2.0~1task~1bg-blur/post"},"children":["bg-blur"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.perfectcorp.com/reference/ai_photo_background_change/v2.0/paths/~1s2s~1v2.0~1task~1bg-replace/post"},"children":["bg-replace"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.perfectcorp.com/reference/ai_object_removal_pro/v4.0/paths/~1s2s~1v2.0~1task~1generative-fill/post"},"children":["generative-fill"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.perfectcorp.com/reference/ai_replace/v1.0/paths/~1s2s~1v2.0~1task~1obj-replace/post"},"children":["obj-replace"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.perfectcorp.com/reference/ai_image_extender/v2.0/paths/~1s2s~1v2.0~1task~1out-paint/post"},"children":["out-paint"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.perfectcorp.com/reference/ai_image_generator/v2.0/paths/~1s2s~1v2.0~1task~1image-to-image~1youcam/post"},"children":["image-to-image"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.perfectcorp.com/reference/ai_image_generator/v2.0/paths/~1s2s~1v2.0~1task~1text-to-image~1youcam/post"},"children":["text-to-image"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.perfectcorp.com/reference/ai_avatar_generator/v3.0/paths/~1s2s~1v2.0~1task~1ai-avatar/post"},"children":["ai-avatar"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.perfectcorp.com/reference/ai_studio_generator/v3.0/paths/~1s2s~1v2.0~1task~1ai-studio/post"},"children":["ai-studio"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.perfectcorp.com/reference/ai_headshot_generator/v1.0/paths/~1s2s~1v2.0~1task~1headshot/post"},"children":["headshot"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.perfectcorp.com/reference/ai_watermark_removal/v1.0/paths/~1s2s~1v2.0~1task~1wmk-removal/post"},"children":["wmk-removal"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.perfectcorp.com/reference/ai_face_swap/v1.0/paths/~1s2s~1v2.0~1task~1face-swap/post"},"children":["face-swap"]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"video","__idx":25},"children":["Video"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.perfectcorp.com/reference/ai_video_background_replace/v1.0/paths/~1s2s~1v2.0~1task~1bg-replace-vid/post"},"children":["bg-replace-vid"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.perfectcorp.com/reference/ai_video_face_swap/v1.0/paths/~1s2s~1v2.0~1task~1face-swap-vid/post"},"children":["face-swap-vid"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.perfectcorp.com/reference/ai_video_generator/v2.0/paths/~1s2s~1v2.0~1task~1image-to-video~1youcam/post"},"children":["image-to-video"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.perfectcorp.com/reference/ai_video_generator/v2.0/paths/~1s2s~1v2.0~1task~1text-to-video~1youcam/post"},"children":["text-to-video"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.perfectcorp.com/reference/ai_video_object_removal/v2.1/paths/~1s2s~1v2.0~1task~1obj-rem-vid/post"},"children":["obj-rem-vid"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.perfectcorp.com/reference/ai_video_enhancer/v1.0/paths/~1s2s~1v2.0~1task~1video-sr/post"},"children":["video-sr"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.perfectcorp.com/reference/ai_video_style_transfer/v1.0/paths/~1s2s~1v2.0~1task~1video-trans/post"},"children":["video-trans"]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Führen Sie ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["youcam run <feature> --help"]}," aus für die exakten Parameter, die jede Funktion akzeptiert."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"beispiel-workflow","__idx":26},"children":["Beispiel-Workflow"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Dies führt ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.perfectcorp.com/reference/ai_body_reshape/v1.0/paths/~1s2s~1v2.0~1task~1body-reshape/post"},"children":["KI Body Reshape"]}," von Anfang bis Ende durch – erkennen Sie die Körper in einem Foto, wählen Sie einen aus, verformen Sie ihn und rufen Sie das Ergebnis ab. Die Request- und Response-Bodies unten stammen aus echten Läufen mit diesem Beispiel-Foto:"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["1. Den Erkennungs-Task (pre-process) starten"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"youcam run pre-process body-reshape \\\n  --src_file \"https://plugins-media.makeupar.com/strapi/assets/body_reshape_01_d10c50c97d.jpg\"\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Antwort:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n  \"status\": 200,\n  \"data\": {\n \"task_id\": \"CKPWaMO-olxd1ECr_3tTDXW5Gu_tQw0EKgN0-dU27zSyXhV8cJR2TzYLMhDqD\"\n  }\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["2. Die erkannten Körper abrufen"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"youcam status pre-process body-reshape CKPWaMO-olxd1ECr_3tTDXW5Gu_tQw0EKgN0-dU27zSyXhV8cJR2TzYLMhDqD\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Antwort:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n  \"status\": 200,\n  \"data\": {\n \"error\": null,\n \"results\": {\n \"result\": [\n  {\n  \"left\": 0.35347824096679686,\n  \"top\": 0.022326231002807617,\n  \"width\": 0.3041056156158447,\n  \"height\": 0.951037073135376\n  }\n ],\n \"timed\": 4565\n },\n \"task_status\": \"success\"\n  }\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Jeder Eintrag in ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["results.result"]}," ist eine erkannte Person als Bounding Box relativ zur Bildgröße (",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["0"]},"–",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["1"]},"). Ihre Position im Array ist das ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--index"]},", das Sie als Nächstes übergeben; dieses Foto hat eine Person, der Index ist also ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["0"]},"."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["3. Den Haupt-Task mit der gewählten Person ausführen"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"youcam run body-reshape \\\n  --src_file \"https://plugins-media.makeupar.com/strapi/assets/body_reshape_01_d10c50c97d.jpg\" \\\n  --version 1.0 \\\n  --index 0 \\\n  --features '{\"slim\": 20}'\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Antwort:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n  \"status\": 200,\n  \"data\": {\n \"task_id\": \"ZV3WIzcB1rk7I5o8hMxKP5VdgIEpnHf7VOpsk1YC76tZy2Wur0lg4Bunb3KY-7Qa\"\n  }\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["4. Den Haupt-Task per Polling abfragen, bis er fertig ist"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"youcam status body-reshape ZV3WIzcB1rk7I5o8hMxKP5VdgIEpnHf7VOpsk1YC76tZy2Wur0lg4Bunb3KY-7Qa\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Während der Task läuft, ist ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["task_status"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["running"]},"; wiederholen Sie den Befehl alle paar Sekunden. Sobald er succeeds (",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET /s2s/v2.0/task/body-reshape/{task_id}"]},"):"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n  \"status\": 200,\n  \"data\": {\n \"error\": null,\n \"results\": {\n \"url\": \"https://yce-us.s3-accelerate.amazonaws.com/ttl30/.../0b333891-60be-4cd1-81cd-7d8cae35b3eb.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&...&X-Amz-Expires=7200&...\",\n \"timed\": 12131,\n \"slim\": true\n },\n \"task_status\": \"success\"\n  }\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["results.url"]}," ist das verformte Bild. Es ist ein signierter Link mit Verfallsdatum (",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["X-Amz-Expires=7200"]},", d. h. 2 Stunden), laden Sie es also bald nach dem Erfolg des Tasks herunter."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"debugging-leitfaden","__idx":27},"children":["Debugging-Leitfaden"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Die CLI sendet Standard-YouCam-API-Anfragen, daher gilt alles aus der API-Dokumentation unverändert: dieselben ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.perfectcorp.com/develop/rate_limit"},"children":["Rate Limits"]},", ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.perfectcorp.com/develop/error_codes"},"children":["Fehlercodes"]}," und ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.perfectcorp.com/develop/file_retention_period"},"children":["Datei-Aufbewahrungsfristen"]},". Siehe auch den ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.perfectcorp.com/develop/debugging_guide"},"children":["Debugging Guide"]}," der API selbst."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"wo-ein-fehler-auftritt","__idx":28},"children":["Wo ein Fehler auftritt"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Ein Problem kann an drei Stellen zutage treten:"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Wo es fehlschlägt"},"children":["Wo es fehlschlägt"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Exit-Code"},"children":["Exit-Code"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"stdout"},"children":["stdout"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"stderr"},"children":["stderr"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Siehe"},"children":["Siehe"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Die CLI lehnt den Befehl ab, bevor er gesendet wird"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["1"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["leer"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Fehlermeldung"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"#cli-errors"},"children":["CLI-Fehler"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Die API lehnt die Anfrage ab"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["1"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["JSON mit ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["status"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["error"]}," und ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["error_code"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["leer"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"#api-request-errors"},"children":["API-Request-Fehler"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Der Task läuft, schlägt aber fehl"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["0"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["JSON mit ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["\"task_status\": \"error\""]},", einem Code in ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["data.error"]}," und einer Beschreibung in ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["data.error_message"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["leer"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"#task-errors"},"children":["Task-Fehler"]}]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Ein fehlgeschlagener Task beendet sich dennoch mit ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["0"]},", weil der ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["status"]},"-Aufruf selbst erfolgreich war. Skripte müssen ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["data.task_status"]}," prüfen, nicht nur den Exit-Code."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"rate-limits","__idx":29},"children":["Rate Limits"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Die ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.perfectcorp.com/develop/rate_limit"},"children":["API-Rate-Limits"]}," gelten für jeden ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["youcam"]},"-Befehl:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Pro IP-Adresse:"]}," höchstens 250 Anfragen pro 300 Sekunden."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Pro Access-Token (API-Schlüssel):"]}," höchstens 250 Anfragen pro 300 Sekunden."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Beide Limits müssen eingehalten werden. Eine Anfrage, die eines davon verletzt, erhält ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["429 Too Many Requests"]},", und die CLI beendet sich mit Code ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["1"]},"."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Das empfohlene Tempo sind etwa 5 Anfragen pro Sekunde."]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Die meisten Befehle senden eine API-Anfrage. ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["run"]}," mit lokalen Dateien sendet vor der Task-Anfrage zusätzlich eine ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["POST /s2s/v2.0/file"]},"-Anfrage pro Datei. Auch das Polling zählt – mehrere Tasks jede Sekunde zu prüfen, kann das Limit schnell aufbrauchen. Pollen Sie alle paar Sekunden, und warten Sie bei einer ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["429"]}," und versuchen Sie es mit steigendem Abstand erneut, statt sofort wieder anzfragen."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"cli-fehler","__idx":30},"children":["CLI-Fehler"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Diese werden abgefangen, bevor die Task-Anfrage gesendet wird, sie verbrauchen also keine Einheiten."]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"CLI-Fehlermeldung"},"children":["CLI-Fehlermeldung"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Wahrscheinliche Ursache"},"children":["Wahrscheinliche Ursache"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Lösung"},"children":["Lösung"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Not authenticated. Run: youcam auth login <apiKey>, or set YOUCAM_CLI_API_KEY"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Kein gespeicherter API-Schlüssel, und ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["YOUCAM_CLI_API_KEY"]}," ist nicht gesetzt oder leer"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Führen Sie ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["youcam auth login <apiKey>"]}," aus oder setzen Sie ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["YOUCAM_CLI_API_KEY"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Invalid credentials file at <path>. Re-run: youcam auth login <apiKey>"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["credentials.json"]}," ist kein gültiges JSON, oder ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["apiKey"]}," ist leer oder kein String"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Führen Sie ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["youcam auth login <apiKey>"]}," aus. Es überschreibt die Datei"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Can't log out: credentials file at <path> is invalid. Fix or delete it by hand"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["youcam auth logout"]}," fand dieselbe ungültige ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["credentials.json"]}," und ließ sie unberührt"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Korrigieren Sie die Datei zu ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["{ \"apiKey\": \"<your-api-key>\" }"]}," und loggen Sie sich erneut aus, oder löschen Sie die Datei"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["error: required option '--scale <value>' not specified"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Eine erforderliche Option fehlt"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Fügen Sie sie hinzu. ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["youcam run <feature> --help"]}," listet jede Option"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["error: option '--scale <value>' argument '9' is invalid. Allowed choices are 1, 2, 4."]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Der Wert ist nicht eine der erlaubten choices"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Nutzen Sie einen der aufgelisteten Werte"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Invalid value for --page_size: 99 (Too big: expected number to be <=20)"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Der Wert hat den falschen Typ oder liegt außerhalb des Bereichs. Bei JSON-Optionen nennt die Meldung das Feld"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Korrigieren Sie den Wert. Siehe ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"#passing-json-parameters"},"children":["JSON-Parameter übergeben"]}," für das Quoten von JSON"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["error: unknown option '--bogus'"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Die Option existiert für diese Funktion nicht oder ist falsch geschrieben"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Prüfen Sie die Schreibweise in ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--help"]},". Optionen nutzen snake_case, z. B. ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--src_file"]},", nicht ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--src-file"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["ENOENT: no such file or directory, open '...'"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Der lokale Dateipfad ist falsch"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Prüfen Sie den Pfad. Relative Pfade beginnen im aktuellen Verzeichnis. Quoten Sie Pfade mit Leerzeichen"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Unsupported file type \"unknown\" for ./notes.txt. Supported types: image/jpeg, image/png, video/mp4"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Die lokale Datei ist kein JPG, PNG oder MP4"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Konvertieren Sie die Datei oder übergeben Sie stattdessen eine öffentliche URL"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Missing task ID. Usage: status <feature> <task_id> (or --task_id <value>)"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["status"]}," wurde ohne Task-ID ausgeführt"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Übergeben Sie die ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["task_id"]},", die ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["run"]}," ausgegeben hat"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"api-request-fehler","__idx":31},"children":["API-Request-Fehler"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Die API hat die Anfrage abgelehnt. Die CLI gibt die Antwort der API auf stdout aus, beispielsweise:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n  \"status\": 400,\n  \"error\": \"This task ID doesn't exist, or the task has expired.\",\n  \"error_code\": \"InvalidTaskId\"\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Status"},"children":["Status"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"error_code"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["error_code"]}]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Wahrscheinliche Ursache"},"children":["Wahrscheinliche Ursache"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Lösung"},"children":["Lösung"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["400"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["InvalidTaskId"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Die Task-ID ist falsch abgeschrieben, gehört zu einer anderen Funktion (z. B. ein ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["run enhance"]},"-Task, der mit ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["status hair-color"]}," geprüft wird) oder ist älter als 30 Tage, den Gültigkeitszeitraum eines ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["task_id"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Nutzen Sie in ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["status"]}," denselben Funktionsnamen wie in ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["run"]},". Für einen Vorverarbeitungs-Task nutzen Sie ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["youcam status pre-process <feature> <task_id>"]},". Prüfen Sie Tasks innerhalb von 30 Tagen nach ihrem Start"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["401"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["InvalidAccessToken"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Der gespeicherte API-Schlüssel ist falsch oder nicht mehr aktiv"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Kopieren Sie den Schlüssel aus der ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://yce.perfectcorp.com/api-console/en/api-keys/"},"children":["API-Konsole"]}," und führen Sie ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["youcam auth login"]}," erneut aus. Übernehmen Sie nicht die ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["<"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":[">"]}," aus der Verwendungszeile in den Schlüssel"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["429"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["—"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Zu viele Anfragen von Ihrer IP-Adresse oder Ihrem API-Schlüssel"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Drosseln Sie das Tempo und versuchen Sie es mit steigendem Abstand erneut. Siehe ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"#rate-limits"},"children":["Rate Limits"]}]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"task-fehler","__idx":32},"children":["Task-Fehler"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Der Task wurde angenommen, aber die KI-Engine konnte ihn nicht verarbeiten. ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["youcam status"]}," gibt ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["\"task_status\": \"error\""]}," zurück, mit dem Code in ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["data.error"]}," und einer Beschreibung in ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["data.error_message"]},". Schlagen Sie den Code auf der ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.perfectcorp.com/develop/error_codes"},"children":["Error Codes"]},"-Seite der API nach. Manche Funktionen haben zusätzliche Codes; sie stehen unter „File Specs & Errors\" auf der API-Referenz-Seite der Funktion, zusammen mit ihren Größen-, Auflösungs- und Pose-Limits."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"abgelaufene-ergebnis-links","__idx":33},"children":["Abgelaufene Ergebnis-Links"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Eine Ergebnis-URL (z. B. ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["results.url"]}," oder bei ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["ai-avatar"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["results.output[].url"]},") funktioniert 2 Stunden nach dem Erfolg des Tasks. Ist sie abgelaufen, führen Sie ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["youcam status <feature> <task_id>"]}," erneut aus, um einen neuen Link zu erhalten; das funktioniert 30 Tage nach Erstellung des Tasks. Ergebnisse werden nach 30 Tagen gelöscht, laden Sie also alles, was Sie behalten möchten, vorher herunter."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"hilfe-erhalten","__idx":34},"children":["Hilfe erhalten"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"youcam help\nyoucam help <command>\nyoucam <command> <subcommand> --help # e.g., youcam run pre-process --help\n","lang":"bash"},"children":[]}]},"headings":[{"value":"youcam-cli","id":"youcam-cli","depth":1},{"value":"Anforderungen","id":"anforderungen","depth":2},{"value":"Installation","id":"installation","depth":2},{"value":"Authentifizierung","id":"authentifizierung","depth":2},{"value":"Schnellstart","id":"schnellstart","depth":2},{"value":"Einheiten und Funktionskosten","id":"einheiten-und-funktionskosten","depth":2},{"value":"Einheiten prüfen","id":"einheiten-prüfen","depth":3},{"value":"Funktionskosten prüfen","id":"funktionskosten-prüfen","depth":3},{"value":"Befehlsübersicht","id":"befehlsübersicht","depth":2},{"value":"API ↔ CLI-Befehlszuordnung","id":"api--cli-befehlszuordnung","depth":2},{"value":"Einen KI-Task ausführen","id":"einen-ki-task-ausführen","depth":2},{"value":"Dateien hochladen","id":"dateien-hochladen","depth":2},{"value":"Weitere Datei-Optionen","id":"weitere-datei-optionen","depth":3},{"value":"Options-Syntax","id":"options-syntax","depth":2},{"value":"JSON-Parameter übergeben","id":"json-parameter-übergeben","depth":2},{"value":"Task-Status prüfen","id":"task-status-prüfen","depth":2},{"value":"Vorverarbeitung (Gesichts- und Körpererkennung)","id":"vorverarbeitung-gesichts--und-körpererkennung","depth":2},{"value":"Vordefinierte Templates auflisten","id":"vordefinierte-templates-auflisten","depth":2},{"value":"makeup-vto-Musternamen auflisten","id":"makeup-vto-musternamen-auflisten","depth":3},{"value":"Verfügbare KI-Funktionen","id":"verfügbare-ki-funktionen","depth":2},{"value":"Beauty","id":"beauty","depth":3},{"value":"Haut, Gesicht & Körper","id":"haut-gesicht--körper","depth":3},{"value":"Haare & Bart","id":"haare--bart","depth":3},{"value":"Virtuelle Anprobe","id":"virtuelle-anprobe","depth":3},{"value":"Bilder","id":"bilder","depth":3},{"value":"Video","id":"video","depth":3},{"value":"Beispiel-Workflow","id":"beispiel-workflow","depth":2},{"value":"Debugging-Leitfaden","id":"debugging-leitfaden","depth":2},{"value":"Wo ein Fehler auftritt","id":"wo-ein-fehler-auftritt","depth":3},{"value":"Rate Limits","id":"rate-limits","depth":3},{"value":"CLI-Fehler","id":"cli-fehler","depth":3},{"value":"API-Request-Fehler","id":"api-request-fehler","depth":3},{"value":"Task-Fehler","id":"task-fehler","depth":3},{"value":"Abgelaufene Ergebnis-Links","id":"abgelaufene-ergebnis-links","depth":3},{"value":"Hilfe erhalten","id":"hilfe-erhalten","depth":2}],"frontmatter":{"seo":{"title":"youcam-cli"}},"lastModified":"2026-11-27T10:05:09.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/de/develop/cli","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}