Surya vs Google Cloud Vision OCR
Pick Surya if you need layout, reading order and HTML tables from clean documents, and you want to run the model yourself on a GPU, a laptop or Apple Silicon. Pick Google Cloud Vision OCR if you need plain text from photos, handwritten notes or very large volumes without running any infrastructure. The main split is structure versus simplicity: Surya returns layout and tables but needs its own inference server, while Cloud Vision returns only text and boxes and has no layout or table structure.
Suryadatalab/surya | Google Cloud Vision OCRgoogle/cloud-vision | |
|---|---|---|
| Type | Open source | OCR API |
| Price | 2 credits / page | 2 credits / page |
| Per 1,000 pages | $2.00 | $2.00 |
| Typical speed | 1.5 s / page | 1.0 s / page |
| Best for | Layout and line-level OCR | Photos and simple scans |
| Inputs | PDF, images | PDF, images |
| Languages | 90+ languages | 100+ languages |
| Max pages per request | 500 | 2,000 |
| Tables | ✓ Yes | No |
| Handwriting | No | ✓ Yes |
| Math | No | No |
| Bounding boxes | ✓ Yes | ✓ Yes |
| Confidence | No | ✓ Yes |
| Forms | No | No |
| Multilingual | ✓ Yes | ✓ Yes |
| On OCRRouter | Available | Available |
Prices are what you pay on OCRRouter. Speed is the provider's typical figure, not a benchmark we ran.
Which to choose
Choose Surya if
- You get layout labels, reading order, OCR, HTML tables and KaTeX math with per-block bounding boxes from one model.
- You can run it locally on an NVIDIA GPU with vLLM, or on CPU and Apple Silicon with llama.cpp at about 4-6 GB of peak RAM on an M4 Max.
- The code is Apache-2.0 and there is no per-page fee, so you only pay for compute, as long as you stay under the $5M funding or revenue limit.
Choose Google Cloud Vision OCR if
- It handles photos of signs and labels with TEXT_DETECTION, and handwriting with DOCUMENT_TEXT_DETECTION and language hints.
- There is nothing to host: you call a REST API or client library, and the first 1,000 units per month are free per feature.
- Price falls to $0.60 per 1,000 units above 5M, and async batch takes up to 2,000 image files per request.
Key differences
| Surya | Google Cloud Vision OCR | |
|---|---|---|
| How you run it | Self-hosted. A lightweight client talks to a vLLM or llama.cpp inference server you run yourself. | Hosted API on Google Cloud, called over REST or client libraries. Billing must be enabled even for the free tier. |
| Licence | Code Apache-2.0. Weights under a modified AI Pubs Open Rail-M licence, free for research, personal use and companies under $5M funding or revenue. | Proprietary. |
| Price | Free to self-host. You pay for compute. A commercial licence is needed above $5M revenue or funding. | First 1,000 units per month free, then $1.50 per 1,000 units up to 5M, then $0.60 per 1,000. Each PDF page is one unit. |
| Layout and tables | Returns layout labels, reading order and HTML tables. Surya 2.5 table output lacks row and column geometry, and multilingual tables score only 58.1. | No table or layout structure. Google points to Document AI for forms and tables. |
| Output formats | JSON, HTML, LaTeX, bounding boxes and plain text. | JSON, plain text and bounding boxes. No Markdown output, so you rebuild reading order yourself. |
| Handwriting and photos | Not suited to handwriting or scene text in photos. Hard documents with handwriting are better sent to the hosted Datalab API. | Handwriting is supported via DOCUMENT_TEXT_DETECTION and language hints. TEXT_DETECTION covers photos. |
| Benchmarks and languages | 83.7% on olmOCR-bench (Surya 2.5, authors' figure). Covers 90+ languages, with a 74.9% pass rate across 91 languages and 21 of 91 reaching 90%. | Not published |
Sources
What each one is
Surya
Open-source OCR toolkit with line detection, layout analysis, reading order and tables.
Surya detailsGoogle Cloud Vision OCR
Google Cloud's image OCR with text and document text detection, word boxes and confidence.
Google Cloud Vision OCR detailsTry both on your own file
Run the file once with each model and compare the output.
Use one, fall back to the other
{"model": "datalab/surya","fallbacks": ["google/cloud-vision"],"file_url": "https://example.com/document.pdf"}Questions
More comparisons
Surya alternativesGoogle Cloud Vision OCR alternativesBest OCR models in 2026