Masks Detection API

Masks Detection API

Use this API to detect if a person is wearing a mask or not.

API description

About the API:


This API will detect if the person in the given image is wearing a mask or not.


What this API receives and what your API provides (input/output)?


This API will receive an image URL and it will deliver the analysis. 

 It will detect if the user is wearing a mask or not. 

You need to focus on two parameters.

Mask and no_mask.

  • {} 2 keys
    • 0.9999997615814209
    • 2.9270489676491707e-7

In this case, the user is wearing a mask since the result is closer to 1 and below 1. 

If the result is above 1, it means it's false. 


What are the most common uses cases of this API?


Security in the workplace: This API is ideal for those companies that require their workers to wear masks. You can develop a checkpoint at the entrance to detect that your employees are entering the building with their masks. 

Public transport control: We know that the pandemic is not over. This API will help to detect if any passenger is not wearing a mask and prevent the disease to spread. 


Are there any limitations to your plans?

Besides API call limitations per month, there are no other limitations. 

API Documentation


Performs actual image analysis and responds with results.

The image must be a regular JPEG or PNG image (with or without transparency). Usually such images have extensions: .jpg.jpeg.png.

  • image/jpeg
  • image/png

The size of the image file must be less than 16Mb.


How to read the parameters:

Mask and no_mask.

  • {} 2 keys
    • 0.9999997615814209
    • 2.9270489676491707e-7

In this case, the user is wearing a mask since the result is closer to 1 and below 1. 

If the result is above 1, it means it's false. 


Analyze Image - Endpoint Features
Object Description
url [Required] URL of the image you want to check.
detection [Optional] Detection is enabled by default.
Test Endpoint



Analyze Image - CODE SNIPPETS

curl --location --request POST '' --header 'Authorization: Bearer YOUR_API_KEY' 


API Access Key & Authentication

After signing up, every developer is assigned a personal API access key, a unique combination of letters and digits provided to access to our API endpoint. To authenticate with the Masks Detection API REST API, simply include your bearer token in the Authorization header.


Header Description
Authorization [Required] Should be Bearer access_key. See "Your API Access Key" above when you are subscribed.

Simple Transparent Pricing

No long term commitments. One click upgrade/downgrade or cancellation. No questions asked.

๐Ÿš€ Enterprise
Starts at $10,000/Year

  • Custom Volume
  • Dedicated account manager
  • Service-level agreement (SLA)

Customer favorite features

  • โœ”๏ธŽ Only Pay for Successful Requests
  • โœ”๏ธŽ Free 7-Day Trial
  • โœ”๏ธŽ Multi-Language Support
  • โœ”๏ธŽ One API Key, All APIs.
  • โœ”๏ธŽ Intuitive Dashboard
  • โœ”๏ธŽ Comprehensive Error Handling
  • โœ”๏ธŽ Developer-Friendly Docs
  • โœ”๏ธŽ Postman Integration
  • โœ”๏ธŽ Secure HTTPS Connections
  • โœ”๏ธŽ Reliable Uptime

Zyla API Hub is, in other words, an API MarketPlace. An all-in-one solution for your developing needs. You will be accessing our extended list of APIs with only your user. Also, you won't need to worry about storing API keys, only one API key for all our products is needed.

Prices are listed in USD. We accept all major debit and credit cards. Our payment system uses the latest security technology and is powered by Stripe, one of the worldโ€™s most reliable payment companies. If you have any trouble with paying by card, just contact us at [email protected]

Sometimes depending on the bank's fraud protection settings, a bank will decline the validation charge we make when we attempt to be sure a card is valid. We recommend first contacting your bank to see if they are blocking our charges. If more help is needed, please contact [email protected] and our team will investigate further

Prices are based on a recurring monthly subscription depending on the plan selected โ€” plus overage fees applied when a developer exceeds a planโ€™s quota limits. In this example, you'll see the base plan amount as well as a quota limit of API requests. Be sure to notice the overage fee because you will be charged for each additional request.

Zyla API Hub works on a recurring monthly subscription system. Your billing cycle will start the day you purchase one of the paid plans, and it will renew the same day of the next month. So be aware to cancel your subscription beforehand if you want to avoid future charges.

Just go to the pricing page of that API and select the plan that you want to upgrade to. You will only be charged the full amount of that plan, but you will be enjoying the features that the plan offers right away.

Yes, absolutely. If you want to cancel your plan, simply go to your account and cancel on the Billing page. Upgrades, downgrades, and cancellations are immediate.

You can contact us through our chat channel to receive immediate assistance. We are always online from 9 am to 6 pm (GMT+1). If you reach us after that time, we will be in contact when we are back. Also you can contact us via email to [email protected]

 Service Level
 Response Time



Related APIs