Persian OCR API
Read Persian (Farsi) right-to-left text with the extra letters and zero-width joins it uses.
Result
Your Markdown or JSON shows up here.
What makes Persian hard for OCR
- Zero-width non-joiners inside words
- Persian digits mixed with Western ones
- Nastaliq calligraphic styles
Script: Perso-Arabic script, right to left.
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 Persian 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 / page3Azure Document IntelligenceAzure layout model with tables, selection marks and prebuilt invoice and ID readers.azure/document-intelligence15 credits / page