OCRRouter

GLM-OCR vs Pixtral

Pick GLM-OCR for new OCR work: high-volume PDF to Markdown, academic papers with formulas, and schema-based field extraction. Pick Pixtral only if you already run on the Mistral API and need question answering over charts and documents, because Mistral marks it deprecated and unmaintained. Do not use either for financial tables where every row and decimal must survive.

GLM-OCRzai/glm-ocrPixtralmistral/pixtral
TypeOpen sourceVision model
Price6 credits / page2 credits / page
Per 1,000 pages$6.00$2.00
Typical speed1.3 s / page3.0 s / page
Best forLow-cost general documentsQuestions about document images
InputsPDF, imagesimages
Languages100+ languagesMultilingual
Max pages per request500500
Tables✓ YesNo
HandwritingNoNo
Math✓ YesNo
Bounding boxes✓ YesNo
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

  • It is a 0.9B model built for OCR, and it scores 94.62 on OmniDocBench v1.5 per its own model card.
  • The Z.ai API costs $0.03 per million tokens for input and output, and the MIT-licensed weights self-host with vLLM, SGLang, Ollama or transformers.
  • It can extract fields into a user-defined JSON schema, so it fits forms as well as plain transcription.

Choose Pixtral if

  • It reports 90.7 ANLS on DocVQA and 81.8 on ChartQA, which suits question answering over documents and charts.
  • Its 128K token context allows many images in one request.
  • It ships as Apache-2.0 open weights and is also available on the Mistral API, which helps if you already have that integration.

Key differences

GLM-OCRPixtral
Model size and type0.9B OCR model: PP-DocLayout-V3 layout analysis plus a GLM decoder12.4B general vision language model: 12B Mistral Nemo decoder plus 400M vision encoder
LicenceMIT for the weights; the SDK repo and the bundled PP-DocLayoutV3 are Apache-2.0Apache-2.0
API price$0.03 per million tokens, input and output$0.15 per million input and output tokens at launch
Maintenance statusActive GitHub issue tracker; no deprecation noticeMistral marks Pixtral 12B as deprecated and no longer maintained
BenchmarksOmniDocBench v1.5 94.62 and olmOCR-Bench 75.2 (authors); ParseBench mean 29.6 (independent)DocVQA 90.7 ANLS, ChartQA 81.8, MMMU 52.5 (authors)
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 supportDoes not always get OCR near correct per a launch thread user; reported accuracy drop on handwriting, small fonts and non-Latin scripts; Q4 quantization degrades small text OCR
LimitsAPI caps input at 100 pages, 50 MB per PDF and 10 MB per image128K token context; page and file size limits Not published

Sources

What each one is

GLM-OCR

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

GLM-OCR details

Pixtral

Mistral's open-weight vision models, Pixtral 12B and Pixtral Large. Mistral's API no longer serves them, so they run self-hosted.

Pixtral 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": ["mistral/pixtral"],"file_url": "https://example.com/document.pdf"}

Questions

More comparisons

GLM-OCR alternativesPixtral alternativesBest OCR models in 2026