OCRRouterGet API key

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

Questions

Other languages