OCRRouter

Qianfan OCR vs Unstructured

Pick Qianfan OCR when you want a self-hosted model that parses scans, handwriting and multilingual documents into Markdown, HTML or LaTeX. Pick Unstructured when you need to ingest many file types (PDF, Word, PowerPoint, email, HTML) into a RAG pipeline. The main split is scope: Qianfan OCR is a single 4B document model, while Unstructured is an ingestion library and API that also covers non-image formats.

Qianfan OCRbaidu/qianfan-ocrUnstructuredunstructured/unstructured
TypeOCR APIOCR API
Price2 credits / page20 credits / page
Per 1,000 pages$2.00$20.00
Typical speed2.0 s / page3.0 s / page
Best forChinese documentsMixed file types into RAG
InputsPDF, imagesPDF, images, DOCX
LanguagesChinese, English and moreMultilingual
Max pages per request2001,000
Tables✓ Yes✓ Yes
Handwriting✓ YesNo
Math✓ YesNo
Bounding boxesNo✓ Yes
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

  • It scores 93.12 on OmniDocBench v1.5, the top end-to-end score in Baidu's own table.
  • It covers 192 languages plus handwriting and scene text, while Unstructured table OCR ignores language settings.
  • Its Apache-2.0 weights are free to self-host for commercial use, and it outputs Markdown, JSON, HTML, LaTeX and bounding boxes.

Choose Unstructured if

  • It handles PDFs, HTML, Word, PowerPoint, emails and images in one library, with many connectors.
  • The hosted API gives you 10,000 free pages, then $0.015 per page.
  • Its Fast, Auto, High-Res and VLM strategies let you trade speed for quality, and Fast suits born-digital PDFs.

Key differences

Qianfan OCRUnstructured
What it is4B end-to-end document parsing model from Baidu (Qwen3-4B language model)Document ETL library and hosted platform that splits files into typed elements
LicenceApache-2.0Apache-2.0 for the open-source library; proprietary for the hosted platform
How you run itSelf-host the weights (benchmarked on one A100 with vLLM) or use the Baidu Qianfan platformSelf-host the Python library or call the hosted API
PriceFree self-hosted, you pay for compute; hosted pricing on Qianfan not publishedLibrary free; hosted first 10,000 pages free, then $0.015 per page; Business is custom
Output formatsMarkdown, JSON, HTML, LaTeX, bounding boxesJSON, HTML, plain text, bounding boxes
TablesListed as a good fit for tables and formulasOpen-source table cell content scores 0.426 versus 0.866 hosted (vendor benchmark); hi_res tables can cut off at edges and drop first letters
Known limits1.024 pages per second on an A100 even with W8A8; thinking mode can emit up to 16,384 tokens; not for CPU-only deploymentTable OCR ignores language settings; extra Tesseract pass on tables adds time; library sends usage telemetry by default

Sources

What each one is

Qianfan OCR

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

Qianfan OCR details

Unstructured

Document ETL for RAG. Partitions many file types into typed elements; open-source library too.

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

Questions

More comparisons

Qianfan OCR alternativesUnstructured alternativesBest OCR models in 2026