Zero data retention
Zero data retention (ZDR) is an org-level toggle in Gateway. When enabled, Gateway only routes your requests to vendors that have a contractual zero data retention agreement, so your prompts and completions are not stored by the vendor, used for model training, or used for model improvement.
How it works
- Org-level toggle. ZDR is a single setting on your organization. It applies to every project, every API key, and every request.
- Routing is filtered. When ZDR is on, Gateway restricts each request’s routing candidates to ZDR-eligible vendors only. Non-eligible vendors are never selected, even if they appear in your routing policy.
- Fail-closed. If a request resolves to a routing policy with no ZDR-eligible vendors, Gateway rejects it with HTTP 400 and an error message that includes the phrase “Zero Data Retention”. Gateway does not silently fall back to a non-eligible vendor.
Eligible vendors
The following vendors are currently covered by a zero data retention agreement:
More vendors are added as agreements are signed. For the authoritative per-model list, call GET /v1/models and filter on the zero_data_retention field on each model object.
Vendor eligibility is tracked at the vendor level in Gateway’s catalog. A vendor marked eligible means Merge has a zero data retention agreement in place with that vendor that covers traffic routed through Gateway.
When to enable it
Turn ZDR on when your workload has any of the following characteristics:
- Regulated data. You send PII, PHI, or financial data that falls under HIPAA, GDPR, SOC 2, PCI, or a similar framework.
- Customer contracts that prohibit training on their data. Many enterprise agreements forbid third-party model providers from retaining or learning from customer content.
- Regulated industries. Healthcare, legal, financial services, and government workloads that require an audit trail showing no vendor retention.
- Confidential product content. Pre-release roadmap, source code, internal strategy docs, or anything covered by an NDA.
- Customer-facing AI features where data provenance matters. If you market your product as “your data stays yours,” ZDR lets you enforce that claim at the routing layer rather than through per-vendor configuration.
If your org uses BYOK for a vendor, Gateway treats that vendor as ZDR-compliant for your org. BYOK traffic goes to the vendor under your own account and agreement, so data retention is governed by your contract with the vendor directly.
Enabling ZDR
Open the Vendor configuration page and flip the Zero data retention toggle. The change takes effect on the next request. No code changes are required on your side.
Only org admins can change this setting.
Error shape
When ZDR is on and a request cannot be routed to any eligible vendor, Gateway returns:
Handle this like any other invalid_request_error. The stable signal to match on is HTTP 400 with a message containing Zero Data Retention.
Checking ZDR status per model
Each model exposes a zero_data_retention boolean. Filter the model list to see exactly which models your app can use while ZDR is on.
FAQ
Is ZDR per-project or per-request?
Neither. ZDR is an org-level toggle. When enabled, it applies to every project, every API key, and every request from your organization.
What happens to routing policies that include non-eligible vendors?
Gateway filters the policy’s candidate list down to ZDR-eligible vendors at request time. If at least one eligible vendor remains, the request proceeds. If none remain, Gateway rejects the request with HTTP 400.
How does ZDR interact with BYOK?
If your org has BYOK configured for a vendor, Gateway treats that vendor as ZDR-compliant for your org. BYOK traffic uses your own provider account, so retention is governed by your contract with the vendor.
How do I find out which models are ZDR-eligible?
Call GET /v1/models and read the zero_data_retention field on each model object. That field is the authoritative source and is updated automatically as new vendors and models become eligible.
Will more vendors become ZDR-eligible over time?
Yes. Merge adds vendors to the eligible list as zero data retention agreements are signed. The zero_data_retention field on the model object is the source of truth, so your code does not need to be updated when new vendors are added.
Does enabling ZDR affect latency or cost?
No directly measurable effect. ZDR changes which vendors are candidates, not how requests are processed. If your preferred vendor is not ZDR-eligible, traffic shifts to an eligible vendor, which can change cost and latency based on that vendor’s pricing and performance.