GLM-OCR vs SmolDocling
Pick GLM-OCR for high-volume PDF to Markdown, academic papers with formulas and schema-based field extraction, because it has a $0.03 per million token API and a self-host option. Pick SmolDocling only for experiments with a tiny English-only model on modest hardware, since it is a preview release and its authors point users to Granite-Docling. Neither suits financial tables where every row and decimal must survive.
GLM-OCRzai/glm-ocr | SmolDoclinghuggingface/smoldocling | |
|---|---|---|
| Type | Open source | Open source |
| Price | 6 credits / page | 1 credit / page |
| Per 1,000 pages | $6.00 | $1.00 |
| Typical speed | 1.3 s / page | 1.0 s / page |
| Best for | Low-cost general documents | Very cheap page conversion |
| Inputs | PDF, images | PDF, images |
| Languages | 100+ languages | Mainly English |
| Max pages per request | 500 | 500 |
| Tables | ✓ Yes | ✓ Yes |
| Handwriting | No | No |
| Math | ✓ Yes | ✓ Yes |
| Bounding boxes | ✓ Yes | ✓ Yes |
| Confidence | ✓ Yes | No |
| Forms | No | No |
| Multilingual | ✓ Yes | No |
| 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
- You want a hosted API at $0.03 per million tokens for input and output, with the option to self-host under an MIT licence.
- You need to extract fields from forms into a user-defined JSON schema, not just transcribe text.
- You process academic papers with formulas and want Markdown, JSON or plain text out, backed by a 94.62 score on OmniDocBench v1.5 (authors' figure).
Choose SmolDocling if
- You are experimenting with a 256M parameter document model that runs on modest hardware and takes about 0.35 seconds per page on an A100 with vLLM.
- You want DocTags output for Docling, plus Markdown, HTML, JSON, LaTeX and bounding boxes from one model.
- Your pages are English and your budget is low, so a free self-hosted model under Apache-2.0 fits.
Key differences
| GLM-OCR | SmolDocling | |
|---|---|---|
| Size | 0.9B parameters | 256M parameters |
| How you run it | Z.ai API, or self-host with vLLM, SGLang, Ollama or transformers | Self-host only |
| Price | API: $0.03 per million tokens for input and output. Self-hosted: free, you pay for compute | Free, you pay for compute |
| Licence | MIT for the model weights; SDK repo and bundled PP-DocLayoutV3 are Apache-2.0 | Apache-2.0 per the model summary; the metadata tag says CDLA-Permissive-2.0 |
| Output formats | Markdown, JSON, plain text | DocTags, Markdown, HTML, JSON, LaTeX, bounding boxes |
| Languages | Not published | English only |
| Known failures | Repeats output unless a stop sequence is set (issue #220); drops table footer and summary rows (#240); loses comma decimal separators in cropped tables (#241); no aarch64 Linux support (#227); API limits of 100 pages, 50 MB per PDF and 10 MB per image | Endless token repetition and missing closing tags are listed as typical defects; output loops on some images and slows generation (Docling issue #1515); preview release superseded by Granite-Docling |
Sources
- Hugging Face model card
- Z.ai GLM-OCR docs and pricing
- Issue #240 missing table rows
- SmolDocling model card
- Docling issue #1515
- Granite-Docling comparison table
What each one is
SmolDocling
Tiny 256M vision model from Hugging Face and IBM that outputs DocTags. Predecessor of Granite Docling.
SmolDocling detailsTry 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": ["huggingface/smoldocling"],"file_url": "https://example.com/document.pdf"}Questions
More comparisons
GLM-OCR vs MonkeyOCRGLM-OCR vs Granite DoclingUnlimited OCR vs SmolDoclingPaddleOCR-VL vs SmolDoclingSmolDocling vs Adobe Acrobat OCRGLM-OCR vs TesseractSmolDocling vs Google Cloud Vision OCRSmolDocling vs OCR.space
GLM-OCR alternativesSmolDocling alternativesBest OCR models in 2026