Detector24
Document Classifier
ImageText Analysis, QR Codes and OCR

Document Classifier

Classify KYC/KYB documents into 76+ types including passports, ID cards, invoices, bank statements, and more

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

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.