OCRRouterGet API key

Marker vs TrOCR

TrOCR is cheaper per page; TrOCR is faster; only Marker supports tables, math, bounding boxes, multilingual; only TrOCR supports handwriting.

Markerdatalab/markerTrOCRmicrosoft/trocr
TypeOCR APIOpen source
Price14 credits / page1 credit / page
Per 1,000 pages$14.00$1.00
Typical speed2.5 s / page1.2 s / page
Best forBooks and research papersHandwritten text lines
InputsPDF, images, DOCXimages
Languages90+ languagesEnglish
Max pages per request1,000100
Tables✓ YesNo
HandwritingNo✓ Yes
Math✓ YesNo
Bounding boxes✓ YesNo
ConfidenceNoNo
FormsNoNo
Multilingual✓ YesNo
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

Marker

Hosted version of the open-source Marker and Surya models. Strong on books and papers.

Marker details

TrOCR

Transformer text recognition model. Reads single text lines, including handwriting.

TrOCR details

Use one, fall back to the other

Request body
{
  "model": "datalab/marker",
  "fallbacks": ["microsoft/trocr"],
  "file_url": "https://example.com/document.pdf"
}

Questions

More comparisons

Marker alternativesTrOCR alternatives