Driver's license OCR API
Extract name, license number, dates and address from driver's license photos for KYC, car rental and onboarding.
Result
Your Markdown or JSON shows up here.
What makes driver's licenses hard to read
- Every state and country uses a different layout
- Holograms and glare over key fields
- Barcodes on the back carry data the front does not
What you can pull out
drivers-license fields
{
"license_number": "D1234-56789-01234",
"full_name": "MARIA L GARCIA",
"date_of_birth": "1988-02-21",
"address": "455 Oak St, Austin TX 78701",
"issue_date": "2023-05-10",
"expiry_date": "2031-02-21",
"class": "C",
"issuing_region": "TX"
}Best models for driver's licenses
1Azure Document IntelligenceAzure layout model with tables, selection marks and prebuilt invoice and ID readers.
azure/document-intelligence15 credits / page2Amazon TextractAWS OCR with form key-value pairs, tables and per-word confidence scores.aws/textract6 credits / page3Gemini FlashGeneral vision model with strong handwriting and layout understanding at a low price.google/gemini-flash3 credits / pageCall it from your code
curl https://api.ocrrouter.ai/v1/ocr \
-H "Authorization: Bearer $OCRROUTER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "azure/document-intelligence",
"file_url": "https://example.com/invoice.pdf",
"format": "json"
}'