Customs declaration OCR
Extract declarant, HS codes, values, origin and duties from customs declarations and entry summaries such as CBP 7501 and EU SAD forms.
PDF, PNG, JPG, WebP, HEIC. Up to 10 files at onceNo file?
What makes customs declarations hard to read
- Numbered boxes that differ by country
- HTS codes where one wrong digit changes the duty
- Continuation sheets with dozens of lines
Fields coming with document_type
{"form": "CBP 7501","entry_number": "ABC-1234567-8","importer": "Delta Imports LLC","port_of_entry": "2704 Los Angeles","lines[]": "hts_code, description, country_of_origin, enter…","total_entered_value": "182,400.00","total_duty": "6,384.00"}Best models for customs declarations
1Azure Document IntelligenceAzure layout model with tables, selection marks and prebuilt invoice and ID readers.60 credits / page
azure/document-intelligence60 credits / page2Reducto ParseHigh-accuracy parsing for complex financial and legal documents, with citations.20 credits / pagereducto/parse20 credits / page3Gemini FlashGeneral vision model with strong handwriting and layout understanding at a low price.15 credits / pagegoogle/gemini-flash15 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"
}'