OCRRouter

Gemini Flash vs SmolDocling

Pick Gemini Flash for bulk PDF to Markdown or JSON extraction, especially with mixed-language documents. It is a hosted API with a 1M-token context and a 92.62 OmniDocBench v1.6 score for Gemini 3 Flash. Pick SmolDocling only for English experiments on your own hardware. It is a 256M preview model that its authors say to replace with Granite-Docling.

Gemini Flashgoogle/gemini-flashSmolDoclinghuggingface/smoldocling
TypeVision modelOpen source
Price15 credits / page1 credit / page
Per 1,000 pages$15.00$1.00
Typical speed1.6 s / page1.0 s / page
Best forHandwriting and mixed layoutsVery cheap page conversion
InputsPDF, imagesPDF, images
Languages100+ languagesMainly English
Max pages per request1,000500
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 Gemini Flash if

  • Gemini 3 Flash scores 92.62 on OmniDocBench v1.6, an independent benchmark, while SmolDocling has no published score there.
  • You can send long documents in one request because the context window goes up to 1M tokens.
  • It suits mixed-language documents and prompt or schema-driven JSON extraction, while SmolDocling is English only.

Choose SmolDocling if

  • You can self-host it under Apache-2.0 per the model summary, so documents stay on your own machines.
  • It has no per-token fee and runs on modest hardware at 256M parameters, at about 0.35 seconds per page on an A100 with vLLM.
  • It returns DocTags, Markdown, HTML, JSON, LaTeX and bounding boxes, so you get location data without extra prompting.

Key differences

Gemini FlashSmolDocling
How you run itHosted API through Gemini API or Vertex AISelf-hosted, 256M parameters
LicenceProprietaryApache-2.0 per model summary (metadata tag says CDLA-Permissive-2.0)
PriceGemini 3 Flash Preview: $0.50 per 1M input tokens, $3.00 per 1M output tokens; Batch/Flex $0.25 input and $1.50 outputFree, you pay for compute
Output formatsMarkdown, JSON, HTML, plain text, shaped by your prompt with no fixed schemaDocTags, Markdown, HTML, JSON, LaTeX, bounding boxes
Benchmarks92.62 on OmniDocBench v1.6 (Gemini 3 Flash, independent)Table TEDS 0.82 on FinTabNet, full-page OCR F1 0.80, OCRBench 338 (all from the authors)
LanguagesHandles mixed-language documentsEnglish only
Known failureCost per page varies with page density and output length; no confidence scoresEndless token repetition and output loops on some images, which make generation very slow

Sources

What each one is

Gemini Flash

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

Gemini Flash details

SmolDocling

Tiny 256M vision model from Hugging Face and IBM that outputs DocTags. Predecessor of Granite Docling.

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

Questions

More comparisons

Gemini Flash alternativesSmolDocling alternativesBest OCR models in 2026