OCRRouter

Qianfan OCR vs GOT-OCR 2.0

Pick Qianfan OCR for self-hosted, multilingual document parsing where you need structured output (Markdown, JSON, HTML, LaTeX, bounding boxes) and a published benchmark score. Pick GOT-OCR 2.0 for a small 580M model that reads formulas, sheet music and chemical structures, or for OCR on a chosen region. Mind the licence split: Qianfan OCR is Apache-2.0, while GOT-OCR 2.0 training data is CC BY-NC 4.0.

Qianfan OCRbaidu/qianfan-ocrGOT-OCR 2.0stepfun/got-ocr-2
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 documentsFormatted text, formulas and charts
InputsPDF, imagesimages
LanguagesChinese, English and moreChinese, English
Max pages per request200100
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

  • It scores 93.12 on OmniDocBench v1.5, 79.8 on olmOCR-Bench and 880 on OCRBench, all reported by its authors.
  • It covers 192 languages, handwriting and scene text, so it suits multilingual document parsing.
  • It outputs JSON, HTML and bounding boxes as well as Markdown and LaTeX, which helps with key information extraction and tables.

Choose GOT-OCR 2.0 if

  • At 580M parameters it is much smaller than the 4B Qianfan OCR.
  • It reads formulas, sheet music and chemical structures, with output formats such as TikZ, SMILES and kern.
  • Region OCR guided by box coordinates or color lets you read one part of a page, and it supports multi-page OCR.

Key differences

Qianfan OCRGOT-OCR 2.0
Size4B parameters (Qwen3-4B language model)580M parameters
LicenceApache-2.0Code Apache-2.0; training data CC BY-NC 4.0
How you run itSelf-host weights from Hugging Face, or use the Baidu Qianfan platformSelf-host only, via Hugging Face Transformers; CUDA 11.8 and PyTorch 2.0.1 per README, CPU users are pointed to a llama.cpp port
Output formatsMarkdown, JSON, HTML, LaTeX, bounding boxesPlain text, Markdown, LaTeX, TikZ, SMILES, kern
BenchmarksOmniDocBench v1.5 93.12, olmOCR-Bench 79.8, OCRBench 880 (authors)Not published
Languages192 languages, plus handwriting and scene textEnglish and Chinese documents
Known failureThinking mode can emit up to 16,384 tokens, adding latency; 1.024 pages per second on an A100 with W8A8Output can loop characters midway (issue #226), invents text on blank images (issue #235), and format mode is much worse than plain OCR mode (issue #317)

Sources

What each one is

Qianfan OCR

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

Qianfan OCR details

GOT-OCR 2.0

Unified OCR model that reads plain text, tables, formulas, sheet music and charts.

GOT-OCR 2.0 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": ["stepfun/got-ocr-2"],"file_url": "https://example.com/document.pdf"}

Questions

More comparisons

Qianfan OCR alternativesGOT-OCR 2.0 alternativesBest OCR models in 2026