Receipt OCR API
Read crumpled, faded and photographed receipts and get merchant, date, items and totals back as JSON.
نتیجہ
آپ کا Markdown یا JSON یہاں نظر آئے گا۔
What makes receipts hard to read
- Thermal paper that has faded
- Photos taken at an angle or in poor light
- Abbreviated item names
What you can pull out
receipt fields
{
"merchant": "Harbour Cafe",
"date": "2026-11-09",
"items[]": "name, qty, price",
"subtotal": "18.50",
"tax": "1.85",
"tip": "3.00",
"total": "23.35",
"payment_method": "Visa ending 4421"
}Best models for receipts
1Gemini FlashGeneral vision model with strong handwriting and layout understanding at a low price.
google/gemini-flash3 credits / page2Amazon TextractAWS OCR with form key-value pairs, tables and per-word confidence scores.aws/textract6 credits / page3Azure Document IntelligenceAzure layout model with tables, selection marks and prebuilt invoice and ID readers.azure/document-intelligence15 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": "google/gemini-flash",
"file_url": "https://example.com/invoice.pdf",
"format": "json"
}'