OCRRouter

Kraken vs Phi-4-multimodal

Pick Kraken for historical manuscripts, early prints and right-to-left scripts where you can train on your own material and need ALTO or PageXML output. Pick Phi-4-multimodal for English document Q&A on a single modest GPU, where its DocVQA 93.2 and MIT licence fit. The main split is a trainable layout-and-line OCR toolkit versus a general vision-language model that does not return coordinates.

Krakenkraken/krakenPhi-4-multimodalmicrosoft/phi-4-multimodal
TypeOpen sourceVision model
Price1 credit / page2 credits / page
Per 1,000 pages$1.00$2.00
Typical speed1.5 s / page2.5 s / page
Best forHistorical documents and manuscriptsSmall model for OCR and questions
Inputsimagesimages
LanguagesMany scripts, incl. right-to-leftEnglish for vision
Max pages per request500500
TablesNo✓ Yes
Handwriting✓ YesNo
MathNo✓ Yes
Bounding boxes✓ YesNo
ConfidenceNoNo
FormsNoNo
Multilingual✓ YesNo
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 Kraken if

  • Your material is historical manuscripts or early prints, which Kraken is built for.
  • You need Arabic, Hebrew or other right-to-left, BiDi or top-to-bottom scripts.
  • You need ALTO, PageXML or hOCR output with bounding boxes for digital humanities tools.

Choose Phi-4-multimodal if

  • Your documents are in English and you want question answering over them, with a DocVQA score of 93.2 reported by Microsoft.
  • You want an MIT licence and the choice of self-hosting or Azure AI Foundry.
  • Your pipeline mixes audio and images, and you want one model with a 128K token context.

Key differences

KrakenPhi-4-multimodal
LicenceApache-2.0MIT
How you run itPython library via pip on Linux or macOS (x64 or ARM, Python 3.10 to 3.13). No Windows support.5.6B open-weight model, self-hosted or via Azure AI Foundry. Flash attention tested on A100, A6000 and H100; V100 and older need eager attention.
Output formatsALTO, PageXML, hOCR, plain text, bounding boxesPlain text, Markdown, JSON. Not suited to jobs needing coordinates or layout.
Best document typesHistorical manuscripts, early prints, non-Latin scriptsEnglish documents, document Q&A, charts
LanguagesRight-to-left, BiDi and top-to-bottom scripts supportedVision supported for English only; performance drops in non-English languages
BenchmarksNot publishedDocVQA 93.2, OCRBench 84.4, ChartQA 81.4, InfoVQA 72.7 (author-reported)
Known issuesInstall dependency conflict (issue #816); learned line order lost in output (issue #820); usually needs training on your own materialRepetitive or inconsistent output in long chats, per the model card

Sources

What each one is

Kraken

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

Kraken details

Phi-4-multimodal

Microsoft's 5.6B text, vision and audio model (February 2025). Scores 84.4 on OCRBench per its model card.

Phi-4-multimodal 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": "kraken/kraken","fallbacks": ["microsoft/phi-4-multimodal"],"file_url": "https://example.com/document.pdf"}

Questions

More comparisons

Kraken alternativesPhi-4-multimodal alternativesBest OCR models in 2026