OCRRouter

GPT vs Marker

Pick GPT when you need to read handwriting, pull data into custom JSON, or answer questions about a document, and you accept per-token billing through a hosted API. Pick Marker when you want to convert PDFs to Markdown on your own hardware, especially books and papers with equations, and your company falls inside the weight license terms.

GPTopenai/gptMarkerdatalab/marker
TypeVision modelOCR API
Price11 credits / page14 credits / page
Per 1,000 pages$11.00$14.00
Typical speed2.4 s / page2.5 s / page
Best forMessy scans, custom instructionsBooks and research papers
InputsPDF, imagesPDF, images, DOCX
Languages50+ languages90+ languages
Max pages per request1001,000
Tables✓ Yes✓ Yes
Handwriting✓ YesNo
Math✓ Yes✓ Yes
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 GPT if

  • It handles handwritten notes: one HN user reported about 5% errors on messy cursive, versus about 30% for Mistral OCR.
  • It can extract into custom JSON and answer questions about a document, because you control the prompt.
  • PDF input sends both extracted text and page images to the model, and files up to 50 MB per request are accepted.

Choose Marker if

  • You can run it locally on GPU, CPU or Apple Silicon, so no page leaves your machine.
  • It is built for books and papers with equations, and it can output LaTeX, HTML, JSON block trees and RAG chunks as well as Markdown.
  • Cost is predictable: free self-hosted (you pay for compute), or about 5,000 free pages per month on the hosted API.

Key differences

GPTMarker
How you run itHosted OpenAI API onlySelf-hosted on GPU, CPU or MPS, or Datalab's hosted API
LicenceProprietaryCode Apache-2.0; weights under a modified AI Pubs Open Rail-M license, free for research, personal use and startups under $5M
PricingToken-based per model; page images add input tokens, so cost per page is not fixedFree self-hosted within the weight license; hosted API has about 5,000 free pages per month
Output formatsMarkdown, JSON, plain textMarkdown, HTML, JSON, chunks, LaTeX, images
BenchmarkGPT-5.2 scored 85.50 on OmniDocBench v1.5 and 86.59 on v1.6, both independent83.7 on olmOCR-bench and 85.9 on OmniParseBench in vllm mode, both reported by Datalab itself
Coordinates and confidenceNo bounding boxes or confidence scores in the standard responseNot published
Known limitNot suited to cheapest bulk OCR or pipelines that need word coordinatesWeight license blocks free commercial use for companies above $5M; CPU fast mode drops to 66.6 on olmOCR-bench

Sources

What each one is

GPT

General vision model. Good at messy scans and following extraction instructions.

GPT details

Marker

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

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

Questions

More comparisons

GPT alternativesMarker alternativesBest OCR models in 2026