GPT vs Unstructured
Pick GPT for handwritten notes, custom JSON extraction and document question answering, where its reasoning helps. Pick Unstructured for ingesting mixed file types (PDF, HTML, Word, PowerPoint, email) into a RAG pipeline, or when you need open-source self-hosting and bounding boxes. The main split is a general language model you prompt versus a document ETL tool that returns typed elements.
GPTopenai/gpt | Unstructuredunstructured/unstructured | |
|---|---|---|
| Type | Vision model | OCR API |
| Price | 11 credits / page | 20 credits / page |
| Per 1,000 pages | $11.00 | $20.00 |
| Typical speed | 2.4 s / page | 3.0 s / page |
| Best for | Messy scans, custom instructions | Mixed file types into RAG |
| Inputs | PDF, images | PDF, images, DOCX |
| Languages | 50+ languages | Multilingual |
| Max pages per request | 100 | 1,000 |
| Tables | ✓ Yes | ✓ Yes |
| Handwriting | ✓ Yes | No |
| Math | ✓ Yes | No |
| Bounding boxes | No | ✓ Yes |
| Confidence | No | No |
| Forms | No | No |
| Multilingual | ✓ Yes | ✓ Yes |
| On OCRRouter | Available | Available |
Prices are what you pay on OCRRouter. Speed is the provider's typical figure, not a benchmark we ran.
Which to choose
Choose GPT if
- An HN user reported about 5% errors on messy cursive, versus about 30% for Mistral OCR.
- You can prompt it to extract data into your own JSON schema and reason over the document in the same call.
- PDF input sends both extracted text and page images to the model, with files up to 50 MB per request.
Choose Unstructured if
- It handles PDFs, HTML, Word, PowerPoint, emails and images in one library, with many connectors.
- The library is Apache-2.0 and can be self-hosted, and the hosted platform gives 10,000 free pages, then $0.015 per page.
- It returns bounding boxes and typed elements, and its Auto, Fast, High-Res and VLM strategies let you trade speed for quality.
Key differences
| GPT | Unstructured | |
|---|---|---|
| Deployment | Hosted API only | Self-hosted library or hosted API |
| Licence | Proprietary | Apache-2.0 library; proprietary hosted platform |
| Pricing | Token-based per model. PDF page images add input tokens, so cost per page is not fixed. | Library free. Hosted: first 10,000 pages free, then $0.015 per page. |
| Output formats | Markdown, JSON, plain text | JSON, HTML, plain text, bounding boxes |
| Coordinates | No bounding boxes or confidence scores in the standard response | Bounding boxes available |
| Benchmark | GPT-5.2 scored 85.50 on OmniDocBench v1.5, against 90.33 for Gemini 3 Pro in the same paper | Vendor's own table cell content score: 0.426 for the open-source library versus 0.866 hosted |
| Known failure | Not published beyond the cost and coordinate limits above | hi_res tables cut off at edges and drop first letters; table OCR ignores language settings |
Sources
- OpenAI file inputs docs
- OmniDocBench leaderboard
- HN Mistral OCR thread
- Unstructured pricing
- Unstructured GitHub README
- Issue #3262
What each one is
Unstructured
Document ETL for RAG. Partitions many file types into typed elements; open-source library too.
Unstructured detailsTry 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": "openai/gpt","fallbacks": ["unstructured/unstructured"],"file_url": "https://example.com/document.pdf"}Questions
More comparisons
GPT vs ChunkrGPT vs OCR.spaceClaude vs UnstructuredGemini Flash vs UnstructuredGOT-OCR 2.0 vs UnstructuredNanonets-OCR vs UnstructuredOpenOCR vs UnstructuredGPT vs GLM-OCR
GPT alternativesUnstructured alternativesBest OCR models in 2026