OCRRouter

Unlimited OCR vs Tesseract.js

Pick Unlimited OCR to parse long multi-page documents such as reports and books into Markdown with bounding boxes, if you have an NVIDIA GPU. Pick Tesseract.js for simple printed text in common languages that must be read inside the browser or Node.js with no upload and no GPU. The main split is a self-hosted 3B document parser versus a client-side library with no PDF input.

Unlimited OCRbaidu/unlimited-ocrTesseract.jstesseract/tesseract-js
TypeOpen sourceOpen source
Price2 credits / page1 credit / page
Per 1,000 pages$2.00$1.00
Typical speed1.2 s / page2.0 s / page
Best forBooks and very long documentsOCR in the browser
InputsPDF, imagesimages
Languages30+ languages100+ languages
Max pages per request1,000500
Tables✓ YesNo
HandwritingNoNo
Math✓ YesNo
Bounding boxes✓ Yes✓ Yes
ConfidenceNo✓ Yes
FormsNoNo
Multilingual✓ Yes✓ Yes
On OCRRouterAvailableAvailable

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

Which to choose

Choose Unlimited OCR if

  • It parses 40+ pages in a single forward pass with roughly constant memory, so long reports and books go through in one request.
  • It outputs Markdown, plain text and bounding boxes, which suits bulk PDF to text for RAG and layout-aware extraction.
  • Unlimited OCR 2 scores 77.1 on MarathonDocBench versus 33.7 for the next model, per Baidu.

Choose Tesseract.js if

  • It runs fully client side in the browser, so images never leave the user's device.
  • It supports more than 100 languages through Tesseract traineddata files and installs from npm, ESM or a CDN script tag.
  • It needs no GPU, and the library is free to run on the user's device or your server.

Key differences

Unlimited OCRTesseract.js
How you run itSelf-host with vLLM, SGLang or transformers on an NVIDIA GPU with CUDA 12.9 or 13.0; also hosted in Baidu CloudJavaScript and WebAssembly library that runs in the browser or Node.js
LicenceMITApache-2.0
PriceFree self-hosted (you pay for compute); hosted endpoint in Baidu Cloud's OCR productFree, runs on the user's device or your server
Input and outputMulti-page documents; outputs Markdown, plain text and bounding boxesDoes not accept PDF files (the README points to Scribe.js); outputs plain text, hOCR and bounding boxes
BenchmarksParseBench mean 46.17 (independent); Unlimited OCR 2 scores 84.6 on MPDocBench and 77.1 on MarathonDocBench (authors)Not published
Hardware limitsVersion 2 under SGLang runs out of memory on 12 GB GPUs; not for CPU-only machinesNo GPU needed; one Electron user measured about 15 s per page versus 1.5 s with the Tesseract CLI
Known failuresText repetition and looping (issue #55), hallucinated text (issue #58), and formatting score of 0.97 on ParseBench, so bold and italic are mostly lostLower accuracy than the native Tesseract CLI on the same image (issue #251); fails on screen resolution text unless images are upscaled

Sources

What each one is

Unlimited OCR

Open-source model from Baidu that reads hundreds of pages in one pass with flat memory use.

Unlimited OCR details

Tesseract.js

Tesseract compiled to JavaScript and WebAssembly, so OCR runs in the browser or in Node.js.

Tesseract.js details

Try both on your own file

Run the file once with each model and compare the output.

PDF, PNG, JPG, WebP, HEIC. Up to 10 files at onceNo file?

Use one, fall back to the other

{"model": "baidu/unlimited-ocr","fallbacks": ["tesseract/tesseract-js"],"file_url": "https://example.com/document.pdf"}

Questions

More comparisons

Unlimited OCR alternativesTesseract.js alternativesBest OCR models in 2026