Home / Insights / Generative AI and LLMs
Generative AI and LLMs
AI API Data Retention and Training Policies: What to Check Before You Send Data
Most commercial AI APIs no longer train on your prompts by default, but that is only one of several questions. Abuse-monitoring logs, stored conversation state, caching, grounding logs and free tiers each keep data in ways a privacy review needs to understand before go-live.
TopicsGenerative AI and LLMs
Key takeaways
- ‘We don’t train on API data’ is now the default for the major paid APIs, but it says nothing about how long prompts sit in abuse-monitoring logs, caches or stored conversation state.
- Retention is set per feature, not per vendor: stateless completions, stored responses, uploaded files, search grounding and feedback buttons each have different clocks.
- Zero data retention and modified abuse monitoring exist at OpenAI, Anthropic, Google Cloud and Azure, but they require approval or an agreement and often exclude stateful features.
- Free tiers and consumer apps are a different contract. Google’s Gemini API terms, for example, allow human review of unpaid-tier data and ask users not to submit personal information.
- Write down a data-flow map per AI feature, choose the minimum data each call needs, and verify settings in the console rather than relying on a sales conversation.
On this page
- What ‘retention’ and ‘training’ really mean for an AI API
- How the major providers describe their defaults
- Why free tiers, consumer apps and side doors are the real risk
- How to decide what data a given AI feature may send
- How to implement the controls in your architecture
- Risks, trade-offs and costs to plan for
- Pre-launch checklist: before real data reaches an AI API
- Frequently asked questions
- Sources and methodology
Every few weeks a product team asks me some version of the same question: ‘Can we send customer records to this model?’ The honest answer is that it depends less on the model and more on which endpoint you call, which account tier you are on, which features you switch on, and what you have agreed in writing. A team that has read a vendor’s headline privacy promise often has not read the endpoint-level retention table underneath it.
This article is for CTOs, engineering leads, data protection officers and procurement teams who are about to put personal, confidential or regulated data through a hosted AI API. It explains what ‘retention’ and ‘training’ actually mean in current vendor documentation, compares how four widely used providers describe their defaults, and ends with a checklist you can run before go-live. Where hosted APIs are not acceptable at all, the alternative is to run open models inside your own environment, which is what our Private AI Deployment work covers: model selection on your own tasks, deployment in your VPC or data centre, private retrieval and the logging and retention settings to go with it.
Vendor policies change, so treat what follows as a map of what to check and confirm current terms for your own account.
What ‘retention’ and ‘training’ really mean for an AI API
Vendor pages tend to collapse several different things into one reassuring sentence. When you review an AI API, separate at least five kinds of data handling, because each has its own duration and its own controls.
1. Model training and improvement
Will our data end up inside a future model? For the paid APIs reviewed here, the documented default is no: OpenAI’s data controls guide says API data is not used for training unless you opt in, and Microsoft and Google Cloud make similar commitments. That is the start of the review, not the end.
2. Abuse and safety monitoring logs
Most providers keep prompts and outputs for a period so they can detect misuse. OpenAI describes abuse-monitoring logs kept for up to 30 days. Anthropic’s privacy centre says commercial inputs and outputs are deleted within 30 days, but content flagged for usage-policy violations can be kept for up to two years and trust and safety classification scores for up to seven years. These logs may be reviewed by people in defined circumstances.
3. Application state you asked the vendor to store
Stateful features hold data because that is how they work: stored responses for multi-turn conversations, uploaded files, vector stores, threads and batch jobs. These often persist until you delete them, and they are frequently excluded from zero-retention arrangements.
4. Caches and derived logs
Prompt caching, durable caches and grounding features create short-lived copies. Google Cloud, for example, documents Gemini caches deleted no later than 24 hours after writing, and separate logs for search grounding.
5. Feedback and support data
A thumbs-up button or a support ticket can carry a prompt into a very different retention bucket. Anthropic states that data tied to a feedback submission is kept for five years. If your product lets end users send feedback through to the model provider, that is a data flow your privacy notice should describe.
Action: before comparing vendors, list which of these five categories each planned AI feature will touch. A summarisation feature using stateless calls touches categories 1 and 2. A support assistant with file upload, conversation memory and web grounding touches all five.
How the major providers describe their defaults
The table summarises documented defaults for paid, commercial API use at four providers. It is a starting point for your own review, not a substitute for your contract or data processing addendum, and it excludes consumer chat apps, which are covered by separate terms.
| Question | OpenAI API | Anthropic API | Google (Gemini API paid / Google Cloud) | Azure-hosted models (Microsoft Foundry) |
|---|---|---|---|---|
| Trains on your data by default? | No; opt-in only | No for commercial use (see vendor terms) | No without permission or instruction | No without permission or instruction |
| Abuse-monitoring retention | Logs kept up to 30 days | Deleted within 30 days; flagged content up to 2 years | Prompts may be logged for a limited period to detect abuse | Human-review store in your resource’s geography for flagged content |
| Reduced or zero retention | Zero Data Retention or Modified Abuse Monitoring, with approval | Zero data retention by agreement | Zero data retention achievable by configuration; some models need approval | Modified abuse monitoring by application |
| Stateful features | Stored responses kept 30 days by default; files and conversations until deleted | Varies by feature; check per endpoint | Interactions API stores by default unless store is false | Files, threads, stored completions held in your resource until deleted |
| Regional controls | US, EU and UAE processing; storage-only regions including Australia, Singapore and the UK | Check current options with the vendor | Regional endpoints and multi-regions in Google Cloud | Standard, DataZone and Global deployment types |
Details that change the answer
- OpenAI. Responses created through
/v1/responsesare stored for at least 30 days unless you setstoreto false. Files persist until deleted and are not eligible for zero retention. Non-US data residency requires an approved reduced-retention arrangement. - Anthropic. Zero data retention is described as an exception agreed with the company: a contractual step, not a toggle.
- Google. Zero retention means switching off caching, session resumption and the Interactions API’s default storage. Grounding with Google Search keeps derived query logs for three days, and the documentation says this cannot be disabled.
- Microsoft. Approved customers can turn off abuse-monitoring storage and verify it by checking for a
ContentLoggingattribute set to false in the resource’s JSON view.
Action: for each provider on your shortlist, copy the endpoint-level retention table into your design document and highlight the rows for the endpoints you will actually call.
Why free tiers, consumer apps and side doors are the real risk
In the reviews we run, the biggest gaps rarely sit in the production integration. They sit in the places nobody put through procurement.
Free and unpaid tiers
Google’s Gemini API terms draw a sharp line between unpaid and paid services. For unpaid use, Google says it uses submitted content and responses to improve its products, that human reviewers may read and annotate inputs and outputs, and that users should not submit sensitive, confidential or personal information. For paid services, prompts and responses are not used to improve products and are logged for a limited period for policy enforcement. A developer prototyping on a free key with a real customer export has created a different data flow from the one your contract describes.
Consumer chat apps
Staff pasting documents into a personal chat assistant are governed by consumer terms, not API terms. Treat these apps as out of scope for confidential data unless you hold a business plan with its own terms.
Wrappers and your own logs
A SaaS tool built on a model API adds its own retention on top of the provider’s, so ask which account type it uses and how long it keeps prompts. Your own tracing and error tools may also capture full prompts by default. We cover this side in more depth in Protecting Personal Data in AI Chats: PII Redaction, Retention and Logging Decisions.
Action: issue a short internal rule that names the approved AI accounts and tiers for each data classification, and block or monitor unapproved API keys in your secrets management and egress controls.
How to decide what data a given AI feature may send
Not every feature needs the same level of protection. A useful approach is to classify the data each feature sends and match it to an approved deployment pattern.
| Data class | Examples | Typical acceptable pattern | Conditions |
|---|---|---|---|
| Public or marketing | Published help articles, product descriptions | Paid hosted API, default settings | Paid tier only; no free keys in production |
| Internal, non-personal | Internal policies, code without secrets | Paid hosted API with stateful features reviewed | Data processing terms signed; storage turned off where not needed |
| Personal data | Customer emails, CRM notes, support transcripts | Paid hosted API with regional processing and reduced retention, or private deployment | Lawful basis and privacy notice updated; redaction where practical; transfer assessment |
| Special category or regulated | Health, financial, children’s or biometric data | Zero retention under contract, or private deployment in your environment | DPIA completed; sector rules checked; human review of outputs |
| Secrets and credentials | API keys, passwords, private keys | Never sent | Scanning and redaction before any call |
Questions that move a feature between rows
- Does the call need the identifying fields? A model summarising a complaint rarely needs the customer’s name, account number or address. Pseudonymise before the call and re-attach afterwards.
- Does the feature need state on the vendor side? Keep conversation history in your own database and you can often use stateless calls.
- Where may the data be processed? Check whether a region offers local processing or only local storage; OpenAI’s documentation distinguishes the two.
- Is human review of flagged content acceptable? If not, get reduced or zero retention approved before launch.
- Would a self-hosted open model meet the quality bar? If the task is classification, extraction or summarisation of internal documents, an open-weight model in your own cloud can be good enough and removes the vendor retention question entirely. Our comparison of options is in Self-Hosted Open Models or a Managed Cloud AI Service?
For example, a 40-person accounting practice might allow a paid hosted API for drafting client newsletters, require pseudonymisation and EU processing for summarising client emails, and keep tax records entirely on a private deployment. The rule set fits on one page and staff can follow it.
How to implement the controls in your architecture
Policy only works if the architecture makes the safe path the easy path. These are the controls we put in place on most AI integrations that handle personal data.
Route every call through one gateway
Put a thin internal service between your applications and every AI provider. It holds the API keys, applies redaction, sets parameters such as store=false, selects the regional endpoint, and writes your own audit record. Teams then cannot accidentally call a free-tier key or a stateful endpoint from a new feature.
Minimise and pseudonymise
- Strip direct identifiers that the task does not need, using pattern matching plus a named-entity model for free text.
- Replace identifiers with stable tokens and keep the mapping in your own database.
- Send only the retrieved passages a question needs, not whole documents.
Configure the vendor account deliberately
- Turn off storage on stateful endpoints you do not need, and set expiry on uploaded files where the API allows it.
- Disable caching or grounding features that create logs you cannot control, if your data class requires it.
- Apply for reduced or zero retention early; approvals take time and may limit which features you can use.
- Use separate projects or resources for different data classes so settings cannot drift between them.
Verify and govern change
Check each setting where the vendor exposes it and keep the evidence with your DPIA. Add an AI provider review to your change process whenever a team adopts a new endpoint, model family or region. AI Governance Basics: The Policies to Agree Before Your First AI Pilot sets out a lightweight version of this.
Risks, trade-offs and costs to plan for
Tighter retention is not free, and it is worth being explicit about the trade-offs with stakeholders.
- Feature restrictions. Zero retention often rules out stateful features such as stored responses, file storage or certain tools. You may need to rebuild conversation memory and retrieval in your own systems.
- Regional pricing and availability. In-region processing may cost more or lag behind for new models. OpenAI’s documentation, for example, notes a price uplift for eligible models in some data residency configurations.
- Approval lead times. Reduced-retention programmes are reviewed case by case. Build the approval into your project plan rather than discovering it in the week before launch.
- Debugging without logs. If neither you nor the vendor keeps prompts, investigating a bad output is harder. Keep redacted traces, model versions and evaluation sets so you can reproduce issues without storing raw personal data.
- Policy drift. Terms change. Assign an owner to re-read provider data controls quarterly.
- Private deployment costs. Self-hosting removes vendor retention but adds GPU and operations costs; test quality on your own workload first.
Regulatory duties still apply whichever route you choose. If you serve EU users, the AI Act adds transparency and risk-management duties on top of data protection law; our overview for buyers is The EU AI Act for Software Buyers.
Pre-launch checklist: before real data reaches an AI API
Use this list in your design review. Each item should have an owner and evidence attached.
- Inventory. List every AI feature, the provider, the exact endpoints and the account or project each uses.
- Contract. Confirm you are on paid commercial terms with a data processing addendum, and that no production traffic uses a free or consumer tier.
- Training. Record the provider’s statement on training and confirm no opt-in for training or feedback sharing has been switched on.
- Abuse monitoring. Note the documented retention period and whether human review can occur. Decide whether you need reduced or zero retention, and apply early.
- Stateful features. For each stateful endpoint, record what is stored and for how long, and turn storage off where not required.
- Caching and grounding. Identify caches and search-grounding logs and decide whether to disable them.
- Region. Confirm where data is processed and stored, and complete any international transfer assessment.
- Minimisation. Implement redaction or pseudonymisation for identifiers the task does not need, and block secrets.
- Your own logs. Set retention and redaction for application logs, traces and analytics that capture prompts.
- Transparency. Update privacy notices and, where relevant, records of processing to name AI providers and purposes.
- Verification. Capture evidence of each setting from the vendor console, and schedule a quarterly re-check.
- Exit. Document how to delete stored files, vector stores and conversations if you leave the provider.
If several items come back as ‘not possible with this provider’, that is a strong signal to consider a private deployment for that data class instead of forcing a hosted API to fit.
Frequently asked questions
If a provider says it does not train on API data, is our data safe to send?
Not automatically. No-training statements cover model improvement only. Prompts may still be held in abuse-monitoring logs for a period, in stored conversation state, in caches or in feedback records, and some of that may be seen by reviewers in defined circumstances. Check each category for the endpoints you use.
What is the difference between zero data retention and modified abuse monitoring?
In OpenAI’s and Microsoft’s documentation, modified abuse monitoring removes your content from abuse-monitoring storage, while zero data retention goes further and also prevents application state from being stored on eligible endpoints. Both need vendor approval, and both can restrict which features you can use.
Can our developers prototype with free API keys?
Only with synthetic or public data. Free tiers can have different terms; Google’s Gemini API terms, for example, allow human review and product improvement for unpaid use and ask users not to submit personal or confidential information.
Does choosing an EU or UK region solve data protection compliance?
It helps with transfer questions, but it does not replace a lawful basis, minimisation, transparency or a DPIA where required. Also check whether a region offers local processing or only local storage, because providers distinguish the two.
When should we use a private deployment instead of a hosted API?
When your data class cannot tolerate any vendor-side retention or review, when contracts cannot be agreed in time, or when an open model already meets your quality bar on the task. Test candidate models on your own examples before committing to hardware.
Sources and methodology
Guidance reflects PoliteTech delivery experience. The external references below informed specific points in this article.
- OpenAI: Data controls in the OpenAI platform — accessed 9 November 2026. Default no-training position, 30-day abuse-monitoring logs, Zero Data Retention and Modified Abuse Monitoring, per-endpoint retention and data residency regions.
- Anthropic Privacy Center: How long do you store my organization’s data? — accessed 9 November 2026. 30-day default deletion, two-year retention for policy-flagged content, seven-year classification scores and five-year feedback retention.
- Google: Gemini API Additional Terms of Service — accessed 9 November 2026. Difference between unpaid and paid services, including human review and the instruction not to submit personal data to unpaid services.
- Google Cloud: Zero data retention for generative AI — accessed 9 November 2026. No-training commitment, 24-hour caching, settings required for zero retention and three-day logs for Grounding with Google Search.
- Microsoft Learn: Data, privacy and security for Azure-hosted models — accessed 9 November 2026. No-training statement, abuse-monitoring human review by geography, modified abuse monitoring, the ContentLogging check and stateful feature storage.
Related reading
Continue your research
Not sure which of your AI features can safely use a hosted API?
We can map your AI data flows, check provider settings against your data classes, and plan a private deployment where hosted APIs do not fit.
