OCRRouterGet API key

GLM-OCR vs docTR

DocTR is cheaper per page; docTR is faster; only GLM-OCR supports tables, math, multilingual.

GLM-OCRzai/glm-ocrdocTRmindee/doctr
TypeOpen sourceOpen source
Price2 credits / page1 credits / page
Per 1,000 pages$2.00$1.00
Typical speed1.3 s / page0.9 s / page
Best forLow-cost general documentsWord-level OCR with positions
InputsPDF, imagesPDF, images
Languages100+ languagesMainly Latin scripts
Max pages per request500500
Tables✓ YesNo
HandwritingNoNo
Math✓ YesNo
Bounding boxes✓ Yes✓ Yes
Confidence✓ Yes✓ Yes
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

GLM-OCR

Small open-source OCR model from Z.ai with layout regions. MIT licensed.

GLM-OCR details

docTR

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

docTR details

Use one, fall back to the other

Request body
{
  "model": "zai/glm-ocr",
  "fallbacks": ["mindee/doctr"],
  "file_url": "https://example.com/document.pdf"
}

Questions

More comparisons

GLM-OCR alternativesdocTR alternatives