Get face detection result
Face Swap
Face Detection Result
Query image, video, or GIF face detection task status and retrieve the detect_id and faces list required for multi-face swap.
GET
Get face detection result
Overview
After creating a face detection task, call this endpoint to query detection status. When the task succeeds,data.result.id is the detect_id used by multi-face swap requests, and data.result.faces contains each detected
face ID and face image URL.
API Endpoint
Request Parameters
The
detect_task_id returned when creating a face detection task.Status Values
| Status | Description |
|---|---|
starting | Starting |
processing | Processing |
succeeded | Succeeded |
failed | Failed |
Succeeded Response Example
Processing Response Example
Failed Response Example
Related Resources
Detect Face (Image)
Create an image face detection task
Detect Face (Video & GIF)
Create a video or GIF face detection task
Authorizations
All APIs require authentication via API Key.
Get API Key:
- Visit API Key Management Page to get your API Key
Usage: Add to request header:
x-api-key: YOUR_API_KEY
Note:
- Keep your API Key secure and do not share it with others
- If you suspect your API Key has been compromised, reset it immediately in the management page
Query Parameters
The detect_task_id returned when creating a face detection task.
Response
Request successful
Response status code
- 200: Success - Request has been processed successfully
- 401: Unauthorized - Authentication credentials are missing or invalid
- 402: Insufficient Credits - Account does not have enough credits to perform the operation
- 404: Not Found - The requested resource or endpoint does not exist
- 422: Validation Error - The request parameters failed validation checks
- 429: Rate Limited - Request limit has been exceeded for this resource
- 455: Service Unavailable - System is currently undergoing maintenance
- 500: Server Error - An unexpected error occurred while processing the request
- 501: Generation Failed - Content generation task failed
- 505: Feature Disabled - The requested feature is currently disabled
Available options:
200, 401, 402, 404, 422, 429, 455, 500, 501, 505 Response message, error description when failed
Example:
"success"
