Create Task
Create a task and start processing.
Request
curl -X POST "https://undressme.ai/api/tasks-create" \
-H "Authorization: Bearer <API_KEY>" \
-H "Content-Type: application/json" \
-d '{
"type": "undress",
"sourceKey": "ugc/<uuid>"
}'sourceKeyis thekeyreturned by Presign Upload URL.- The same
sourceKeycan be reused for multiple tasks. typemust be one of Task Types. In the current implementation, an invalidtypebecomes a server error (500).
200 Response
{
"taskId": "uuid",
"status": "processing",
"creditsRemaining": 123
}taskId: Task identifier used to check status via Task Status.status: Current state (alwaysprocessing).creditsRemaining: Credits left after the task is created.
Error Responses
400Invalid JSON body or missingsourceKey401Authentication required402Insufficient credits429Rate limit exceeded500The system is busy, please try again later
Last updated on