OCRRouter

Gemini Flash vs Unstructured

Pick Gemini Flash for cheap bulk PDF to Markdown or JSON extraction, including mixed-language documents. Pick Unstructured for ingesting many file types (PDF, Word, PowerPoint, email, HTML) into a RAG pipeline, or when you need to self-host. The main split is a prompted hosted model versus a document ETL tool that returns typed elements.

Gemini Flashgoogle/gemini-flashUnstructuredunstructured/unstructured
TypeVision modelOCR API
Price15 credits / page20 credits / page
Per 1,000 pages$15.00$20.00
Typical speed1.6 s / page3.0 s / page
Best forHandwriting and mixed layoutsMixed file types into RAG
InputsPDF, imagesPDF, images, DOCX
Languages100+ languagesMultilingual
Max pages per request1,0001,000
Tables✓ Yes✓ Yes
Handwriting✓ YesNo
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.
  • Its context window of up to 1M tokens fits long documents in one request.
  • At $0.50 per 1M input and $3.00 per 1M output tokens ($0.25 and $1.50 on Batch/Flex), it suits cheap bulk conversion to Markdown or JSON.

Choose Unstructured if

  • It handles PDFs, HTML, Word, PowerPoint, emails and images in one library, with many connectors.
  • The Apache-2.0 library can be self-hosted, and the hosted platform gives 10,000 free pages, then $0.015 per page.
  • Its Auto, Fast, High-Res and VLM strategies let you trade speed for quality, and Fast suits born-digital PDFs.

Key differences

Gemini FlashUnstructured
How you run itHosted API only (Gemini API or Vertex AI); not suited to air-gapped or on-prem useSelf-host the open-source library or use the hosted API
LicenceProprietaryApache-2.0 (open-source library); proprietary (hosted platform)
PricePer token: $0.50 input, $3.00 output per 1M; Batch/Flex $0.25 and $1.50. Cost per page varies with page density and output length.Hosted: first 10,000 pages free, then $0.015 per page. Open-source library is free.
Output formatsMarkdown, JSON, HTML, plain text, shaped by your prompt with no fixed schemaJSON, HTML, plain text, bounding boxes, as typed elements
BenchmarkOmniDocBench v1.6 overall: 92.62 (Gemini 3 Flash, independent)Table cell content: 0.426 open-source vs 0.866 hosted (vendor's own benchmark)
TablesNot publishedhi_res tables can cut off at the edges and drop first letters (issue #3262); an extra Tesseract pass adds processing time (issue #2580)
LanguagesHandles mixed-language documentsTable OCR ignores language settings (issue #1694)

Sources

What each one is

Gemini Flash

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

Gemini Flash details

Unstructured

Document ETL for RAG. Partitions many file types into typed elements; open-source library too.

Unstructured 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": ["unstructured/unstructured"],"file_url": "https://example.com/document.pdf"}

Questions

More comparisons

Gemini Flash alternativesUnstructured alternativesBest OCR models in 2026