Custom classifier on your own data, hosted: Comprehend vs Nyckel vs Hugging Face costs and calibration in 2026
Three services still train a text classifier on your labels and host it behind an API. At one million calls a month, list prices run from about $49 to over $5,000, and only one of the three gives you the weights.
To train and deploy a custom text classifier on your own data behind a hosted API in 2026, the main choices are Amazon Comprehend custom classification, Nyckel, and Hugging Face AutoTrain with Inference Endpoints. Comprehend suits teams already on AWS, Nyckel suits teams with few labelled examples, and Hugging Face suits teams that want to own the model. Avoid starting new work on Azure custom text classification, whose deployments stop serving on March 31, 2029. Google's Vertex AI AutoML Text and Cohere's Classify fine-tuning have already shut down.
Retired services narrowed the field to a few providers with no announced end date.
The services that once covered this job have been closing one by one. Google stopped training for Vertex AI AutoML Text on September 15, 2024, and it shut down the remaining models on June 15, 2025. Cohere's deprecations page, in an entry dated September 15, 2025, lists Classify fine-tuning as retired and says that previously fine-tuned models "will no longer be accessible." Microsoft's model lifecycle page sets the custom text classification training configuration to expire on March 31, 2028, with deployments ending a year later. The same page says that these dates may be extended if no newer model version is released, but it gives no later date.
Amazon closed some Comprehend features to new customers on April 30, 2026. Those were topic modeling, event detection and prompt safety classification. Custom classification is not on that list.
Comprehend needs 50 examples per class while Nyckel starts with two, and each service charges in a different way.
The comparison below uses each provider's own documentation and pricing page.
| Service | Data needed to start | What each call returns | How you pay |
|---|---|---|---|
| Amazon Comprehend | 50 documents per class (single-label CSV) | Every class with a score | Per inference-unit second while the endpoint runs |
| Nyckel | 2 confirmed examples per label | One label with a confidence | Monthly plan with included calls |
| Hugging Face AutoTrain and Endpoints | A CSV or JSONL file of text and label | The output of the model that you deploy | Per minute of instance time while running |
| Parsec TOD | A list of allowed options | One probability per option | $0.30 per 1,000 decisions |
Comprehend's minimum is the highest. Amazon's limits page asks for 50 training documents per class for a single-label model trained from CSV, and 10 per class for a multi-label model. Nyckel starts with a zero-shot model that works from label names alone. It builds a private model after two confirmed examples per label, and it switches only when the new model scores better.
Your cloud, your data type and your need to own the model decide which service fits.
The best choice depends on where your systems run and how long the model must last.
- Teams that run on AWS and classify text should start with Comprehend. You train with
CreateDocumentClassifier, create an endpoint, and callClassifyDocument, which returns a score for every class. Comprehend can also encrypt custom models with your own KMS key. Amazon's FAQ says that the service may store and use text inputs to provide and improve its services, and customers can opt out with an AWS Organizations AI services opt-out policy. - Teams that have only a handful of labelled examples should try Nyckel first. Its API returns a
labelNameand aconfidence, and its tutorial suggests using that confidence to choose between acting automatically and sending a case for review. Nyckel's home page says customer data and models "are never shared with other Nyckel customers." - Teams that need to own and move the model should use Hugging Face AutoTrain. It can push the trained model to the Hugging Face Hub. You can then host it on an Inference Endpoint in the cloud and region that you pick, or run it on your own servers.
- Teams that classify scanned forms and PDFs should look at Google Document AI's custom classifier. It trains and deploys versions, and it can keep the dataset in your own storage with a customer-managed key.
- Teams that classify images can use Roboflow, which deploys every classification model that it trains to a hosted API.
Parsec's TOD fits a narrower case. It suits teams whose labels are a fixed list of allowed actions in front of an existing LLM assistant. TOD ranks the options that you supply and returns one probability per option. When it is not confident, it passes the request unchanged to the larger model. Parsec says that it tunes decision models on a customer's own data, but it publishes no price for that work. It names no on-premises or edge option for TOD, and its fees come on top of the parent model's costs.
Calibrated confidence is what lets a classifier hand hard cases to a person.
A score helps only if it is calibrated, and checking that starts with a held-out test set. Microsoft runs an evaluation automatically after training and reports precision, recall and F1 for each class. Google Document AI reports the same three measures, and its automatic split puts 80% of documents in training and 20% in test.
The scikit-learn documentation gives the standard definition. Among inputs that a calibrated model scores at about 0.8, about 80% should belong to that class. Put simply, when the model reports 90%, it should be right about 90% of the time.
You can test this yourself with a reliability chart. Sort the predictions on your held-out set into bins by score. Plot the average score in each bin against the share of predictions that were correct. A calibrated model produces points close to the diagonal. Once the points sit close to the line, choose a threshold, such as 0.9, and send every case below it to a reviewer.
Nyckel says its confidence is "calibrated to your data," but it publishes no reliability chart. Amazon and Microsoft return scores without calling them calibrated in the pages cited here. Tuned LLMs are a different case. Google's comparison page says that "Gemini doesn't support confidence scores," which leaves no number to set a threshold on.
At one million calls a month, the cheapest hosted option costs about 1% of the most expensive.
This example uses list prices and these assumptions: 1,000,000 classifications a month, 1,000 characters each, steady traffic, and no free tiers. It ignores training costs, which Amazon lists at $3 an hour plus $0.50 a month for model storage.
- Comprehend's real-time endpoint costs about $5,184 a month. The traffic is about 386 characters a second, and one inference unit handles 100 characters a second, so the endpoint needs 4 units. At $0.0005 per unit-second over a 30-day month, that is 4 × $0.0005 × 2,592,000 seconds.
- Comprehend's asynchronous jobs cost about $5,000 a month. Each 1,000-character document counts as 10 units of 100 characters, at $0.0005 per unit.
- Nyckel's Business plan costs about $1,299 a month. The plan is $599 with 300,000 calls included, and the other 700,000 calls cost $0.001 each.
- A Hugging Face CPU endpoint costs about $49 a month. One AWS
intel-sprx2 instance is $0.067 an hour, over the 730-hour month that Hugging Face uses in its own examples. A single NVIDIA T4 instance would cost $365.
The Hugging Face figure covers hosting only, so your own engineering time to train and maintain the model comes on top. Whether one CPU replica can carry this traffic has not been measured. The Comprehend endpoint also bills while it sits idle, so a workload that runs only in business hours should use auto scaling or the asynchronous mode.
Former Azure, Vertex and Cohere users can carry their labelled data to any of these services.
The labelled examples are the part of an old project that moves. Microsoft's labels file is JSON. Each document has a location, a dataset value of Train or Test, and a class with a category. That converts to a two-column file of text and label, which Comprehend and AutoTrain both accept. Keep the Test documents fixed, so that you can compare the old model with the new one on the same examples.
Google's comparison page lists CSV and JSON Lines as AutoML text's input formats, so former Vertex users should start from their original import files. Cohere's current pages do not describe the old Classify training format, so former Cohere users should work from their own copies of the uploaded files. No one has published a side-by-side test of accuracy or calibration across these services on the same data. Run your fixed test set through two candidates before you commit.
Sources
- Amazon Comprehend, Train custom classifiers (API): https://docs.aws.amazon.com/comprehend/latest/dg/train-custom-classifier-api.html
- Amazon Comprehend, Real-time analysis for custom classification (API): https://docs.aws.amazon.com/comprehend/latest/dg/class-sync-api.html
- Amazon Comprehend, Guidelines and quotas: https://docs.aws.amazon.com/comprehend/latest/dg/guidelines-and-limits.html
- Amazon Comprehend, Overview of endpoints: https://docs.aws.amazon.com/comprehend/latest/dg/manage-endpoints-overview.html
- Amazon Comprehend, Document history: https://docs.aws.amazon.com/comprehend/latest/dg/doc-history.html
- Amazon Comprehend pricing: https://aws.amazon.com/comprehend/pricing/
- Amazon Comprehend FAQs: https://aws.amazon.com/comprehend/faqs/
- Microsoft Learn, Model lifecycle for Azure Language: https://learn.microsoft.com/en-us/azure/ai-services/language-service/concepts/model-lifecycle
- Microsoft Learn, Custom text classification concepts and data formats: https://learn.microsoft.com/en-us/azure/ai-services/language-service/custom-text-classification/concepts/data-formats
- Google Cloud, Vertex AI deprecations: https://docs.cloud.google.com/vertex-ai/docs/deprecations
- Google Cloud, AutoML text compared with Gemini: https://docs.cloud.google.com/vertex-ai/docs/start/automl-gemini-comparison
- Google Cloud, Document AI custom classifier: https://docs.cloud.google.com/document-ai/docs/custom-classifier
- Cohere, Deprecations: https://docs.cohere.com/docs/deprecations
- Nyckel, Home: https://nyckel.com/
- Nyckel, Build and improve a spam classifier: https://www.nyckel.com/docs/get-started/spam-classifier-tutorial/
- Nyckel, Pricing: https://www.nyckel.com/pricing
- Hugging Face, AutoTrain text classification: https://huggingface.co/docs/autotrain/en/tasks/text_classification_regression
- Hugging Face, Create an Inference Endpoint: https://huggingface.co/docs/inference-endpoints/guides/create_endpoint
- Hugging Face, Inference Endpoints pricing: https://huggingface.co/docs/inference-endpoints/support/pricing
- Roboflow, Classification end to end: https://roboflow.com/blog/classification-end-to-end
- scikit-learn, Probability calibration: https://scikit-learn.org/stable/modules/calibration.html
- Parsec, TOD: https://parseclab.ai/tod/
- Parsec, Decision models: https://parseclab.ai/solutions/decision-models/