Your whole OCR pipeline, behind one endpoint.

The OCR infra you don't have to build. Turn documents into structured data with any model, by API or on the canvas.

How it works

From raw files to checked, structured data in four steps.

  1. Upload

    Send PDFs, images, or URLs to one endpoint. Multi-page files are split into pages automatically.

  2. Read

    Each page goes to the model you choose. If a provider fails, it retries on the next.

  3. Extract

    Pull the fields you need into your own JSON schema, with tables and word coordinates included.

  4. 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);

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

Eval results for five models on 240 supplier invoice pages
ModelField accuracyCost of runLatency
Mistral OCR 0.0%$0.250.4 s
Gemini Flash 0.0%$0.102.1 s
Document AI OCR 0.0%$0.381.2 s
Textract 0.0%$0.381.8 s
Tesseract 5 0.0%$0.030.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

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.

acme/invoices-v2 Hosted
Base model
olmOCR
Training pages
4,200
Field accuracy
97.2%
Endpoint
Private

Validation accuracy by checkpoint

85%90%95%Base, 81.4%Fine-tuned, 97.2%

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.

Pay as you go
Pricing coming soon

We're still finalizing the numbers. Pay-as-you-go pricing will be announced at launch.

Volume

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.

Available models
OCR model line-up, coming soon
Coming soon. The full model line-up will be announced at launch.

Skip the infrastructure

TerminalOCR handles parsing, models, and scale behind one endpoint.