OCRRouter

Florence-2 vs Unstructured

Pick Florence-2 for scene text and short English labels where you need bounding boxes from a 0.23B or 0.77B model, or when the same model must also do detection. Pick Unstructured for ingesting mixed files such as PDFs, Word, PowerPoint, emails and HTML into typed elements for RAG. The main split is scope: Florence-2 returns only text and boxes, while Unstructured partitions whole documents.

Florence-2microsoft/florence-2Unstructuredunstructured/unstructured
TypeOpen sourceOCR API
Price1 credit / page20 credits / page
Per 1,000 pages$1.00$20.00
Typical speed0.8 s / page3.0 s / page
Best forLightweight OCR with boxesMixed file types into RAG
InputsimagesPDF, images, DOCX
LanguagesEnglishMultilingual
Max pages per request5001,000
TablesNo✓ Yes
HandwritingNoNo
MathNoNo
Bounding boxes✓ Yes✓ Yes
ConfidenceNoNo
FormsNoNo
MultilingualNo✓ 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 Florence-2 if

  • It is small (0.23B base, 0.77B large) and MIT licensed, so it fits lightweight edge setups where you pay only for compute.
  • OCR_WITH_REGION returns quadrilateral boxes per text line, which suits scene text and short labels.
  • The same model also does captioning, detection and grounding, so one model can serve a pipeline that needs more than OCR.

Choose Unstructured if

  • It handles PDFs, HTML, Word, PowerPoint, emails and images in one library, so mixed-format ingestion needs one tool.
  • The hosted API gives 10,000 pages free, then $0.015 per page, so you can try it before paying.
  • Its Auto, Fast, High-Res and VLM strategies let you trade speed for quality, and Fast suits born-digital PDFs.

Key differences

Florence-2Unstructured
LicenceMITApache-2.0 for the open-source library; proprietary for the hosted platform
How you run itSelf-hosted via TransformersSelf-hosted library or hosted API
PriceFree, you pay for computeLibrary free; hosted is 10,000 pages free, then $0.015 per page
Output formatsPlain text and bounding boxes; no Markdown, tables or LaTeXJSON, HTML, plain text and bounding boxes
Input typesImages; also used for captioning, detection and groundingPDFs, HTML, Word, PowerPoint, emails and images
TablesNo table structure outputOpen-source table cell content scores 0.426 versus 0.866 hosted; hi_res tables can cut off edges and drop first letters; table OCR ignores language settings
Known failureSpelling errors and missing spaces on cursive handwriting and French text; Chinese output mostly wrong because the vocabulary lacks CJK charactersExtra Tesseract pass on tables adds processing time; the library sends usage telemetry by default

Sources

What each one is

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

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

Questions

More comparisons

Florence-2 alternativesUnstructured alternativesBest OCR models in 2026