API Provider


Developer links

Smart Image Cropping API
Smart Image Cropping API

Smart image cropping API that can intelligently identify important elements of an image and retain it during cropping.

Smart image cropping API is a powerful tool that helps you to automatically generate human-like, satisfying cropped images. First, it identifies the important elements of an image by using image processing and computer vision algorithms and then crops the image using the aspect ratio or the width/height variables you've provided, without losing the most relevant parts of the content.

Use cases

This API is very useful for:

  • Media companies for displaying the most important part of the image on a smaller screen or with a different aspect ratio than the original image file.
  • Mobile apps. They have smaller frames and popular apps now have square formats for images.
  • E-commerce sites: There are many areas where a product image needs to be displayed, all in a different format (listing, product detail page, recommendations..). Smart crop API ensures the image doesn’t lose its content.

How it works

Smart image cropping API requires an image URL and one of the resizing options: aspect ratio or width/height to work.

The algorithm takes into account multiple factors while calculating the most important region of the image. It applies a set of filters: The rule of third, saliency detection, face detection, and edge detection to the given image to find the most scoring image that fits into the desired crop size and provide the most relevant content. Images shown below are the filter output of the images.

What is Saliency Detection?

Saliency detection uses a set of computer vision and image processing principles to find the most eye-catching, noticeable parts of the image. Smart Image Cropping API utilizes saliency algorithms and crops the image file accordingly.

In neuroscience, saliency is described as an attention mechanism in organisms to narrow down to the important parts of what they see.

Smart Image Cropping API utilizes saliency algorithms and crops the image file accordingly. So you don't need to deal with such complications. All is done automatically for you.


Whether we want to improve the overall composition of an image or we just need to resize the image to make it fit into different devices, frames; we use image cropping tools. It is an easy task for a person to decide the main focus of an image and retain this area during cropping. But for the businesses that are relying on user-generated content, it might be very time-consuming to have this process done manually. You don't need to deal with such complications. All is done automatically for you through Smart Image Cropping API.

How secure is this service?

Prompt API is a legal entity in European Union and regulated by its laws. We never store any sensitive information on our servers and fully respect your privacy.

Is it free?

Smart Image Cropping API is a paid service but we have a free plan that will be more than enough for you to test its functionalities and see if it works for your needs.

How does Prompt API's pricing work?

Our subscriptions are tiered. We offer a monthly subscription scheme and you decide which tier works for you the best.

Can I cancel/upgrade/downgrade at any time?

Sure you can. You can cancel your subscription or upgrade/downgrade yourself, anytime without any restrictions.

Fast and reliable
Generates 3 crops for each image
Full privacy
Returns width, height and also x and y coordinates

Ready to try it out?

We offer a free plan. No credit cards required!

or see documentation

See Also

View All