OCRRouter

Gemini Flash vs Florence-2

Pick Gemini Flash for bulk PDF to Markdown or JSON, mixed-language files and long documents, and accept that you pay per token on a hosted API. Pick Florence-2 for English scene text and short labels that need bounding boxes, on your own hardware under an MIT licence. Florence-2 cannot produce Markdown or tables and fails on CJK and handwriting.

Gemini Flashgoogle/gemini-flashFlorence-2microsoft/florence-2
TypeVision modelOpen source
Price15 credits / page1 credit / page
Per 1,000 pages$15.00$1.00
Typical speed1.6 s / page0.8 s / page
Best forHandwriting and mixed layoutsLightweight OCR with boxes
InputsPDF, imagesimages
Languages100+ languagesEnglish
Max pages per request1,000500
Tables✓ YesNo
Handwriting✓ YesNo
Math✓ YesNo
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 Gemini Flash if

  • Gemini 3 Flash scores 92.62 on OmniDocBench v1.6, close to Gemini 3 Pro at 92.91.
  • It can be prompted to return Markdown, JSON or HTML, so full-page documents and tables convert in one pass.
  • The context window of up to 1M tokens fits long documents in a single request.

Choose Florence-2 if

  • It is MIT licensed and self-hosted, so you pay only for compute and can run it on your own infrastructure.
  • OCR_WITH_REGION returns quadrilateral boxes per text line, which suits scene text and short labels.
  • At 0.23B (base) and 0.77B (large) parameters it is small enough for lightweight edge OCR in English.

Key differences

Gemini FlashFlorence-2
How you run itHosted API (Gemini API or Vertex AI)Self-hosted via Transformers
LicenceProprietaryMIT
PriceGemini 3 Flash Preview: $0.50 per 1M input tokens, $3.00 per 1M output tokens. Batch/Flex: $0.25 input, $1.50 output.Free, you pay for compute
Output formatsMarkdown, JSON, HTML, plain text, driven by the promptPlain text and bounding boxes only. No Markdown, tables or LaTeX.
Model sizeNot published0.23B (base), 0.77B (large)
BenchmarkOmniDocBench v1.6 overall: 92.62 (Gemini 3 Flash, independent)TextCaps CIDEr zero-shot 72.8 and COCO detection mAP 37.5 (large, from the authors). No document benchmark published.
Known failureCost per page varies with page density and output length. No fixed schema or confidence scores.Spelling errors and missing spaces on cursive handwriting and French text. Chinese output is mostly wrong because the vocabulary lacks CJK characters.

Sources

What each one is

Gemini Flash

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

Gemini Flash details

Florence-2

Small Microsoft vision model (0.23B and 0.77B) with OCR and OCR-with-regions tasks that return text with boxes.

Florence-2 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": ["microsoft/florence-2"],"file_url": "https://example.com/document.pdf"}

Questions

More comparisons

Gemini Flash alternativesFlorence-2 alternativesBest OCR models in 2026