
Classify KYC/KYB documents into 76+ types including passports, ID cards, invoices, bank statements, and more
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.