If you send customer text to an LLM API, the short answer on OpenAI API data retention is this: by default OpenAI keeps abuse monitoring logs, which can include your prompts and responses, for up to 30 days, and it does not train on API data. Anthropic and Google publish similar-looking but not identical rules. The differences sit in the details: which endpoint stores state, what a zero data retention agreement really removes, and which free tiers let humans read your input.
I read the three vendors’ current policy pages on December 3, 2026. The table below is the summary. Everything after it explains the parts that tend to surprise teams.
| OpenAI API | Anthropic API | Gemini API | |
|---|---|---|---|
| Used for training by default | No | No, not without your express permission | Paid quota: no. Unpaid quota: yes |
| Standard logging window | Abuse monitoring logs, up to 30 days | Inputs and outputs deleted within 30 days, per the Privacy Center | Prompts and responses logged “for a limited period”; no number given |
| Zero data retention | By approval, per organization or project | By agreement through sales, per organization | Not self-serve on the Developer API; the docs point to Vertex AI |
| Features that store state beyond logs | Responses API, Assistants, threads, files, vector stores, batches, fine-tuning | Files API, Console, some tools such as code execution | Search and Maps grounding, Interactions API, File API, explicit caching |
OpenAI: 30 days of logs, then it depends on the endpoint
OpenAI’s data controls guide separates two things that people often merge: abuse monitoring logs and application state.
Abuse monitoring logs are generated for all API usage and kept for up to 30 days by default, unless the law or protecting a third party requires longer. They may contain prompts, responses and metadata such as classifier outputs. The guide lists “No” under data used for training for every endpoint in its table.
Application state is what an endpoint stores so that a later call can use it. This is where the endpoints differ:
| Endpoint | Application state | Zero data retention eligible |
|---|---|---|
| Chat Completions | None, with exceptions | Yes, with limitations |
| Responses | 30 days by default, or when store is true | Yes, with limitations |
| Embeddings, completions, speech, realtime | None | Yes |
| Assistants, threads, vector stores, files, batches, fine-tuning, evals | Until deleted | No |
Three details matter in practice:
- Zero data retention (ZDR) and Modified Abuse Monitoring both need approval. OpenAI says they are subject to prior approval and additional requirements. Once approved, you choose one of them at the organization level, and you can override per project.
- ZDR forces
storetofalseon Responses and Chat Completions, even if a request sets it totrue. It does not remove state from endpoints marked “No” in the table. If you use Assistants, vector stores or the Batch API with a ZDR project, those objects can still be stored. If you use batch jobs, see what happens when a batch partly fails for how failed items are reported back. - Prompt caching has its own storage. OpenAI says cached key/value tensors can sit in GPU-local storage and are gone after the 24-hour expiration.
OpenAI also reserves the right to make specific models ineligible for ZDR or Modified Abuse Monitoring for a customer, with written notice, in which case content can be retained in encrypted logs and excluded from human review unless the law requires it.
Anthropic: two official pages that read differently
Anthropic documents retention in two places, and the wording does not line up.
The API and data retention page says conversation content, meaning your prompts and Claude’s outputs, “is not retained by default”, with one exception: Covered Models, which require 30-day retention. At the time of my check that list names Claude Fable 5.2, Mythos 5.2, Fable 5.1, Mythos 5.1, Fable 5 and Mythos 5, and says they are not available under legacy ZDR unless Anthropic expressly authorizes it.
The commercial Privacy Center article, dated July 1, 2026, says Anthropic automatically deletes API inputs and outputs from its backend within 30 days of receipt or generation, with exceptions: services with longer retention under your control such as the Files API, agreements like zero data retention, retention needed to enforce the Usage Policy, and legal requirements. It adds that inputs and outputs flagged as Usage Policy violations can be kept for up to 2 years, and trust and safety classification scores for up to 7 years.
I cannot tell from the public text whether these are two descriptions of one system or two different guarantees. If your compliance review needs one number, use the stricter reading: up to 30 days, plus longer for flagged content. Ask Anthropic in writing if the distinction matters to you.
Legacy ZDR is narrower than the name suggests. Under it, Anthropic does not store prompts or responses at rest after the API response is returned, but it is enabled per organization by your account team, it covers the Messages and Token Counting APIs only for features marked eligible in the feature table, and it does not cover the Claude Console, including the playground. A feature that uses /v1/messages can still be excluded: Anthropic’s table says programmatic tool calling, built on code execution containers, retains data for up to 30 days.
Gemini: the paid and unpaid split decides everything
Google’s Gemini API Additional Terms (effective March 23, 2026) split the service by whether you pay.
- Unpaid Services, such as Google AI Studio and the unpaid quota of the Gemini API: Google uses your submitted content and responses to provide, improve and develop its products, and human reviewers may read, annotate and process input and output. Google says it disconnects the data from your Google Account, API key and Cloud project first, and tells you not to submit sensitive, confidential or personal information.
- Paid Services, such as the paid quota: Google does not use prompts or responses to improve its products. It still logs them “for a limited period of time” to detect and prevent violations of its Prohibited Use Policy and for required legal disclosures.
The zero data retention page is useful because it lists the places data stays even on a paid key:
| Feature | What is kept |
|---|---|
| Abuse monitoring logging | Prompts and responses for a limited period; for guaranteed ZDR the page points to Vertex AI |
| Grounding with Google Search | Prompts, context and output for 30 days; cannot be disabled |
| Grounding with Google Maps | Same 30 days; cannot be disabled |
| Interactions API | State stored by default; set store to false to opt out |
| Live API | Up to 24 hours if a session resumption handle is generated |
| File API | Until you delete the file or it expires |
| Explicit context caching | For the ttl or expire_time you set |
| Implicit caching | In memory only, 24-hour TTL; Google says this does not violate ZDR |
What to do with this
A practical order for a team that handles customer data:
- Confirm you are on a commercial tier. For Gemini that means paid quota. Do not send customer data through AI Studio’s free use.
- List the endpoints you actually call. The risky ones are rarely the plain chat call. They are files, vector stores, threads, batch jobs, grounding and caching.
- Decide whether 30 days of provider-side logs is acceptable. If not, request ZDR (OpenAI, Anthropic) or move to Vertex AI (Gemini), and check the feature tables before assuming your whole stack is covered.
- Check model eligibility. Anthropic’s Covered Models cannot be used under legacy ZDR by default, and OpenAI can mark a model ineligible for a customer.
- Write down the date you checked. These pages change; the Anthropic Covered Models list and OpenAI’s endpoint table are the two most likely to move.
This is a reading of public documentation, not legal advice. A signed data processing agreement or a custom contract can differ from what the public pages say.
Reporting & Sources
Checked December 3, 2026:
- OpenAI, Data controls in the OpenAI platform: abuse monitoring logs, ZDR, Modified Abuse Monitoring, per-endpoint table, prompt caching storage.
- Anthropic, API and data retention: legacy ZDR scope, Covered Models, feature eligibility.
- Anthropic Privacy Center, How long do you store my organization’s data? (July 1, 2026): 30-day deletion, flagged-content retention.
- Google, Gemini API Additional Terms of Service (effective March 23, 2026): paid and unpaid data use.
- Google, Zero data retention in the Gemini Developer API: grounding, Interactions API, Live API, File API and caching retention.
I did not test any of these behaviors against live accounts; every statement above comes from the vendors’ own published text on the date shown.





