OCRRouter

Qianfan OCR vs OCRmyPDF

Pick Qianfan OCR when you need structured output from documents: Markdown, JSON, HTML, LaTeX or bounding boxes, including tables, formulas, handwriting and 192 languages. Pick OCRmyPDF when you have scanned PDFs that need a searchable text layer and PDF/A output, and you want it to run on CPU only. The main split is the output: Qianfan OCR parses layout into structured data, while OCRmyPDF only adds a Tesseract text layer to the PDF.

Qianfan OCRbaidu/qianfan-ocrOCRmyPDFocrmypdf/ocrmypdf
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 documentsSearchable PDFs from scans
InputsPDF, imagesPDF, images
LanguagesChinese, English and more100+ languages (via Tesseract)
Max pages per request2001,000
Tables✓ YesNo
Handwriting✓ YesNo
Math✓ YesNo
Bounding boxesNoNo
ConfidenceNoNo
FormsNoNo
Multilingual✓ Yes✓ Yes
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 Markdown, JSON, HTML, LaTeX or bounding boxes, and OCRmyPDF gives only searchable PDF and plain text.
  • Your documents have tables, formulas, handwriting or scene text, or you need key information extraction.
  • You want a published benchmark: 93.12 on OmniDocBench v1.5, reported by the authors.

Choose OCRmyPDF if

  • You need validated searchable PDF/A for archiving, with the OCR layer inserted losslessly where possible.
  • You have no GPU and want a CPU-only tool that runs across all CPU cores.
  • You run an office scanner pipeline and only need the text layer, with 100+ languages via Tesseract language packs.

Key differences

Qianfan OCROCRmyPDF
What it is4B end-to-end document parsing model (Qwen3-4B language model) from Baidu's Qianfan teamCommand-line tool that adds a Tesseract OCR text layer to scanned PDFs
Output formatsMarkdown, JSON, HTML, LaTeX, bounding boxesSearchable PDF/A, plain text
LicenceApache-2.0MPL-2.0
How you run itSelf-hosted weights on Hugging Face, or hosted on the Baidu Qianfan platformRuns locally as a command-line tool
HardwareBenchmarked on one NVIDIA A100 with vLLM; not for CPU-only deploymentCPU only; spreads work across all CPU cores
BenchmarkOmniDocBench v1.5 overall 93.12; olmOCR-Bench 79.8; OCRBench 880 (author-reported)Not published
Known failureThinking mode can emit up to 16,384 tokens, adding latency; 1.024 pages per second on an A100 with W8A8--skip-text with default PDF/A output removes form fields (issue #1790); hangs on PDFs whose forms share one Resources dictionary (issue #1763)

Sources

What each one is

Qianfan OCR

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

Qianfan OCR details

OCRmyPDF

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

OCRmyPDF 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": ["ocrmypdf/ocrmypdf"],"file_url": "https://example.com/document.pdf"}

Questions

More comparisons

Qianfan OCR alternativesOCRmyPDF alternativesBest OCR models in 2026