
Classify 76+ document types automatically: passports, IDs, invoices, bank statements. Streamline KYC/KYB onboarding with AI document recognition.
The Bynn Document Classifier automatically identifies and categorizes documents into 76+ types, including identity documents, financial records, legal papers, and business documents. This model streamlines document processing workflows by routing documents to appropriate handlers.
Organizations process thousands of documents daily—KYC submissions, insurance claims, loan applications, compliance filings. Each document type requires different verification workflows, extraction rules, and handling procedures. Misrouting delays processing; manual classification creates bottlenecks.
The variety is staggering: passports from 200+ countries, regional ID card formats, corporate documents with jurisdiction-specific layouts, financial statements in countless templates. Human classifiers struggle with unfamiliar document types and make inconsistent decisions under volume pressure. Automated classification must handle this diversity while maintaining accuracy that matches or exceeds human performance.
When provided with an image of a document, the classifier analyzes its visual structure, layout, and content to determine the document type. The model uses general knowledge about how different document types are structured across countries and regions, making it effective for international document processing.
Achieving 94.5% accuracy, the model uses Bynn's Visual Language Model technology to understand document structure and context, not just text content.
The model analyzes multiple aspects of each document:
The API returns a structured JSON response containing:
| Metric | Value |
|---|---|
| Classification Accuracy | 94.5% |
| Average Response Time | 20,000ms |
| Max File Size | 20MB |
| Supported Formats | GIF, JPEG, JPG, PNG, WebP |
| Document Types | 76+ categories |
Important Considerations:
This model provides document type classification, not document verification or authenticity checks.
Best Practice: Use document classification as the first step in a document processing pipeline, routing documents to appropriate verification and extraction workflows based on type.
Vision Language Model for image/video understanding with reasoning
media_typestringType of media being sent: 'image' or 'video'. Auto-detected if not specified.
imageimage_urlstringURL of image to analyze
https://example.com/image.jpgbase64_imagestringBase64-encoded image data
video_urlstringURL of video to analyze
https://example.com/video.mp4base64_videostringBase64-encoded video data
Structured Document Classifier response
responseobjectStructured response from the model
document_typestringpassportid_carddrivers_licensebirth_certificatemarriage_certificatedeath_certificatedivorce_decreediplomagraduation_certificatereceipttranscriptmedical_recordsprescriptionvisacourt_orderwilltrust_documentaffidavitdeeddeclaration_of_ubosbusiness_registrationdiagram_of_ownership_structurecompany_bylawsoperating_agreementsfinancial_statementstax_returnsbank_statementscertificate_of_incorporationshareholder_agreementarticles_of_associationletter_of_authorizationinsurance_policylease_agreementpower_of_attorneyemployment_contractreal_estate_licenseinsurance_licensefinancial_services_licenselegal_practice_licensemedical_licensedrug_licensefirearms_licenseother_licenseother_certificateinvoicepurchase_ordercontractnon_disclosure_agreementservice_level_agreementloan_agreementmortgage_documentinvestment_statementcredit_reportsocial_security_cardvoter_registrationtax_exemption_certificatebusiness_licensepatent_certificatetrademark_registrationcopyright_noticeinsurance_claim_formpolicy_schedulecertificate_of_insuranceproperty_titlesurvey_planappraisal_reportwaybillpacking_listcustoms_declarationcertificate_of_authenticityprovenance_documentmarketing_materialphotoschoolworkresidence_permitletterpaysliptax_registration_documenttax_confirmation_documentdebit_notecredit_noteaccount_confirmationunknownthinkingstringChain-of-thought reasoning from the model (may be empty)
{
"model": "document-classifier",
"image_url": "https://example.com/image.jpg"
}{
"inference_id": "inf_abc123def456",
"model_id": "document_classifier",
"model_name": "Document Classifier",
"moderation_type": "image",
"status": "completed",
"result": {
"response": {
"document_type": "passport"
},
"thinking": ""
}
}429 HTTP error code along with an error message. You should then retry with an exponential back-off strategy, meaning that you should retry after 4 seconds, then 8 seconds, then 16 seconds, etc.Integrate Document Classifier into your application today with our easy-to-use API.