OCRRouter

Gemini Flash vs Kraken

Pick Gemini Flash for bulk PDF to Markdown or JSON extraction on modern documents, where a hosted API at $0.50 per 1M input tokens is cheap and fast to adopt. Pick Kraken for historical manuscripts, early prints and right-to-left or non-Latin scripts, where you want a free, trainable, self-hosted tool that outputs ALTO or PageXML.

Gemini Flashgoogle/gemini-flashKrakenkraken/kraken
TypeVision modelOpen source
Price15 credits / page1 credit / page
Per 1,000 pages$15.00$1.00
Typical speed1.6 s / page1.5 s / page
Best forHandwriting and mixed layoutsHistorical documents and manuscripts
InputsPDF, imagesimages
Languages100+ languagesMany scripts, incl. right-to-left
Max pages per request1,000500
Tables✓ YesNo
Handwriting✓ Yes✓ Yes
Math✓ YesNo
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 Gemini Flash if

  • Gemini 3 Flash scores 92.62 on OmniDocBench v1.6, close to Gemini 3 Pro at 92.91, so it handles general documents well without training.
  • A context window of up to 1M tokens fits long documents in one request, and you can prompt it for Markdown, JSON, HTML or plain text.
  • Batch and Flex pricing drops to $0.25 input and $1.50 output per 1M tokens, which suits cheap bulk PDF conversion.

Choose Kraken if

  • It is built for historical documents and non-Latin scripts, with right-to-left, BiDi and top-to-bottom support, so Arabic and Hebrew material is in scope.
  • Layout analysis, reading order and character recognition are all trainable, and a public Zenodo repository holds community-trained models.
  • It is Apache-2.0 licensed and runs locally on Linux or macOS, so you pay only for compute and can work air-gapped.

Key differences

Gemini FlashKraken
How you run itHosted API through the Gemini API or Vertex AIPython library installed with pip on Linux or macOS, x64 or ARM, Python 3.10 to 3.13
LicenceProprietaryApache-2.0
Price$0.50 per 1M input and $3.00 per 1M output tokens for Gemini 3 Flash Preview; $0.25 and $1.50 on Batch/FlexFree, self-hosted (you pay for compute)
Output formatsMarkdown, JSON, HTML, plain text, shaped by your prompt with no fixed schemaALTO, PageXML, hOCR, plain text, bounding boxes
OmniDocBench v1.692.62 overall (Gemini 3 Flash)Not published
Best document typesBulk PDFs and mixed-language documentsHistorical manuscripts, early prints and digital humanities transcription
Known failureCost per page varies with page density and output length; no per-word confidence or coordinates by defaultNo Windows support; install conflict in issue #816; learned line order lost in output in issue #820; usually needs training on your own material

Sources

What each one is

Gemini Flash

General vision model with strong handwriting and layout understanding at a low price.

Gemini Flash details

Kraken

OCR engine for historical documents and manuscripts, with trainable models for unusual scripts.

Kraken 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": "google/gemini-flash","fallbacks": ["kraken/kraken"],"file_url": "https://example.com/document.pdf"}

Questions

More comparisons

Gemini Flash alternativesKraken alternativesBest OCR models in 2026