OCRRouterGet API key

GLM-OCR vs Unstructured

GLM-OCR is cheaper per page; GLM-OCR is faster; only GLM-OCR supports math, confidence.

GLM-OCRzai/glm-ocrUnstructuredunstructured/unstructured
TypeOpen sourceOCR API
Price2 credits / page20 credits / page
Per 1,000 pages$2.00$20.00
Typical speed1.3 s / page3.0 s / page
Best forLow-cost general documentsMixed file types into RAG
InputsPDF, imagesPDF, images, DOCX
Languages100+ languagesMultilingual
Max pages per request5001,000
Tables✓ Yes✓ Yes
HandwritingNoNo
Math✓ YesNo
Bounding boxes✓ Yes✓ Yes
Confidence✓ YesNo
FormsNoNo
Multilingual✓ Yes✓ Yes
On OCRRouterAvailableComing soon

Prices are what you pay on OCRRouter. Speed is the provider's typical figure, not a benchmark we ran.

What each one is

GLM-OCR

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

GLM-OCR details

Unstructured

Document ETL for RAG. Partitions many file types into typed elements; open-source library too.

Unstructured details

Use one, fall back to the other

Request body
{
  "model": "zai/glm-ocr",
  "fallbacks": ["unstructured/unstructured"],
  "file_url": "https://example.com/document.pdf"
}

Questions

More comparisons

GLM-OCR alternativesUnstructured alternatives