OCRRouter

GLM-OCR vs InternVL3.5

Pick GLM-OCR for high-volume PDF to Markdown, academic papers and schema-based field extraction, where a 0.9B model and a $0.03 per million token API keep cost low. Pick InternVL3.5 for self-hosted document question answering, where one family from 1B to 241B-A28B lets you trade accuracy for cost. Do not rely on GLM-OCR for financial tables, since it drops footer rows and loses comma decimals.

GLM-OCRzai/glm-ocrInternVL3.5opengvlab/internvl
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 documentsSelf-hosted document understanding
InputsPDF, imagesimages
Languages100+ languagesMultilingual
Max pages per request500500
Tables✓ Yes✓ Yes
HandwritingNoNo
Math✓ Yes✓ Yes
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 has a hosted Z.ai API at $0.03 per million tokens for input and output, or you can self-host it for free with vLLM, SGLang, Ollama or transformers.
  • It scores 94.62 on OmniDocBench v1.5 per its model card, and the authors measured 1.86 PDF pages per second on a single replica.
  • It can extract fields into a user-defined JSON schema, which suits forms, and it is MIT licensed.

Choose InternVL3.5 if

  • It comes in nine sizes from 1B to 241B, so you can choose the accuracy and cost point that fits your hardware.
  • Models up to 30B run on a single A100, and the MoE variants 20B-A4B and 30B-A3B activate few parameters per token.
  • It is Apache-2.0 licensed and fits document question answering and multimodal pipelines that you host yourself.

Key differences

GLM-OCRInternVL3.5
LicenceMIT for the model weights; the SDK repo is Apache-2.0Apache-2.0
How you run itZ.ai API or self-host with vLLM, SGLang, Ollama or transformersSelf-host only, with Transformers, LMDeploy or vLLM
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.9B1B to 241B-A28B; the 8B variant is 8.5B
OCR benchmarkOmniDocBench v1.5 94.62 and olmOCR-Bench 75.2 (both from the authors); ParseBench mean 29.6 (independent)Not published as text; the model card shows OCR scores only as chart images
Layout and structure outputMarkdown, JSON and plain text, plus extraction into a user-defined JSON schemaPlain text, Markdown and JSON; no bounding boxes or layout output by default
Known failures and limitsRepeated output without a stop sequence (issue #220), dropped table footer rows (#240), lost comma decimals (#241), no aarch64 Linux support (#227); API caps at 100 pages, 50 MB per PDF, 10 MB per imageLargest size needs eight A100 GPUs and the 38B needs two A100s; not suited to CPU-only deployment of larger sizes

Sources

What each one is

GLM-OCR

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

GLM-OCR details

InternVL3.5

Shanghai AI Lab's open vision-language family (1B to 241B, August 2025), strong on OCR and document benchmarks.

InternVL3.5 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": ["opengvlab/internvl"],"file_url": "https://example.com/document.pdf"}

Questions

More comparisons

GLM-OCR alternativesInternVL3.5 alternativesBest OCR models in 2026