---
agent:
  instructions: "Use this search API to find relevant content across this site with keywords or natural-language queries, instead of crawling individual pages. Results are returned in Markdown."
  endpoint: "https://mixpeek.com/.well-known/search?q={query}"
  method: GET
  documentation: "https://mixpeek.com/llms.txt"
---

[Models](/models)/[Text Extraction](/models?category=text_extraction)/zai-org/GLM-OCR

HFOCRMIT

# GLM-OCR

by zai-org

#1 document OCR at 0.9B: MIT licensed, edge-deployable

520Kdl/month

0.9Bparams

[HuggingFace](https://huggingface.co/zai-org/GLM-OCR)[Run it on your own data, free](https://studio.mixpeek.com/namespaces/create?mode=managed&utm_source=homepage&utm_medium=model_page&utm_campaign=mvs_onramp)

Identifiers

Model ID

`zai-org/GLM-OCR`

## Deploy GLM-OCR

Single-tenant

Mixpeek has no managed extractor for this model. On a single-tenant deployment you upload the weights and a custom plugin serves them next to the rest of your pipeline.

[Read the customer-hosted guide](https://mixpeek.com/docs/customer-hosted/overview) [Talk to us about single-tenant](/demo)

## Overview

GLM-OCR is a tiny (0.9B parameter) multimodal OCR model built on the GLM-V encoder-decoder architecture. Despite its small size, it ranks #1 on OmniDocBench V1.5 (94.62 overall score), outperforming models 10x its size on complex document understanding tasks including tables, formulas, handwriting, and multi-column layouts.

Its MIT license and sub-1B parameter count make it ideal for edge deployment, serverless functions, and cost-sensitive pipelines. On Mixpeek, GLM-OCR powers document text extraction for PDFs, scanned images, and screenshots where high accuracy matters more than raw throughput.

## Architecture

GLM-V encoder-decoder with vision encoder (ViT variant) and autoregressive text decoder. 0.9B total parameters. Processes document images at native resolution with adaptive tiling for multi-page documents.

## Mixpeek SDK Integration

IngestRetrieve

// No extractor parameter takes a Hugging Face model id (checked against
// GET /v1/discovery/extractors, which returns 13), so GLM-OCR runs
// on your side and the output is upserted through POST
// /v1/namespaces/{namespace\_id}/documents/upsert. On Enterprise the other
// path is to upload the weights instead: POST /v1/namespaces/{id}/models
// accepts the huggingface format and a custom plugin loads them.
const res = await fetch(
  "https://api.mixpeek.com/v1/namespaces/ns\_your\_namespace/documents/upsert",
  {
    method: "POST",
    headers: {
      Authorization: "Bearer API\_KEY",
      "Content-Type": "application/json",
    },
    body: JSON.stringify({
      collection\_id: "col\_your\_collection",
      documents: \[
        {
          document\_id: "asset-00412",
          // The model produces text, so it lands in payload. Give the
          // collection a text vector index and embed that text to make it
          // searchable rather than only filterable.
          payload: { extracted\_text: modelOutput, source\_key: "archive/2026/asset-00412" },
          vectors: { "text-embedding": embeddingOfModelOutput },
        },
      \],
    }),
  },
);

// Managed alternative, if this exact model is not the requirement:
// universal\_extractor@v1 runs google/gemini-embedding-2
// (3072-d) over a bucket, with no inference of your own.

## Capabilities

*   #1 on OmniDocBench V1.5 (94.62 overall)
*   Tables, formulas, handwriting, multi-column layout support
*   Only 0.9B parameters: runs on edge devices and serverless
*   MIT license for unrestricted commercial use

## Use Cases on Mixpeek

Document digitization pipelines for scanned archives

Edge OCR for mobile document capture and processing

Cost-efficient text extraction at scale in serverless environments

High-accuracy table and formula extraction from academic papers

## Benchmarks

Dataset

Metric

Score

Source

OmniDocBench V1.5 (overall)

Score

94.62

ZAI, 2026: Model Card

## Performance

Input SizeVariable resolution (adaptive tiling)

GPU Latency~530ms / page (A100)

GPU Throughput~1.86 pages/sec (A100)

GPU Memory~2.1 GB

## Common Pipeline Companions

[

Qwen/Qwen3-Embedding-8B

Embed extracted text for semantic search

](/model/Qwen/Qwen3-Embedding-8B)[

microsoft/layoutlmv3-base

Document structure analysis

](/model/microsoft/layoutlmv3-base)

## Explore on Mixpeek

[

More Text Extraction models

Compare alternatives in this category

](/models?category=text_extraction)[

Best Document AI Platforms

Hand-picked tools & platforms compared

](/curated-lists/best-document-ai-platforms)[

OCR & Document AI Internals

Deep-dive technical guide

](/guides/ocr-document-ai-internals)[

Feature Extractors

See how Mixpeek runs models as extractors

](/extractors)[

Mixpeek Vector Store

Store & search embeddings at scale

](/mvs)[

Pricing

Usage-based pricing for pipelines

](/pricing)[

All Curated Lists

Compare models, APIs & infrastructure

](/curated-lists)

### Specification

FrameworkHF

Organizationzai-org

FeatureOCR

Outputtext + bbox

Modalitiesvideo, image, document

RetrieverText-in-Image

Parameters0.9B

LicenseMIT

Downloads/mo520K

[

### Research Paper

GLM-OCR: A Compact Multimodal OCR Model

arxiv.org](https://huggingface.co/zai-org/GLM-OCR)

### Build a pipeline with GLM-OCR

Add this model to a processing pipeline alongside other extractors. Combine with retrieval stages for end-to-end search.

[Run it on your own data, free](https://studio.mixpeek.com/namespaces/create?mode=managed&utm_source=homepage&utm_medium=model_page&utm_campaign=mvs_onramp)

### Alternative Models

[

microsoft/trocr-large-printed

OCR

](/model/microsoft/trocr-large-printed)[

PaddlePaddle/paddleocr

OCR

](/model/PaddlePaddle/paddleocr)[

lightonai/LightOnOCR-2-1B

OCR

](/model/lightonai/LightOnOCR-2-1B)[

deepseek-ai/DeepSeek-OCR-2

OCR

](/model/deepseek-ai/DeepSeek-OCR-2)

### Related in Text Extraction

[

microsoft/codebert-base

Code Extraction

](/model/microsoft/codebert-base)[

Salesforce/codet5p-110m-embedding

Code Extraction

](/model/Salesforce/codet5p-110m-embedding)[

nomic-ai/nomic-embed-code

Code Extraction

](/model/nomic-ai/nomic-embed-code)[

Salesforce/SFR-Embedding-Code-2B\_R

Code Extraction

](/model/Salesforce/SFR-Embedding-Code-2B_R)