Sanskrit OCR API
Read Sanskrit texts in Devanagari, from printed editions to manuscript scans, with conjuncts and diacritics intact.
Result
Your Markdown or JSON shows up here.
What makes Sanskrit hard for OCR
- Long compounds with no spaces between words
- Rare conjuncts and Vedic accent marks
- Manuscripts in older or regional scripts
Script: Devanagari (and other Indic scripts).
Call 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": "markdown"
}'Best models for Sanskrit text
1Gemini FlashGeneral vision model with strong handwriting and layout understanding at a low price.
google/gemini-flash3 credits / page2Google Document AIGoogle Cloud OCR with layout parsing and specialised processors.google/document-ai3 credits / page3GPTGeneral vision model. Good at messy scans and following extraction instructions.openai/gpt11 credits / page