OCRRouterGet API key

Qianfan OCR vs TrOCR

TrOCR is faster; only Qianfan OCR supports tables, math, multilingual.

Qianfan OCRbaidu/qianfan-ocrTrOCRmicrosoft/trocr
TypeOCR APIOpen source
Price1 credit / page1 credit / page
Per 1,000 pages$1.00$1.00
Typical speed2.0 s / page1.2 s / page
Best forChinese documentsHandwritten text lines
InputsPDF, imagesimages
LanguagesChinese, English and moreEnglish
Max pages per request200100
Tables✓ YesNo
Handwriting✓ Yes✓ Yes
Math✓ YesNo
Bounding boxesNoNo
ConfidenceNoNo
FormsNoNo
Multilingual✓ YesNo
On OCRRouterAvailableComing soon

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

What each one is

Qianfan OCR

Baidu's OCR-tuned vision model. Strong on Chinese documents and tables.

Qianfan OCR details

TrOCR

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

TrOCR details

Use one, fall back to the other

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

Questions

More comparisons

Qianfan OCR alternativesTrOCR alternatives