{
  "openapi": "3.0.0",
  "info": {
    "title": "KI-Foto-Beleuchtung",
    "description": "# Überblick\nHellen Sie Ihre Bilder mit unserem KI-Aufhell-Werkzeug mühelos auf. Mit der legendären KI-Technologie erhellen Sie jedes gewünschte Bild.\nHellen Sie Ihre dunklen Fotos oder Bilder mit dem KI-Foto-Beleuchtung-Werkzeug auf und lassen Sie Ihre Erinnerungen im Handumdrehen erstrahlen.\n\nVorher\n![](https://bcw-media.s3.ap-northeast-1.amazonaws.com/yce_lighting_v3_poster_1_b7d976b686.jpg)\nNachher\n![](https://bcw-media.s3.ap-northeast-1.amazonaws.com/yce_lighting_v3_poster_2_79d3be33bc.jpg)\nHellen Sie Fotos bei wenig Licht mühelos mit dem KI-Werkzeug auf und holen Sie atemberaubende Details und lebendige Farben heraus.\n\n\n\nVorher\n![](https://bcw-media.s3.ap-northeast-1.amazonaws.com/yce_lighting_v6_poster_1_2422530612.jpg)\nNachher\n![](https://bcw-media.s3.ap-northeast-1.amazonaws.com/yce_lighting_v6_poster_2_63f1ecc244.jpg)\nHellen Sie Ihre Produktbilder mit dem KI-Beleuchtungs-Werkzeug auf für eine fesselnde, atemberaubende Präsentation.\n\n---\n\n## Dateispezifikationen & Fehler\n* Unterstützte Formate & Abmessungen\n\n| KI-Funktion | Unterstützte Abmessungen | Unterstützte Dateigröße | Unterstützte Formate |\n| ---- | ---- | ----  | ---- |\n| KI-Foto-Beleuchtung | lange Seite <= 4096 | < 10MB | jpg/jpeg/png |\n\n* Fehlercodes\n\n|Fehlercode|Beschreibung|\n|  ----  | ----  |\n| exceed_max_filesize |\tDateigröße der Eingabe überschreitet das Maximum |\n| invalid_parameter |\tUngültiger Parameterwert |\n| error_download_image\t| Fehler beim Herunterladen des Quellbildes |\n| error_decode_image\t| Fehler beim Dekodieren des Quellbildes |\n| error_nsfw_content_detected\t| NSFW-Inhalte im Quellbild erkannt |\n\n---\n\n## Einheitenverbrauch\n\n| KI-Funktion | Verbrauchte Einheiten |\n|---|---|\n| KI-Foto-Beleuchtung V2.0 | 2 |\n\n---\n",
    "version": "",
    "termsOfService": "https://www.makeupar.com/perfectbeauty/youcam/terms-of-service-api",
    "contact": {
      "email": "YouCamOnlineEditor_API@perfectcorp.com"
    },
    "license": {
      "name": "Privacy policy",
      "url": "https://www.makeupar.com/perfectbeauty/youcam/privacy-policy-api"
    }
  },
  "servers": [
    {
      "url": "https://yce-api-01.makeupar.com"
    }
  ],
  "tags": [
    {
      "name": "V2.0",
      "description": "Mit der API zur KI-Foto-Beleuchtung passen Sie die Lichtverhältnisse eines Bildes per KI an."
    }
  ],
  "paths": {
    "/s2s/v2.0/task/lighting": {
      "post": {
        "summary": "KI-Foto-Beleuchtung: Task ausführen.",
        "description": "Informationen zur Statusabfrage finden Sie im Polling-Leitfaden.",
        "tags": [
          "V2.0"
        ],
        "security": [
          {
            "BearerAuthenticationV2": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BasicRunTaskV2"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Task erfolgreich ausgeführt",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BasicRunTaskResponseV2"
                }
              }
            }
          },
          "400": {
            "description": "Ausführung des Tasks fehlgeschlagen",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/responses/RunError"
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/InvalidApiKey"
          },
          "429": {
            "description": "Zu viele Anfragen in einem bestimmten Zeitraum",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/s2s/v2.0/task/lighting/{task_id}": {
      "get": {
        "summary": "KI-Foto-Beleuchtung: Task-Status prüfen.",
        "tags": [
          "V2.0"
        ],
        "security": [
          {
            "BearerAuthenticationV2": []
          }
        ],
        "parameters": [
          {
            "name": "task_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "example": "grH0CvsgXuAIHLUzD0V1Ol34hoet3R1tvdbtiVHrDb6_UqCLKIejAIajwxrhOAfe"
            },
            "description": "ID des zu prüfenden Tasks"
          }
        ],
        "responses": {
          "200": {
            "description": "Task-Status erfolgreich abgefragt",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaskStatusResponseV2"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/InvalidTaskId"
          },
          "401": {
            "$ref": "#/components/responses/InvalidApiKey"
          },
          "500": {
            "$ref": "#/components/responses/TaskTimeout"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "FileV1.1": {
        "title": "File V1.1",
        "description": "Dieses Objekt stellt eine Datei dar.",
        "type": "object",
        "required": [
          "files"
        ],
        "properties": {
          "files": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "content_type",
                "file_name",
                "file_size"
              ],
              "properties": {
                "content_type": {
                  "type": "string",
                  "example": "image/jpg",
                  "description": "Content-MIME-Typ dieser Datei. Die aktuell verfügbaren Werte stehen im enum."
                },
                "file_name": {
                  "type": "string",
                  "example": "my-selfie.jpg",
                  "description": "Name dieser Datei"
                },
                "file_size": {
                  "type": "integer",
                  "example": 50000,
                  "description": "Größe dieser Datei in Bytes. Darf nicht größer als 10 MB sein."
                }
              }
            }
          }
        }
      },
      "BasicFileResponse": {
        "type": "object",
        "properties": {
          "files": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "content_type": {
                  "type": "string",
                  "example": "image/jpg",
                  "description": "Content-MIME-Typ dieser Datei."
                },
                "file_name": {
                  "type": "string",
                  "example": "my-selfie.jpg",
                  "description": "Name dieser Datei"
                },
                "file_id": {
                  "type": "string",
                  "example": "U8aqJbsXGT537jtGnEDFHqxdDXqh8+oTF/cSkLimzuvVwMP+Jb1XbjPsf7ZgUgLY",
                  "description": "ID dieser Datei. Andere Run-Task-APIs benötigen dieses `file_id`."
                },
                "requests": {
                  "type": "array",
                  "description": "Laden Sie die Datei mit der unten stehenden `url`, `headers` und `method` hoch. Nach Abschluss wird der `file_id` für den Aufruf der Run-Task-API verwendet.",
                  "items": {
                    "type": "object",
                    "properties": {
                      "headers": {
                        "type": "object",
                        "example": {
                          "Content-Type": "image/jpg",
                          "Content-Length": 50000
                        },
                        "description": "Header für den Upload dieser Datei"
                      },
                      "url": {
                        "type": "string",
                        "example": "https://example.com/presigned-upload-url",
                        "description": "URL zum Hochladen dieser Datei"
                      },
                      "method": {
                        "type": "string",
                        "example": "PUT",
                        "description": "HTTP-Methode für den Upload dieser Datei"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "FileResponseV2": {
        "type": "object",
        "properties": {
          "status": {
            "type": "integer",
            "example": 200,
            "description": "Antwortstatus"
          },
          "data": {
            "$ref": "#/components/schemas/BasicFileResponse"
          }
        }
      },
      "BasicRunTaskV2SrcFileUrl": {
        "title": "Task mit src file url ausführen",
        "type": "object",
        "required": [
          "src_file_url"
        ],
        "properties": {
          "src_file_url": {
            "type": "string",
            "description": "URL der Datei für den Task. Die URL muss öffentlich zugänglich sein.",
            "example": "https://example.com/selfie.jpg"
          }
        }
      },
      "BasicRunTaskV2SrcFileId": {
        "title": "Task mit src file ID ausführen",
        "type": "object",
        "required": [
          "src_file_id"
        ],
        "properties": {
          "src_file_id": {
            "type": "string",
            "description": "ID der Datei für den Task. Die Datei-ID stammt aus der File API.",
            "example": "pfNK5PuRe0MrwLHcGA3DOmB1ahwfXTbYHjv+KoBIxbE="
          }
        }
      },
      "BasicRunTaskV2": {
        "title": "BasicRunTaskV2",
        "anyOf": [
          {
            "$ref": "#/components/schemas/BasicRunTaskV2SrcFileUrl"
          },
          {
            "$ref": "#/components/schemas/BasicRunTaskV2SrcFileId"
          }
        ]
      },
      "BasicRunTaskResponseV2": {
        "type": "object",
        "properties": {
          "status": {
            "type": "integer",
            "description": "Antwortstatus",
            "example": 200
          },
          "data": {
            "type": "object",
            "properties": {
              "task_id": {
                "type": "string",
                "description": "ID dieses Tasks. Das Task-Ergebnis kann 30 Tage lang über diese ID abgefragt werden.",
                "example": "grH0CvsgXuAIHLUzD0V1Ol34hoet3R1tvdbtiVHrDb6_UqCLKIejAIajwxrhOAfe"
              }
            }
          }
        }
      },
      "EngineErrorCode": {
        "type": "string",
        "nullable": true,
        "enum": [
          "exceed_max_filesize",
          "invalid_parameter",
          "error_download_image",
          "error_download_mask",
          "error_decode_image",
          "error_decode_mask",
          "error_nsfw_content_detected",
          "error_no_face",
          "error_pose",
          "error_face_parsing",
          "error_inference",
          "exceed_nsfw_retry_limits",
          "error_upload",
          "unknown_internal_error"
        ],
        "description": "Fehler:\n- `exceed_max_filesize` - Die Größe der Eingabedatei überschreitet das Maximum\n- `invalid_parameter` - Ungültiger Parameterwert\n- `error_download_image` - Fehler beim Herunterladen des Quellbilds\n- `error_download_mask` - Fehler beim Herunterladen der Maskendatei\n- `error_decode_image` - Fehler beim Dekodieren des Quellbilds\n- `error_decode_mask` - Fehler beim Dekodieren der Maskendatei\n- `error_nsfw_content_detected` - NSFW-Inhalt im Quellbild erkannt\n- `error_no_face` - Kein Gesicht im Quellbild erkannt\n- `error_pose` - Die Pose konnte im Quellbild nicht erkannt werden\n- `error_face_parsing` - Die Segmentierung des Gesichts im Quellbild ist fehlgeschlagen\n- `error_inference` - Fehler in der Inference-Pipeline\n- `exceed_nsfw_retry_limits` - Wiederholungslimit überschritten, um ein generiertes NSFW-Bild zu vermeiden\n- `error_upload` - Fehler beim Hochladen des Ergebnisbilds\n- `unknown_internal_error` - Sonstige\n"
      },
      "TaskStatusResponseV2": {
        "type": "object",
        "properties": {
          "status": {
            "type": "integer",
            "description": "Antwortstatus",
            "example": 200
          },
          "data": {
            "type": "object",
            "properties": {
              "task_status": {
                "type": "string",
                "enum": [
                  "running",
                  "success",
                  "error"
                ],
                "description": "Status dieses Tasks"
              },
              "error": {
                "$ref": "#/components/schemas/EngineErrorCode"
              },
              "error_message": {
                "type": "string",
                "description": "Detaillierte Fehlerbeschreibung"
              },
              "results": {
                "$ref": "#/components/schemas/TaskStatusResponseBodySingleUrlResultsV2"
              }
            }
          }
        }
      },
      "TaskStatusResponseBodySingleUrlResultsV2": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string",
            "description": "URL zum Herunterladen dieses Ergebnisses. 2 Stunden gültig",
            "example": "https://example.com/sample-result-url"
          }
        }
      },
      "InvalidParametersSchema": {
        "type": "object",
        "properties": {
          "status": {
            "type": "integer",
            "example": 400,
            "description": "Antwortstatus"
          },
          "error": {
            "type": "string",
            "description": "Fehlermeldung",
            "example": "The operation could not be completed"
          },
          "error_code": {
            "type": "string",
            "enum": [
              "InvalidParameters"
            ],
            "description": "Fehlercodes:\n  * InvalidParameters - Ungültige Request-Parameter oder Body\n"
          }
        }
      },
      "InvalidApiKeySchema": {
        "type": "object",
        "properties": {
          "status": {
            "type": "integer",
            "example": 401,
            "description": "Antwortstatus"
          },
          "error_code": {
            "type": "string",
            "enum": [
              "InvalidApiKey",
              "InactiveApiKey",
              "ExpiredApiKey"
            ],
            "description": "Fehlercodes:\n  * InvalidApiKey - Kein API-Schlüssel angegeben oder ungültig\n  * InactiveApiKey - API-Schlüssel ist deaktiviert\n  * ExpiredApiKey - API-Schlüssel ist abgelaufen\n"
          }
        }
      },
      "RunErrorSchema": {
        "type": "object",
        "properties": {
          "status": {
            "type": "integer",
            "description": "Antwortstatus",
            "example": 400
          },
          "error": {
            "type": "string",
            "description": "Fehlermeldung",
            "example": "The operation could not be completed"
          },
          "error_code": {
            "type": "string",
            "enum": [
              "CreditInsufficiency",
              "InvalidStyleGroup",
              "InvalidStyle",
              "BadRequest",
              "InvalidParameters"
            ],
            "description": "Fehlercodes:\n  * CreditInsufficiency - Nicht genügend Einheiten für die Ausführung\n  * BadRequest - Unerwarteter Request-Parameter\n  * InvalidStyleGroup - Ungültige Style-Group-ID\n  * InvalidStyle - Ungültige Style-ID\n  * InvalidParameters - Ungültige Request-Parameter\n"
          }
        }
      },
      "InvalidTaskIdSchema": {
        "type": "object",
        "properties": {
          "status": {
            "type": "integer",
            "description": "Antwortstatus",
            "example": 400
          },
          "error_code": {
            "type": "string",
            "enum": [
              "InvalidTaskId"
            ],
            "description": "Fehlercodes:\n  * InvalidTaskId - Ungültige task id\n"
          }
        }
      },
      "TaskTimeoutSchema": {
        "type": "object",
        "properties": {
          "status": {
            "type": "integer",
            "description": "Antwortstatus",
            "example": 500
          },
          "error_code": {
            "type": "string",
            "enum": [
              "TaskTimeout"
            ],
            "description": "Fehlercodes:\n  * TaskTimeout - Der Task hat innerhalb der erwarteten Zeit nicht geantwortet\n"
          }
        }
      }
    },
    "responses": {
      "InvalidParameters": {
        "description": "Ungültige Request-Parameter",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/InvalidParametersSchema"
            }
          }
        }
      },
      "InvalidApiKey": {
        "description": "Ungültiger, inaktiver oder abgelaufener API-Schlüssel",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/InvalidApiKeySchema"
            }
          }
        }
      },
      "RunError": {
        "description": "Ausführung des Tasks fehlgeschlagen",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/RunErrorSchema"
            }
          }
        }
      },
      "InvalidTaskId": {
        "description": "Ungültige task id",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/InvalidTaskIdSchema"
            }
          }
        }
      },
      "TooManyRequests": {
        "description": "Zu viele Anfragen in einem bestimmten Zeitraum"
      },
      "TaskTimeout": {
        "description": "Der Task hat innerhalb der erwarteten Zeit nicht geantwortet",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/TaskTimeoutSchema"
            }
          }
        }
      }
    },
    "securitySchemes": {
      "BearerAuthenticationV2": {
        "type": "http",
        "scheme": "bearer",
        "description": "Nutzt die Standard-'Bearer authentication'. Setzen Sie Ihren 'API Key' in den Header: `Authorization:Bearer YOUR_API_KEY`. Achten Sie auf das Leerzeichen zwischen 'Bearer' und 'YOUR_API_KEY'."
      }
    }
  }
}