OCRRouter

GLM-OCR vs PaddleOCR (PP-OCR)

Pick GLM-OCR when you need whole documents converted to Markdown or JSON, such as academic papers with formulas or forms with field extraction, and you want a cheap API at $0.03 per million tokens. Pick PaddleOCR (PP-OCR) when you need fast, small, local text detection and recognition for printed Chinese and English, receipts, signs or screenshots, including on CPU, edge devices or in the browser. The main split is output: GLM-OCR returns structured documents, PP-OCR returns text lines and boxes.

GLM-OCRzai/glm-ocrPaddleOCR (PP-OCR)paddle/paddleocr
TypeOpen sourceOpen source
Price6 credits / page1 credit / page
Per 1,000 pages$6.00$1.00
Typical speed1.3 s / page0.7 s / page
Best forLow-cost general documentsFast printed text, Chinese and English
InputsPDF, imagesPDF, images
Languages100+ languages80+ languages
Max pages per request500500
Tables✓ YesNo
HandwritingNoNo
Math✓ YesNo
Bounding boxes✓ Yes✓ Yes
Confidence✓ Yes✓ Yes
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

  • It converts PDFs to Markdown or JSON, and can extract fields into a user-defined JSON schema.
  • It is available as a Z.ai API at $0.03 per million tokens for input and output, or self-hosted with vLLM, SGLang, Ollama or transformers.
  • It scores 94.62 on OmniDocBench v1.5 per its model card, and the authors report 1.86 PDF pages per second on a single replica.

Choose PaddleOCR (PP-OCR) if

  • It is a 34.5M parameter model (PP-OCRv6 medium) that runs on CPU, NVIDIA GPU, Kunlunxin XPU and other accelerators, with a 5.2x CPU speedup using OpenVINO.
  • One PP-OCRv6 model covers 50 languages, including Chinese, English, Japanese and 46 Latin-script languages.
  • It runs in the browser through the official PaddleOCR.js SDK, and in C++ or Python, under Apache-2.0.

Key differences

GLM-OCRPaddleOCR (PP-OCR)
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 transformersLocal only: paddleocr Python package, C++ or PaddleOCR.js in the browser
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.9B parameters34.5M parameters (PP-OCRv6 medium)
OutputMarkdown, JSON, plain textPlain text, bounding boxes, JSON. Tables and formulas need the separate PP-Structure or VL pipelines
BenchmarksOmniDocBench v1.5: 94.62 (authors). ParseBench mean: 29.6 (independent)Not published as a benchmark score. Authors report PP-OCRv6 medium beats PP-OCRv5_server by 4.6% detection and 5.1% recognition
Known failuresRepeated 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 caps at 100 pages, 50 MB per PDF, 10 MB per imagePP-OCRv6 weights contain denormals that make CPU inference 4 to 11x slower; NotImplementedError on PaddleOCR 3.7.0 with PaddlePaddle 3.3.1; training skips the last batch of every epoch on Windows

Sources

What each one is

GLM-OCR

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

GLM-OCR details

PaddleOCR (PP-OCR)

Baidu's classic open-source text detection and recognition pipeline. Light enough to run on CPU.

PaddleOCR (PP-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": ["paddle/paddleocr"],"file_url": "https://example.com/document.pdf"}

Questions

More comparisons

GLM-OCR alternativesPaddleOCR (PP-OCR) alternativesBest OCR models in 2026