AI API data privacy
What 9 AI APIs say about your prompts: whether they are used for training, how long they are kept, and whether zero data retention is offered. Each section restates the provider’s own page and links it.
Checked 25 November 2026. A summary, not legal advice: contracts and data-processing agreements can change these terms for a given customer.
At a glance
| Provider | Paid API trains on prompts by default | Default retention | Zero data retention |
|---|---|---|---|
| OpenAI API | No | Abuse-monitoring logs, which can include prompts and responses, are kept for up to 30 days by default, unless longer retention is required by law or needed to prevent harm | Zero Data Retention or Modified Abuse Monitoring for eligible customers, after approval by OpenAI and acceptance of extra requirements; chosen per organization or project |
| Anthropic (Claude API) | No | API inputs and outputs are deleted from the backend within 30 days of receipt or generation, unless agreed otherwise or needed longer to enforce the Usage Policy | By agreement (a zero data retention agreement is named as the exception to the 30-day rule) |
| Google Gemini API | No | Paid quota: prompts and responses are logged for a limited period, only to detect policy violations and for required legal disclosures | Not described in the Gemini API terms |
| xAI (Grok API) | No | All API requests and responses are stored, encrypted at rest, for 30 days for abuse auditing, then deleted automatically | Available team-wide (not per key) |
| DeepSeek API | Opt-out offered | No API-specific retention period is stated in the privacy policy | None published |
| Mistral AI | Opt-out offered | Not stated as a period on the training or ZDR help pages | Pay-as-you-go only, and only for stateless API calls; not for agents, conversations, libraries, batch files or other stateful products |
| Groq | Not stated | By default, customer data from inference requests is not retained | Settings in the console’s Data Controls; the page lists which products are ZDR-eligible |
| Fireworks AI | No | Zero retention by default: prompt and generation data exist only in memory during the request (and for several minutes with prompt caching) | The default for open models; does not apply to the Batch API or the Responses API |
| OpenRouter | Depends on provider | Varies by provider; OpenRouter’s table sorts them into zero retention, safety retention and other tiers | Possible by routing only to providers marked zero retention |
OpenAI API data policy
- Training
- Since 1 March 2023, data sent to the API is not used to train or improve OpenAI models unless the customer opts in to share it.
- Retention
- Abuse-monitoring logs, which can include prompts and responses, are kept for up to 30 days by default, unless longer retention is required by law or needed to prevent harm.
- Zero data retention
- Zero Data Retention or Modified Abuse Monitoring for eligible customers, after approval by OpenAI and acceptance of extra requirements; chosen per organization or project.
Source: developers.openai.com, checked 25 November 2026.
Anthropic (Claude API) data policy
- Training
- By default, inputs and outputs from commercial products, including the API, are not used to train models. Feedback the customer sends (such as thumbs up or down) can be used.
- Retention
- API inputs and outputs are deleted from the backend within 30 days of receipt or generation, unless agreed otherwise or needed longer to enforce the Usage Policy.
- Zero data retention
- By agreement (a zero data retention agreement is named as the exception to the 30-day rule).
Source: privacy.claude.com and privacy.claude.com, checked 25 November 2026.
Google Gemini API data policy
- Training
- Paid quota: prompts (with system instructions, cached content and files) and responses are not used to improve Google products. Unpaid quota and Google AI Studio: content and responses are used to improve Google products and machine learning, and human reviewers may read them.
- Retention
- Paid quota: prompts and responses are logged for a limited period, only to detect policy violations and for required legal disclosures. The period is not stated in days.
- Zero data retention
- Not described in the Gemini API terms.
- Also
- Paid-quota data may be stored transiently or cached in any country where Google or its agents have facilities. The free tier is the one that trains, so the tier matters more here than at most providers.
Source: aistudio.google.com, checked 25 November 2026.
xAI (Grok API) data policy
- Training
- Does not train on API inputs or outputs without explicit permission.
- Retention
- All API requests and responses are stored, encrypted at rest, for 30 days for abuse auditing, then deleted automatically.
- Zero data retention
- Available team-wide (not per key). Prompts and outputs are never written to disk, but stateful features stop working: the Responses API, Files and Collections and the Batch API among them. xAI advises most customers not to enable it.
Source: docs.x.ai, checked 25 November 2026.
DeepSeek API data policy
- Training
- The privacy policy lists training and improving its machine learning models among the uses of the data it collects, and gives a right to opt out of that use.
- Retention
- No API-specific retention period is stated in the privacy policy.
- Zero data retention
- None published.
- Also
- Personal data is collected, processed and stored in the People’s Republic of China. The policy does not cover data an app built on the API collects from its own users; that is the developer’s responsibility.
Source: cdn.deepseek.com, checked 25 November 2026.
Mistral AI data policy
- Training
- Pay-as-you-go: Mistral says customers keep control and can opt out of training at any time. Free mode: inputs and outputs may be used for training, with an opt-out. Enterprise customers are opted out by default. Labs and Public Preview models may use data for training on every plan, and the opt-out does not apply to them.
- Retention
- Not stated as a period on the training or ZDR help pages.
- Zero data retention
- Pay-as-you-go only, and only for stateless API calls; not for agents, conversations, libraries, batch files or other stateful products.
Source: help.mistral.ai and help.mistral.ai, checked 25 November 2026.
Groq data policy
- Training
- Not stated as a training policy on the data page; Groq says it does not retain inference data by default.
- Retention
- By default, customer data from inference requests is not retained. It is kept only for features that need it (batch files 30 days unless deleted, fine-tuning data until deleted) or to troubleshoot failures and investigate abuse.
- Zero data retention
- Settings in the console’s Data Controls; the page lists which products are ZDR-eligible.
Source: console.groq.com, checked 25 November 2026.
Fireworks AI data policy
- Training
- Prompts and generations for open models are not logged or stored without explicit opt-in.
- Retention
- Zero retention by default: prompt and generation data exist only in memory during the request (and for several minutes with prompt caching). Token counts and other metadata are logged. The Responses API keeps data up to 30 days when store=True.
- Zero data retention
- The default for open models; does not apply to the Batch API or the Responses API.
Source: docs.fireworks.ai, checked 25 November 2026.
OpenRouter data policy
- Training
- Each model provider behind OpenRouter has its own policy. An account setting (separate for paid and free models) stops routing to providers that may train on prompts.
- Retention
- Varies by provider; OpenRouter’s table sorts them into zero retention, safety retention and other tiers.
- Zero data retention
- Possible by routing only to providers marked zero retention.
- Also
- The routing setting does not change what OpenRouter itself does with prompts; that is in its own privacy policy.
Source: openrouter.ai, checked 25 November 2026.
Frequently asked questions
Do AI APIs train on my prompts?+
On paid API use, these providers say they do not train on prompts by default: OpenAI API, Anthropic (Claude API), Google Gemini API, xAI (Grok API), Fireworks AI. DeepSeek API and Mistral AI describe training on some data with an opt-out. Free tiers can differ: Google uses free-tier Gemini API content to improve its products.
What is zero data retention (ZDR)?+
An arrangement where the provider does not store prompts and responses after the request is processed, not even for abuse monitoring. It usually has to be requested or switched on, and features that need stored data, such as batch jobs or stateful conversations, stop working under it.
How long do AI APIs keep my data?+
Many keep prompts and responses for about 30 days for abuse monitoring by default: OpenAI up to 30 days, Anthropic deletes within 30 days and xAI deletes after 30 days. Groq and Fireworks say they do not retain inference data by default.
Is the free tier of an API private?+
Not always. Google’s terms say free-tier Gemini API and AI Studio content is used to improve its products and may be read by human reviewers; the paid tier is not. Check the tier, not only the provider.
Limits for the same APIs: AI API rate limits. Free API keys and what each free tier does with your data: free AI API keys.