APIs · head to head
Amazon Comprehend vs AWS API Gateway

Amazon Comprehend
APIs
Text analysis API for entities, sentiment, key phrases, PII and custom classifiers
- From
- $0.0001/unit
- Free plan
- No

AWS API Gateway
APIs
Fully managed API gateway service for creating and managing APIs at scale
- From
- Free
- Free plan
- Yes
The short version
- AWS API Gateway is a fully managed service.
- AWS API Gateway has a free plan, then $1/mo; Amazon Comprehend starts at $0.0001/mo.
- Only Amazon Comprehend lists entity and key phrase extraction; only AWS API Gateway lists REST APIs.
- Where Amazon Comprehend falls short: custom endpoints bill per second while provisioned, so an idle endpoint carries a continuous cost.
- Where AWS API Gateway falls short: REST APIs cost $3.50 per million calls against $1.00 for HTTP APIs, so the older and more featureful type is three and a half times dearer.
How do Amazon Comprehend and AWS API Gateway differ?
Amazon Comprehend and AWS API Gateway differ on starting price ($0.0001/unit against Free), pricing model and free tier (No against Yes). Only the attributes on which Amazon Comprehend and AWS API Gateway actually diverge.
| Attribute | Amazon Comprehend | AWS API Gateway |
|---|---|---|
| Starting price | $0.0001/unit | Free |
| Pricing model | Per 100-character unit, per training hour and per inference unit second | Usage-based |
| Free tier | No | Yes |
Identical on both: platforms (Web).
Not yet recorded: category for Amazon Comprehend, founded for Amazon Comprehend.
Which features does each one have?
They share no listed features; 6 appear only for Amazon Comprehend and 9 only for AWS API Gateway. Drawn from each product's published feature list. An absence here means we hold no record of it - not that the product lacks it.
Only in Amazon Comprehend
- Entity and key phrase extraction
- Sentiment and targeted sentiment
- PII detection and redaction
- Custom classification and entities
- Topic modelling
- Batch and real-time
Only in AWS API Gateway
- REST APIs
- WebSocket APIs
- HTTP APIs
- Lambda
- EC2
- DynamoDB
- CloudWatch
- IAM
What is each one used for?
Amazon Comprehend is most often brought in for redacting PII from call transcripts and support tickets before storage; AWS API Gateway for fronting Lambda functions with an HTTP endpoint. The jobs each tool is most often brought in to do.
Amazon Comprehend
- Redacting PII from call transcripts and support tickets before storagenot AWS API Gateway
- Scoring customer feedback sentiment at scalenot AWS API Gateway
- Classifying inbound documents into custom categoriesnot AWS API Gateway
- Extracting entities from contracts as a step before indexing in searchnot AWS API Gateway
AWS API Gateway
- Fronting Lambda functions with an HTTP endpointnot Amazon Comprehend
- REST and HTTP API management with throttling and keysnot Amazon Comprehend
- WebSocket APIs for real-time clientsnot Amazon Comprehend
- Private APIs reachable only inside a VPCnot Amazon Comprehend
- Publishing a developer portal for API consumersnot Amazon Comprehend
Where do Amazon Comprehend and AWS API Gateway fall short?
Amazon Comprehend's most cited limit: custom endpoints bill per second while provisioned, so an idle endpoint carries a continuous cost. AWS API Gateway's: data transfer out is charged at $0.09 per GB on top of request pricing. Documented limitations, not opinions. Every one is a constraint you would hit in normal use.
Amazon Comprehend
- Billing is per 100 characters with a three-unit minimum, so very short messages cost more than their length suggests and long documents add up quickly
- Custom endpoints bill per second while provisioned, so an idle endpoint carries a continuous cost
- The pre-trained models are fixed; domain-specific vocabulary needs Custom Comprehend, which has no free tier and needs labelled data
- Language coverage varies by feature, and several features support only a handful of languages
- Large language models can now handle many extraction tasks with prompts, so the service is less distinctive than when launched
AWS API Gateway
- REST APIs cost $3.50 per million calls against $1.00 for HTTP APIs, so the older and more featureful type is three and a half times dearer
- Data transfer out is charged at $0.09 per GB on top of request pricing
- WebSocket APIs bill connection minutes as well as messages, at $0.25 per million minutes
- Private APIs avoid data transfer charges but incur AWS PrivateLink costs instead
- The developer portal is $125 a month, with additional portal products at $12.50 each
- The free tier lasts 12 months rather than being ongoing
How much do Amazon Comprehend and AWS API Gateway cost?
Amazon Comprehend starts at $0.0001/mo; AWS API Gateway has a free plan, with paid plans from $1/mo. Plan by plan below, from each vendor's own pricing page.
Amazon Comprehend
$0.0001/unit- Standard APIs$0.0001/unit
- $0.0001 per 100-character unit for entities, sentiment, key phrases and language in the first tier
- Falls to $0.00005 and $0.000025 at higher volumes
- Free tier of 50,000 units per API per month for 12 months
- Custom Comprehend$3/hour
- $3 per hour of model training
- Endpoints $0.0005 per inference unit per second
- No free tier
AWS API Gateway
Free- Free Tier (12 months)Free
- 1M REST API calls per month
- 1M HTTP API calls per month
- 1M WebSocket messages plus 750K connection minutes per month
- HTTP APIs$1
- First 300M: $1.00 per million
- Next 132M: $0.90 per million
- Data transfer varies by volume
- REST APIs$3.5
- Edge Optimized and Regional: $3.50 per million (first tier)
- Higher volumes: $2.80 then $2.38 per million
- Data transfer: $0.09 per GB
- WebSocket APIs$1
- Messages: $1.00 per million
- Connection minutes: $0.25 per million minutes
Which should you pick?
Choose Amazon Comprehend if
- You need entity and key phrase extraction.
- You also want sentiment and targeted sentiment.
Choose AWS API Gateway if
- You need rest apis.
- You want to start without paying.
- You also want websocket apis.
Questions people ask
- Is Amazon Comprehend or AWS API Gateway better?
- It depends on the job. Amazon Comprehend fits redacting PII from call transcripts and support tickets before storage; AWS API Gateway fits fronting Lambda functions with an HTTP endpoint. Amazon Comprehend starts at $0.0001/unit and AWS API Gateway at Free.
- Which is cheaper, Amazon Comprehend or AWS API Gateway?
- AWS API Gateway has a free tier; the other does not. Paid plans start at $0.0001/unit for Amazon Comprehend and Free for AWS API Gateway.
- Does Amazon Comprehend or AWS API Gateway run on more platforms?
- Both run on Web, so platform support will not decide this one for you.
- Can I use AWS API Gateway for free?
- Yes. AWS API Gateway has a free tier, so you can try it without paying. Amazon Comprehend starts at $0.0001/unit.
- What is Amazon Comprehend best used for?
- Amazon Comprehend is most often used for redacting pii from call transcripts and support tickets before storage, scoring customer feedback sentiment at scale, classifying inbound documents into custom categories, extracting entities from contracts as a step before indexing in search. Of those, redacting pii from call transcripts and support tickets before storage and scoring customer feedback sentiment at scale are not what AWS API Gateway is typically brought in for.
- What can Amazon Comprehend do that AWS API Gateway cannot?
- Amazon Comprehend covers Entity and key phrase extraction, Sentiment and targeted sentiment, PII detection and redaction, Custom classification and entities. AWS API Gateway covers REST APIs, WebSocket APIs, HTTP APIs, Lambda.
Answered from the vendors’ own pages
Amazon Comprehend: How much does Amazon Comprehend cost?
$0.0001 per 100-character unit for core APIs in the first tier, per the AWS pricing page, with 50,000 free units per API per month for 12 months.
AWS API Gateway: How much does AWS API Gateway cost?
AWS API Gateway pricing varies by API type. HTTP APIs cost $1.00 per million requests for the first 300M monthly, then $0.90 per million. REST APIs cost $3.50 per million, and WebSocket APIs cost $1.00 per million messages plus $0.25 per million connection minutes. Data transfer charges ($0.09 per GB) apply separately.
SourceAmazon Comprehend: Does Comprehend detect PII?
Yes. It detects and can redact personally identifiable information, priced at $0.0001 per unit in the first tier.
AWS API Gateway: Is AWS API Gateway free?
New AWS customers receive 12 months of free tier access including 1 million REST API calls, 1 million HTTP API calls, and 1 million WebSocket messages plus 750,000 connection minutes per month. Starting July 15, 2025, new customers receive up to $200 in AWS Free Tier credits.
SourceAmazon Comprehend: What does custom training cost?
Model training is $3 per hour and custom endpoints are $0.0005 per inference unit per second.
AWS API Gateway: What is the price difference between HTTP and REST APIs?
HTTP APIs are significantly cheaper at $1.00 per million requests compared to REST APIs at $3.50 per million (first tier). REST API pricing decreases to $2.80 and $2.38 per million for higher volumes, while HTTP API pricing drops to $0.90 per million after 300M monthly requests.
SourceAWS API Gateway: How much does an API Gateway Portal cost?
API Gateway Portals require a base fee of $125 per month (includes 10 PortalProducts with 40 endpoints each) plus $12.50 per month for each additional PortalProduct beyond the included 10.
SourceRelated pages
More on Amazon Comprehend
More on AWS API Gateway
Other head to heads
- Amazon Comprehend vs Kling AI
- Amazon Comprehend vs Grok
- Amazon Comprehend vs Microsoft Copilot
- Amazon Comprehend vs Character.AI
- Amazon Comprehend vs Atlas Cloud
- Amazon Comprehend vs ElevenLabs
- Amazon Comprehend vs QuillBot
- Amazon Comprehend vs ChatGPT
- Amazon Comprehend vs Pika
- Amazon Comprehend vs LOVO
- Amazon Comprehend vs Deepgram
- Amazon Comprehend vs Resemble AI
- Amazon Comprehend vs Leonardo AI
- Amazon Comprehend vs Together AI
- Amazon Comprehend vs Adobe Firefly
- Amazon Comprehend vs Murf
- Amazon Comprehend vs Copy.ai
- Amazon Comprehend vs Fathom
- Amazon Comprehend vs Microsoft Azure API Management
- Amazon Comprehend vs Zuplo
- Amazon Comprehend vs Kong Gateway
- Amazon Comprehend vs IBM API Connect
- Amazon Comprehend vs Tyk
- Amazon Comprehend vs Gravitee
- Amazon Comprehend vs Apigee
- Amazon Comprehend vs Boomi API Management
- Amazon Comprehend vs Convoy
- Amazon Comprehend vs Janus Gateway
- Amazon Comprehend vs Spring Cloud Gateway
- Amazon Comprehend vs Zeplo
- Amazon Comprehend vs api.video
- Amazon Comprehend vs Basis Theory
- Amazon Comprehend vs curl
- Amazon Comprehend vs Flybits
- Amazon Comprehend vs Moesif
- Amazon Comprehend vs Mux
- AWS API Gateway vs Kling AI
- AWS API Gateway vs Grok
- AWS API Gateway vs Microsoft Copilot
- AWS API Gateway vs Character.AI
- AWS API Gateway vs Atlas Cloud
- AWS API Gateway vs ElevenLabs
- AWS API Gateway vs QuillBot
- AWS API Gateway vs ChatGPT
- AWS API Gateway vs Pika
- AWS API Gateway vs LOVO
- AWS API Gateway vs Deepgram
- AWS API Gateway vs Resemble AI
- AWS API Gateway vs Leonardo AI
- AWS API Gateway vs Together AI
- AWS API Gateway vs Adobe Firefly
- AWS API Gateway vs Murf
- AWS API Gateway vs Copy.ai
- AWS API Gateway vs Fathom
- AWS API Gateway vs Microsoft Azure API Management
- AWS API Gateway vs Zuplo
- AWS API Gateway vs Kong Gateway
- AWS API Gateway vs IBM API Connect
- AWS API Gateway vs Tyk
- AWS API Gateway vs Gravitee
- AWS API Gateway vs Apigee
- AWS API Gateway vs Boomi API Management
- AWS API Gateway vs Convoy
- AWS API Gateway vs Janus Gateway
- AWS API Gateway vs Spring Cloud Gateway
- AWS API Gateway vs Zeplo
- AWS API Gateway vs api.video
- AWS API Gateway vs Basis Theory
- AWS API Gateway vs curl
- AWS API Gateway vs Flybits
- AWS API Gateway vs Moesif
- AWS API Gateway vs Mux
