Compliance
AI API Data Retention: Anthropic and OpenAI
Query
When client data is sent to the Anthropic or OpenAI API, how long is it kept, is it used for training, and what do the standard contracts say about financial, payment-card, and personal data?
Research and testing
- Read each provider's retention, training, and zero data retention (ZDR) documentation and privacy center articles.
- Read both data processing addendums (DPAs), OpenAI's App Developer Terms and usage policies, and OpenAI's guidance on financial data.
- Compared provisions for payment-card (PCI DSS) data, health data, GDPR, sub-processors, and data residency.
- This was a document review. No API traffic was tested.
Methodology
Primary sources only: provider documentation, policies, and contract terms as published in June 2026, quoted from the source where possible. Where a policy had changed, the current text was used and the change noted.
Results
| Anthropic | OpenAI | |
|---|---|---|
| Trains on API data by default | No | No (since March 1, 2023) |
| Default retention | 7 days | Up to 30 days (abuse-monitoring logs) |
| Zero data retention | Yes, with sales approval | Yes, with approval, on supported endpoints |
| Flagged content | Kept up to 2 years | Kept up to 2 years |
| Financial-sector DPA terms | None | None |
- Anthropic cut default retention for API inputs and outputs from 30 days to 7 on September 14, 2025. These features are excluded from ZDR: Batch API (kept 29 days), code execution (30 days), Files API (until deleted), the MCP connector, and Claude Managed Agents. Claude Fable 5 and Mythos 5 require 30-day retention and are not ZDR-eligible.
- OpenAI's abuse-monitoring logs can contain prompts and responses. Opting out of training does not turn them off. Removing them takes ZDR or "modified abuse monitoring," and both need OpenAI's approval.
- ZDR does not cover everything. At both providers, content flagged for a policy violation can be kept for up to 2 years. Anthropic keeps trust-and-safety classifier scores for up to 7 years. OpenAI keeps images flagged in CSAM scanning for manual review even under ZDR.
- Neither standard DPA has terms for financial services: nothing on GLBA, FFIEC, or financial regulators' third-party risk guidance. Both are general GDPR instruments with standard contractual clauses. Anthropic's DPA is part of its Commercial Terms automatically; OpenAI's must be accepted or executed. ZDR is a separate contract amendment at both.
- OpenAI's App Developer Terms bar apps from processing payment-card data regulated under PCI DSS. Anthropic's standard terms have no explicit prohibition. Neither provider is PCI-scoped for customer workloads by default.
- Both offer HIPAA business associate agreements for eligible customers. Anthropic requires a separate organization and does not allow PHI in JSON schema definitions.
- Both offer data residency controls. Regions outside the U.S. require a ZDR amendment (and, at OpenAI, approved abuse-monitoring controls).
Conclusion. On standard terms, Anthropic's 7-day default is less exposure than OpenAI's 30-day logs. For data covered by GLBA or financial regulators, neither standard contract is sufficient; custom terms and legal review are needed. Card numbers, CVVs, and track data should not go to either API without a PCI-scoped arrangement, which neither offers as standard. Before production, test whether the data could trip a safety classifier (fraud-related text, for example), because a flag extends retention to 2 years.
Sources
- Anthropic: API and data retention
- Anthropic Privacy Center: How long do you store my data?
- Anthropic Privacy Center: How long do you store my organization's data?
- Anthropic Privacy Center: Is my data used for model training?
- Anthropic Privacy Center: ZDR scope by product
- Anthropic Privacy Center: Viewing and signing the DPA
- Anthropic: Privacy Policy
- Anthropic Trust Center: HIPAA implementation guide
- OpenAI: Data controls in the OpenAI platform
- OpenAI: Data Processing Addendum
- OpenAI: Enterprise privacy
- OpenAI: Usage policies
- OpenAI: App Developer Terms
- OpenAI Help Center: Customer responsibilities for financial data
- OpenAI Trust Portal
- TechCrunch: OpenAI ends default training on API data (March 2023)