OCRRouter

SmolDocling vs Phi-4-multimodal

Pick Phi-4-multimodal for English document Q&A and extraction on a single modern GPU, or if you need an MIT licence. Pick SmolDocling only for cheap experiments that need page conversion with bounding boxes. SmolDocling is a preview that its authors say is replaced by Granite-Docling, so it is a poor fit for production.

SmolDoclinghuggingface/smoldoclingPhi-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 forVery cheap page conversionSmall model for OCR and questions
InputsPDF, imagesimages
LanguagesMainly EnglishEnglish for vision
Max pages per request500500
Tables✓ Yes✓ Yes
HandwritingNoNo
Math✓ Yes✓ Yes
Bounding boxes✓ YesNo
ConfidenceNoNo
FormsNoNo
MultilingualNoNo
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 SmolDocling if

  • You need layout output: DocTags, bounding boxes, HTML, JSON, Markdown and LaTeX from one 256M-parameter model.
  • You want to run page conversion on modest hardware, at about 0.35 seconds per page on an A100 with vLLM.
  • You are experimenting with tiny document VLMs and can accept preview-quality output.

Choose Phi-4-multimodal if

  • You want to ask questions about English documents, where it scores 93.2 on DocVQA.
  • You need a permissive MIT licence for commercial use, with a hosted option on Azure AI Foundry.
  • Your pipeline mixes audio and images, or needs a 128K token context in one model.

Key differences

SmolDoclingPhi-4-multimodal
Size256M parameters5.6B parameters
LicenceApache-2.0 per the model summary (the metadata tag says CDLA-Permissive-2.0)MIT
How you run itSelf-host onlySelf-host, or use Azure AI Foundry
Output formatsDocTags, Markdown, HTML, JSON, LaTeX, bounding boxesPlain text, Markdown, JSON. No coordinates or layout.
OCRBench33884.4
LanguagesEnglish onlyVision supported for English only; performance drops in other languages
Known failureEndless token repetition and missing closing tags; output can loop on some images and make generation very slowRepetitive or inconsistent output in long chats; V100 and older GPUs need the eager attention fallback

Sources

What each one is

SmolDocling

Tiny 256M vision model from Hugging Face and IBM that outputs DocTags. Predecessor of Granite Docling.

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

Questions

More comparisons

SmolDocling alternativesPhi-4-multimodal alternativesBest OCR models in 2026