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.
Gateway supports ZDR for the following vendors:
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.
ZDR support is tracked at the vendor level in Gateway’s catalog. A vendor with ZDR support means Merge has a zero data retention agreement in place with that vendor that covers traffic routed through Gateway.
Turn ZDR on when your workload has any of the following characteristics:
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.
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
When ZDR is on and a request cannot be routed to a supported 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.
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.
Neither. ZDR is an org-level toggle. When enabled, it applies to every project, every API key, and every request from your organization.
Gateway filters the policy’s candidate list down to ZDR-supported vendors at request time. If at least one supported vendor remains, the request proceeds. If none remain, Gateway rejects the request with HTTP 400.
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.
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 are added.
Yes. Merge adds vendors 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.
No directly measurable effect. ZDR changes which vendors are candidates, not how requests are processed. If your preferred vendor is not ZDR-supported, traffic shifts to a supported vendor, which can change cost and latency based on that vendor’s pricing and performance.