OCRRouter

OCRmyPDF vs Phi-4-multimodal

Pick OCRmyPDF to make scanned PDF archives searchable and PDF/A compliant, on CPU only. Pick Phi-4-multimodal to answer questions about English documents and to get Markdown or JSON back. The main split is the output: OCRmyPDF returns a searchable PDF or plain text, while Phi-4-multimodal reads the page as an image and returns text you can structure.

OCRmyPDFocrmypdf/ocrmypdfPhi-4-multimodalmicrosoft/phi-4-multimodal
TypeOpen sourceVision model
Price1 credit / page2 credits / page
Per 1,000 pages$1.00$2.00
Typical speed1.0 s / page2.5 s / page
Best forSearchable PDFs from scansSmall model for OCR and questions
InputsPDF, imagesimages
Languages100+ languages (via Tesseract)English for vision
Max pages per request1,000500
TablesNo✓ Yes
HandwritingNoNo
MathNo✓ Yes
Bounding boxesNoNo
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 OCRmyPDF if

  • You need validated searchable PDF/A output for archiving.
  • You have no GPU, since it runs on CPU only and spreads work across all cores.
  • You have scans in many languages, since Tesseract language packs cover 100+ languages.

Choose Phi-4-multimodal if

  • You want Markdown or JSON output, not only a text layer.
  • You do English document Q&A, where Microsoft reports DocVQA 93.2 at 5.6B parameters.
  • Your pipeline mixes audio and images, or you want an Azure AI Foundry option as well as self-hosting.

Key differences

OCRmyPDFPhi-4-multimodal
LicenceMPL-2.0MIT
How you run itCommand-line tool that runs locallySelf-host the weights or use Azure AI Foundry
HardwareCPU only, uses all coresFlash attention, tested on A100, A6000 and H100. V100 and older need eager attention
Output formatsSearchable PDF (PDF/A by default) and plain textPlain text, Markdown and JSON
BenchmarksNot publishedDocVQA 93.2, OCRBench 84.4, ChartQA 81.4, InfoVQA 72.7 (reported by the authors)
Languages100+ via Tesseract language packsVision supported for English only, and performance drops in other languages
Known failureFile size can double or quadruple with --deskew --clean-final (issue #948). --skip-text with default PDF/A output removes form fields (issue #1790). Hangs when forms share one Resources dictionary (issue #1763)Model card warns of repetitive or inconsistent output in long chats

Sources

What each one is

OCRmyPDF

Command-line tool that adds a searchable text layer to scanned PDFs, using Tesseract.

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

Use one, fall back to the other

{"model": "ocrmypdf/ocrmypdf","fallbacks": ["microsoft/phi-4-multimodal"],"file_url": "https://example.com/document.pdf"}

Questions

More comparisons

OCRmyPDF alternativesPhi-4-multimodal alternativesBest OCR models in 2026