This API is currently in "preview" mode, but please don't let that change your mind. While we have many developers using them all over the world, we are still doing some additional building and testing until we feel really comfortable that they are just right for general consumption. Go ahead, grab a key and try them.

Emotion API


Analyze faces to detect a range of feelings and personalize your app's responses.

Recognize Emotions in Images

The Emotion API takes a facial expression in an image as an input, and returns the confidence across a set of emotions for each face in the image, as well as bounding box for the face, using the Face API. If a user has already called the Face API, they can submit the face rectangle as an optional input. The emotions detected are anger, contempt, disgust, fear, happiness, neutral, sadness, and surprise. These emotions are understood to be cross-culturally and universally communicated with particular facial expressions. For the demo below please click the image samples to see how Emotion API uses world-class machine learning techniques to provide these results. You can also click the open image button or drag-and-drop to upload your own images, or input a URL for a remote image. We don’t keep your images for this demo.

Show information Hide information
Smart Cropping on Smart Cropping off
Open Image


Recognize Emotions in Video

The Emotion API for Video recognizes the facial expressions of people in a video, and returns a summary of their emotions. You can use this API to track how a person or a crowd responds to your content over time. The emotions detected are anger, contempt, disgust, fear, happiness, neutral, sadness, and surprise.   Recognize emotions in near real-time by extracting frames of a video and then sending those frames to the API calls of your choice. Get results faster and quickly start coding using our sample on GitHub. Learn more


Pricing options

Plan Description Price
Free Images: 30K calls per month
Video (uploads): 300 per month
Video (query status): 3000 per month
Basic (Emotion API with Rectangles calls) Images: 10 TPS
$0.10 per 1000 calls
Standard Images: 10 TPS
Video (uploads): 3000 per month
Video (query status): 30K per month
$0.25 per 1000 calls
Free for video
Buy on Azure

You might also be interested in

Developer resources for Emotion API