OCRRouter

Qianfan OCR vs Granite Docling

Pick Qianfan OCR for self-hosted multilingual parsing of scans, handwriting and forms, where it scores 93.12 on OmniDocBench v1.5 and covers 192 languages. Pick Granite Docling for English PDFs with tables, code and equations inside a Docling pipeline, where its 258M size runs on a CPU or small GPU. The main split is size and language coverage: 4B and 192 languages versus 258M and English first.

Qianfan OCRbaidu/qianfan-ocrGranite Doclingibm/granite-docling
TypeOCR APIOpen source
Price2 credits / page1 credit / page
Per 1,000 pages$2.00$1.00
Typical speed2.0 s / page1.5 s / page
Best forChinese documentsSmall-model document conversion
InputsPDF, imagesPDF, images
LanguagesChinese, English and moreEnglish, experimental CJK and Arabic
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 need 192 languages, handwriting and scene text; Granite Docling marks Japanese, Arabic and Chinese as experimental.
  • You want key information extraction plus Markdown, JSON, HTML, LaTeX and bounding boxes from one model.
  • You want a hosted option: it is also offered on the Baidu Qianfan platform, and the weights are Apache-2.0.

Choose Granite Docling if

  • You convert English PDFs with tables, code and equations: table structure TEDS is 0.97 on FinTabNet, code F1 is 0.988 and equation F1 is 0.968.
  • You run on CPU or a small GPU, since the model has only 258M parameters.
  • You already use the Docling library, because the model outputs DocTags built for it.

Key differences

Qianfan OCRGranite Docling
Size4B (Qwen3-4B language model)258M
LicenceApache-2.0Apache-2.0
How you run itSelf-host (benchmarked on one A100 with vLLM) or the Baidu Qianfan platformSelf-host only, typically inside Docling
Output formatsMarkdown, JSON, HTML, LaTeX, bounding boxesDocTags, Markdown, HTML, LaTeX, bounding boxes
Languages192 languages, plus handwriting and scene textEnglish primary; Japanese, Arabic and Chinese experimental
OCRBench880500
Known failureThinking mode can emit up to 16,384 tokens, adding latency; 1.024 pages per second on an A100 with W8A8Repetitive loops on page headings and invoices; exclamation-mark output on GPUs without bfloat16 such as T4 unless run in float32

Sources

What each one is

Qianfan OCR

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

Qianfan OCR details

Granite Docling

Compact IBM vision model that converts pages to DocTags for the Docling pipeline.

Granite Docling 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": ["ibm/granite-docling"],"file_url": "https://example.com/document.pdf"}

Questions

More comparisons

Qianfan OCR alternativesGranite Docling alternativesBest OCR models in 2026