OCRRouterGet API key

GLM-OCR vs OCRmyPDF

OCRmyPDF is cheaper per page; OCRmyPDF is faster; only GLM-OCR supports tables, math, bounding boxes, confidence.

GLM-OCRzai/glm-ocrOCRmyPDFocrmypdf/ocrmypdf
TypeOpen sourceOpen source
Price2 credits / page1 credit / page
Per 1,000 pages$2.00$1.00
Typical speed1.3 s / page1.0 s / page
Best forLow-cost general documentsSearchable PDFs from scans
InputsPDF, imagesPDF, images
Languages100+ languages100+ languages (via Tesseract)
Max pages per request5001,000
Tables✓ YesNo
HandwritingNoNo
Math✓ YesNo
Bounding boxes✓ YesNo
Confidence✓ YesNo
FormsNoNo
Multilingual✓ Yes✓ Yes
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

OCRmyPDF

Command-line tool that adds a searchable text layer to scanned PDFs, using Tesseract.

OCRmyPDF details

Use one, fall back to the other

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

Questions

More comparisons

GLM-OCR alternativesOCRmyPDF alternatives