Live Demo

API Provider

API Temple
API Temple

Developer links

Image Quality Assessment API

Image Quality Assessment API

Performs a blind/referenceless image spatial quality evaluator (BRISQUE) algorithm on the image and predicts an image quality score.

What is Image Quality Assessment?

It is easy to take photos, but it is difficult to take good ones. It requires good composition and good lighting. The right lens and top quality hardware can make a big difference. Most importantly, a high quality photo requires good taste and judgment. You need an expert eye. But is there a mathematical measure of quality that constitutes this human judgment?

Some quality metrics can be easily captured with an algorithm. For example, we can look at information captured by pixels and mark an image as noise or blurry. On the other hand, some quality metrics are nearly impossible for an algorithm to catch. For example, an algorithm finds it difficult to judge the quality of a photo that requires cultural context.

There is a scientific method called BRISQUE (Blind/Referenceless Image Spatial Quality Evaluator ) which is a no-reference image quality score well-accepted in the market. This API is a sclable and performant implementation of this method.

Use cases

You can use this service for:

  • Determining the best image of the product to display on the front page
  • Sort the products/listings based on the image quality score on your e-commerce site
  • Show only the high-quality images for adverts
  • Only permitting high-quality images for your listing/product

Evaluating an image on a URL

First, start by (free tier available), get your API key and you are ready. Next, you can test using the following cURL command. This code will fetch the image located at https://.../sample.jpg

curl --request GET \
--url '' \
--header 'apikey: YOUR API KEY HERE'

The results will be as follows

    "score": 32.20628629174732,
    "description": "good"

Evaluating an image from local file

The procedure is pretty similar to what we do for parsing a resume on a URL. First, simply (free tier available), get your API key and you are done.

Use the following code to upload an image from your computer to the service and get the quality score in JSON format immediately back.

curl --location --request POST '' \
--header 'Content-Type: application/octet-stream' \
--header 'apikey: YOUR API KEY HERE' \
--data-binary '@/C:/Users/test/Desktop/sample.jpg'

Related Articles

Simple Transparent Pricing

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

Free Plan

No credit cards required
20 Requests / Daily, 600 Requests / Monthly

Starter Plan

Monthly subscription
1,000 Requests / Daily, 30,000 Requests / Monthly

Pro Plan

Monthly subscription
5,000 Requests / Daily, 150,000 Requests / Monthly

Custom Plan

Monthly subscription
Fully customizable
Fast and scalable
No human touch
Privacy Compliant
Pre-trained models

Ready to try it out?

We offer a free plan. No credit cards required!

or see documentation

See Also

View All

Are you an API developer?

Market your API on APILayer and start making money now!