OCRRouter

GPT vs Granite Docling

Pick GPT when you need handwriting, custom JSON extraction with reasoning, or document question answering, and you can accept a hosted API with variable per-page cost. Pick Granite Docling for English PDFs with tables, code and equations that you want to convert cheaply on your own CPU or small GPU, with bounding boxes in the output. The main split is hosted and proprietary versus a 258M self-hosted Apache-2.0 model with layout-aware output.

GPTopenai/gptGranite Doclingibm/granite-docling
TypeVision modelOpen source
Price11 credits / page1 credit / page
Per 1,000 pages$11.00$1.00
Typical speed2.4 s / page1.5 s / page
Best forMessy scans, custom instructionsSmall-model document conversion
InputsPDF, imagesPDF, images
Languages50+ languagesEnglish, experimental CJK and Arabic
Max pages per request100500
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 GPT if

  • It handles handwritten notes: an 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, which Granite Docling is not listed for.
  • It takes files up to 50 MB per request through the API, so there is nothing to host or tune.

Choose Granite Docling if

  • It is Apache-2.0 and free to self-host, so you pay only for compute, and at 258M parameters it runs on CPU or a small GPU.
  • Its authors report table structure TEDS of 0.97 on FinTabNet, code recognition F1 of 0.988 and equation F1 of 0.968.
  • It outputs DocTags, Markdown, HTML, LaTeX and bounding boxes, which suits pipelines that need coordinates.

Key differences

GPTGranite Docling
How you run itHosted OpenAI APISelf-hosted, typically inside Docling
LicenceProprietaryApache-2.0
PriceToken-based; page images add input tokens, so cost per page is not fixedFree; you pay for compute
Output formatsMarkdown, JSON, plain text; no bounding boxes or confidence scores in the standard responseDocTags, Markdown, HTML, LaTeX, bounding boxes
BenchmarkGPT-5.2 scored 85.50 on OmniDocBench v1.5 and 86.59 on v1.6; Gemini 3 Pro scored 90.33 on v1.5 in the same paperTable TEDS 0.97 (FinTabNet), full-page OCR F1 0.84, OCRBench 500, all reported by the authors
LanguagesNot publishedEnglish primary; Japanese, Arabic and Chinese are experimental
Known failureCost varies with page images; no word coordinatesRepetitive loops on page headings and invoices; on GPUs without bfloat16 such as T4 it may output only exclamation marks unless run in float32

Sources

What each one is

GPT

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

GPT details

Granite Docling

Compact IBM vision model that converts pages to DocTags for the Docling pipeline.

Granite Docling 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": ["ibm/granite-docling"],"file_url": "https://example.com/document.pdf"}

Questions

More comparisons

GPT alternativesGranite Docling alternativesBest OCR models in 2026