Please refer to the polling guide for checking task status. This API requires a source image, mask file, and prompt describing what should replace the masked area.
Security
BearerAuthenticationV2
Any of:
Url of the file to run task. The url should be publicly accessible.
Example:"https://example.com/selfie.jpg"
POST
- any
- any (2)
- any (3)
- any (4)
curl -i -X POST \
https://yce-api-01.makeupar.com/s2s/v2.0/task/obj-replace \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"src_file_url": "https://example.com/selfie.jpg",
"msk_file_url": "https://example.com/mask.jpg",
"prompt": "a cute cat"
}'Response
{ "status": 200, "data": { "task_id": "grH0CvsgXuAIHLUzD0V1Ol34hoet3R1tvdbtiVHrDb6_UqCLKIejAIajwxrhOAfe" } }