Do AI APIs train on your data?
On paid plans, the AI APIs from OpenAI, Anthropic, xAI and Google do not train on your data by default.
Google's unpaid Gemini API and Mistral's Free mode can use your prompts.
The answers, provider by provider
| API | Trains on API prompts | Keeps prompts by default |
|---|---|---|
| Silk Compute | Prompts and responses are never stored. | Zero data retention |
| abliteration.ai | Never used to train | Never stored by default |
| Featherless | Not statedPrompts are not stored | Not logged |
| Unfil.AI | Not used for training | Up to 24 hours |
| xAI API | Not without permission | 30 days |
| OpenAI API | Not unless you opt in | Up to 30 days |
| Claude API | Not by defaultFeedback you send is an exception | Within 30 days |
| Morph | Not on any tier | Up to 30 days |
| Gemini API | Yes on the unpaid tierNo on the paid tier | 55 days |
| Mistral API | May train on Free modePay-as-you-go can opt out | No period published |
What each lab says
"As of March 1, 2023, data sent to the OpenAI API is not used to train or improve OpenAI models…"
The sentence ends "unless you explicitly opt in to share data with us".
developers.openai.com"Anthropic may not train models on Customer Content from Services."
Feedback you submit, such as a thumbs rating, is an exception.
anthropic.com"SpaceXSI never trains on your API inputs or outputs without your explicit permission."
xAI's API docs now name the company SpaceXSI.
docs.x.ai"When you use Paid Services, including, for example, the paid quota of the Gemini API, Google doesn't use your prompts…"
This covers paid quota only.
aistudio.google.com"Mistral AI will not use Customer Data or Outputs to train its artificial intelligence models except…"
The exceptions include feedback and Labs or Preview Models.
legal.mistral.aiFree tiers are the exception
"To help with quality and improve our products, human reviewers may read, annotate, and process your API input and output."
This is the unpaid Gemini API and AI Studio.
aistudio.google.com"Do not submit sensitive, confidential, or personal information to the Unpaid Services."aistudio.google.com
"As stated during subscription, we may use your data (input and output) to train our artificial intelligence models."
Pay-as-you-go customers can opt out in the admin panel.
help.mistral.aiFeedback buttons opt you in
Anthropic may use data tied to feedback you submit, says its privacy center, and Mistral can use outputs you rate with a comment, says its help center. If your app shows those buttons, your users can opt your data in.
Not training is not the same as not storing
Every lab above still keeps API prompts for 30 to 55 days, and Morph trains on no tier but keeps inputs up to 30 days. See zero retention vs no training.