Zero Data Retention (ZDR)
Zero data retention (ZDR) is available for Vercel AI Gateway. There is an option to enforce zero data retention on a per request level on AI Gateway.
Vercel AI Gateway has a ZDR policy and does not retain prompts or sensitive data. User data is immediately and permanently deleted after requests are completed. No action here is needed on the user side.
Vercel AI Gateway has agreements in place with specific providers for ZDR. A provider's default policy may not match with the status that Vercel AI Gateway has in place due to these agreements.
By default, Vercel AI Gateway does not route based on the data retention policy of providers.
To restrict requests to only go through providers that state they provide zero data retention, use the parameter in . Set to to ensure requests are only routed to providers that have zero data retention policies. When is or not specified, there is no enforcement of restricting routing.
If Vercel AI Gateway does not have a clear policy or agreement in place for a provider, we assume that the provider does not have a zero data retention policy and treat it as such.
If there are no providers available that have zero data retention agreements with Vercel AI Gateway, the request will fail with an error that explains there are no ZDR-compliant providers available for the model. In the case there is a provider fallback that utilizes direct AI Gateway, the zero data retention per request enforcement will hold for that fallback provider.
This per request ZDR enforcement only applies for requests routed directly through Vercel AI Gateway (not BYOK). Since BYOK requests will go through your own API key, they fall under your current agreement with the respective provider, not the Vercel AI Gateway agreement.
Set to in :
Set to in :
Only the following providers offer ZDR on Vercel AI Gateway. Please review each provider's ZDR policy carefully. A provider's default policy may not match with the status that Vercel AI Gateway has in place due to negotiated agreements. We are constantly coordinating and revising agreements to be able to enforce stricter retention policies for customers. The full terms of service are available for each provider on the model pages.
- Amazon Bedrock
- Anthropic
- Baseten
- Cerebras
- DeepInfra
Was this helpful?