← Back to blog

What Is Zero Data Retention (ZDR)? OpenAI, Claude, Bedrock, OpenRouter in 2026

15 min readUpdated:
What Is Zero Data Retention (ZDR)? OpenAI, Claude, Bedrock, OpenRouter in 2026

Zero data retention explained: what OpenAI, Anthropic, Google, AWS, OpenRouter and Vercel store, what ZDR never covers, what the Dragos canary test found and how to check your app.

Read article

Zero data retention (ZDR) means an AI provider does not store your prompts or the model's responses after it returns the result. Without it, the large API providers keep them for up to 30 days to detect abuse (Google's paid Gemini Developer API keeps them for 55). ZDR is usually something you apply for, it is set per organization, project or region, and it never covers every feature: files, batch jobs, saved conversations and hosted agents store data by design.

In November 2026 three events showed why the details matter. On November 19, Dragos published a five-month test in which it sent about two million prompts with planted secrets to AI services, and some prompts marked ZDR were still read by third parties. Three days later OpenRouter off-boarded three providers and removed 125 endpoints from ZDR eligibility. On November 23, Vercel announced an "Audited ZDR" tier on its AI Gateway, for providers that pass an independent audit. This guide explains what ZDR covers at each major provider and router, what it never covers, what the November findings mean for a company building with AI, and how to check your own app. Read November 25, 2026, unless noted; sources at the end.

ZDR in one minute

  • What it is: a provider's commitment that prompts and outputs are not written to durable storage after the request. Each provider defines the scope in its own docs or contract.
  • What it is not: a training opt-out. OpenAI, Anthropic and Google do not train on paid API data by default, with or without ZDR. ZDR is about storage.
  • How you get it: OpenAI and Anthropic approve it through sales. Amazon Bedrock has an account setting. OpenRouter and Vercel AI Gateway let you enforce it per request or for the whole team.
  • What it never covers: features that need storage to work, metadata such as token counts, and any copy your own app or a vendor in between keeps.
  • What November 2026 showed: a ZDR flag binds only the first hop. If the request passes through a reseller or a breached provider, the flag does not protect it.

What each provider stores, and how ZDR works there

ProviderDefault, without ZDRHow ZDR worksExceptions to know
OpenAI APIAbuse monitoring logs for up to 30 days, which can include prompts and responsesPrior approval by OpenAI; choose Zero Data Retention or Modified Abuse Monitoring per organization or project. With ZDR, store is always treated as false on /v1/responses and /v1/chat/completionsEndpoints marked not eligible (such as Assistants, files, vector stores, batch) can still store application state. A newer option, ZDR with Private Safety Processing, requires customer-controlled storage
Anthropic (Claude API)Inputs and outputs deleted from the back end within 30 days under the standard commercial policy. Flagged content can be kept up to 2 yearsThree arrangements: Legacy ZDR (through sales, per organization), HIPAA readiness, and Enterprise Frontier Safeguards (EFS ZDR, in beta)Console, Managed Agents, code execution, Files API and Batch API are outside. Claude Fable and Mythos 5 to 5.2 need 30-day retention and are not available under Legacy ZDR unless Anthropic authorizes it. ZDR organizations cannot call the API from a browser (CORS)
Google Gemini Developer API (paid)Prompts, context and output logged for 55 days for abuse monitoringNo guaranteed ZDR in this API; Google points to Vertex AIGrounding with Google Search and Maps keeps data for 30 days
Amazon BedrockDepends on the model and your retention modeAccount or project setting data_retention_mode: none, default or aws_review, set per regionModels that require review (currently Claude Fable 5, 5.1 and 5.2) need aws_review: up to 30 days inside the AWS boundary. With none, Bedrock blocks those requests
Microsoft Foundry (models sold by Azure)Flagged content can go to automated and, in some cases, human reviewApply for Modified Abuse MonitoringAfter approval, human review does not take place

Two things changed recently at the top of the market. Anthropic now offers EFS ZDR for its most capable models: Anthropic keeps nothing, encrypted "Sealed Safety Data" goes to a storage bucket you own, and your team, not Anthropic's reviewers, handles flagged cases. It applies to a whole workspace and does not cover code execution containers, Files API uploads, Batch API results or Managed Agents sessions. OpenAI's equivalent is ZDR with Private Safety Processing, which it began rolling out to API customers in phases from September 22, 2026. Both answer the same problem: frontier models need safety monitoring, and regulated customers cannot let the provider keep their data.

ZDR through routers and gateways

Many apps do not call a model provider directly. They go through a router such as OpenRouter or a gateway such as Vercel AI Gateway, which adds a second set of rules.

RouterHow to enforce ZDRCostLimits
OpenRouterAccount privacy settings, per model group, per guardrail, or zdr: true on a requestNo separate fee in the ZDR docsThree tiers: ZDR, Safety Retention (stored only for abuse detection), Retention and Training. Self-serve accounts allow Safety Retention unless you choose "ZDR only". Does not apply to plugins and tools such as web search. Planned CSAM screening of all traffic, with flagged content retained where the law requires
Vercel AI GatewayTeam-wide toggle in settings, or zeroDataRetention: true in providerOptions.gateway per requestPer request: no extra cost. Team-wide: $0.10 per 1,000 requestsNeeds a paid plan or purchased credits. Your own BYOK keys are skipped under ZDR unless you mark them ZDR-compliant. Some provider tools are outside ZDR

On November 23, Vercel added a stricter tier. A provider is labeled Audited ZDR only after an independent security firm tests its claims against its code, infrastructure and live traffic and publishes the report. The audit covers request logs, traces, crash dumps, prompt caches, backups, support tools and training sets, and checks that a request marked ZDR never fails over to a non-ZDR endpoint. Baseten, Modal and Wafer are the launch partners, with reports expected by December 8, 2026. Until then, the tier is empty.

What ZDR does not cover

Providers exclude features that must store something to work. Anthropic says it directly: features marked "No" in its eligibility table are usually stateful, and the API does not block them. Using one means those data leave ZDR. The common gaps:

  1. Saved conversations. OpenAI's Responses API stores state unless store is false or ZDR forces it. Gemini's Interactions API also stores state by default.
  2. Batch jobs. Cheaper, but the input has to be stored. At Anthropic, batch data is kept for 29 days.
  3. Files and vector stores. Kept until you delete them or until the time-to-live expires.
  4. Hosted agents. Claude Managed Agents sessions and OpenAI Assistants objects persist until deleted.
  5. Tools. Code execution, web search and grounding often run under their own retention rules, and router ZDR stops at the model call.
  6. Metadata. Token counts, timestamps, IDs and billing data are always collected.
  7. Your own stack. Logs, traces, error reports and analytics in your app often hold full prompts. No provider setting reaches them.

Short-lived in-memory prompt caching is usually treated as compatible with ZDR, because nothing is written to disk. Vercel's audit criteria require the same: cache in RAM only, and disclosed.

What November 2026 showed

Fireworks AI and Notion

Notion disclosed that chats from Notion AI were exposed after attackers reached the Fireworks AI development environment through a third-party cloud vendor on October 23, 2026. Fewer than 1% of Notion workspaces were affected. Fireworks had a contractual ZDR commitment, but the data came from Notion's Insights feature, which sent stored conversations to Fireworks for analysis, and VentureBeat noted that Fireworks' docs had long excluded batch and stored responses from ZDR. The lesson: ZDR on the model call does not protect data that the product itself stores and forwards.

The Dragos canary test

Dragos ran the largest public test so far; the write-up is by HD Moore, its chief research officer. From July to November 2026 it sent about two million prompts containing unique URLs and fake credentials (canaries) to widely used AI services, then watched for anyone using them. Its findings, published November 19:

FindingWhat Dragos observed
Breached providersData from at least three AI providers was exposed. In the largest case, every request sent in a few windows in late October was copied, including requests the provider rejected before a model ran. In two breaches, some stolen requests were marked ZDR
Marketplace resellersSellers on an inference marketplace listed models at the lowest price, enabled request logging and read customer prompts without any exploit. The leak followed the seller, not the marketplace
Ignored privacy settingsA Chinese AI lab fetched the secret URLs from more than half of the prompts sent to its models, including roughly two-thirds of those marked "no data collection" or ZDR. Prompts sent to US providers that resell its models triggered the same scraper. One large US provider crawled a secret URL more than two months after a single request. A secret link from a prompt sent with the ZDR flag was posted in a company chat in China 24 days later

Dragos's practical advice: a privacy flag binds only the first hop; go directly to a first-tier provider for the smallest exposure; if you use a router, pick the upstream providers yourself; avoid reseller marketplaces; seed your own canaries; and filter secrets out of prompts.

How the routers responded

OpenRouter said the findings showed no breach of OpenRouter itself. It off-boarded three providers, removed 125 endpoints from ZDR eligibility (some flagged by researchers, others as a precaution), notified affected customers, and said it would run similar tests continuously and require validation before restoring any endpoint. Atlas Cloud, GMI Cloud, MiniMax, Novita, Phala and Together have posted security notices, which OpenRouter lists. Vercel's Audited ZDR tier, announced the next day, is the other response: proof by a third party instead of a contract alone. Vercel also runs canary checks between audits, and says plainly that canaries cannot catch prompts that are written to disk and never read.

Do you need ZDR?

ZDR has a cost. You have to apply for it, some features stop being available (batch can be much cheaper, saved conversations simplify code), and some models are off limits. A practical split:

Data that goes to the modelReasonable setting
Public content, marketing copy, anonymized recordsStandard retention at a first-tier provider is often fine
Customer personal data, internal documents, source codeZDR or modified abuse monitoring at a first-tier provider, direct or through a router restricted to ZDR endpoints
Health, financial or legal dataZDR or HIPAA-ready arrangements, a signed data processing agreement, data residency, and a legal review
Credentials, API keys, passwordsShould not be in prompts at all

Under GDPR there is no "zero data retention" requirement as such. What the regulation asks for is data minimization and storage limitation (Article 5), data protection by design and by default (Article 25), and a processing contract with every processor (Article 28). Short or zero retention helps meet those, but does not replace them. This is not legal advice; for sensitive data, decide with a lawyer or your data protection officer.

How to check ZDR in your own AI app

Provider settings do not help if your own app keeps the prompts. A checklist for a team building an AI feature or agent:

  1. Map the data flow. For each feature: what data goes to which model, through which router, on which account, under which retention.
  2. Confirm ZDR in each console. Per organization at Anthropic (it does not carry over to new organizations), per project at OpenAI, per region at Bedrock.
  3. Turn off stored state. store: false on stateful APIs; no batch or files for sensitive data unless you accept their retention.
  4. Restrict the router. On OpenRouter, choose "ZDR only" rather than allowing Safety Retention; on Vercel, enable team-wide ZDR or set it per request, and decide how your BYOK keys are treated.
  5. Check the model. Anthropic's Covered Models and Bedrock's aws_review models need retention. Test it: in a ZDR organization, a request to such a model fails.
  6. Read your own logs. Observability tools, server logs, agent traces and error reports often store full prompts. Decide what is kept, where and for how long.
  7. Keep secrets out of context. Keys and passwords should never reach a prompt or a file an agent reads.
  8. Seed a canary. Put a fake credential or unique URL in the context your app already sends and treat any use of it as an incident. Dragos points to free Canarytokens from Thinkst as a starting point.
  9. Call the API from your back end. Anthropic rejects browser (CORS) calls from ZDR organizations anyway, and it keeps your API key out of the front end.
  10. Write the exceptions down. If a feature must store data, such as chat history for users, record where, for how long and who can access it.

Questions worth asking any vendor or developer who builds the feature for you: which model providers and routers they use and under which retention terms; which product features store prompts or outputs and where they send them; whether batch, files or saved conversations are in use; who the sub-processors are and where data sits; whether logs and monitoring contain prompt content; and how fast they will tell you about an incident at a provider. For a broader list, see how to hire an AI agent developer. For the other side of the same risk, the cost of an open endpoint, see token fraud and denial of wallet.

FAQ

What is zero data retention?

Zero data retention (ZDR) is a commitment by an AI provider that your prompts and the model's responses are not written to durable storage after the request is processed. There is no single standard: each provider defines the scope and exceptions in its documentation or contract.

Does OpenAI offer zero data retention?

Yes, after approval by OpenAI. By default, abuse monitoring logs are kept for up to 30 days. Approved customers choose Zero Data Retention or Modified Abuse Monitoring per organization or project. Some endpoints, such as Assistants, files and batch, can still store data.

Does Anthropic (Claude) offer zero data retention?

Yes. Legacy ZDR is arranged through Anthropic's sales team, per organization. Enterprise Frontier Safeguards (EFS ZDR, in beta) adds ZDR for Claude's most capable models, with encrypted safety data stored in a bucket you own. Claude Fable and Mythos 5 to 5.2 need 30-day retention and are not available under Legacy ZDR unless Anthropic authorizes it.

Is zero data retention the same as not training on my data?

No. OpenAI, Anthropic and Google do not train on paid API data by default, even without ZDR. ZDR decides whether the data is stored at all. OpenRouter states the link the other way round: providers that do not retain data cannot train on it.

How do I enable zero data retention on OpenRouter?

Turn on ZDR enforcement in your privacy settings, per model group or in a guardrail, or send zdr: true with a request. Choose "ZDR only" if you do not want Safety Retention endpoints, which store data for abuse detection. ZDR on OpenRouter applies to model routing, not to plugins and tools such as web search.

Does ZDR protect against data leaks?

It limits what can leak from the model provider. It does not protect data your app or a vendor in between stores and forwards, as the Notion and Fireworks AI case showed, and Dragos found requests marked ZDR among data copied from breached providers. Treat ZDR as one control, next to keeping secrets out of prompts, choosing providers directly, and checking your own logs.

Building AI into your product?

I build AI integrations, AI agents and MVPs as a freelancer in Kraków, and I work close to your team, more like a forward deployed engineer than an outside contractor. We start with a workshop, I write down the scope, including which models, routers and retention settings each feature uses, then I build in two-week sprints with a working version after each. Projects start at $5,000, with no upper limit, because the price depends on scope. I bill hourly on a B2B invoice. See AI integration, or tell me what data your AI feature will touch and I'll reply within 24 hours.

Sources

Read November 25, 2026, unless noted.

  1. Dragos, AI supply chain security: what canary tokens found (HD Moore, November 19, 2026)
  2. OpenRouter, Data processing incidents on inference providers (November 22, 2026) and Zero Data Retention (docs)
  3. Vercel, Introducing Audited ZDR on AI Gateway (November 23, 2026) and AI Gateway Zero Data Retention (docs, updated September 22, 2026)
  4. OpenAI, Data controls in the OpenAI platform and Offering zero data retention for frontier models (update of September 22, 2026)
  5. Anthropic, API and data retention and Enterprise Frontier Safeguards overview; Anthropic Privacy Center, How long do you store my organization's data? (read November 13, 2026)
  6. AWS, Amazon Bedrock: data retention
  7. Google, Zero data retention in the Gemini Developer API and Abuse monitoring (read November 13, 2026)
  8. Microsoft Learn, Foundry Models sold by Azure: abuse monitoring (read November 13, 2026)
  9. Notion, Fireworks AI incident (updated November 12, 2026); BleepingComputer, Notion says Fireworks breach exposed customer AI chat transcripts; VentureBeat, Attackers breached the Fireworks AI storage where Notion AI chats sat outside zero data retention (all read November 13, 2026)
  10. Regulation (EU) 2016/679 (GDPR), Articles 5, 25 and 28

Want to build an AI agent, an MVP, or an app?

I design and build AI products from the first version to production: MVPs, React Native mobile apps, web apps, and AI agents. Tell me what you want to build and I will tell you where to start.