GLM-OCR vs Typhoon OCR
Pick GLM-OCR for high-volume PDF to Markdown, academic papers with formulas and schema-based field extraction, where the $0.03 per million token API keeps cost low. Pick Typhoon OCR for Thai and Thai-English documents such as government forms and financial reports, where it was built and tested. Do not use GLM-OCR for financial tables where every row and decimal must survive, and do not use Typhoon OCR for languages other than Thai and English.
GLM-OCRzai/glm-ocr | Typhoon OCRtyphoon/typhoon-ocr | |
|---|---|---|
| Type | Open source | Open source |
| Price | 6 credits / page | 2 credits / page |
| Per 1,000 pages | $6.00 | $2.00 |
| Typical speed | 1.3 s / page | 1.8 s / page |
| Best for | Low-cost general documents | Thai documents |
| Inputs | PDF, images | PDF, images |
| Languages | 100+ languages | Thai, English |
| Max pages per request | 500 | 500 |
| Tables | ✓ Yes | ✓ Yes |
| Handwriting | No | No |
| Math | ✓ Yes | No |
| Bounding boxes | ✓ Yes | No |
| Confidence | ✓ Yes | No |
| Forms | No | No |
| Multilingual | ✓ Yes | ✓ Yes |
| On OCRRouter | Available | Available |
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
- The Z.ai API costs $0.03 per million tokens for input and output, and self-hosting is free apart from compute.
- It can extract fields into a user-defined JSON schema, not just transcribe text.
- It scores 94.62 on OmniDocBench v1.5 and ran at 1.86 PDF pages per second on a single replica in the authors' test.
Choose Typhoon OCR if
- It is built for Thai and English, and V2 2B scores 81.3 on MDPBench Thai pages versus 61.3 for its base model.
- V1.5 beat GPT-5 and Gemini 2.5 Pro on Thai government forms with a BLEU of 0.870.
- It outputs tables as HTML with merged cells, equations as LaTeX, and marks checkboxes.
Key differences
| GLM-OCR | Typhoon OCR | |
|---|---|---|
| Languages | Not published | Thai and English only; no other language was evaluated |
| Licence | MIT for model weights; the SDK repo and bundled PP-DocLayoutV3 are Apache-2.0 | Apache-2.0, subject to OpenTyphoon Terms and Conditions |
| Model size | 0.9B | 2B (V2 and V1.5); a 0.8B V2 variant also exists |
| Price | Z.ai API: $0.03 per million tokens for input and output; self-hosted is free | Self-hosted is free; Typhoon API pricing is not published |
| Output formats | Markdown, JSON, plain text | Markdown, HTML, LaTeX |
| Benchmarks (authors' own) | OmniDocBench v1.5: 94.62; olmOCR-Bench: 75.2; ParseBench mean: 29.6 (independent) | olmOCR-bench: 84.7; OmniDocBench v1.6: 90.97; ThaiOCRBench: 59.9 |
| Known failure | Repeats output unless a stop sequence is set, and drops table footer rows and comma decimal separators | V2 can loop until the token limit on dense multi-column pages; key-information extraction scores only 21.0 on ThaiOCRBench |
Sources
- Hugging Face model card
- Z.ai GLM-OCR docs and pricing
- Issue #240 missing table rows
- Typhoon OCR V2 2B model card
- Typhoon OCR technical report
What each one is
Typhoon OCR
Open vision model tuned for Thai and English documents, with Markdown output.
Typhoon OCR detailsTry both on your own file
Run the file once with each model and compare the output.
Use one, fall back to the other
{"model": "zai/glm-ocr","fallbacks": ["typhoon/typhoon-ocr"],"file_url": "https://example.com/document.pdf"}Questions
More comparisons
GLM-OCR alternativesTyphoon OCR alternativesBest OCR models in 2026