Face Detection API Reference - Magic Hour Docs
Detect faces in an image or video.
Use this API to get the list of faces detected in the image or video to use in the face swap photo or face swap video API calls for multi-face swaps.
Note: Face detection is free to use for the near future. Pricing may change in the future.
Documentation Index
Fetch the complete documentation index at: https://magichour-update-openapi-spec.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Bearer authentication header of the form Bearer <api_key>, where <api_key> is your API key. To get your API key, go to Developer Hub and click "Create new API Key".
Body
Body
Provide the assets for face detection
Confidence threshold for filtering detected faces.
- Higher values (e.g., 0.9) include only faces detected with high certainty, reducing false positives.
- Lower values (e.g., 0.3) include more faces, but may increase the chance of incorrect detections.
0 <= x <= 1Must be a multiple of 0.050.5
Response
200
The id of the task. Use this value in the get face detection details API to get the details of the face detection task.
"uuid-example"
The credits charged for the task.