What problem it solves
AI privacy discussions usually split into two extremes: “if the training checkbox is off, nothing is saved anywhere” and “any cloud request will show up in someone else’s answer tomorrow.” Both are wrong.
In practice, “what happens to your text” breaks down into four separate mechanisms. Mixing them up leads to picking the wrong tier or worrying about things that don’t happen.
Model training
Whether requests and replies go into the training dataset for future model versions. Controlled by your tier and the toggle in account settings.
Log retention
Even without training, providers typically keep requests for 30–55 days for abuse monitoring, debugging, and legal compliance.
Human review
On free tiers, quality reviewers may read requests. On commercial APIs, access is restricted to safety incident investigations; under ZDR, there is none.
Intermediaries
Your editor, a third-party extension, an API aggregator, web search, and a remote MCP server see the request before or during the model’s reply — each with its own retention rules.
Where a request goes and where it lands
One request travels from your editor or browser to log expiration like this:
text in chat, an agent, or code
- Client and intermediaries
editor · plugin · aggregatorText passes through the app, extension, or API proxy. Each one may keep its own logs and telemetry. - Ingestion and cache
TLS · RAMThe request reaches the provider. If prompt caching is on (Prompt cache), the prefix stays in memory for minutes or an hour for speed and lower cost. - Safety filter
automated checkA classifier checks the request for policy violations. If the filter triggers, the record may be kept longer. - Logs and history
30–55 days · chat historyIn web chat, threads stay until deleted. On standard APIs, requests stay in safety logs for a fixed window; under ZDR, nothing is written to disk. - Training
only where allowedOnly free tiers and consumer accounts with training turned on feed the training dataset.
reply and log cleanup
Five tiers of data handling
Terms differ less between vendors than across access tiers: free products, personal subscriptions, paid APIs, ZDR agreements, and local models.
| Tier | Model training | Server-side retention | Human review |
|---|---|---|---|
| Local model (A model on your own hardware) | no | never leaves your machine | no |
| Commercial API with ZDR | no | 0 days on disk after response (synchronous requests only) | no |
| Paid commercial API | no by default | safety logs: up to 30 days at Anthropic and OpenAI, 55 days on Gemini Paid | only during safety violation investigations |
| Consumer subscription (Pro, Plus, Max) | per account setting: on by default in ChatGPT and Gemini, selectable in Claude settings | chat history until deleted; deleted chats purge within 30 days (with training on in Claude, de-identified data up to 5 years) | possible when training is on or filters trigger |
| Free chat and free API (Gemini Free) | yes | no short deletion guarantee | yes — reviewers may read requests |
Consumer chats offer a temporary mode (Incognito / Temporary Chat): the conversation stays out of history and training, yet can still sit on the server for up to 30 days for safety checks.
What ZDR is and what you give up
Zero Data Retention (ZDR) is a separate agreement for commercial API accounts and enterprise plans. Under ZDR, the provider processes the request in RAM, returns the reply, and does not write the text to 30-day disk logs.
ZDR has a technical boundary: zero retention applies only to stateless synchronous requests (standard Messages / Chat Completions calls). Anything that requires server-side storage by design falls outside ZDR:
- Batch requests (Batch API). Half-price batch queues (Non-urgent API requests go as a batch at half price) store input files and results on disk: up to 29 days at Anthropic, and until you delete the file at OpenAI.
- Files and vector stores (Files API, Vector Stores). Uploaded documents stay on the provider’s servers until deleted, so ZDR does not cover them.
- Server-side sessions and built-in code execution. Environments that hold state across turns on the provider’s side are also excluded from zero retention.
- Built-in web search. Queries go out to a search engine; for example, Google logs Grounding queries for 30 days even on the paid tier.
Intermediaries: where data bypasses model policy
Even with strict settings on the model side (paid API or enterprise plan), your text often passes through middle layers with different rules:
- API aggregators and proxies. The request hits the aggregator’s server first and then routes to a downstream model provider. Unless you enforce routing restrictions like “zero-logging, no-training providers only,” a request can land somewhere that stores logs.
- Third-party MCP servers and plugins. A remote MCP server (Agents and tools) receives everything the agent passes in tool arguments. The model provider’s policy does not apply to that third-party server.
- Agent web search. When the model looks up an error online, it sends a query to a search engine. If a snippet of private code or an internal service name slips into that query, it leaves your boundary.
- Editor extensions and cloud agents. A cloud agent runs on a copy of your repository on the provider’s servers, and a third-party editor extension may send code snippets through its own backend for indexing and autocomplete.
Which option fits your data
| If the request contains… | Use |
|---|---|
| general questions, open-source code, non-sensitive drafts | a consumer subscription with training turned off (Subscription or API) |
| work code, configs without secrets, scripts and automation | a paid commercial API (for Gemini, with billing linked) |
| customer data, security audits, strict contract requirements | a commercial API with ZDR (no Batch API or Files API) or an enterprise plan |
| passwords, tokens, private keys, certificates | never send them to the cloud — strip them before the request (No secrets in the chat) |
| documents and databases that must stay inside your network | a local model on your own hardware (A model on your own hardware) |
What you get and what it costs
What you get
- No training on work text. On a paid API or a subscription with training disabled, your code and notes stay out of training sets.
- Predictable retention window. Commercial APIs publish log deletion windows (30–55 days), and ZDR writes nothing to disk.
- Full isolation on your own hardware. A local model sends nothing outside and stays unaffected by vendor policy changes.
What it costs
- ZDR restrictions. You give up half-price Batch API, Files API, and server-side storage — all orchestration stays on your side.
- Cost of running locally. Local models trail frontier cloud models on complex architecture tasks and need VRAM (How much memory a model needs).
- Policies shift. Providers periodically revise retention windows and default toggles, so recheck account settings after major updates.
Where to start
- Open privacy settings in your consumer chats (ChatGPT, Claude, Gemini) and turn off training on conversations if work text ever goes there.
- Use a paid API key — never a free tier — for scripts and integrations.
- Block
.env*and key directories in your editor agent’sdenyrules (Instructions for an AI agent), and strip secrets before pasting logs into chat (No secrets in the chat). - If your project forbids even temporary provider-side logs, set up ZDR for synchronous API calls or move sensitive tasks to a local model (A model on your own hardware).
If it doesn’t work
You pay for a Pro or Plus subscription, yet company security policy still bans pasting work code into it
- Cause
- Consumer subscriptions (ChatGPT Plus/Pro, Claude Pro/Max) fall under consumer terms of service rather than a commercial data processing agreement.
- Fix
- Use a commercial API or a business tier (Team, Enterprise) with a separate data agreement for work code.
Requests go through a Gemini API key, yet the data still falls under training and human review
- Cause
- The project is on the Free Tier: Google’s no-training terms apply only to the paid tier with billing enabled.
- Fix
- Enable billing on the API project or move work requests to a paid key.
Your organization has ZDR enabled, yet batch requests and uploaded files still remain stored at the provider
- Cause
- Zero Data Retention covers only stateless synchronous requests. The Batch API, Files API, and vector stores write data to disk by design.
- Fix
- Send only standard synchronous API requests for ZDR-covered data, and keep files and queues on your own side.
A password or API key accidentally ended up in chat even though training is turned off
- Cause
- Disabling training does not stop chat history storage or temporary safety logs on the provider’s servers; deleting the chat does not purge internal systems immediately.
- Fix
- Treat the secret as leaked and revoke or rotate it right away (No secrets in the chat).
An editor agent sent the contents of .env to the model even though you never attached the file
- Cause
- The agent read the file on its own while searching the repository and included it in the request context.
- Fix
- Block reading
.env*and key directories in the agent’sdenyrules (Instructions for an AI agent), and keep secrets outside the repository.