OCRRouter

GLM-OCR vs OpenOCR

Pick GLM-OCR for high-volume PDF to Markdown, academic papers with formulas, and schema-based field extraction, where a $0.03 per million token API or self-hosting both work. Pick OpenOCR for lightweight self-hosted parsing of Chinese and English documents under Apache-2.0. The main split is scope: GLM-OCR is a hosted and self-hosted document model with a higher OmniDocBench v1.5 score (94.62 vs 90.57), while OpenOCR is a small self-host-only toolkit limited to two languages.

GLM-OCRzai/glm-ocrOpenOCRfudan/openocr
TypeOpen sourceOpen source
Price6 credits / page1 credit / page
Per 1,000 pages$6.00$1.00
Typical speed1.3 s / page0.5 s / page
Best forLow-cost general documentsLightweight OCR pipeline on CPU
InputsPDF, imagesPDF, images
Languages100+ languagesChinese and English
Max pages per request500500
Tables✓ Yes✓ Yes
HandwritingNoNo
Math✓ Yes✓ Yes
Bounding boxes✓ Yes✓ Yes
Confidence✓ YesNo
FormsNoNo
Multilingual✓ YesNo
On OCRRouterAvailableAvailable

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

Which to choose

Choose GLM-OCR if

  • You want a hosted API at $0.03 per million tokens for input and output, with self-hosting as an option through vLLM, SGLang, Ollama or transformers.
  • You need Markdown or JSON output, including extraction of fields into a user-defined JSON schema from forms.
  • You want the higher OmniDocBench v1.5 score: 94.62 against 90.57 for OpenDoc-0.1B, both reported by their authors.

Choose OpenOCR if

  • You only handle Chinese and English documents and want a 0.1B model that reports 90.57 on OmniDocBench v1.5.
  • You want a plain Apache-2.0 licence and a Python library you run yourself, with ONNX export for deployment.
  • You need LaTeX output for formulas, or bounding boxes, from a model that reads plain text and single or multi-line formulas in one pass.

Key differences

GLM-OCROpenOCR
LicenceMIT for model weights; SDK repo and bundled PP-DocLayoutV3 are Apache-2.0Apache-2.0
How you run itZ.ai API, or self-host with vLLM, SGLang, Ollama or transformersSelf-host only, as a Python library
PriceAPI: $0.03 per million tokens for input and output. Self-hosted: free, you pay for computeFree, self-hosted, you pay for compute
Model size0.9B0.1B (OpenDoc-0.1B and UniRec-0.1B)
Output formatsMarkdown, JSON, plain textPlain text, LaTeX, bounding boxes
OmniDocBench v1.5 overall94.62 (authors); also 29.6 mean on ParseBench (independent)90.57 for OpenDoc-0.1B (authors); no independent replication found
Known failures and limitsRepeats output unless a stop sequence is set; drops table footer rows; loses comma decimal separators; no aarch64 Linux; API caps at 100 pages, 50 MB per PDF, 10 MB per imageChinese and English only; document parsing needs the separate PP-DocLayoutV2 layout model; no published hardware requirements or throughput

Sources

What each one is

GLM-OCR

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

GLM-OCR details

OpenOCR

Fudan's open toolkit for text detection and recognition, formulas, tables and document parsing.

OpenOCR details

Try both on your own file

Run the file once with each model and compare the output.

PDF, PNG, JPG, WebP, HEIC. Up to 20 MB each, 10 files.No file?

Use one, fall back to the other

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

Questions

More comparisons

GLM-OCR alternativesOpenOCR alternativesBest OCR models in 2026