// Verified from vendor docs, July 22, 2026

OCR API Data Retention: Does AWS Textract, Azure or Google Store and Train on Your Documents?

All three hyperscalers charge exactly $1.50 per 1,000 pages for basic OCR. They give three completely different answers to what happens to the document afterwards. Here is every retention, residency and model-training policy in one table, quoted from the vendors' own documentation.

  • How long each vendor keeps a page
  • Whether it trains on your files
  • Which controls ship switched off
  • The five questions to ask in writing
Upload a document, no signup

PDF, JPG, PNG, BMP, HEIC, TIFF

Upload a document to extract

Try it on a document you would actually send. Use a redacted sample if the real one is sensitive.

SOC 2 Type II
256-bit encryption
US data handling
Fields, not just text
$1.50
the identical rate all three charge
24 hours
how long Azure keeps the result
1 of 3
vendors that rule out training on the product doc
Off
the default state of the AWS opt-out
// The short answer

What happens to a document after the API returns

Google Document AI does not persist online requests to disk at all and states that it never uses customer data to train its models. Azure AI Document Intelligence stores the data and results temporarily in the same region and deletes them 24 hours after the analyze request, with an API to purge sooner. AWS may store customer content for service improvement, model training included, possibly in a region other than the one you called, unless you set an AWS Organizations opt-out policy that is switched off by default. Three vendors, one price, three different defaults.

This is the part of a document-AI evaluation that usually gets settled last and should be settled first. Teams compare accuracy on a sample set, compare the rate card, pick a winner, and only then send the contract to legal, who ask where the documents go. On a payroll file, a patient intake form or a set of signed loan documents, that question can end the project after the integration is already built. The rate card is public and easy. The retention behavior is spread across a developer guide, a responsible-AI page, an organization-level policy reference and a compliance list, and no two vendors organize it the same way.

So this page collects it in one place. Every cell below was read on the vendor's own documentation on July 22, 2026, and the verbatim sentences are quoted in the sections underneath rather than paraphrased. Where a vendor's product documentation does not answer a question, this page says that it does not, which is a more useful answer than a confident guess.

// Same price, different defaults

AWS Textract vs Azure Document Intelligence vs Google Document AI on data handling

Read the last three rows together. The basic OCR rate is identical across all three, so data handling, not price, is the thing that actually differentiates them at the entry tier.

Question AWS Textract Azure AI Document Intelligence Google Document AI
Basic OCR rate per 1,000 pages $1.50 $1.50 $1.50
Documents kept after the response Possibly, for service improvement 24 hours No (online), 1 day failsafe (batch)
Processed only in your region Not guaranteed for improvement copies Yes Residency controls available
Used to train the vendor's models Yes unless you opt out Product doc is silent No, stated explicitly
Opt-out on by default No Not applicable Not applicable
Where the control lives AWS Organizations policy Per-request delete API Built into the service
Explicit no-training statement on the product doc No No Yes
Listed for HIPAA workloads Yes, HIPAA eligible services list Yes, under the Microsoft BAA Yes, HIPAA covered

One row deserves a caveat rather than a checkmark. "Product doc is silent" for Azure is not an accusation that Microsoft trains on your documents. It means the Document Intelligence data-privacy page and FAQ describe storage, region and deletion in detail and do not make a statement either way about model training, so the commitment you would rely on lives in your Azure agreement and the Microsoft Trust Center rather than in the product documentation. Google is the only one of the three that puts the sentence on the product's own security page, which is why it gets the only unqualified "no" in that row.

// In the vendors' own words

What each vendor actually says

AWS Textract

Retention
May be stored for service improvement, in addition to what is needed to serve the request
Region
May be stored outside the region you called
Used for model improvement
Yes, model training is named explicitly
The control you get
AWS Organizations AI services opt-out policy, off by default

Azure AI Document Intelligence

Retention
Temporarily stored, deleted 24 hours after the analyze request
Region
Same region as the resource
Used for model improvement
Not addressed on the product data-privacy page
The control you get
Delete Analyze Result API purges the response on demand

Google Document AI

Retention
Online: never persisted to disk. Batch: deleted after processing, one day failsafe TTL
Region
Data residency controls available
Used for model improvement
No, Google states it never trains on customer data
The control you get
Ephemeral key on batch storage, no human access
// The finding

The AWS opt-out is real, and almost nobody has set it

AWS is unusually direct about this, which is to its credit. The Organizations user guide states, word for word: "AWS AI services may use and store customer content for service improvement, such as fixing operational issues, evaluating service performance, debugging, or model training. For this purpose, we might store such content in an AWS Region outside of the AWS Region where you are using the service. You can opt out of use of your content for service improvement by using the AWS Organizations opt-out policy."

Read that twice, because two separate things are in it. The first is model training, named explicitly. The second is quieter and matters more for regulated work: content stored for that purpose may leave the region you deliberately chose. A team that picked us-east-1 for a residency reason has not, by picking it, confined every copy of the document to us-east-1.

The control is genuine and it works. The catch is where it lives. It is an AWS Organizations policy, which means it is set at the organization or organizational-unit level, not as a setting inside the Textract console. A company running one standalone AWS account, which describes a great many teams shipping their first document pipeline, has to enrol in Organizations before it can express the preference at all. Nothing in the Textract getting-started path prompts you to do it. So the honest description of the default is not that AWS hides anything. It is that the safe configuration requires an action in a different service that most builders never learn they needed.

There is a reward for setting it. AWS states that "When you opt out of content use by an AWS AI service, that service deletes all of the associated historical content that was shared with AWS before you set the option", limited to copies "not required to provide service functions". The opt-out is retroactive to the copies kept for improvement, not just forward-looking.

One frequently misquoted point is worth correcting here, because it appears in a lot of third-party write-ups. Textract's own data-protection page does contain a strong promise that customer content is "not logged or retained even for debugging purposes", but that sentence sits in the Custom Queries section and describes the images and annotations used to train an adapter, which AWS says are deleted once training completes. It is a promise about adapter training data. It is not a general statement about what happens to every document you pass to an ordinary analyze call, and quoting it as one is the most common error on this topic.

// The detail people miss

The same vendor can behave differently on two endpoints

Google is the clearest illustration. For a synchronous request, Google states the document data "is processed in memory, encrypted in flight, and not persisted to disk". That is about as strong as a cloud retention answer gets. Switch the same workload to the batch endpoint, which is what most teams do the moment volume grows or files get long, and the behavior changes: the document is stored, "encrypted with an ephemeral key, meaning that no human has access to it", and "typically deleted immediately after the processing, with a failsafe Time to live (TTL) of one day".

Neither of those is a problem. The problem is a team that verified the synchronous answer during the pilot, wrote it into the security review, and then moved to batch for production without anyone revisiting the paperwork. The migration from sync to batch is driven by page limits and throughput, so it feels like an engineering decision. It quietly changes the data-handling answer that legal signed off on.

Azure has its own version of this. The standard cloud endpoint holds results for 24 hours; a connected container changes the picture substantially, since Microsoft states that "Connected containers don't send customer data, such as the image or text that's being analyzed, to Microsoft", while still requiring an outbound connection for billing. If your requirement is that documents never leave your network, that distinction between the meter calling out and the documents staying in is the entire decision, and it is covered in more depth on our page about on premise OCR software.

The practical rule: ask for the retention answer per endpoint, and re-ask it whenever the integration changes shape. Page limits, file size ceilings and throughput quotas differ per endpoint too, which we track on the OCR API limits comparison.

// The newer path

Reading documents with a language model changes the question

A growing number of teams skip the OCR products entirely and send page images to a general language model, because the per-page arithmetic can be attractive. That decision moves you onto a different set of data policies, written for a different product category and with different defaults. The general shape across the major language model APIs is that some retention exists by default for abuse monitoring and safety review, and that zero retention is an arrangement you request rather than a switch you flip, typically tied to an enterprise agreement.

Two things follow. First, scope: a zero data retention arrangement usually covers the inference endpoint, while request metadata, error traces and platform logs are governed separately. If the reason you need zero retention is a specific regulatory clause, the clause almost certainly cares about those too. Second, the batch endpoints that make language model OCR affordable are frequently governed by their own terms, so the same sync-versus-batch trap applies here with an extra layer.

Because this changes fast and varies by contract, we do not publish a per-vendor retention table for the language model providers on this page. The rates are a different matter and those we do track in detail: see LLM OCR pricing for the token-to-page conversion across every major model, and OCR pricing per 1,000 pages for the cross-vendor rate reference. If you are running a language model path in production, get the retention answer in your contract rather than from any documentation page, including this one.

// Before you sign

The six questions worth asking in writing

Any vendor can answer these in a sentence each. How quickly they do it tells you most of what you need to know.

How long, exactly

A number in hours, not "we do not retain your data longer than necessary". Azure says 24 hours and names the API that shortens it. That is what a usable answer looks like.

Which region, including copies

Ask separately about processing and about any copy kept for improvement, debugging or support. These can live in different places, and only one of them usually appears in the marketing material.

Training, in writing

Not "we respect your privacy". The question is whether your documents can enter a training set, and whether preventing that is the default or a setting somebody has to find.

Default state of the control

A control that exists but ships off protects nobody who did not read the documentation. This is the difference between the AWS position and the Google position, and it is the whole point of this page.

Sync versus batch

On Google these two endpoints have genuinely different retention behavior. Assume nothing carries across, and get both answers.

What the contract says, not the blog

Documentation changes without notice. If retention is material to your deal, it belongs in the agreement or the DPA, where it is enforceable.

// Where DocuOCR sits

Our own answer, in the same terms

It would be poor form to publish this table and be vague about ourselves. DocuOCR is a cloud product. Documents you upload are processed and stored in US infrastructure so you can retrieve extractions, re-run them and export them, which is the point of having a workflow rather than a bare API, and you can delete them from the dashboard. We do not use customer documents to train models. If your requirement is that documents never leave your network at all, we are not the right fit and we say so plainly on on premise OCR software, which walks through what the on-premise options actually are and what they cost you in model freshness.

The honest summary of this whole page is that data handling has become a real differentiator between products that are otherwise priced identically, and it is the one dimension buyers routinely evaluate last. If you are choosing between the three hyperscalers on price alone, you are choosing between three identical numbers and ignoring the row that will actually matter to your security review. Start with the rate card if it helps, at OCR API pricing comparison, then come back to this table before anyone writes an integration.

Frequently asked questions

Does AWS Textract store my documents?
It can. AWS states that its AI services "may use and store customer content for service improvement, such as fixing operational issues, evaluating service performance, debugging, or model training", and that it "might store such content in an AWS Region outside of the AWS Region where you are using the service". You can stop this with an AWS Organizations AI services opt-out policy, but it is not on by default.
Does Amazon Textract train on my data?
By default it may. Model training is named explicitly in the AWS service-improvement language covering AI services, and the only documented way to prevent it is an AWS Organizations opt-out policy. A separate promise does exist for Custom Queries adapter training data, which AWS says is "not logged or retained even for debugging purposes", but that covers adapter training content, not ordinary analyze calls.
How long does Azure Document Intelligence keep my documents?
24 hours. Microsoft states that "Document Intelligence temporarily stores data and results in Azure Storage in the same region as the request" and that "Your data is then deleted 24 hours from the time that you submit an analyze request." The v4.0 API adds a Delete Analyze Result call so you can purge the response as soon as you have read it.
Does Google Document AI use my documents to train models?
No. Google states plainly on the product security page that "we never use customer data to train our Document AI models" and that Google "does not use any of your content (such as documents and predictions) for any purpose except to provide you with the Document AI service". It is the only one of the three hyperscalers that makes that statement on the product documentation itself.
Which OCR API does not persist documents to disk?
Google Document AI, for online requests. Google states that document data sent in a synchronous request "is processed in memory, encrypted in flight, and not persisted to disk". Batch requests are different: those are stored encrypted with an ephemeral key, usually deleted immediately after processing, with a failsafe time to live of one day.
Can I stop AWS from using my documents to improve its services?
Yes, with an AWS Organizations AI services opt-out policy. Two details matter. It is an organization-level policy rather than a checkbox inside Textract, so a team running a single standalone account has to enrol in Organizations to set it. And AWS states that opting out also deletes the historical content already shared, limited to copies "not required to provide service functions".
Is document data processed in the region I send it to?
On Azure and Google, yes. Microsoft states that "The incoming data is processed in the same region where the Document Intelligence resource was created". AWS is the exception worth reading twice: for service-improvement purposes it says it might store content "in an AWS Region outside of the AWS Region where you are using the service", which is a data residency question, not just a retention one.
Is AWS Textract HIPAA eligible?
Yes. Amazon Textract appears on the AWS HIPAA Eligible Services Reference, the list of services "eligible to create, receive, process, maintain, or transmit electronic protected health information (ePHI)". Eligibility is not automatic coverage: you still need an executed Business Associate Addendum with AWS and you still have to configure the service correctly.
What does zero data retention mean for an OCR API?
That the provider does not persist your input or output after the response is returned. The term comes from the language model APIs, where retention for abuse monitoring is the default and zero retention is usually an enterprise-tier arrangement you have to request. Read the scope carefully, because a zero retention agreement often covers the model endpoint while logs, metadata and error traces are governed separately.
What should I ask an OCR vendor about data retention?
Five questions, in writing: how long is the document stored, in which region, is it used to train or improve any model, is the opt-out on by default or does someone have to configure it, and does the answer change between the synchronous and batch endpoints. That last one catches the most people, because on more than one platform the two endpoints behave differently.

Settle the data question before you build the integration

Upload a document, look at the fields and the confidence scores, and see whether the output is worth the security review in the first place.

From the same family of tools