Lab API data policyUpdated November 18, 2026
Gemini API data retention, explained
Gemini API data retention is 55 days for prompts, context and outputs, kept to detect policy violations.
Prompts kept by default
55 days
Prompts, context and output
RetentionReadNov. 18, 2026
Training on API prompts
Yes on the unpaid tier
No on the paid tier
TrainingReadNov. 18, 2026
Keeping nothing takes
Settings, or Vertex AI
Vertex AI for a guarantee
Zero retentionReadNov. 18, 2026
On the timeline
Default retention of API prompts and outputs
Not storedKept by defaultKept longer if flagged
Silk ComputeOpen-weight models
Zero data retention
abliteration.aiOpen-weight models
Never stored by default
FeatherlessOpen-weight models
Not logged
Unfil.AIOpen-weight models
Up to 24 hours
xAI APIGrok models
30 days
OpenAI APIGPT models
Up to 30 days
Claude APIClaude models
Within 30 daysUp to 2 years if flagged2 years if flagged
MorphOpen-weight models
Up to 30 days
Gemini APIGemini models
55 days
Mistral APIMistral models
No period published
PRIVATE AI APICC-BYSources for every bar
What the policy says
"Google retains the following data for fifty-five (55) days…"aistudio.google.com
"For Paid Services, Google logs prompts and responses for a limited period of time,…"
The usage-policies page gives the number, 55 days.
aistudio.google.com"When you use Paid Services, including, for example, the paid quota of the Gemini API, Google doesn't use your prompts…"aistudio.google.com
"To help with quality and improve our products, human reviewers may read, annotate, and process your API input and output."aistudio.google.com
"Do not submit sensitive, confidential, or personal information to the Unpaid Services."aistudio.google.com
"If your workload requires guaranteed zero data retention or enterprise data processing agreements, use Vertex AI."aistudio.google.com
"Google stores prompts, contextual information, and generated output for thirty (30) days…"
Google says there is no way to turn this off.
aistudio.google.comStrengths and shortfalls
Strengths
- It documents the settings for zero retention.
- In the EEA, Switzerland and the UK, the paid terms cover all use.
Shortfalls
- Human reviewers may read unpaid-tier prompts.
- Guaranteed zero retention means moving to Vertex AI.
How to keep Gemini API prompts out of storage
- Use a paid Cloud project.
- Leave grounding with Google Search or Google Maps off, since Google keeps those prompts 30 days.
- Set
storeto false on the Interactions API, which stores state by default. - Skip explicit context caching and the File API. Implicit caching stays in memory up to 24 hours, says the Gemini API zero retention page.
- For a guarantee, move to Vertex AI, turn off caching and request-response logging, and set
storeto false.