Know what document you're looking at
Classify an uploaded document by type — passport, driver's license, invoice, bank statement, and more — with a confidence score. Use it as a triage step to route documents to the right OCR or Document AI pipeline automatically.
- 8 supported document types
- Confidence-ranked predictions
- Pre-routing for OCR & Document AI
- ~110ms median latency
Live demo
Upload a document to see the predicted type and confidence score. Beta — results may be less accurate while we tune the model.
Input document
Drop a passport, ID, invoice, or statement
or click to browse · JPEG, PNG, WebP · max 5MB
Predicted type
Upload a document to classify it
Triage before extraction
8 document types
Passports, driver's licenses, national IDs, invoices, bank statements, utility bills, contracts, and more.
Smart pre-routing
Run classification first to route each upload to the right OCR or Document AI schema automatically.
Confidence-ranked
Returns a top prediction plus ranked alternatives so you can flag ambiguous uploads for review.
Drop-in JSON
Same auth and response shape as the rest of the API — easy to add to an existing pipeline.
One call, ranked predictions
Send a document and get back a top prediction with a confidence score, plus ranked alternatives. Use the same response shape to drive routing logic in your pipeline.
curl -X POST https://api.quantilence.com/v1/document-classification/classify \
-H "Authorization: Bearer qk_live_..." \
-F "document=@upload.jpg"{
"documentType": "passport",
"confidence": 0.97,
"alternatives": [
{ "documentType": "national_id", "confidence": 0.02 },
{ "documentType": "drivers_license", "confidence": 0.01 }
],
"latencyMs": 108
}