OCRRouter

GLM-OCR vs dots.ocr

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 a 0.9B self-hosted model keeps cost low. Pick dots.ocr for multilingual PDFs where you need layout boxes, categories, HTML tables and LaTeX formulas from one self-hosted model. Avoid both for financial tables where every row and decimal must survive: GLM-OCR drops table footer rows and comma decimals, and dots.ocr struggles with complex or very large tables.

GLM-OCRzai/glm-ocrdots.ocrrednote/dots-ocr
TypeOpen sourceOpen source
Price6 credits / page2 credits / page
Per 1,000 pages$6.00$2.00
Typical speed1.3 s / page1.5 s / page
Best forLow-cost general documentsMultilingual document parsing
InputsPDF, imagesPDF, images
Languages100+ languages100+ languages
Max pages per request500500
Tables✓ Yes✓ Yes
HandwritingNoNo
Math✓ Yes✓ Yes
Bounding boxes✓ Yes✓ Yes
Confidence✓ YesNo
FormsNoNo
Multilingual✓ Yes✓ Yes
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 option: the Z.ai API costs $0.03 per million tokens for input and output, and you can also self-host with vLLM, SGLang, Ollama or transformers.
  • You need to pull fields from forms into a user-defined JSON schema, not just transcribe text.
  • You process academic papers or high volumes of PDFs, with a 94.62 OmniDocBench v1.5 score from its model card and 1.86 pages per second on a single replica in the authors' test.

Choose dots.ocr if

  • You want one model that returns layout boxes, categories and text, with tables as HTML and formulas as LaTeX.
  • You need extra output types such as bounding boxes, or SVG from charts and diagrams through the dots.mocr-svg variant.
  • You work with multilingual, mixed table and text business or academic documents and accept self-hosting, where dots.mocr (v1.5) reaches 83.9 on olmOCR-bench.

Key differences

GLM-OCRdots.ocr
How you run itZ.ai API, or self-host with vLLM, SGLang, Ollama or transformersSelf-host only, via vLLM or Hugging Face Transformers
CostAPI at $0.03 per million tokens for input and output; self-hosted is free apart from computeFree, self-hosted; you pay for compute
Model size0.9B3B (1.7B LLM backbone)
Output formatsMarkdown, JSON, plain textJSON, Markdown, HTML, LaTeX, bounding boxes, SVG
LicenceMIT for weights; SDK repo and bundled PP-DocLayoutV3 are Apache-2.0MIT, plus a separate dots.ocr license agreement file in the repository
Benchmarks (authors' own)94.62 on OmniDocBench v1.5; 75.2 on olmOCR-Bench via the API; 29.6 mean on ParseBench (independent)79.1 on olmOCR-bench for dots.ocr; 83.9 for dots.mocr (1.5)
Known failure modesRepeats output unless a stop sequence is set; drops table footer and summary rows; loses comma decimal separators in cropped tables; no aarch64 Linux support; API limit of 100 pages, 50 MB per PDF and 10 MB per imageRuns of ellipses or underscores can cause endless repeats; complex tables and formulas stay difficult; a table above 1000 grid cells raised an error and dropped the page in a Docling issue

Sources

What each one is

GLM-OCR

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

GLM-OCR details

dots.ocr

Single vision model from rednote that does layout detection and content recognition together.

dots.ocr 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": ["rednote/dots-ocr"],"file_url": "https://example.com/document.pdf"}

Questions

More comparisons

GLM-OCR alternativesdots.ocr alternativesBest OCR models in 2026