Get Task Status
Fetch task status by ID. Poll this endpoint until the task completes.
Request
curl -X GET "https://undressme.ai/api/tasks-status?taskId=<TASK_ID>" \
-H "Authorization: Bearer <API_KEY>"200 Response
status:processing | completed | error
processing
{
"status": "processing",
"resultUrl": null,
"progress": 42
}progress: only forprocessing, estimated 0-99
completed
{
"status": "completed",
"resultUrl": "https://..."
}resultUrl: valid when completed
error
{
"status": "error",
"resultUrl": null,
"creditsRemaining": 120
}creditsRemaining: returned when the task ends inerror(including timeouts)
Timeout and Refund
- Default timeout is 4 minutes. On timeout, the task is marked
errorand credits are refunded.
Error Responses
400Task ID is required401Authentication required404Task not found (or not owned by the user)429Rate limit exceeded500The system is busy, please try again later
Last updated on