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.

3 source pages
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
Rank
#9of 10

See the ranking

RankingReadNov. 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
Log scale, read November 18, 2026.
PRIVATE AI APICC-BYSources for every bar

What the policy says

Gemini APIHow we handle data
"Google retains the following data for fifty-five (55) days…"
aistudio.google.com
Gemini APIPaid Services
"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
Gemini APIPaid Services
"When you use Paid Services, including, for example, the paid quota of the Gemini API, Google doesn't use your prompts…"
aistudio.google.com
Gemini APIUnpaid Services
"To help with quality and improve our products, human reviewers may read, annotate, and process your API input and output."
aistudio.google.com
Gemini APIUnpaid Services
"Do not submit sensitive, confidential, or personal information to the Unpaid Services."
aistudio.google.com
Gemini APIZero data retention
"If your workload requires guaranteed zero data retention or enterprise data processing agreements, use Vertex AI."
aistudio.google.com
Gemini APIGrounding with Google Search
"Google stores prompts, contextual information, and generated output for thirty (30) days…"

Google says there is no way to turn this off.

aistudio.google.com

Strengths 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

  1. Use a paid Cloud project.
  2. Leave grounding with Google Search or Google Maps off, since Google keeps those prompts 30 days.
  3. Set store to false on the Interactions API, which stores state by default.
  4. Skip explicit context caching and the File API. Implicit caching stays in memory up to 24 hours, says the Gemini API zero retention page.
  5. For a guarantee, move to Vertex AI, turn off caching and request-response logging, and set store to false.

Other API policies