---
title: "Zero Data Retention (ZDR): OpenAI, Anthropic, Gemini & Search APIs"
description: "What zero data retention covers and what it doesn't, how ZDR works at OpenAI, Anthropic and Google, which web search APIs offer it and on which plans, and a checklist for keeping an AI agent ZDR end to end."
category: "guides"
url: https://keirolabs.cloud/blog/zero-data-retention-ai-apis
published: 2026-11-24
updated: 2026-11-24
---

# Zero data retention (ZDR) for AI and search APIs: OpenAI, Anthropic, Gemini and web search providers

## The 60-second version

**Zero data retention (ZDR) means an API provider processes your request and keeps no copy of the content afterwards: no prompts, no responses, no queries, no results.** Only billing metadata survives, such as token or credit counts, status and timing. It matters when prompts or search queries contain customer data, deal names, health or legal details, or anything a security review will ask about.

**ZDR is rarely the default.** Most providers keep content for a period (often 30 days for abuse monitoring) unless you qualify for, pay for, or switch on ZDR.

| Provider | Default | How you get ZDR |
|---|---|---|
| OpenAI API | Abuse-monitoring logs can keep content up to 30 days | Approval-based; set per organization or project; eligible endpoints only |
| Anthropic Claude API | Standard retention | ZDR arrangement covering eligible features; some models require 30-day retention |
| Google Vertex AI (Gemini) | Prompt logging and 24-hour caching | Disable caching, get an abuse-logging exception; **Grounding with Google Search can't be ZDR** |
| Perplexity Sonar API | ZDR stated as the API default | Default |
| Exa | Standard | Growth plan |
| Brave Search API | Query logs kept 90 days | Enterprise option |
| SerpApi | Standard | `zero_trace=true`, Enterprise plans only |
| Firecrawl | Standard | Enterprise plans; separate end-to-end and anonymized search modes |
| Parallel | Standard | Scale plan with a signed agreement; async APIs keep content up to 8 days |
| Tavily | May use query data to improve results unless your contract says otherwise | No ZDR option documented |
| **Keirolabs** | Standard | **`"zdr": true` on any paid plan, no extra cost** |

Policies were checked against each provider's own documentation in November 2026. They change, so confirm in writing before you rely on one.

## What does zero data retention actually cover?

**Four separate questions get bundled into "privacy". ZDR answers only some of them:**

| Question | Covered by ZDR? |
|---|---|
| Is my data used to train models? | Usually already "no" for paid APIs, ZDR or not |
| Is content kept in abuse-monitoring logs? | **Yes, this is the main thing ZDR removes** |
| Do stateful features store my data (threads, files, caches, stored responses)? | Only if those features are ZDR-eligible; often they aren't |
| Do subprocessors (an upstream search engine, a model host) keep it? | Only if the provider's ZDR extends to them |

**So "we offer ZDR" is the start of the conversation, not the end.** Ask which endpoints and features it covers, and whether it reaches the provider's subprocessors.

## OpenAI zero data retention

**OpenAI's ZDR is approval-based, not a setting anyone can turn on.** By default, API content can sit in abuse-monitoring logs for up to 30 days. It is not used for training unless you opt in.

- **Two controls:** approved customers choose between *Zero Data Retention* and *Modified Abuse Monitoring*, set for the whole organization or per project. A project can inherit the organization setting, pick its own, or disable it.
- **Per-endpoint eligibility.** OpenAI publishes a table of which endpoints and capabilities are ZDR-eligible. Responses and Chat Completions can be; with ZDR on, `store` is forced to false. Stateful features (stored conversations, files, vector stores, background mode and others) have their own retention or are ineligible.
- **Web search:** OpenAI's data-controls page says the `web_search` tool with live internet access is not covered by a BAA. Only its offline, cache-only mode (`external_web_access: false`) can be, from a ZDR-enabled project.
- **Private Safety Processing.** In September 2026 OpenAI began rolling out a way to run automated safety checks across related requests without staff seeing the content. It is designed so that OpenAI can keep offering ZDR on more capable models.

**If you call an outside search API from your OpenAI app,** that provider's retention applies to the queries you send it, not OpenAI's.

## Anthropic (Claude) zero data retention

**Anthropic offers ZDR as an arrangement on the Claude API, with a published table of which features it covers.**

- **Not every feature is eligible.** Anthropic's docs list, for example, Agent Skills and message threads as not covered. Stateful features generally can't be zero-retention.
- **Some models require 30-day retention.** Claude Fable 5, 5.1 and 5.2, and the Mythos models, are "covered models": an organization set to ZDR gets a `400 invalid_request_error` on every request to them, unless Anthropic has expressly authorized it. Opus, Sonnet and Haiku models can run under ZDR.
- **Check before you migrate.** Moving a ZDR workload to a covered model is a data-retention change, not just a model-ID change.

## Google Gemini and Vertex AI zero data retention

**On Vertex AI, ZDR takes several steps, and one popular feature rules it out entirely.**

- **Caching:** Gemini caches inputs and outputs for up to 24 hours by default. Disable caching at the project level.
- **Abuse monitoring:** if your account is subject to prompt logging, request an exception.
- **Grounding with Google Search:** under Google Cloud's service terms, Google stores prompts, the context you provide and the generated output for **30 days** when you use it, and that storage can't be disabled. **If you need ZDR, don't use Google Search grounding.** Bring your own search tool instead ([grounding with Google Search, explained](/blog/grounding-with-google-search-bing)).
- **Partner models on Vertex:** for OpenAI models served on Google Cloud, ZDR is off by default and approved per project. An existing ZDR approval with OpenAI directly doesn't carry over.

## Which web search APIs offer zero data retention?

**A search query is often the most sensitive thing an agent sends.** "Acquisition rumors about [company]" or "symptoms of [condition]" reveal intent, even when the model call is under ZDR. So the search provider's policy matters as much as the model provider's.

| Search API | ZDR | Plan | How it's enabled |
|---|---|---|---|
| **Keirolabs** | Yes | Any paid plan | `"zdr": true` in the request body; responses carry `X-Keiro-ZDR: on` |
| Perplexity Sonar API | Yes, stated as the default | All API use | Default |
| Exa | Yes (search, answer, deep research) | Growth plan | Team owner enables it in the dashboard |
| Brave Search API | Optional; query logs otherwise kept 90 days | Enterprise | Contract |
| SerpApi | "ZeroTrace mode" | Enterprise only | `zero_trace=true` per search |
| Firecrawl | Yes; search has end-to-end and anonymized modes | Enterprise | Request option |
| Parallel | Sync APIs keep no content; async up to 8 days | Scale plan, signed agreement | Contract |
| Tavily | Not documented | — | — |

**The pattern:** most providers reserve ZDR for enterprise contracts. That's a problem for a startup with one security-conscious customer, which needs ZDR without a sales cycle.

## How Keirolabs zero data retention works

**On any paid Keirolabs plan, add `"zdr": true` to a request and we keep no copy of your queries, URLs or results.** We keep only what billing needs: credits used, status and timing. Every response carries an `X-Keiro-ZDR: on` header so you can confirm it in code. It costs nothing extra.

```python
import os, requests

r = requests.post(
    "https://api.keirolabs.cloud/api/v2/search/lite",
    headers={"Authorization": f"Bearer {os.environ['KEIRO_API_KEY']}"},
    json={"query": "vendor risk assessment template", "count": 10, "zdr": True},
    timeout=30,
)
r.raise_for_status()
assert r.headers.get("X-Keiro-ZDR") == "on", "ZDR not applied: check your plan"
results = r.json()["results"]
```

**Fail closed.** The `assert` matters: if a request goes out from a free-tier key or a misconfigured client, you want an error, not silently retained queries.

## ZDR checklist for an AI agent

An agent touches several providers per request. ZDR has to hold at every hop.

- **Model provider:** ZDR approved for the right organization and project, on an eligible model and endpoints.
- **Search provider:** ZDR enabled on every search call, and verified per response where the provider supports it.
- **Built-in tools:** check each one. Google Search grounding stores data for 30 days; OpenAI's live web search isn't BAA-covered.
- **Stateful features:** don't use stored conversations, threads, files or caches that fall outside ZDR. Keep state in your own systems.
- **Your own stack:** API gateway logs, traces, error reports and analytics often hold full prompts. ZDR at the provider doesn't clean those up.
- **Get it in writing:** a DPA, and a list of subprocessors and what each keeps.

Related reading: [grounding AI agents with web search](/blog/grounding-ai-agents-web-search) and [the Claude web search tool](/blog/claude-web-search-tool). Get a Keirolabs key at [platform.keirolabs.cloud](https://platform.keirolabs.cloud/register); ZDR is included on every paid plan.
