Skip to the page
Tecyfy

Does the Gemini API keep your requests? How to turn it off

Yes, in up to 3 ways: a short abuse-monitoring log on every paid request, project logs that new projects keep for 55 days by default since 26 October 2026, and features like Search grounding that store for 30 days. What each copy is, who can use it, and the setting that stops it.

Tecyfy · Published · 7 min read

Woodcut of a letter marked Store half inside a brass mail slot, with an hourglass beside it

Yes. A paid Gemini API request can leave up to 3 kinds of copy behind: a short abuse-monitoring log that every paid request gets, project logs that new projects now keep for 55 days by default, and stores that some features keep for themselves, such as 30 days for Grounding with Google Search. The 2nd is the one that changed: since 26 October 2026, new projects store Generate Content API requests unless you set store=false. Google's terms say paid-tier prompts and responses aren't used to improve its products. The free tier is different, and that is the bigger risk.

What changed on 26 October 2026

Google's Gemini API has had a logs dashboard in AI Studio for a while: every request and response, viewable and exportable, for debugging and evaluation. Until 26 October it was off by default for generateContent. Now new paid-tier projects store generateContent, streamGenerateContent and batchGenerateContent requests by default (store=true), the same as the Interactions API always has. Projects created before that date keep their setting, which is off unless someone turned it on in AI Studio.

So two apps with the same code can behave differently, depending on when their Google Cloud project was made. We covered the change in What changed, 28 October; this page is the full picture.

Logging covers calls through the OpenAI compatibility endpoints too. It doesn't cover Imagen and Veo, embedding models, or inputs that contain videos, GIFs or PDFs.

Who keeps what

Try itWhat Google keeps from one Gemini API request
Also uses
  • KeptAbuse-monitoring logA limited period, only to detect Prohibited Use Policy violations; not used to improve products. To stop it: Not on the Gemini API; Google points to Vertex AI for guaranteed zero data retention.
  • KeptProject logs in AI Studio55 days by default; set 7, 14 or 28 in AI Studio. Logs saved to a dataset don't expire. To stop it: store=false per request, or turn logging off in the Logs and Datasets settings.

2 copies stay behind. Each line says how to remove it; the abuse-monitoring log is the one no setting removes.

From Google's Gemini API terms, logs policy, logs and datasets guide, Interactions API guide and zero data retention page. Paid means a Cloud project with an active billing account.

The abuse-monitoring log. On the paid tier, Google's terms say it logs prompts and responses "for a limited period of time", only to detect Prohibited Use Policy violations and for required legal disclosures. Google gives no figure for that period and no setting that removes it. It is separate from your project logs.

Project logs. These are yours: Google calls them developer-owned data, private to your Cloud project. They expire after 55 days unless you set 7, 14 or 28 in AI Studio. Logs you save into a dataset don't expire at all, so a dataset made for an eval set is a long-term copy of whatever personal data was in those requests.

Feature stores. Some features keep data whatever you set:

FeatureWhat is keptFor how longCan you stop it
Grounding with Google SearchPrompts, context and output30 daysNo, short of not using it
Grounding with Google MapsPrompts, context and output30 daysNo, short of not using it
Live API session resumptionText, audio and video stateUp to 24 hoursDon't configure SessionResumptionConfig
File APIThe uploaded fileUntil deleted or expiredDelete it after use
Explicit context cacheThe cached contentUntil its ttl or expire_timeDon't use cached_content
Stored interactionsThe whole interaction55 days paid, 1 day freestore=false

Implicit caching is the exception: Google holds it in memory only, per project, for 24 hours, and says it doesn't count against zero retention. How caching saves money is in Prompt CachingPrompt CachingLetting the API keep the processed start of a prompt for a few minutes, so later requests that begin the same way are cheaper and quicker., and what grounding does in GroundingGroundingMaking a model answer from sources you give it, such as retrieved documents, and only from them, so every statement can be traced to a passage and a missing answer is admitted, not invented..

How to turn logging off

Per request, with store=false. It overrides the project setting, so it is the one to rely on in code that might run in any project:

from google import genai

client = genai.Client()

response = client.models.generate_content(
    model="gemini-3.8-flash",
    contents="Summarise this support ticket: ...",
    config={"store": False},
)

That needs google-genai 2.33.0 or later in Python; @google/genai 2.31.0 in JavaScript, google-genai 1.79.0 in Java and google.golang.org/genai 1.76.0 in Go. Older SDKs can't set it, so upgrade first or use the project switch.

Per project, in AI Studio: open the Logs and Datasets page, then Settings, and turn off logging for the Generate Content API and the Interactions API separately. Do it for each new project as you create it, since the default for new ones is on.

On the Interactions API, store=false has a cost. Without a stored interaction you can't continue a conversation with previous_interaction_id, and you can't run in the background. If you need those, keep storage on and shorten retention to 7 days, then delete interactions you no longer need with the API's delete method.

Does Google train on it?

It depends on whether you pay, not on these settings.

  • Paid tier (a Cloud project with an active billing account): Google doesn't use prompts or responses, including system instructions, cached content and files, to improve its products. Project logs aren't used either, unless you share a dataset with Google.
  • Free tier (unpaid quota, and AI Studio without billing): Google uses what you send to improve its products and models, and human reviewers may read it after Google disconnects it from your account and key. Google's own terms say not to send sensitive, confidential or personal information.
  • EEA, Switzerland and the UK: the paid-tier data terms apply to every service, free ones included, and an app that serves users there must be on the paid tier.

There is now a third path. The Gemini API Contributor Tier, an invite-only private preview, gives up to 50% off token costs on Gemini 4 Argon, Gemini 3.1 Pro Preview, Gemini 3.8 Flash and Gemini 3.5 Flash-Lite, in exchange for your data from those models falling under the free-tier terms. Google asks you not to send sensitive or personal information under it, so it suits only data you'd be happy for Google to use. Today's prices for those models are on our price list.

When you need zero retention

The Gemini Developer API can get close: paid tier, store=false, no grounding, no explicit cache, no session resumption and files deleted after use. The abuse-monitoring log remains. Google's own advice for workloads that need guaranteed zero data retention, or an enterprise data processing agreement, is Vertex AI rather than the Gemini API.

For OpenAI's models, Azure OpenAI vs OpenAI covers the same question of who processes your data. If your app handles customer data, check 3 things before launch: the project's billing, its logging settings, and which tools the model is allowed to call.

Questions

Does the Gemini API store my prompts?
On the paid tier, Google keeps a short log of prompts and responses only to detect abuse, and does not use them to improve its products. Separately, project logs that you can see in AI Studio are on by default for the Interactions API and, since 26 October 2026, for the Generate Content API in new projects. They are kept for 55 days unless you shorten that to 7, 14 or 28, or turn them off.
How do I turn off Gemini API logging?
Set store=false on each request (in Python, config={'store': False} for generate_content), or turn off Generate Content API and Interactions API logging in the Settings panel of the Logs and Datasets page in AI Studio. The request-level setting wins over the project setting. Setting store on Generate Content API requests needs google-genai 2.33.0 or later for Python and @google/genai 2.31.0 or later for JavaScript.
Does Google train on Gemini API data?
Not on the paid tier: Google's terms say it doesn't use paid-tier prompts or responses to improve its products. On the free tier, including AI Studio without a billing account, Google uses them to improve its products and models and human reviewers may read them. Data you share with Google as a dataset, or send under the Contributor Tier discount, is used under the free-tier terms.
Does the Gemini API offer zero data retention?
Not as a guarantee. You can remove project logs, avoid stored features and delete files, but paid-tier requests still pass through a short abuse-monitoring log. Google's docs say that workloads needing guaranteed zero data retention or enterprise data processing agreements should use Vertex AI.
How long does the Gemini API keep data?
Project logs and stored interactions: 55 days by default on the paid tier, configurable to 7, 14 or 28; stored interactions on the free tier: 1 day. Grounding with Google Search or Google Maps: 30 days, with no way to turn it off. Live API session state: up to 24 hours. Uploaded files and explicit caches: until you delete them or they expire.