Informationen zur Statusabfrage finden Sie im Polling-Leitfaden. Erforderlich sind Quellbild, Template-ID und Einstellung der Ausgabeanzahl.
Sicherheit
BearerAuthenticationV2
Any of:
ID des Templates. Listen Sie zuerst die vordefinierten Templates auf und verwenden Sie die ID eines Templates.
Beispiel:"good_template_001"
Die Anzahl der generierten Bilder. Muss zwischen 1 und 200 liegen.
Beispiel:20
- https://yce-api-01.makeupar.comhttps://yce-api-01.makeupar.com/s2s/v2.0/task/ai-studio
curl -i -X POST \
https://yce-api-01.makeupar.com/s2s/v2.0/task/ai-studio \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"template_id": "good_template_001",
"src_file_url": "https://example.com/selfie.jpg",
"output_count": 20
}'Antwort
{ "status": 200, "data": { "task_id": "grH0CvsgXuAIHLUzD0V1Ol34hoet3R1tvdbtiVHrDb6_UqCLKIejAIajwxrhOAfe" } }