Dieser Endpunkt startet die virtuelle Nagellack-Anprobe. Sie müssen Quelldatei(en) und Referenzbild(er) (per URL oder Datei-ID) sowie bestimmte Nagel-Effektkonfigurationen angeben. Der Task wird asynchron verarbeitet; den Status prüfen Sie über die in dieser Antwort zurückgegebene task_id.
Sicherheit
BearerAuthenticationV2
Any of:
Version der Nagel-Effekt-Spezifikation. Standard ist "1.0", sofern nicht anders angegeben.
Standard:"1.0"
Beispiel:"1.0"
URL der Datei für den Task. Die URL muss öffentlich zugänglich sein.
Beispiel:"https://example.com/selfie.jpg"
- https://yce-api-01.makeupar.comhttps://yce-api-01.makeupar.com/s2s/v2.0/task/nail-vto
curl -i -X POST \
https://yce-api-01.makeupar.com/s2s/v2.0/task/nail-vto \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"src_file_url": "https://example.com/selfie.jpg",
"ref_file_urls": [
"https://example.com/accessory.jpg"
],
"version": "1.0",
"effect_type": "nail_polish",
"effects": [
{
"sub_type": "color",
"finger": "thumb",
"color": "string",
"texture": "matte",
"reflection": 0,
"contrast": 0,
"roughness": 0,
"transparency": 0
}
]
}'Antwort
{ "status": 200, "data": { "task_id": "grH0CvsgXuAIHLUzD0V1Ol34hoet3R1tvdbtiVHrDb6_UqCLKIejAIajwxrhOAfe" } }