OCRRouterGet API key

docTR vs Surya

DocTR is cheaper per page; docTR is faster; only docTR supports confidence; only Surya supports tables, multilingual.

docTRmindee/doctrSuryadatalab/surya
TypeOpen sourceOpen source
Price1 credit / page2 credits / page
Per 1,000 pages$1.00$2.00
Typical speed0.9 s / page1.5 s / page
Best forWord-level OCR with positionsLayout and line-level OCR
InputsPDF, imagesPDF, images
LanguagesMainly Latin scripts90+ languages
Max pages per request500500
TablesNo✓ Yes
HandwritingNoNo
MathNoNo
Bounding boxes✓ Yes✓ Yes
Confidence✓ YesNo
FormsNoNo
MultilingualNo✓ Yes
On OCRRouterComing soonComing soon

Prices are what you pay on OCRRouter. Speed is the provider's typical figure, not a benchmark we ran.

What each one is

docTR

Open-source OCR library from Mindee with separate text detection and recognition models.

docTR details

Surya

Open-source OCR toolkit with line detection, layout analysis, reading order and tables.

Surya details

Use one, fall back to the other

Request body
{
  "model": "mindee/doctr",
  "fallbacks": ["datalab/surya"],
  "file_url": "https://example.com/document.pdf"
}

Questions

More comparisons

docTR alternativesSurya alternatives