---
title: "Zero data retention"
description: "Route only to hosts that keep no prompts or outputs."
---

# Zero data retention

Zero data retention (ZDR) means the host keeps no prompts or outputs after answering.
Set `provider.zdr` to `true` to use only hosts the gateway marks as ZDR. Set `provider.data_collection` to `deny` to use only hosts marked as never training on or keeping data.

```sh
curl https://api.plaingateway.com/api/v1/chat/completions \
  -H "Authorization: Bearer $PLAINGATEWAY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "openai/gpt-5.6-luna", "messages": [{"role": "user", "content": "Hello"}], "provider": {"zdr": true}}'
```

Today no routed host is marked zero data retention or as never keeping data, so either filter leaves no host. The answer is then 404 with `failed_routing_step` in the error metadata.
The ZDR column on a model page shows the catalog's tag for each listed host. It is not the gateway's routing mark.
## Account setting

Turn on **Zero data retention only** at [/settings/privacy](https://plaingateway.com/settings/privacy) to apply `zdr: true` to every request from your account's keys. A request cannot turn it off.
A model with no zero data retention host then answers 404, with a message that names this setting.
The change reaches the gateway within about 10 seconds.
