How it works
From raw files to checked, structured data in four steps.
-
Upload
Send PDFs, images, or URLs to one endpoint. Multi-page files are split into pages automatically.
-
Read
Each page goes to the model you choose. If a provider fails, it retries on the next.
-
Extract
Pull the fields you need into your own JSON schema, with tables and word coordinates included.
-
Validate
Check totals, dates, and confidence, and flag pages that need a person to review. Files stay in your account, ready to download.
Switch models by changing one string
Every model takes the same request and returns the same response, so moving from Mistral OCR to Tesseract doesn't touch the rest of your code.
provider/model- Use a specific model.
fallback- Models to retry on if the first one fails.
const res = await fetch("https://api.terminalocr.com/v1/ocr", { method: "POST", headers: { Authorization: `Bearer ${process.env.TERMINALOCR_KEY}`, "Content-Type": "application/json", }, body: JSON.stringify({ url: "https://example.com/invoice_0442.pdf", model: "mistral/ocr", fallback: ["google/document-ai", "tesseract/5"], }), }); const page = await res.json(); console.log(page.markdown);
curl https://api.terminalocr.com/v1/ocr \ -H "Authorization: Bearer $TERMINALOCR_KEY" \ -F file=@invoice_0442.pdf \ -F model=mistral/ocr \ -F fallback=google/document-ai,tesseract/5
What comes back, from any model
{ "model": "mistral/ocr", "retries": 0, "pages": 3, "latency_ms": 412, "cost_usd": 0.0032, "markdown": "# Invoice 0442\n\n| Item | Qty | Price |...", "words": [ { "text": "Total", "page": 1, "box": [412, 880, 470, 902] } ] }
Compare models on your own documents Phase 2
Public benchmarks don't tell you how a model reads your invoices. Run an eval on a sample of your files and see accuracy, cost, and speed side by side.
Supplier invoices
240 pages, 18 fields, last run 4 minutes ago
| Model | Field accuracy | Cost of run | Latency |
|---|---|---|---|
| Mistral OCR | 0.0% | $0.25 | 0.4 s |
| Gemini Flash | 0.0% | $0.10 | 2.1 s |
| Document AI OCR | 0.0% | $0.38 | 1.2 s |
| Textract | 0.0% | $0.38 | 1.8 s |
| Tesseract 5 | 0.0% | $0.03 | 0.6 s |
* Demo data for illustration only.
Use your own files
Upload a sample set and mark the correct values once. Every model is scored against the same answers.
See where each model fails
Accuracy is broken down by field, so you can tell a model that misses totals from one that misreads dates.
Catch regressions
Re-run the eval on a schedule and get an alert when a model's accuracy drops after a provider update.
Build workflows in code or on a canvas Phase 3
Chain OCR, confidence checks, and human review into one workflow. Developers write it in YAML, everyone else builds it visually, and both run the same way.
workflow.yaml
name: invoice-intake trigger: api steps: - id: read ocr: models: [mistral/ocr, google/document-ai] - id: check if: read.confidence < 0.9 then: review else: deliver - id: review human_review: assign: [[email protected], [email protected]] in: dashboard # or: api - id: deliver webhook: https://acme.com/hooks/invoices
Write it in YAML
Describe steps, branches, and reviewers in a file that follows the TerminalOCR workflow spec, and keep it in your repo next to your code.
Run it with one call
Post a file to the workflow's endpoint. The result arrives by webhook once every step, including review, is done.
curl https://api.terminalocr.com/v1/runs \ -H "Authorization: Bearer $KEY" \ -F workflow=invoice-intake \ -F file=@invoice_0442.pdf
Pick models per step
Drop in an OCR node and choose which models read the page, with fallbacks in the order you want.
Branch on confidence
Send low-confidence pages down a different path, and let clean ones go straight through.
Human review, your way
Assign teammates to annotate pages and give the final verdict in the dashboard, or hand the review to your own app through our API.
Fine-tune your own OCR model, and we’ll host it Phase 4
Start from an open OCR model and train it on your own labeled pages. It runs on a private endpoint we manage, and you call it like any other model.
- Base model
- olmOCR
- Training pages
- 4,200
- Field accuracy
- 97.2%
- Endpoint
- Private
Validation accuracy by checkpoint
Train on pages you already reviewed
Pages your team corrects in human review become training data, so the model learns from the exact mistakes it used to make.
No GPUs to manage
We train, host, and scale the model. You pay per page, the same way as every other model on TerminalOCR.
Use it everywhere
It gets its own model id, like acme/invoices-v2,
so it works in requests, fallbacks, evals, and workflows with no other changes.
Pricing
One balance for every model.
We're still finalizing the numbers. Pay-as-you-go pricing will be announced at launch.
Volume pricing coming soon
Custom rates, private routing to your own model deployments, and US or EU data residency. Details shared at launch.
Models
One API key and one bill, with every major OCR model behind it.
| Coming soon. The full model line-up will be announced at launch. |
Skip the infrastructure
TerminalOCR handles parsing, models, and scale behind one endpoint.