A prompt sent through an AI inference provider is supposed to stay private, especially when a Zero Data Retention (ZDR) agreement is in place. But infrastructure changes fast, and a signed contract or a one-off audit doesn't guarantee your data isn't being mishandled next week. Vercel's AI Gateway now runs canary audits to close that gap, detecting if providers read, retain, or crawl prompt content outside the agreed path.
The system is straightforward: AI Gateway generates unique URLs that exist nowhere else, mapping each to a specific provider, model, and audit run. These URLs are embedded in prompts and sent through the normal inference process. For providers that claim ZDR, the audit requests ZDR explicitly; for others, the URLs act as positive controls.
How canary audits work
Every audit run mints a new set of canary URLs. These are private, traceable, and never published elsewhere. The prompts containing these URLs go through the normal provider API, just like any real user prompt. If a provider is behaving as promised, those URLs should never get hit: ZDR means prompt data isn't kept, indexed, or scanned after inference.
But if a request does show up at a canary URL, the system knows exactly which provider, model, and audit run it came from. This is concrete evidence that the provider has handled the prompt data in a way that breaches the ZDR agreement—whether by crawling, retaining, or leaking it.
Not a replacement for contracts—an extra layer
Canary audits don't replace ZDR contracts or point-in-time security audits. They add a live detection layer on top, watching for real-world violations that static reviews can miss. Production environments change, and what passed an audit last quarter may not be true today.
What this means for you
If you depend on ZDR for compliance or privacy, these audits give you a way to catch silent failures and enforce the promises your providers make. The system records every canary hit, with enough detail to trace the breach and escalate. You don't need to change your workflow to benefit, but you can now ask your provider what they're doing to avoid tripping a canary.




