//
- Run an AI Hairstyle Generator v2.1 task.
List predefined templates v2.1.
Check the status of a AI Hairstyle Generator v2.1 task.
Run an AI Hairstyle Gener...
AI tasks are asynchronous. Prefer webhook-based completion handling when the feature supports webhooks. Configure your webhook endpoint, verify webhook signatures, and use the received task_id to query the task result after a success or error notification. See the webhook integration guide for setup and verification details.
If webhooks are not supported or cannot be used in your integration, implement polling. After submitting an AI task, poll the status endpoint at regular intervals (e.g., every 10 seconds) until the task status is success or error.
Security
BearerAuthenticationV2
Any of:
Specifies the hair color of the output image (source/reference), default reference color.
Default:"ref"
Enum:"ref""src"
Url of the file to run task. The url should be publicly accessible.
Example:"https://example.com/selfie.jpg"
- https://yce-api-01.makeupar.comhttps://yce-api-01.makeupar.com/s2s/v2.1/task/hair-transfer
curl -i -X POST \
https://yce-api-01.makeupar.com/s2s/v2.1/task/hair-transfer \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"hair_color": "ref",
"src_file_url": "https://example.com/selfie.jpg",
"ref_file_url": "https://example.com/accessory.jpg"
}'Response
{ "status": 200, "data": { "task_id": "grH0CvsgXuAIHLUzD0V1Ol34hoet3R1tvdbtiVHrDb6_UqCLKIejAIajwxrhOAfe" } }