Surya API
Open-source OCR toolkit with line detection, layout analysis, reading order and tables.
- Model ID
- datalab/surya
- Type
- Open source
- Price
- 2 credits / page ($2.00 per 1,000 pages)
- Typical speed
- 1.5 s / page
- Inputs
- PDF, images
- Languages
- 90+ languages
- Max pages per request
- 500
- Output
- Markdown, JSON with positions
- Supports
- TablesBounding boxesMultilingual
curl https://api.ocrrouter.ai/v1/ocr \
-H "Authorization: Bearer $OCRROUTER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "datalab/surya",
"file_url": "https://example.com/invoice.pdf",
"format": "markdown"
}'Surya is not connected yet. The price below is an estimate. You can call the models that are live today with the same request.
Surya speed and reliability
Loading…
Measured on our own traffic over the last 7 days.
Surya pricing
Surya costs 2 credits per page. One dollar buys 1,000 credits, so 1,000 pages cost $2.00. You only pay for pages that return a result.
New accounts get 200 free credits, enough for about 100 pages with this model. See pricing for credit packs.
Similar models
1Unlimited OCROpen-source model from Baidu that reads hundreds of pages in one pass with flat memory use.
baidu/unlimited-ocr2 credits / page2MinerUOpen-source PDF to Markdown pipeline popular for academic and Chinese documents.opendatalab/mineru2 credits / page3dots.ocrSingle vision model from rednote that does layout detection and content recognition together.rednote/dots-ocr2 credits / pageCompare Surya
Surya vs Unlimited OCRSurya vs MinerUSurya vs dots.ocrSurya vs RapidOCRSurya vs Adobe Acrobat OCRSurya vs Amazon Textract