Prescription OCR API
Read printed and handwritten prescriptions into drug, dose, frequency and prescriber details.
Result
Your Markdown or JSON shows up here.
What makes prescriptions hard to read
- Doctor handwriting
- Latin abbreviations like bid and prn
- Drug names one letter apart
What you can pull out
prescription fields
{
"patient_name": "Margaret Ellis",
"prescriber": "Dr. S. Mehta",
"date": "2026-11-02",
"medications[]": "name, strength, dose, frequency, quantity",
"refills": "2",
"pharmacy_notes": "Take with food"
}Best models for prescriptions
1Gemini FlashGeneral vision model with strong handwriting and layout understanding at a low price.
google/gemini-flash3 credits / page2GPTGeneral vision model. Good at messy scans and following extraction instructions.openai/gpt11 credits / page3ClaudeGeneral vision model with careful reading of long, dense documents.anthropic/claude14 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"
}'