About the API:
This API will recognize the faces located in a given image, and it will deliver the estimated age of the person in it and, also, their gender.
This API will receive an image URL and the accuracy_boost (integer from 1 to 4), and it will deliver the matching gender and estimated person's age.
accuracy_boost: To increase the accuracy of your request, in a trade-off of API response time, use the optional “accuracy_boost” param to boost model accuracy. Valid arguments are values in the range 1 to 4, with 1 being the fastest and least accurate model and 4 being the most accurate and slowest model. We recommend 2 for most use cases.
This API is ideal for those companies that have a large image database that needs to be sorted by gender or age.
Maybe, you have a database of users' profile pics and need to sort them by gender and age to start recommending them certain products or promotions.
Stablish security checkpoints where your users upload an image of themselves and you will be able to give them access to different features on your platforms.
Besides the number of API calls per month, there are no other limitations.
Pass the image URL of the image you want to verify.
Also, pass the accuracy_boost
To increase the accuracy of your request, in a trade-off of API response time, use the optional “accuracy_boost” param to boost model accuracy. Valid arguments are values in the range of 1 to 4, with 1 being the fastest and least accurate model and 4 being the most accurate and slowest model. We recommend 2 for most use cases.
Detector - Endpoint Features
| Object | Description |
|---|---|
Request Body |
[Required] Json |
{"detected_faces": [{"BoundingBox": {"startX": 184, "startY": 0, "endX": 419, "endY": 317, "Probability": 99.09457564353943}, "Gender": {"Gender": "male", "Probability": 81.68779015541077}, "Age": {"Age-Range": {"Low": 47, "High": 60}}}]}
curl --location --request POST 'https://zylalabs.com/api/563/age+and+gender+detector+api/399/detector' --header 'Authorization: Bearer YOUR_API_KEY'
--data-raw '{
"url": "https://encrypted-tbn1.gstatic.com/licensed-image?q=tbn:ANd9GcSAHmDSOdLA5YgFlEkMmgdweIf3jyGI0EGKqU5U7TpO70GFAY48v1N51eMRpY6mbG-VzfPvgObhOwB8lX4",
"accuracy_boost": 3
}'
| 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 data related to detected faces in an image, including estimated age ranges and gender classifications. Each detected face includes a bounding box, gender probability, and age range.
Key fields in the response include "detected_faces," which contains an array of face data. Each face entry includes "BoundingBox," "Gender," and "Age," with respective probabilities and age ranges.
The response data is structured as a JSON object. It contains a "detected_faces" array, where each element represents a detected face with its bounding box coordinates, gender, and age range details.
The endpoint accepts two parameters: "image URL" (the URL of the image to analyze) and "accuracy_boost" (an integer from 1 to 4 to adjust accuracy and response time).
Users can customize requests by providing an image URL and selecting an "accuracy_boost" level. This allows for a balance between response speed and accuracy based on their needs.
Typical use cases include sorting images in databases by age and gender, enhancing user experience in product recommendations, and implementing security features that require user verification through image analysis.
Data accuracy is maintained through the use of advanced facial recognition algorithms. Users can enhance accuracy by adjusting the "accuracy_boost" parameter, allowing for more precise results at the cost of response time.
If users receive partial or empty results, they should check the image quality and ensure that the faces are clearly visible. Additionally, adjusting the "accuracy_boost" may improve detection outcomes.
To obtain your API key, you first need to sign in to your account and subscribe to the API you want to use. Once subscribed, go to your Profile, open the Subscription section, and select the specific API. Your API key will be available there and can be used 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.
If you don’t cancel before the 7th day, your free trial will end automatically and your subscription will switch to a paid plan under the same plan you originally subscribed to, meaning you will be charged and gain access to the API calls included in that plan.
The free trial ends when you reach 50 API requests or after 7 days, whichever comes first.
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, we offer a 7-day free trial that allows you to make up to 50 API calls at no cost, so you can test our APIs without any commitment.
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.
Please have a look at our Refund Policy: https://zylalabs.com/terms#refund
Service Level:
100%
Response Time:
485ms
Service Level:
100%
Response Time:
412ms
Service Level:
100%
Response Time:
227ms
Service Level:
100%
Response Time:
144ms
Service Level:
100%
Response Time:
929ms
Service Level:
100%
Response Time:
13ms
Service Level:
100%
Response Time:
282ms
Service Level:
83%
Response Time:
215ms
Service Level:
100%
Response Time:
478ms
Service Level:
100%
Response Time:
30ms