OCRRouter

Marker vs GOT-OCR 2.0

Pick Marker when you need to turn PDFs into Markdown, HTML or JSON, especially books and papers with equations, and when you want RAG chunks or a hosted API option. Pick GOT-OCR 2.0 when you need a self-hosted model for formulas, sheet music, chemical structures or region-specific OCR on English and Chinese documents. The main split is the job: Marker is a document converter with several output formats, GOT-OCR 2.0 is a single 580M-parameter model with no published benchmark scores.

Markerdatalab/markerGOT-OCR 2.0stepfun/got-ocr-2
TypeOCR APIOpen source
Price14 credits / page1 credit / page
Per 1,000 pages$14.00$1.00
Typical speed2.5 s / page1.5 s / page
Best forBooks and research papersFormatted text, formulas and charts
InputsPDF, images, DOCXimages
Languages90+ languagesChinese, English
Max pages per request1,000100
Tables✓ Yes✓ Yes
HandwritingNoNo
Math✓ Yes✓ Yes
Bounding boxes✓ Yes✓ 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 Marker if

  • You want PDF to Markdown, HTML, JSON block trees or RAG chunks, and Marker outputs all of them.
  • You need to run on a CPU or Apple Silicon: fast mode uses about 18 MB of ONNX weights and runs at 23.6 pages per second on CPU.
  • You want a hosted option: Datalab sells an API with about 5,000 free pages per month.

Choose GOT-OCR 2.0 if

  • You need to read formulas, sheet music or chemical structures, and it outputs LaTeX, TikZ, SMILES and kern.
  • You want to OCR one region of a page, guided by box coordinates or color.
  • You want a single 580M-parameter model that is in Hugging Face Transformers with batched inference and multi-page OCR.

Key differences

MarkerGOT-OCR 2.0
How you run itSelf-host on GPU, CPU or Apple Silicon, or use Datalab's hosted APISelf-host only; CUDA 11.8 and PyTorch 2.0.1 per the README, with a llama.cpp port for CPU users
LicenceCode Apache-2.0; weights under a modified AI Pubs Open Rail-M license, free for research, personal use and startups under $5MCode Apache-2.0; data CC BY-NC 4.0
PriceFree self-hosted within the weight license, you pay for compute; hosted API has about 5,000 free pages per monthFree self-hosted, you pay for compute
Output formatsMarkdown, HTML, JSON, chunks, LaTeX, imagesPlain text, Markdown, LaTeX, TikZ, SMILES, kern
Benchmarks83.7 on olmOCR-bench in vllm mode and 85.9 on OmniParseBench, both reported by Datalab; CPU fast mode scores 66.6 on olmOCR-benchNot published
LanguagesNot publishedEnglish and Chinese documents
Known failureWeight license blocks commercial use for companies above $5M without a paid licenseIssue #226 reports output looping characters midway; issue #235 reports wrong text on images with no text; issue #317 reports format mode is much worse than plain OCR mode

Sources

What each one is

Marker

Hosted version of the open-source Marker and Surya models. Strong on books and papers.

Marker 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": "datalab/marker","fallbacks": ["stepfun/got-ocr-2"],"file_url": "https://example.com/document.pdf"}

Questions

More comparisons

Marker alternativesGOT-OCR 2.0 alternativesBest OCR models in 2026