OCRRouterGet API key

TrOCR vs GOT-OCR 2.0

TrOCR is faster; only TrOCR supports handwriting; only GOT-OCR 2.0 supports tables, math, bounding boxes.

TrOCRmicrosoft/trocrGOT-OCR 2.0stepfun/got-ocr-2
TypeOpen sourceOpen source
Price1 credit / page1 credit / page
Per 1,000 pages$1.00$1.00
Typical speed1.2 s / page1.5 s / page
Best forHandwritten text linesFormatted text, formulas and charts
Inputsimagesimages
LanguagesEnglishChinese, English
Max pages per request100100
TablesNo✓ Yes
Handwriting✓ YesNo
MathNo✓ Yes
Bounding boxesNo✓ Yes
ConfidenceNoNo
FormsNoNo
MultilingualNoNo
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

TrOCR

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

TrOCR details

GOT-OCR 2.0

Unified OCR model that reads plain text, tables, formulas, sheet music and charts.

GOT-OCR 2.0 details

Use one, fall back to the other

Request body
{
  "model": "microsoft/trocr",
  "fallbacks": ["stepfun/got-ocr-2"],
  "file_url": "https://example.com/document.pdf"
}

Questions

More comparisons

TrOCR alternativesGOT-OCR 2.0 alternatives