Detector24
Document Classifier
ImageText Analysis, QR Codes and OCR

Document Classifier

Classify 76+ document types automatically: passports, IDs, invoices, bank statements. Streamline KYC/KYB onboarding with AI document recognition.

Accuracy
94.5%
Avg. Speed
20.0s
Per Request
$0.0250
API Name
document-classifier

Bynn Document Classifier

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.

The Challenge

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.

Model Overview

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.

How It Works

The model analyzes multiple aspects of each document:

  • Visual structure: Layout, formatting, and design patterns characteristic of document types
  • Content analysis: Key text elements, headers, and labels that identify document purpose
  • Regional awareness: Knowledge of how document types vary across countries and jurisdictions
  • Context understanding: Distinguishes between similar document types based on subtle differences

Response Structure

The API returns a structured JSON response containing:

  • document_type: One of 76+ document type codes identifying the document category

Supported Document Types

Identity Documents

  • passport: International travel document
  • id_card: National ID cards issued by governments
  • drivers_license: Driver's licenses from any country
  • residence_permit: Residence permits and visas
  • visa: Travel visa endorsements
  • social_security_card: Social security identification

Financial Documents

  • invoice: Commercial invoices
  • receipt: Purchase receipts
  • bank_statements: Bank account statements
  • financial_statements: Business financial reports
  • tax_returns: Tax filing documents
  • payslip: Salary/wage statements
  • credit_report: Credit history reports
  • debit_note / credit_note: Commercial adjustment documents

Business Documents

  • business_registration: Company registration certificates
  • certificate_of_incorporation: Incorporation documents
  • articles_of_association: Company governance documents
  • declaration_of_ubos: Ultimate Beneficial Owner declarations
  • shareholder_agreement: Shareholder contracts
  • business_license: Operating licenses

Legal Documents

  • contract: Legal contracts and agreements
  • power_of_attorney: Authorization documents
  • affidavit: Sworn statements
  • court_order: Court directives
  • deed: Property transfer documents
  • will: Testamentary documents

Certificates & Licenses

  • birth_certificate / marriage_certificate / death_certificate: Vital records
  • diploma / graduation_certificate: Educational credentials
  • medical_license / legal_practice_license: Professional licenses
  • other_license / other_certificate: Miscellaneous credentials

Special Classifications

  • photo: Images without document content
  • unknown: Document that cannot be confidently classified

Performance Metrics

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

Use Cases

  • KYC/KYB Automation: Automatically route identity and business documents to appropriate verification workflows
  • Document Intake: Classify incoming documents for processing queues
  • Compliance Workflows: Ensure correct document types are collected for regulatory requirements
  • Data Extraction: Route documents to appropriate OCR/extraction models based on type
  • Document Management: Automatically organize and tag documents in storage systems
  • Customer Support: Identify document types submitted in support tickets

Known Limitations

Important Considerations:

  • Similar Document Types: Closely related documents (e.g., different types of certificates) may occasionally be misclassified
  • Regional Variations: Unusual regional document formats may be less accurately classified
  • Image Quality: Poor quality, heavily cropped, or partially visible documents reduce accuracy
  • Non-Standard Documents: Custom or proprietary document formats may be classified as "unknown"
  • Multi-Page Documents: Only analyzes single images; multi-page documents require separate classification per page

Disclaimers

This model provides document type classification, not document verification or authenticity checks.

  • Classification Only: Identifies document type but does not verify authenticity or validity
  • Routing Tool: Use for document routing; combine with appropriate verification models for validation
  • Human Oversight: Critical document processing should include human verification
  • Unknown Handling: Documents classified as "unknown" require manual review
  • Complementary Tools: Combine with OCR, liveness detection, and tampering detection for complete verification

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.

API Reference

Version
2601
Jan 3, 2026
Avg. Processing
20.0s
Per Request
$0.025
Required Plan
trial

Input Parameters

Vision Language Model for image/video understanding with reasoning

media_typestring

Type of media being sent: 'image' or 'video'. Auto-detected if not specified.

Example:
image
image_urlstring

URL of image to analyze

Example:
https://example.com/image.jpg
base64_imagestring

Base64-encoded image data

video_urlstring

URL of video to analyze

Example:
https://example.com/video.mp4
base64_videostring

Base64-encoded video data

Response Fields

Structured Document Classifier response

responseobject

Structured response from the model

Object Properties:
document_typestring
Possible values:
passportid_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_confirmationunknown
thinkingstring

Chain-of-thought reasoning from the model (may be empty)

Complete Example

Request

{
  "model": "document-classifier",
  "image_url": "https://example.com/image.jpg"
}

Response

{
  "inference_id": "inf_abc123def456",
  "model_id": "document_classifier",
  "model_name": "Document Classifier",
  "moderation_type": "image",
  "status": "completed",
  "result": {
    "response": {
      "document_type": "passport"
    },
    "thinking": ""
  }
}

Additional Information

Rate Limiting
If we throttle your request, you will receive a 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.
Supported Formats
gif, jpeg, jpg, png, webp
Maximum File Size
20MB
Tags:documentkyckybclassificationvlmai-analysis

Ready to get started?

Integrate Document Classifier into your application today with our easy-to-use API.