If you use Amazon Comprehend for sentiment and want an alternative, the right choice depends on what you need: polarity at the lowest cost, or emotions. Google Cloud Natural Language and Azure AI Language are the like-for-like alternatives: managed polarity in many languages. The Sentiment API is a different trade: it returns 28 emotion scores plus a valence score per message in six languages, costs $0.00089 per short message, and needs no cloud account or subscription. You pay per message from prepaid credit.
The short answer
- Only need positive/negative, already on AWS? Stay with Comprehend. It is mature, fast, and inexpensive per short text.
- On Google Cloud or Azure instead? Use their language API. The output and billing model are similar to Comprehend.
- Need to know which emotion (anger vs. disappointment vs. confusion), have low or irregular volume, or want an AI agent to pay per call? That is where Sentiment fits.
- High, steady volume and a team that runs GPUs? Self-host an open model. It is the cheapest per message at scale.
Comprehend vs. Google vs. Azure vs. Sentiment
| Amazon Comprehend | Google Cloud Natural Language | Azure AI Language | Sentiment API | |
|---|---|---|---|---|
| Sentiment output | POSITIVE / NEGATIVE / NEUTRAL / MIXED + confidences | Score in [-1, 1] + magnitude, per document and sentence | Positive / neutral / negative (+ mixed) + confidences; opinion mining | 28 emotion scores + valence in [-1, 1] |
| Named emotions | No | No | No | Yes, 28 (GoEmotions) |
| Languages | Many | Many | Many | 6: ar, en, fr, es, de, tr |
| Billing unit | Per 100-character unit, 3-unit minimum per request | Per 1,000-character unit | Per text record (up to 1,000 characters) | Per message (256 characters included) |
| Free tier | Yes | Yes | Yes | No |
| Account needed | AWS account | Google Cloud account | Azure subscription | Free (GitHub or Google sign-in) |
| Payment | Card / AWS bill | Card / GCP bill | Card / Azure bill | Card, prepaid credit |
| Call style | Synchronous; batch and async jobs | Synchronous | Synchronous; async jobs | Asynchronous (submit, then poll) |
Cloud details reflect each provider's public documentation at the time of writing. Prices and free tiers change; check the provider's pricing page before deciding.
Is it actually cheaper?
For polarity alone, usually not. Comprehend's published price for a short text is typically below our per-message price, and the big clouds include free monthly allowances that we don't have. If cheap positive/negative is all you need, the cloud you already use is hard to beat.
Where the Sentiment API can come out cheaper overall:
- You need emotions. Getting anger, gratitude or confusion out of a polarity API means adding a second model or a LLM call. Here every message already includes all 28 scores at $0.00089.
- Your volume is small or bursty. There is no subscription or commitment, and no infrastructure to keep running between jobs.
- You don't want a cloud account at all, for example for a side project, a script or an AI agent that only needs an API key.
Current numbers are on the pricing page, including costs for 1,000 to 1,000,000 messages.
When switching makes sense
- Support or CX teams that route tickets differently for confusion, annoyance and anger. Polarity marks all three as negative.
- Review and survey analysis where you want to know why customers are unhappy, not only that they are. See review sentiment analysis.
- Arabic and Turkish feedback that you want scored with the same emotion labels as English. See Arabic and Turkish sentiment API.
- Projects that would otherwise open a cloud account just for this.
When to stay with Comprehend
- You need synchronous, low-latency responses inside a request.
- You need languages beyond our six, or entity-level (targeted) sentiment.
- Procurement or compliance requires an AWS service or invoice billing. We only sell prepaid credit by card.
- Your volume fits inside Comprehend's free tier.
Mapping Comprehend output to emotion scores
If downstream code expects Comprehend's labels, derive them from the emotion result. Valence gives the direction; positive and negative emotions that both score high give MIXED:
def comprehend_style(result, thr=0.3, pos=0.2, neg=-0.2):
"""Map a Sentiment API result to Comprehend-style labels."""
POSITIVE = {"admiration", "amusement", "approval", "caring", "desire", "excitement",
"gratitude", "joy", "love", "optimism", "pride", "relief"}
NEGATIVE = {"anger", "annoyance", "disappointment", "disapproval", "disgust",
"embarrassment", "fear", "grief", "nervousness", "remorse", "sadness"}
present = {p["label"] for p in result["predictions"] if p["score"] >= thr}
if present & POSITIVE and present & NEGATIVE:
return "MIXED"
v = result["valence"]
return "POSITIVE" if v > pos else "NEGATIVE" if v < neg else "NEUTRAL"The cut-offs are starting points, not tuned values. Label a few hundred of your own texts and adjust them until the mapping agrees with your labels. The two sets are the positive and negative groups on the emotions page; the four ambiguous labels (confusion, curiosity, realization, surprise) are left out on purpose.
Calling the API
Instead of AWS credentials, requests carry an API key. The API docs have Python, JavaScript and curl clients, and batches of up to 10,000 texts per request.
Frequently asked questions
What is a cheap alternative to AWS Comprehend for sentiment analysis?
It depends on what you need. For plain positive/negative/neutral at volume, self-hosting an open model is the cheapest option, and Comprehend itself is inexpensive per short text. If you need emotions rather than polarity, or have low or irregular volume and don't want a cloud account, a pay-per-request emotion API such as Sentiment avoids idle cost and returns 28 emotion scores per message.
Does Amazon Comprehend detect emotions?
Comprehend's sentiment analysis returns one of POSITIVE, NEGATIVE, NEUTRAL or MIXED with a confidence score for each. Targeted sentiment adds sentiment per entity mention. It does not return named emotions such as anger, gratitude or confusion.
How does Comprehend bill for sentiment?
Comprehend bills per unit of text, where a unit is 100 characters, with a minimum charge of three units per request, and it has a free tier for new accounts. Prices change, so check the AWS pricing page for current rates.
How do I get POSITIVE / NEGATIVE / MIXED from emotion scores?
Use the valence score for direction (for example above 0.2 positive, below -0.2 negative, otherwise neutral) and flag MIXED when at least one positive and one negative emotion both score above your threshold. Tune the cut-offs on a labelled sample of your own text.
Is the Sentiment API a drop-in replacement for Comprehend?
No. The request format, authentication (an API key instead of AWS IAM) and output differ, and jobs are asynchronous. Moving over means changing the client call and mapping the output, which this page shows.