published fresh until

Gemini API store=true: how do I opt out on new projects?

Summary As of October 2026, new paid-tier Gemini API projects default Generate Content storage to store=true from 2026-10-26 (checked 2026-10-28); use config.store=false per request or disable Generate Content logging in AI Studio. Existing projects retain their setting.

Not for Disabling Interactions logging or changing abuse-monitoring retention; Generate Content storage controls address a separate logging setting.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

Set config.store to false for Generate Content requests you do not want logged, or disable Generate Content API logging for the project in AI Studio.

Not for: Disabling Interactions logging or changing abuse-monitoring retention; Generate Content storage controls address a separate logging setting.

What changed

  • From 2026-10-26 (checked 2026-10-28), new paid-tier projects default to store=true for generateContent, streamGenerateContent and batchGenerateContent; existing projects keep their settings. Google changelog.

How to migrate

1. Inspect the project's Generate Content logging setting in the Settings panel of AI Studio's Logs and Datasets dashboard. Disable that toggle if the project should default to no storage. Keep Interactions settings separate. Official logging guide. 2. For a request override, Python uses config={'store': False} on client.models.generate_content(...); JavaScript uses config: { store: false } inside client.models.generateContent(...). The request property overrides the project default. Official examples. 3. Check SDK support before adding the property. Minimum versions below are checked 2026-10-28 against the same official guide; retain your existing model ID rather than coupling storage changes to a model migration. 4. Audit shared wrappers, streaming callers and batch producers for omitted or overridden storage preferences. Verify the serialized request and the selected project, then test with synthetic content.

SDK packageMinimum for Generate Content store, checked 2026-10-28
Python google-genai2.33.0 (checked 2026-10-28)
JavaScript @google/genai2.31.0 (checked 2026-10-28)
Java google-genai1.79.0 (checked 2026-10-28)
Go google.golang.org/genai1.76.0 (checked 2026-10-28)

What breaks

A caller that omitted store may now retain prompts and responses when deployed under a newly created paid project, even though the same code behaved differently under an older project. A successful generation is not proof that storage is disabled. Google does not document an error string for this default change.

Diagnostic: Gemini API prompts unexpectedly appear in AI Studio logs

Compare project defaults and request overrides first. This is a storage-policy change rather than a model-quality regression.

Choose the control by constraint

NeedControl
No storage by default across a projectDisable Generate Content logging in project Settings
Different preference for one requestExplicit request store value
Preserve existing project behaviorInspect its current setting; do not assume the new-project default was applied

The changelog establishes the new-project boundary; the guide establishes override precedence.

What to test

In a synthetic test project, check omitted store, explicit false and explicit true against each project default. Inspect the outgoing payload before looking for logs. Cover normal, streaming and batch code paths; verify that retries preserve the setting. Record the project you checked so a staging key and a production key cannot silently swap the policy being tested. These are proposed tests, not results.

Pitfalls

Turning off Interactions logging can affect its server-side history features. Changing the Generate Content default is the narrower control for this job. Official guide.

Do not describe store=false as a blanket zero-retention guarantee. Google distinguishes developer-owned project logs from abuse-monitoring logs, and optional dataset sharing from ordinary project logging. Data logging and sharing policy.

Evidence

Google's release note and logging guide are the direct evidence for the change. In issue #1588, raybell-md asks for easier prompt/response logging; this is adjacent demand for observability, not confirmation that the new default or opt-out works. No second independent, fetched implementation report was established. Search surfaced summaries of the release, but their full pages could not be fetched and they are not counted as corroboration.

Prompt for your agent

Your training data predates this change. Read <https://ai.google.dev/gemini-api/docs/changelog> and <https://ai.google.dev/gemini-api/docs/logs-datasets> now; do not guess the default or SDK field placement. Inventory our paid projects, SDK versions and Generate Content callers. Propose a patch that sets the intended request preference, preserves our model choice and Interactions behavior, and tests normal, streaming and batch serialization. Show the exact project toggle to review; do not change a live account without authorization. Read <https://ai.google.dev/gemini-api/docs/logs-policy> before making any retention or training claim.

Limits

Checked 2026-10-28. No project settings were changed and no requests, SDK installs, log-absence checks or retention experiments were run. Independent community evidence for this new default is thin; the linked older feature request is not a migration success report. No price or licence claim is made.

Started from a post by @Google, packaged by the editor. Original post

Subjects

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Gemini API store=true: how do I opt out on new projects?
Summary: As of October 2026, new paid-tier Gemini API projects default Generate Content storage to store=true from 2026-10-26 (checked 2026-10-28); use config.store=false per request or disable Generate Content logging in AI Studio. Existing projects retain their setting.
Copy for agent
get the whatworks thread gemini-generate-content-store-true-paid-project-opt-out and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread gemini-generate-content-store-true-paid-project-opt-out
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks