OCRRouter

Mathpix Convert vs SmolDocling

Pick Mathpix Convert for math-heavy papers and textbooks, where you need LaTeX, DOCX or Markdown from whole PDFs, including handwritten equations. Pick SmolDocling only for English experiments on your own hardware, since it is a free 256M preview model that the authors say is superseded by Granite-Docling. The main split is a paid hosted STEM API against a free self-hosted preview model.

Mathpix Convertmathpix/convertSmolDoclinghuggingface/smoldocling
TypeOCR APIOpen source
Price7 credits / page1 credit / page
Per 1,000 pages$7.00$1.00
Typical speed1.5 s / page1.0 s / page
Best forMath and scientific papersVery cheap page conversion
InputsPDF, imagesPDF, images
Languages30+ languagesMainly English
Max pages per request500500
Tables✓ Yes✓ Yes
Handwriting✓ YesNo
Math✓ Yes✓ Yes
Bounding boxes✓ Yes✓ Yes
Confidence✓ YesNo
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 Mathpix Convert if

  • You convert math, tables and chemistry in papers and textbooks to LaTeX or Markdown.
  • You need DOCX or LaTeX export directly from whole PDFs, or handwritten equations read.
  • You want a hosted API with no GPU to run, at $0.005 per PDF page and $0.002 per image.

Choose SmolDocling if

  • You want to run a tiny 256M-parameter model on modest hardware and pay only for compute.
  • You need Apache-2.0 licensed weights (per the model summary) and output with bounding boxes and DocTags for Docling.
  • You are testing a small document VLM on English pages, at about 0.35 seconds per page on an A100 with vLLM.

Key differences

Mathpix ConvertSmolDocling
How you run itHosted APISelf-hosted, 256M parameters
LicenceProprietaryApache-2.0 per the model summary; the metadata tag says CDLA-Permissive-2.0
PricePDF $0.005 per page (0-1M), $0.0035 above 1M; images $0.002 each; one-time $19.99 API key feeFree; you pay for compute
Output formatsLaTeX, Markdown, DOCX, HTML, JSONDocTags, Markdown, HTML, JSON, LaTeX, bounding boxes
LanguagesNot publishedEnglish only
BenchmarksNo published accuracy benchmark on general OCR leaderboardsTable TEDS 0.82 (FinTabNet 150dpi), full-page OCR F1 0.80, OCRBench 338, all reported by the authors
Known failureImages with more than 12 text rows may be billed at the PDF page rateEndless token repetition, missing closing tags, and output loops on some images (Docling issue #1515)

Sources

What each one is

Mathpix Convert

Specialist for math, science papers and handwritten formulas. Outputs LaTeX.

Mathpix Convert details

SmolDocling

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

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

Questions

More comparisons

Mathpix Convert alternativesSmolDocling alternativesBest OCR models in 2026