OCRRouter

Unlimited OCR vs Kraken

Pick Unlimited OCR for modern long documents such as reports and books that you want as Markdown or text with bounding boxes, for example bulk PDF to text for RAG. Pick Kraken for historical manuscripts, early prints and non-Latin or right-to-left scripts, where you can train layout and recognition on your own material. The main split is document type: Unlimited OCR parses 40+ pages in one pass on a CUDA GPU, while Kraken is a trainable toolkit for archive and digital humanities work.

Unlimited OCRbaidu/unlimited-ocrKrakenkraken/kraken
TypeOpen sourceOpen source
Price2 credits / page1 credit / page
Per 1,000 pages$2.00$1.00
Typical speed1.2 s / page1.5 s / page
Best forBooks and very long documentsHistorical documents and manuscripts
InputsPDF, imagesimages
Languages30+ languagesMany scripts, incl. right-to-left
Max pages per request1,000500
Tables✓ YesNo
HandwritingNo✓ Yes
Math✓ YesNo
Bounding boxes✓ Yes✓ Yes
ConfidenceNoNo
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 is MIT licensed, which allows commercial use with no copyleft, and Baidu Cloud also offers a hosted endpoint.
  • It returns Markdown, plain text and bounding boxes, with block types alongside the text.

Choose Kraken if

  • It is built for historical documents and non-Latin scripts, with right-to-left, BiDi and top-to-bottom support.
  • Layout analysis, reading order and character recognition are all trainable on your own material.
  • It outputs ALTO, PageXML, abbyyXML and hOCR used by digital humanities tools, and a public Zenodo repository holds community-trained models.

Key differences

Unlimited OCRKraken
Best document typesLong reports and books, bulk PDF to text for RAGHistorical manuscripts, early prints, Arabic, Hebrew and other RTL scripts
LicenceMITApache-2.0
How you run itSelf-host with vLLM, SGLang or transformers, or use the hosted endpoint in Baidu CloudPython library installed with pip, run locally
Hardware and OSNVIDIA GPU with CUDA 12.9 or 13.0; version 2 under SGLang runs out of memory on 12 GB GPUsLinux or macOS, x64 or ARM, Python 3.10 to 3.13; no Windows support
Output formatsMarkdown, plain text, bounding boxesALTO, PageXML, hOCR, plain text, bounding boxes
BenchmarksParseBench mean 46.17 (independent); Unlimited OCR 2 scores 84.6 on MPDocBench and 77.1 on MarathonDocBench (authors)Not published
Known failure modesText repetition and looping on some pages, reports of hallucinated text, styling such as bold and italic mostly lost, 32,768 token context capInstall can fail with a dependency conflict, learned line order is lost in segmentation and text output, usually needs training on your own material for good accuracy

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

Kraken

OCR engine for historical documents and manuscripts, with trainable models for unusual scripts.

Kraken 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 20 MB each, 10 files.No file?

Use one, fall back to the other

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

Questions

More comparisons

Unlimited OCR alternativesKraken alternativesBest OCR models in 2026