GLM-OCR

OCR Zhipu AI Verified Released Feb 3, 2026
  • In Input modalities: ImagePDF
  • Structured output
  • Open weights

Prices

2 offerings · prices as listed
Z.ai API (opens in a new tab) Official Global · USD GLM-OCR
Conditions/ 1M tokensInputOutput
Standard $0.030$0.030

Prices from Pricing (opens in a new tab) (checked Nov 1, 2026)

Z.ai API (opens in a new tab) Official China · CNY GLM-OCR
Conditions/ 1M tokensInputOutput
Standard ¥0.20¥0.20

Prices from 智谱 BigModel:API 定价 (opens in a new tab) (checked Nov 2, 2026)

Standard: the price a request with no conditions pays (the headline price elsewhere on the site).

Details

File formats
PDF, jpg, png
Output formats
html
Max file size (MB)
50
Licence
MIT License
Model ID

Not stated on Zhipu AI’s pages: context, max output, languages.

Run locally

Weights: zai-org/GLM-OCR
  • Parameters 1.3B
  • Dense
  • Native precision BF16
  • Layers 16
  • KV cache per token 64 KB
  • Config positions 128K (config.json max_position_embeddings)
My hardware GeForce RTX 4090 24 GB · 1008 GB/s · 64 GB DDR5 dual channel · 89.6 GB/s
On your hardware · GeForce RTX 4090
Runs well BF16 (native) (automatic) 8K context 158–237 tok/sOne GPU
WeightsKV cacheOverheadUsable
Needs
≈ 3.5 GB (weights 2.5 (maker’s file) + KV cache 0.5 + overhead 0.5)
Usable
21.6 GB (90% of its memory)
Generation speed
158–237 tok/s
Longest context
128K (the model’s limit)
First token
about 0.04–0.06 s for a 2K prompt
PrecisionWeightsNeeds at 8KOn your hardwareLongest context
BF16 (native)maker’s file2.5 GB≈ 3.5Runs well 158–237 tok/s128K
Q8_01.3 GB≈ 2.3Runs well 259–389 tok/s128K
FP81.2 GB≈ 2.2Runs well 271–406 tok/s128K
Q6_K1.0 GB≈ 2.0Runs well 310–465 tok/s128K
Q5_K_M0.9 GB≈ 1.9Runs well 341–511 tok/s128K
Q5_00.8 GB≈ 1.8Runs well 348–522 tok/s128K
Q4_K_M0.7 GB≈ 1.7Runs well 376–563 tok/s128K
Q4_00.7 GB≈ 1.7Runs well 393–590 tok/s128K
IQ4_XS0.7 GB≈ 1.7Runs well 406–609 tok/s128K
Q3_K_Mquality drops0.6 GB≈ 1.6Runs well 425–638 tok/s128K
IQ3_XXSquality drops0.5 GB≈ 1.5Runs well 483–724 tok/s128K
Q2_Kquality drops0.5 GB≈ 1.5Runs well 488–731 tok/s128K
IQ2_XXSquality drops0.3 GB≈ 1.3Runs well 574–861 tok/s128K

Click a row to choose a precision. “Maker’s file” sizes are the maker’s own files; others are parameters × bits per weight.

Compared with other hardware

Each at the highest precision it runs. Click one for details.

Smallest that runs it (Q4_K_M, 8K): GPU GeForce RTX 3080; unified memory Apple M5 · 16 GB.

Run commands

vLLM
vllm serve zai-org/GLM-OCR --max-model-len 8192
Memory to fine-tune
Full≈ 20.9 GBFits your hardware
LoRA≈ 3.7 GBFits your hardware
QLoRA≈ 1.9 GBFits your hardware

Batch 1, 2,048-token sequences, gradient checkpointing; LoRA and QLoRA train rank-16 adapters on the attention projections.

Estimates; facts from the maker’s Hugging Face repositories, as of 2026-11-06. How it’s estimated

Cited scores

From third-party leaderboards, not measured by us

No cited leaderboard covers OCR models yet. We will cite one when its license allows.

  1. 1 new price on Z.ai API Output $0.030
  2. 1 new price on Z.ai API, China Output ¥0.20

Sources

Zhipu AI’s official policies: data use, privacy, terms →

Zhipu AI · China · z.ai

Snapshots, the same family and other models from this provider