Für den Upload einer neuen Datei benötigen Sie zuerst die File API. Sie erhalten eine URL, über die Sie Ihre Datei hochladen. Nach Abschluss des Uploads können Sie den file_id aus derselben Antwort verwenden, um unsere KI-Funktionen zu starten.
Sicherheit
BearerAuthenticationV2
- https://yce-api-01.makeupar.comhttps://yce-api-01.makeupar.com/s2s/v2.0/file
curl -i -X POST \
https://yce-api-01.makeupar.com/s2s/v2.0/file \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"files": [
{
"content_type": "image/jpg",
"file_name": "my-selfie.jpg",
"file_size": 50000
}
]
}'Antwort
{ "files": [ { … } ] }