Gemini API Changes This Week: gemini-api CLI Beta, Computer Use GA and Request Logging On by Default
What Changed in the Gemini API?
Google's Gemini API release notes list three changes in the last week of October 2026:
| Date | Change | Who it affects |
|---|---|---|
| October 26 | Generate Content API requests are stored by default (store=true) for new paid-tier projects |
Anyone creating a new project |
| October 27 | The gemini-api CLI ships in beta |
Teams scripting Gemini from shells, CI or coding agents |
| October 30 | Computer Use is generally available in the Interactions and GenerateContent APIs | Anyone building browser or desktop agents |
The first one is the quiet one, and the one most likely to surprise you. I'll start there.
1. Request Logging Is Now On by Default for New Projects
From October 26, new paid-tier projects that call generateContent, streamGenerateContent or batchGenerateContent store requests by default. That matches the Interactions API, which already did. Existing projects keep their current setting.
What "stored" means, per the logs and datasets docs:
- Requests show up in the AI Studio Logs dashboard for the project.
- Logs expire after 55 days by default. You can set 7, 14, 28 or 55 days per project.
- Logs you save to a dataset do not expire.
- Log storage applies only to paid-tier projects.
What to do
If your app sends user data, such as support chats, documents or personal details, decide on purpose whether you want it stored.
- Project-wide: turn off Generate Content API logging in the Settings panel of the Logs dashboard. Each API (generateContent and Interactions) has its own toggle.
- Per request: the request-level
storesetting overrides the project setting. The docs' Python example:
config={'store': True} # Set to False to disable logging of this request
The per-request setting needs a recent SDK: google-genai 2.33.0+ (Python), @google/genai 2.31.0+ (JavaScript), google-genai 1.79.0+ (Java) or google.golang.org/genai 1.76.0+ (Go).
One warning from the docs: turning Interactions API logging off also stops automatic storage and retrieval of conversation history, unless you override it per request. Test multi-turn flows after you change it.
2. The gemini-api CLI (Beta)
On October 27, Google released the Gemini API CLI, described as "a stateless, zero-dependency command-line client for AI coding agents." The source is on GitHub under Apache-2.0.
Install
macOS and Linux:
curl -fsSL https://raw.githubusercontent.com/google-gemini/gemini-api-cli/main/scripts/install.sh | bash
With Go:
go install github.com/google-gemini/gemini-api-cli/cmd/gemini-api@latest
There is also a PowerShell installer and prebuilt archives on GitHub Releases. For Docker images and CI, Google recommends the release archives so you can pin a version.
Authenticate
Set GEMINI_API_KEY in your shell and in your agent's environment. On a workstation, gemini-api configure --api-key "YOUR_API_KEY" stores the key in the OS keychain. gemini-api whoami shows which credential is active. In CI, inject the key from a secret store.
What it does
The command groups cover generation (image, tts, music, video, generate), understanding (analyze, transcribe) and managed agents (agent run, status, cancel and more). Two examples from the docs:
gemini-api image "Minimalist isometric icon of a cloud database" --out ./assets/db-icon.jpg
gemini-api transcribe -i ./fixtures/customer-call.mp4 --format srt --out ./fixtures/customer-call.srt
Media commands write a file and print only its path, so you can chain steps in a shell script.
Why it suits agents and CI
- Commands never prompt unless you pass
--interactive. -o json,--jqand--agent-mode(structured JSON errors on stderr) give machine-readable output.- Exit codes are fixed:
0success,1runtime or API error,2usage error,3auth failure. --dry-runpreviews a request offline with credentials redacted.
Google suggests adding usage rules to AGENTS.md, CLAUDE.md or .cursorrules so your coding agent calls it.
Things to watch
- It is beta. Breaking changes can land between minor versions. Pin a release in CI.
generateandagent runneed--stream=falsewith-o jsonor--jq.- Inline
-iinputs are capped at 14 MB of raw data. Larger files needfiles upload, and Files API uploads are deleted after 48 hours. - No bidirectional WebSockets. For real-time voice or video, use the Live API through the SDKs.
- Because of the October 26 change, CLI calls on a new project are logged too. The CLI docs list
"store": falseas an option you can pass through--body(raw Interactions API JSON) to opt out.
3. Computer Use Is Generally Available
On October 30, Google moved the Computer Use tool to GA across both the Interactions and GenerateContent APIs. It lets a model drive a browser, desktop or mobile environment through actions like click, type, scroll and take_screenshot.
The docs' tool config:
tools=[{"type": "computer_use", "environment": "browser"}]
The environments are browser, desktop and mobile.
Safety features you should use
- Confirmation. A function call can carry a
safety_decisionofrequire_confirmationorblocked. For a confirmed action, send asafety_acknowledgementback in thefunction_result. Wire this to a real human prompt. - Policy categories such as
FINANCIAL_TRANSACTIONS,ACCOUNT_CREATIONandLEGAL_TERMS_AND_AGREEMENTS. You can relax them withdisabled_safety_policies, but the model may still ask for confirmation. - Prompt injection detection is opt-in (
"enable_prompt_injection_detection": True). It scans screenshots for hidden instructions. Turn it on for any agent that browses untrusted sites.
GA does not mean risk-free. The page still says Computer Use "may contain errors and security vulnerabilities." Google recommends a sandboxed environment and close supervision, and advises against using it for critical decisions, sensitive data or irreversible actions. Also note that click coordinates are normalized to 0-999, so scale them to your viewport.
The docs page does not cover pricing for Computer Use.
Quick Checklist
- New project created after October 26? Check the Logs settings and decide on storage before you send user data.
- Upgrade your SDK to the minimum versions above if you want per-request
storecontrol. - Trying the CLI? Pin a release, keep the key in a secret store, and use
-o jsonin scripts. - Shipping a Computer Use agent? Run it sandboxed, implement the confirmation flow and enable prompt injection detection.
Related Reading
- GitHub Copilot Fusion Is Generally Available: Effort Levels, Pricing and Admin Controls
- Best Open-Source AI Coding Agents for the Terminal (2026 Roundup)
- jq Playground for testing
--jqfilters on the CLI's JSON output - More AI and developer apps
