OCRRouter取得 API Key

GPT vs Google Document AI

Google Document AI is cheaper per page; Google Document AI is faster; only GPT supports math; only Google Document AI supports forms, bounding boxes, confidence.

GPTopenai/gptGoogle Document AIgoogle/document-ai
TypeVision modelOCR API
Price11 credits / page3 credits / page
Per 1,000 pages$11.00$3.00
Typical speed2.4 s / page1.4 s / page
Best forMessy scans, custom instructionsMultilingual scans
InputsPDF, imagesPDF, images
Languages50+ languages200+ languages
Max pages per request100500
Tables✓ Yes✓ Yes
Handwriting✓ Yes✓ Yes
Math✓ YesNo
Bounding boxesNo✓ Yes
ConfidenceNo✓ Yes
FormsNo✓ Yes
Multilingual✓ Yes✓ Yes
On OCRRouterAvailableAvailable

Prices are what you pay on OCRRouter. Speed is the provider's typical figure, not a benchmark we ran.

What each one is

GPT

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

GPT details

Google Document AI

Google Cloud OCR with layout parsing and specialised processors.

Google Document AI details

Try both on your own file

Run the file once with each model and compare the output.

結果

辨識出的 Markdown 或 JSON 會顯示在這裡。

Use one, fall back to the other

Request body
{
  "model": "openai/gpt",
  "fallbacks": ["google/document-ai"],
  "file_url": "https://example.com/document.pdf"
}

Questions

More comparisons

GPT alternativesGoogle Document AI alternatives