Text classification
Classify support tickets, feedback, emails, and any text content into custom categories with a single API call.
OpenClassifier is a REST API for classifying content into your custom labels. Send PDFs, text, or images — get back predictions with confidence scores. Automate invoice sorting, contract analysis, and document workflows.
One API for documents, text, and images. Define your labels, send your content, get predictions.
Classify support tickets, feedback, emails, and any text content into custom categories with a single API call.
Categorize photos, screenshots, scanned documents, and visual content. Batch multiple images in one request.
Process entire PDFs automatically. Extract text from invoices, contracts, reports, and receipts — classify each page or the whole document.
A straightforward REST API for text, images, and PDFs. Send a POST request, get JSON back. Works with any language or framework.
Route support tickets to the right team automatically.
import requests
response = requests.post(
"https://api.openclassifier.ai/classify/text",
headers={"Authorization": "Bearer YOUR_API_KEY"},
json={
"content": "I want to return this damaged item",
"labels": ["shipping", "returns", "billing"]
}
)
print(response.json()["results"]["label"])
# Output: returnsClassify invoices, contracts, and reports automatically.
import requests
# Classify a PDF document
response = requests.post(
"https://api.openclassifier.ai/classify/pdf",
headers={"Authorization": "Bearer YOUR_API_KEY"},
json={
"input": {"url": "https://example.com/invoice.pdf"},
"labels": ["invoice", "contract", "receipt", "report"],
"mode": "document" # or "per_page"
}
)
result = response.json()
print(result["documentLabel"]["label"])
# Output: invoice
print(result["documentLabel"]["confidence"])
# Output: 0.94Get intent, sentiment, and urgency in one call.
const response = await fetch(
"https://api.openclassifier.ai/classify/text",
{
method: "POST",
headers: {
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json"
},
body: JSON.stringify({
content: "Package arrived damaged",
labels: {
intent: ["complaint", "inquiry", "feedback"],
sentiment: ["positive", "neutral", "negative"]
}
})
}
);
const { results } = await response.json();
console.log(results.intent.label);
// Output: complaintThree steps to classify documents, text, or images.
Make a POST request with text, images, or PDF documents and the labels you want to classify into.
Receive the predicted label and confidence score. For PDFs, get per-page or document-level results.
Use the classification to route documents, trigger workflows, or update your systems automatically.
Common ways teams use OpenClassifier.
Automatically classify incoming documents as invoices, receipts, contracts, or purchase orders to streamline accounts payable.
Categorize incoming tickets by topic, urgency, and sentiment to route them to the right team instantly.
Sort legal documents by type — NDAs, employment contracts, service agreements — for faster review and compliance.
Classify user-generated content and uploaded documents to flag policy violations or inappropriate material.
Categorize lab reports, prescriptions, and clinical notes to organize patient files and speed up processing.
Classify claim documents, supporting evidence, and correspondence to accelerate claim processing workflows.
What we are working on next.
Extract text from scanned PDFs and images for classification.
Process thousands of documents asynchronously with webhook callbacks.
Fine-tune classification models on your own documents for higher accuracy.
Start free with 1,000 classifications per month. Scale up as you grow with pay-as-you-go pricing.
1,000 classifications/month
$0.001 per classification
Volume discounts available