ExplainerUpdated November 18, 2026

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

APITrains on API promptsKeeps prompts by default
Silk ComputePrompts and responses are never stored.Zero data retention
abliteration.aiNever used to trainNever stored by default
FeatherlessNot statedPrompts are not storedNot logged
Unfil.AINot used for trainingUp to 24 hours
xAI APINot without permission30 days
OpenAI APINot unless you opt inUp to 30 days
Claude APINot by defaultFeedback you send is an exceptionWithin 30 days
MorphNot on any tierUp to 30 days
Gemini APIYes on the unpaid tierNo on the paid tier55 days
Mistral APIMay train on Free modePay-as-you-go can opt outNo period published

What each lab says

OpenAI APIYour data
"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
Claude APICommercial Terms, B
"Anthropic may not train models on Customer Content from Services."

Feedback you submit, such as a thumbs rating, is an exception.

anthropic.com
xAI APISecurity FAQ
"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
Gemini APIPaid Services
"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 APICommercial Terms, 4.2
"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.ai

Free tiers are the exception

Gemini APIUnpaid Services
"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
Gemini APIUnpaid Services
"Do not submit sensitive, confidential, or personal information to the Unpaid Services."
aistudio.google.com
Mistral APIFree mode
"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.ai

Feedback 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.