This API allows you to automatically detect human faces in images with high accuracy. When it receives an image as input, the system analyzes its content using advanced computer vision models and returns an array with the position and size of each identified face.
Each face is represented by a JSON object with four properties: x and y, which indicate the position of the face within the image (top-left coordinates), and width and height, which represent the dimensions of the detected area. This makes it easy to draw a rectangle around each face.
The output format facilitates integration with image editing, security, augmented reality, photography, emotion analysis, or simply visual detection applications. For example, it can be used to blur faces, crop them, apply filters, count how many people are in a photo, or feed facial recognition systems (in later stages).
[{"x": 153, "y": 164, "width": 109, "height": 109}]
curl --location 'https://pr197-testing.zylalabs.com/api/8429/face+box+detector+api/14764/face+detection' \
--header 'Content-Type: application/json' \
--form 'image=@"FILE_PATH"'
| Header | Description |
|---|---|
Authorization
|
[Required] Should be Bearer access_key. See "Your API Access Key" above when you are subscribed. |
No long-term commitment. Upgrade, downgrade, or cancel anytime. Free Trial includes up to 50 requests.
The API returns an array of JSON objects, each representing a detected face in the input image. Each object contains the coordinates and dimensions of the face, allowing for easy integration into various applications.
Each JSON object in the response includes four key fields: `x` (top-left x-coordinate), `y` (top-left y-coordinate), `width` (face width), and `height` (face height). These fields provide the necessary information to locate and size the detected faces.
The response data is structured as a JSON array. Each element in the array corresponds to a detected face, containing the `x`, `y`, `width`, and `height` properties, making it straightforward to process and visualize the results.
The primary parameter for the Face Detection endpoint is the image file itself, which must be uploaded for analysis. Ensure the image is in a supported format (e.g., JPEG, PNG) for optimal results.
Common use cases include image editing (blurring or cropping faces), security applications (monitoring), augmented reality (face filters), and emotion analysis. The API can also assist in counting people in photos for various analytics.
The API utilizes advanced computer vision models trained on diverse datasets to ensure high accuracy in face detection. Continuous updates and improvements to the models help maintain data quality and reliability.
Users can leverage the returned coordinates and dimensions to draw rectangles around detected faces, apply filters, or integrate with facial recognition systems. The structured format allows for easy manipulation in various programming environments.
If the API returns an empty array, it indicates no faces were detected in the image. Users should implement checks in their application to handle such cases gracefully, possibly by notifying users or prompting for a different image.
To obtain your API key, first sign in to your account and navigate to the API you want to use. From the API's Pricing section, choose a plan and complete the subscription process. Once subscribed, return to the API page and you will see your API Access Key displayed at the top of the documentation page. You can use this key to authenticate your requests.
You can’t switch APIs during the free trial. If you subscribe to a different API, your trial will end and the new subscription will start as a paid plan.
The free trial lasts for 7 days and allows you to make up to 50 API requests.
No, the free trial is available only once, so we recommend using it on the API that interests you the most. Most of our APIs offer a free trial, but some may not include this option.
Yes. If the API offers a free trial, you will see a "Free 7-Day Trial" option in its Pricing section. The trial lasts for 7 days and allows up to 50 API requests, enabling you to evaluate the API before subscribing to a paid plan.
Zyla API Hub is like a big store for APIs, where you can find thousands of them all in one place. We also offer dedicated support and real-time monitoring of all APIs. Once you sign up, you can pick and choose which APIs you want to use. Just remember, each API needs its own subscription. But if you subscribe to multiple ones, you'll use the same key for all of them, making things easier for you.
You can monitor your API usage through the response headers included with every request:
x-zyla-api-calls-monthly-used: Shows the total number of API requests you have used during the current billing period.
x-zyla-api-calls-monthly-remaining: Shows the number of API requests you have remaining for the current billing period.
Yes, you can cancel your subscription at any time. Simply go to the Pricing section of the API you're subscribed to and click the "Unsubscribe" button.
Please note that upgrades, downgrades, and cancellations take effect immediately. Once your subscription is canceled, access to the service will end immediately, regardless of any remaining API calls in your quota.
Please have a look at our Refund Policy: https://zylalabs.com/terms#refund
Service Level:
100%
Response Time:
0ms
Service Level:
100%
Response Time:
0ms
Service Level:
100%
Response Time:
0ms
Service Level:
100%
Response Time:
0ms
Service Level:
100%
Response Time:
0ms
Service Level:
100%
Response Time:
0ms
Service Level:
100%
Response Time:
5,626ms
Service Level:
100%
Response Time:
0ms
Service Level:
100%
Response Time:
0ms
Service Level:
100%
Response Time:
917ms
Service Level:
100%
Response Time:
50ms
Service Level:
100%
Response Time:
36ms
Service Level:
100%
Response Time:
90ms
Service Level:
100%
Response Time:
19ms
Service Level:
100%
Response Time:
208ms
Service Level:
100%
Response Time:
360ms
Service Level:
100%
Response Time:
165ms
Service Level:
100%
Response Time:
146ms
Service Level:
100%
Response Time:
313ms
Service Level:
100%
Response Time:
39ms