OCRRouterGet API key

GLM-OCR vs Google Cloud Vision OCR

Google Cloud Vision OCR is faster; only GLM-OCR supports tables, math; only Google Cloud Vision OCR supports handwriting.

GLM-OCRzai/glm-ocrGoogle Cloud Vision OCRgoogle/cloud-vision
TypeOpen sourceOCR API
Price2 credits / page2 credits / page
Per 1,000 pages$2.00$2.00
Typical speed1.3 s / page1.0 s / page
Best forLow-cost general documentsPhotos and simple scans
InputsPDF, imagesPDF, images
Languages100+ languages100+ languages
Max pages per request5002,000
Tables✓ YesNo
HandwritingNo✓ Yes
Math✓ YesNo
Bounding boxes✓ Yes✓ Yes
Confidence✓ Yes✓ Yes
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

Google Cloud Vision OCR

Google Cloud's image OCR with text and document text detection, word boxes and confidence.

Google Cloud Vision OCR details

Use one, fall back to the other

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

Questions

More comparisons

GLM-OCR alternativesGoogle Cloud Vision OCR alternatives