GLM-OCR
z-ai/glm-ocrVision · 8K context · Nov 2026 · 1 upstreamsupstream上游
GLM-OCR is Z.ai's open-weight 0.9B document OCR model. It reads text, tables and formulas from page images, and extracts structured fields through a JSON schema. AnyRouter routes it through a BYOK host.
Needs your own keyTo use GLM-OCR, add a key from Phala. AnyRouter adds no fee.
- contextngữ cảnh上下文
- 8K
- inputđầu vào输入 / 1M (list)
- $0.03
- outputđầu ra输出 / 1M (list)
- $0.03
- routestuyến路由
- 1
- speed, 24htốc độ, 24h速度,24h
- No data yetChưa có dữ liệu暂无数据
Upstreams
1- 1PhalaBYOKBilled to your key
Compare
Compared with models of similar price and context window.
| GLM-OCR | $0.03 (best) | $0.03 (second best) | 8K (second best) | |
|---|---|---|---|---|
| Xiaomi-OCR-0 | $0.03 (best) | $0.03 (second best) | 8K (second best) | |
| Kev 4B | $0.04 (second best) | $0 (best) | 8K (second best) | |
| Drex v2.0 | $0.06 | $0 (best) | 8K (second best) | |
| GLiNER2.5-Decide | $0.04 (second best) | $0 (best) | 32K (best) |
Quick start
Generate KeyTạo khóa生成密钥curl https://anyrouter.dev/api/v1/chat/completions \
-H "Authorization: Bearer $ANYROUTER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "z-ai/glm-ocr",
"messages": [
{
"role": "user",
"content": "Say hi in 3 words."
}
]
}'Details
- Owner
- Zhipu AI
- Kind
- Vision
- Released
- Nov 2026
- Context
- 8K
- Structured output
- JSON schema
- Capabilities
- Data policy
- Provider retention
- Endpoint
/api/v1/chat/completions
- Parsing invoices, forms and tables from page images
- Extracting typed fields with a JSON schema
- Recognizing formulas in scanned documents
GLM-OCR is Z.ai's open-weight 0.9B document OCR model. It reads text, tables and formulas from page images, and extracts structured fields through a JSON schema. AnyRouter routes it through a BYOK host.
Architecture and licenseKiến trúc và giấy phép架构与许可
- TypeLoại类型
- Dense[1]
- Total parametersTổng tham số总参数
- 0.9B[1]
- Native contextNgữ cảnh gốc原生上下文
- 8,192[1]
- LicenseGiấy phép许可
- MIT · Open weightsTrọng số mở开放权重[1]
Good forPhù hợp với适用场景[1]
- Parsing invoices, forms and tables from page images
- Extracting typed fields with a JSON schema
- Recognizing formulas in scanned documents
StrengthsĐiểm mạnh优势[1]
- Combines a CogViT visual encoder, a token-downsampling connector and a 0.5B GLM decoder for complex document layouts
- Uses multi-token prediction and full-task reinforcement learning for recognition and generalization
- Vendor reports 94.62 on OmniDocBench V1.5, first overall in its results table
- A vendor throughput test measured 1.86 PDF pages and 0.67 images per second at one concurrency
Known limitsGiới hạn đã biết已知局限[1]
- Supports two prompt families only, document parsing and strict-schema information extraction
- Full page parsing needs the GLM-OCR SDK with PP-DocLayoutV3 layout analysis; the model alone handles regions
- The hosted Phala listing exposes an 8,192-token window and one page image per request
API notesGhi chú APIAPI 说明[1]
- Task prompts are Text Recognition, Table Recognition and Formula Recognition
- Information extraction prompts must state a JSON schema; response_format json_schema is supported
- Chat completion requests carry one image and the task prompt, with text returned
Links and versionsLiên kết và phiên bản链接与版本
- AnnouncementBài công bố发布公告
- github.com
- Model cardThẻ mô hình模型卡
- huggingface.co
- PaperBài báo论文
- arxiv.org
- DocsTài liệu文档
- docs.z.ai
SourcesNguồn来源
- [1]GLM-OCR model cardaccessedtruy cập访问于 2026-11-30
Upstreams and pricingUpstream và giá上游与价格
params: frequency_penalty · max_tokens · presence_penalty · response_format · seed · stop · structured_outputs · temperature · top_p
- Chat Completions
/api/v1/chat/completions - Responses
/api/v1/responses - Messages
/api/v1/messages
Share cards2 images


Uptime + latency
—recent checks · all routes
No health checks recorded for this model yet.
24h
No traffic in the last 24h.
Across all upstreams
Loading usage…