OCRRouterGet API key

TrOCR vs Google Cloud Vision OCR

TrOCR is cheaper per page; Google Cloud Vision OCR is faster; only Google Cloud Vision OCR supports bounding boxes, confidence, multilingual.

TrOCRmicrosoft/trocrGoogle Cloud Vision OCRgoogle/cloud-vision
TypeOpen sourceOCR API
Price1 credit / page2 credits / page
Per 1,000 pages$1.00$2.00
Typical speed1.2 s / page1.0 s / page
Best forHandwritten text linesPhotos and simple scans
InputsimagesPDF, images
LanguagesEnglish100+ languages
Max pages per request1002,000
TablesNoNo
Handwriting✓ Yes✓ Yes
MathNoNo
Bounding boxesNo✓ Yes
ConfidenceNo✓ Yes
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

TrOCR

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

TrOCR details

Google Cloud Vision OCR

Google Cloud's image OCR with text and document text detection, word boxes and confidence.

Google Cloud Vision OCR details

Use one, fall back to the other

Request body
{
  "model": "microsoft/trocr",
  "fallbacks": ["google/cloud-vision"],
  "file_url": "https://example.com/document.pdf"
}

Questions

More comparisons

TrOCR alternativesGoogle Cloud Vision OCR alternatives