OCRRouter

Qianfan OCR vs SmolDocling

Pick Qianfan OCR for self-hosted parsing of multilingual documents, handwriting, tables and formulas, where it posts 93.12 on OmniDocBench v1.5. Pick SmolDocling only for English page conversion experiments on small hardware, since it is a 256M preview model that its authors say is replaced by Granite-Docling.

Qianfan OCRbaidu/qianfan-ocrSmolDoclinghuggingface/smoldocling
TypeOCR APIOpen source
Price2 credits / page1 credit / page
Per 1,000 pages$2.00$1.00
Typical speed2.0 s / page1.0 s / page
Best forChinese documentsVery cheap page conversion
InputsPDF, imagesPDF, images
LanguagesChinese, English and moreMainly English
Max pages per request200500
Tables✓ Yes✓ Yes
Handwriting✓ YesNo
Math✓ Yes✓ Yes
Bounding boxesNo✓ Yes
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 Qianfan OCR if

  • You have documents in languages other than English, because it covers 192 languages plus handwriting and scene text.
  • You need key information extraction, tables or formulas, with output as Markdown, JSON, HTML, LaTeX or bounding boxes.
  • You want a model with published scores of 93.12 on OmniDocBench v1.5 and 79.8 on olmOCR-Bench, under Apache-2.0 for commercial use.

Choose SmolDocling if

  • You only process English pages and want about 0.35 seconds per page on an A100 with vLLM.
  • You have modest hardware, since the model has only 256M parameters.
  • You want to experiment with a tiny document VLM that outputs DocTags for Docling and also converts to Markdown, HTML and JSON.

Key differences

Qianfan OCRSmolDocling
Size4B parameters (Qwen3-4B language model)256M parameters
Languages192 languages, plus handwriting and scene textEnglish only
OCRBench880338
Speed1.024 pages per second on an A100 with W8A8; thinking mode can emit up to 16,384 tokensAbout 0.35 seconds per page on an A100 with vLLM
How you run itSelf-host the open weights (benchmarked on one A100 with vLLM) or use the Baidu Qianfan platformSelf-host only
LicenceApache-2.0Apache-2.0 per model summary; metadata tag says CDLA-Permissive-2.0
Known failureThinking mode adds latency; not suited to CPU-only deploymentEndless token repetition and missing closing tags; output loops on some images (Docling issue #1515), making generation very slow

Sources

What each one is

Qianfan OCR

Baidu's OCR-tuned vision model. Strong on Chinese documents and tables.

Qianfan OCR 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": "baidu/qianfan-ocr","fallbacks": ["huggingface/smoldocling"],"file_url": "https://example.com/document.pdf"}

Questions

More comparisons

Qianfan OCR alternativesSmolDocling alternativesBest OCR models in 2026