Automation

Reading documents: when OCR is enough, and when generative AI is worth what it costs

Many pages sent to a large language model read perfectly well with OCR, at a fraction of the cost. Here is how to choose the technique for each document, what 10,000 pages cost at Microsoft’s published rates, and how to send only uncertain values for review.

By Kantara Fofana

Published 11 min read

In short

  • A PDF that already contains its text can be read with no AI and no OCR; a scanned page is read with OCR, at USD 1.50 per 1,000 pages on Azure at the time of writing.
  • An extraction model returns each field of a form or an invoice with a confidence score and its position; a language model on its own returns neither without custom development.
  • Published costs show it: OCR alone costs very little, but extracting an invoice can cost more than a prompt to a small language model, depending on the platform. What decides then is measured accuracy, the confidence score and the control of what is uncertain.
  • A language model is worth what it costs for free text, provided every answer is checked against the source passage.

In March, every document goes to a language model

Picture a 15-person accounting firm at the height of tax season. T4s, RL-1 slips and receipts arrive as PDFs or photos, and each one goes to a language model tasked with extracting the amounts. Most answers are right, but nothing says which ones: the team rereads everything, and every page consumes tokens that a simpler reading would not have cost.

That reflex costs twice. Most of these pages read perfectly well with OCR, at a fraction of the cost. An extraction model costs more per page, sometimes more than a prompt, but it returns a confidence score for every value: you only reread what is uncertain. The right question is not “AI or not” but: which technique, for which document, at what cost, with what control?

Four ways to read a document

  • The text the PDF already contains. A PDF produced by software (a bank statement, an e-invoice) carries its text; a program reads it as is. To find out, try to select a word: if you can only select the whole image, it is an image.
  • OCR, or optical character recognition, turns the image of a page into text. The Read model in Azure Document Intelligence, Microsoft’s document-reading service on Azure, reads print and handwriting, and returns each word with its position and a confidence score.
  • Field extraction returns named values (supplier, date, total, taxes) using a prebuilt model (invoices, receipts, ID documents, bank statements, US tax forms) or a custom one trained on your forms.
  • A language model reads free text and interprets it: it summarizes, classifies, answers, finds a clause. It is billed by the token, a unit that ranges from one character to a word, and it can produce information the source does not contain.

OCR is not the absence of AI: Microsoft describes Azure Document Intelligence as an OCR service built on machine learning. Choosing OCR means choosing the AI that is enough (our article on AI beyond large language models).

Watch out

A PDF “with text” can mislead

A scan made searchable contains the text an OCR engine produced, errors included: the Read model creates this kind of PDF. Treat it as an OCR reading.

Which technique for which document

Microsoft says so itself: its specialized models suit structured documents, where consistency and proven accuracy come first; its generative AI analyzers suit unstructured documents, variable layouts and fields that must be inferred.

Choosing the technique by document (Microsoft’s published Azure costs, in US dollars, as of October 29, 2026)
DocumentTechnique firstAccuracy, according to MicrosoftCost, 1,000 pagesControl
PDF with text: statement, e-invoiceRead the text directlyPrefer text-based PDFs to image-based onesNo reading serviceTo turn it into fields: rules per issuer or an extraction model
Regular scanned form: T4, RL-1OCR and a custom model (template if the layout is fixed, neural if it varies)Template: target at least 80% estimated accuracy, near-perfect for financial and medical records; neural: measure on your own documentsUSD 30Confidence threshold per field, rules
Semi-structured: invoices, receiptsPrebuilt model; a generative analyzer if formats vary widelyHigh accuracy on common, structured documentsUSD 10Confidence per field, totals and taxes recomputed
Free text: contract, letter, medical reportText or OCR, then a language model or a generative analyzerA language model alone returns no confidence score without custom workUSD 1.50 of OCR, plus tokensQuote of the source passage, human validation
HandwritingOCR (handwritten French and English are read)Confidence per word; a clear image gives better resultsUSD 1.50Human review below the threshold
Tables: lab report, financial scheduleLayout model; a custom one for a confidence per cellConfidence per table, row and cell with a custom model onlyUSD 10Column sums checked against the total

For invoices from three regular suppliers, the prebuilt model is enough. For many suppliers with disparate formats, Microsoft recommends starting with a Content Understanding generative analyzer, which also returns a confidence score and the source region: that is where generative AI is worth what it costs.

What 10,000 pages cost

Azure quotes Azure Document Intelligence costs per 1,000 pages, in US and in Canadian dollars (CAD 2.12 per 1,000 OCR pages). Power Platform bills AI Builder in Copilot credits, at USD 0.01 per credit on pay-as-you-go (Microsoft also sells prepaid credits), or in AI Builder credits where a contract still includes them. A language model is billed in input and output tokens. These are Microsoft’s published costs, before discounts, as of October 29, 2026; they change.

For the language model, each page goes as an image to an AI Builder prompt: under Microsoft’s rule, a high-resolution letter-size page comes to about 765 tokens, plus about 1,200 tokens of system instructions. Our assumption: 2,500 tokens per page, more if the model reasons, since reasoning counts as output tokens. Measure your own: the flow returns them.

Reading 10,000 pages: estimate by technique and channel (published costs in US dollars, licences excluded)
TechniqueAzure Document IntelligencePower Platform (Copilot credits, pay-as-you-go)
Text already in the PDFNo per-page costNo credits (Power Automate desktop flow PDF action)
OCRUSD 15USD 10
Prebuilt model: invoices, receiptsUSD 100USD 800
Custom modelUSD 300USD 800
Language model (2,500 tokens per page)By the token, depending on the deployed modelUSD 25 (basic), USD 375 (standard), USD 2,500 (premium)

Getting the text is cheap everywhere; Microsoft steers OCR-only or layout-only work to Content Understanding, which brings together its specialized models and its generative analyzers: USD 1 per 1,000 pages for reading, 5 for layout. The channel weighs as much as the technique: the invoice by prebuilt model costs USD 100 on Azure, 800 in Copilot credits. On Power Platform, a prompt on a basic or standard model costs less than that model; only the premium one costs more. What decides then is measured accuracy and control: the model returns a confidence score and a position per field, the prompt a written answer to check some other way.

Note

Since November 1, 2026

No new or renewed Power Platform licence includes AI Builder credits any more; those in current contracts remain valid until the end of the term, and capacity add-ons already active, until they expire, with no renewal. In Power Apps and Power Automate, AI Builder first uses its own credits, then Copilot credits; with neither, reading stops.

What a confidence score tells you, and what it does not

A confidence score is an estimated probability, between 0 and 1, that the value is right: at 0.95, Microsoft explains, it is likely correct 19 out of 20 times. It is used to decide what is accepted automatically and what goes to human review. In Power Automate, the AI Builder document processing model returns, for each field, the value, its score and its position.

  • Two scores, not one: the confidence of the reading and that of the extraction are separate; Microsoft recommends checking both.
  • Not every field returns one: plan a rule for the others.
  • Announced accuracy does not replace your own measurement: a template model estimates it during training, neural and generative models do not. Measure it on your documents.

Rules that catch what confidence lets through

A high score proves nothing if the amount does not add up. What can be calculated is checked by code (a calculation is not a job for a language model):

  • Totals: the line items add up to the subtotal, and the subtotal plus taxes to the total.
  • Tax numbers: a GST number has 9 digits, the letters RT and 4 digits (123456789 RT 0001); a QST number has 10 digits, the letters TQ and 4 digits. The CRA’s registry and a Revenu Québec interface let you check them.
  • Required details: from 100 dollars, taxes included, the document must show the supplier’s GST and QST numbers to support input tax credits and refunds (our article on invoicing).
  • Dates: an invoice dated after it was received, or a slip from another year, gets flagged.
  • A second source: for slips, the official data, as our article on the 2027 tax season explains.

Then sample: every week, recheck by hand a few randomly drawn documents accepted without review, to know whether your threshold holds.

Where a language model is worth what it costs

A language model is the right tool for text that no template describes: finding the non-compete clause in a 40-page contract, summarizing a medical report, saying whether a lease provides for indexation. Microsoft recommends its generative analyzers for contracts and doctors’ notes.

Its risk is well known: Microsoft describes answers that are inaccurate compared with the source documents. The countermeasure is simple: require the model to quote, word for word, the passage that supports each answer, with its page, and check programmatically that the passage appears in the document. If the quote cannot be found, the answer goes to human review.

The pipeline that combines the techniques

  1. Classify

    A classification model recognizes the type of each document and splits a PDF that contains several.

  2. Get the text

    The native text when the PDF has it, OCR otherwise.

  3. Extract the fields

    A prebuilt or custom model returns the value, confidence and position of each field.

  4. Validate with rules

    Totals, taxes, numbers, dates, a second source.

  5. A language model, for free text

    Clauses, summaries, answers, always with a quote from the source passage.

  6. A person validates what is uncertain

    Below the threshold, if a rule fails or the quote is missing, the page opens on the highlighted value.

  7. Everything is logged

    The document, the model version, the proposed values, their confidence, the decision and who made it.

Each page then costs as little as possible, and only what is uncertain costs human time: the lowest total cost for compliant work, at the expected quality.

Three professions, three mixes

Accounting firm: slips and receipts

One T4 does not always look like another: the CRA says information slips such as the T4 are its most commonly customized forms, and a customized version may print only the boxes that apply. A neural model trained on the variants received handles this better than a single template; Microsoft cites the case of the US W-2. Receipts go through the receipt model; the language model summarizes letters from the CRA.

Law firm: exhibits and clauses

A scanned exhibit first becomes searchable: the Read model produces that PDF at no cost beyond the reading. For a contract, the language model finds and summarizes the termination, liability or non-compete clauses, each quoted with its page; the lawyer validates.

Pharma or CRO: case report forms and lab reports

Paper case report forms and lab reports mix boxes, tables and handwritten notes: OCR, the layout model, a custom model. The ICH E6(R3) guideline, implemented by Health Canada on April 1, 2026, asks that computerized systems, automated checks and calculations included, be validated based on risk: a person validates, and the whole pipeline is validated (AI in clinical trials).

Where the document is read, and what the law requires

Azure Document Intelligence processes the document in the Azure region where you create the resource; the service is available in the Canada Central region, in Toronto, so outside Quebec. It keeps the document and the result for 24 hours after the analysis, then deletes them. On Power Platform, Microsoft states that the language-model service for an environment located in Canada is hosted in the United States: if you allow data movement across regions, your prompts may be processed there; if not, nothing leaves the region, but AI Builder prompts may not work.

In Quebec, under the private-sector privacy act, plugging such a service into client files usually calls for a privacy impact assessment (s. 3.3), and another one, with a written agreement, before communicating personal information outside Quebec (s. 17): see our article on Law 25 and the one on “enterprise” subscriptions. Send only the pages and fields the task needs.

Where to start on Monday

  • Take inventory: documents, pages a month, format.
  • Test your PDFs: those with their own text need no paid reading.
  • Build a ground-truth set: about fifty real documents per type, values checked by hand.
  • Try the cheapest technique that might be enough first, and measure it field by field.
  • Set a confidence threshold per field and write the rules: totals, taxes, numbers, dates.
  • Keep the language model for free text, with a mandatory quote of the source passage.
  • Work out the total cost (pages, credits or tokens, review time), then sample every week.

Frequently asked questions

What confidence threshold should I choose?
No single threshold fits every field. Start strict for anything that touches an amount or an identity, for example by reviewing everything below 0.95, then loosen it only if sampling shows few errors.
Can OCR read handwriting?
Yes. Microsoft’s Read model reads handwriting in a dozen languages, including French and English. It returns a confidence score per word: keep human review for the words below the threshold.
How many examples does it take to train a custom model?
Microsoft says five examples of the same document type are enough to get started. Plan for more if your images are of poor quality, and at least five of each variant, for example digital and scanned PDFs of the same form.
Can documents be read without sending them to the cloud?
Yes, under conditions. For on-premises or disconnected deployment, Microsoft states that Azure Document Intelligence containers are currently its only option. Disconnected access requires an approved request, limited to its strategic customers or partners, and an annual commitment billed upfront: USD 12,960 for the smallest, for reading.

Sources

Every fact in this article links to its official source, consulted on October 29, 2026.

  1. Microsoft LearnWhat is Azure Document Intelligence in Foundry Tools? (opens in a new tab)
  2. Microsoft LearnRead model OCR data extraction (Azure Document Intelligence) (opens in a new tab)
  3. Microsoft LearnLanguage and locale support for Read and Layout document analysis (opens in a new tab)
  4. Microsoft LearnInterpret and improve model accuracy and confidence scores (opens in a new tab)
  5. Microsoft LearnCustom document models (Azure Document Intelligence) (opens in a new tab)
  6. Microsoft LearnChoose the right Azure AI tool for document processing (opens in a new tab)
  7. Microsoft LearnData, privacy, and security for Azure Document Intelligence (opens in a new tab)
  8. Microsoft LearnUse Docker containers in disconnected environments (opens in a new tab)
  9. Microsoft LearnList of Azure regions (opens in a new tab)
  10. Microsoft AzureAzure Retail Prices: Azure Document Intelligence, Canada Central region (opens in a new tab)
  11. Microsoft AzureAzure Retail Prices: Azure Document Intelligence in Canadian dollars, Canada Central region (opens in a new tab)
  12. Microsoft AzureAzure Retail Prices: Content Understanding, Canada Central region (opens in a new tab)
  13. Microsoft LearnAzure Retail Prices REST API overview (opens in a new tab)
  14. Microsoft LearnOverview of licensing (AI Builder) (opens in a new tab)
  15. Microsoft LearnEnd of AI Builder credits (opens in a new tab)
  16. Microsoft LearnPrompt tokens (AI Builder) (opens in a new tab)
  17. Microsoft LearnUse the document processing model in Power Automate (opens in a new tab)
  18. Microsoft LearnPDF actions reference (Power Automate) (opens in a new tab)
  19. Microsoft LearnMove data across regions for Copilots, AI agents, and generative AI features (opens in a new tab)
  20. Microsoft LearnGroundedness detection in Azure AI Content Safety (opens in a new tab)
  21. Canada Revenue AgencyProgram accounts you may need (opens in a new tab)
  22. Canada Revenue AgencyConfirming a GST/HST account number (opens in a new tab)
  23. Canada Revenue AgencyInformation Circular IC97-2: Customized forms (opens in a new tab)
  24. Revenu QuébecApplication Programming Interface (API) Used to Validate a QST Registration Number (opens in a new tab)
  25. Revenu QuébecPreparing Invoices (opens in a new tab)
  26. Health CanadaInternational Council for Harmonisation (ICH): Guidelines (opens in a new tab)
  27. International Council for Harmonisation (ICH)E6(R3) Guideline: Good Clinical Practice (opens in a new tab)
  28. LégisQuébecAct respecting the protection of personal information in the private sector (CQLR, c. P-39.1) (opens in a new tab)

This article provides general information. It is not legal, tax or accounting advice for your situation.

All articles

Keep reading

Your case deserves thirty minutes.

A free consultation to understand your context and tell you, frankly, whether we are the right choice, and where to start.

Book a call