OCRRouter

Marker vs RapidOCR

Pick Marker when you need PDFs turned into Markdown, HTML or JSON, such as books, papers with equations or RAG chunks, and your company is under the weight license limit. Pick RapidOCR when you need plain text and boxes from Chinese or English images on CPU, or need OCR inside a Java, C# or C++ app under a plain Apache-2.0 licence. The main split is output: Marker returns structured documents, RapidOCR returns text lines and coordinates only.

Markerdatalab/markerRapidOCRrapidai/rapidocr
TypeOCR APIOpen source
Price14 credits / page1 credit / page
Per 1,000 pages$14.00$1.00
Typical speed2.5 s / page0.6 s / page
Best forBooks and research papersLightweight OCR on CPU or edge
InputsPDF, images, DOCXimages
Languages90+ languagesChinese, English and more
Max pages per request1,000100
Tables✓ YesNo
HandwritingNoNo
Math✓ YesNo
Bounding boxes✓ Yes✓ Yes
ConfidenceNo✓ Yes
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 Marker if

  • You want PDF to Markdown, HTML, JSON block trees, LaTeX or RAG chunks rather than raw text.
  • You work with books and papers that contain equations.
  • You want a hosted option: Datalab's API includes about 5,000 free pages per month.

Choose RapidOCR if

  • You need free commercial use with no revenue cap, since the code is Apache-2.0 (converted models keep their upstream licenses).
  • You want to embed OCR from Python, C++, Java or C#, with engines such as ONNX Runtime, TensorRT, OpenVINO or MNN.
  • You process Chinese and English screenshots or receipts offline on CPU.

Key differences

MarkerRapidOCR
LicenceCode is Apache-2.0. Model weights use a modified AI Pubs Open Rail-M license, free for research, personal use and startups under $5M.Apache-2.0. Converted models keep their upstream licenses.
Output formatsMarkdown, HTML, JSON, chunks, LaTeX, images.Plain text and bounding boxes.
How you run itLocal on GPU, CPU or Apple Silicon (MPS), or Datalab's hosted API.Local library for Python, C++, Java or C#. CPU through ONNX Runtime by default.
PriceFree self-hosted within the weight license. Hosted API has about 5,000 free pages per month, then paid plans.Free, self-hosted. You pay for compute.
Benchmark83.7 on olmOCR-bench in vllm mode, 66.6 in CPU fast mode. These are Datalab's own numbers.Not published
LanguagesNot publishedChinese and English only by default. Other languages need extra models.
Known failureCommercial use by companies above $5M needs a paid license.16-bit grayscale PNG or TIFF give no text or wrong text. Arabic recognition crashes without a manual fix. Sliced inference crashes on large pages.

Sources

What each one is

Marker

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

Marker details

RapidOCR

PaddleOCR models packaged for ONNX Runtime and other engines. Easy to deploy without Paddle.

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

Questions

More comparisons

Marker alternativesRapidOCR alternativesBest OCR models in 2026