Softwr

Machine Learning · head to head

Amazon Comprehend vs BentoML

Amazon Comprehend logo

Amazon Comprehend

Machine Learning

Text analysis API for entities, sentiment, key phrases, PII and custom classifiers

From
$0.0001/unit
Free plan
No
BentoML logo

BentoML

Machine Learning

Open source Python framework that packages models into deployable inference services

From
Free
Free plan
Yes

The short version

  • BentoML is free; Amazon Comprehend starts at $0.0001/mo.
  • Only Amazon Comprehend lists entity and key phrase extraction; only BentoML lists bento packaging format.
  • Where Amazon Comprehend falls short: custom endpoints bill per second while provisioned, so an idle endpoint carries a continuous cost.

How do Amazon Comprehend and BentoML differ?

Amazon Comprehend and BentoML 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 BentoML actually diverge.

Attributes where Amazon Comprehend and BentoML differ
AttributeAmazon ComprehendBentoML
Starting price$0.0001/unitFree
Pricing modelPer 100-character unit, per training hour and per inference unit secondFreemium
Free tierNoYes
PlatformsWebLinux, macOS, Windows

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 8 only for BentoML. 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 BentoML

  • Bento packaging format
  • Container image build
  • Adaptive batching
  • HTTP and gRPC serving
  • Multi-model composition
  • Model store
  • Framework support
  • Managed platform option

What is each one used for?

Amazon Comprehend is most often brought in for redacting PII from call transcripts and support tickets before storage. The jobs each tool is most often brought in to do.

Amazon Comprehend

  • Redacting PII from call transcripts and support tickets before storagenot BentoML
  • Scoring customer feedback sentiment at scalenot BentoML
  • Classifying inbound documents into custom categoriesnot BentoML
  • Extracting entities from contracts as a step before indexing in searchnot BentoML

BentoML

  • Standardising how a team ships models, so every service has the same structure, the same health checks and the same build processnot Amazon Comprehend
  • Serving a model on a GPU where request batching is the difference between one accelerator and severalnot Amazon Comprehend
  • Composing preprocessing, one or more models and postprocessing into a single deployable unit rather than a chain of servicesnot Amazon Comprehend
  • Handing a model from a data science group to a platform team as a container image without either side learning the other's toolingnot Amazon Comprehend

Where do Amazon Comprehend and BentoML fall short?

Amazon Comprehend's most cited limit: custom endpoints bill per second while provisioned, so an idle endpoint carries a continuous cost. 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

BentoML

  • The service interface was reworked between major versions, with the Runner abstraction of the 1.0 and 1.1 line replaced by the service decorator style in 1.2, so older internal services and the majority of tutorials found through search do not run unmodified against a current install
  • It is Python only, so a model that has to be served from Go, Java or C++, or embedded directly inside an existing application process, falls outside what the framework does
  • The framework is free but inference is not, and an accelerator held by a service receiving one request a minute costs the same as one running flat out, so utilisation is a problem the packaging layer does not solve for you
  • Self-hosting at scale means Kubernetes, an autoscaler, a container registry and someone who maintains them, so a small team either takes on that operational load or moves to the vendor's managed platform, where the commercial relationship begins
  • Batch size, worker count and concurrency limits are tuning parameters with real throughput consequences, and getting them wrong appears as tail latency under load rather than as an error, so it needs someone who will actually run a load test before launch

How much do Amazon Comprehend and BentoML cost?

Amazon Comprehend starts at $0.0001/mo; BentoML is free to use. 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

BentoML

Free
  • Open SourceFree
    • Model packaging
    • API creation
    • Local serving
  • BentoCloudFree
    • Managed deployment
    • Auto-scaling
    • Monitoring

Which should you pick?

Choose Amazon Comprehend if

  • You need entity and key phrase extraction.
  • You also want sentiment and targeted sentiment.

Choose BentoML if

  • You need bento packaging format.
  • You want to start without paying.
  • You work on Linux, macOS, Windows.
  • You also want container image build.

Questions people ask

Is Amazon Comprehend or BentoML better?
It depends on the job. Amazon Comprehend fits redacting PII from call transcripts and support tickets before storage; BentoML fits standardising how a team ships models, so every service has the same structure, the same health checks and the same build process. Amazon Comprehend starts at $0.0001/unit and BentoML at Free.
Which is cheaper, Amazon Comprehend or BentoML?
BentoML has a free tier; the other does not. Paid plans start at $0.0001/unit for Amazon Comprehend and Free for BentoML.
Does Amazon Comprehend or BentoML run on more platforms?
Amazon Comprehend runs on Web. BentoML runs on Linux, macOS, Windows.
Can I use BentoML for free?
Yes. BentoML 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 BentoML is typically brought in for.
What can Amazon Comprehend do that BentoML cannot?
Amazon Comprehend covers Entity and key phrase extraction, Sentiment and targeted sentiment, PII detection and redaction, Custom classification and entities. BentoML covers Bento packaging format, Container image build, Adaptive batching, HTTP and gRPC serving.

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.

BentoML: Is BentoML free?

The framework is, under Apache 2.0, and you can run it entirely on your own infrastructure. BentoCloud, the managed platform run by the company, is a paid service billed on the compute it runs for you.

Amazon Comprehend: Does Comprehend detect PII?

Yes. It detects and can redact personally identifiable information, priced at $0.0001 per unit in the first tier.

BentoML: Do I need Kubernetes?

Not for a single service, which is just a container. You need it once you want autoscaling, multiple models and rolling deployments on your own infrastructure, which is the point at which the managed option starts to look attractive.

Amazon Comprehend: What does custom training cost?

Model training is $3 per hour and custom endpoints are $0.0005 per inference unit per second.

BentoML: How is this different from just writing a FastAPI app?

For one model it is not very different and FastAPI is simpler. The difference is at four or ten models, where you would otherwise be maintaining ten sets of the same Dockerfile, batching logic, dependency pinning and health check code.

BentoML: Can it serve large language models?

Yes, and the project publishes tooling aimed at that specifically, but the constraints are the usual ones: accelerator memory, batching strategy and the cost of holding a GPU that is idle between requests.

BentoML: What actually is a Bento?

A directory, versioned and archivable, containing your service code, the model files it needs, the exact Python dependencies and instructions for running it. It is the unit you build into an image and deploy.

Share

Related pages

Other head to heads