When JSON Shapes Drift Through Gemini's OpenAI Compatibility Layer: Three Steps to response_json_schema Without Rewriting Callers
If your OpenAI SDK code points at Gemini and structured output seems ignored, here is how to check whether a schema is actually sent, and how to move to the Gemini SDK's response_json_schema while keeping the same function boundary.
When Computer Use Ends After a Few Steps — Finding the Reason Among Four Exits
When Gemini API Computer Use stops after a few steps with no error, sort the cause into four exits that follow the official loop: no function_call, turn_limit, safety_decision, or a bad function_result. Includes a short script that logs the exit reason in one line.
An 'API key expired' Error Doesn't Always Mean Expired. Check Which Key Is Actually Sent Before You Renew It
A 400 with API_KEY_INVALID from the Gemini API cannot tell you whether the key expired or something else is wrong. A small diagnostic script checks env-var precedence and stray quotes first, run here against dummy keys.
My ADK Agent Never Ran and Said 'API key expired' — Reading the Reason Code Gave Me a Triage Order
When ADK returns 400 INVALID_ARGUMENT 'API key expired. Please renew the API key.' on every run, check this order before assuming the key expired: read the reason code, compare shell and .env keys by their last four characters, then test the key alone over REST.
New paid projects now start with request storage switched on. Three places to check the day you notice
Gemini API paid projects created on or after October 26, 2026 store generateContent requests by default. How to tell whether your project is affected, how to turn storage off in Logs Settings, how to set store=False per request, and how to shorten retention, following the official wording.
When Model Names Stop Making Sense: Reading Them in Four Parts
How to read a long Gemini model name like gemini-3.8-flash-lite-tts as generation, line, variant and release stage, plus a short script and where to check words you can't read.
Bought Credits but the Balance Still Says 0 — Which Page to Check First for the Gemini API
You bought Gemini API prepaid credits, yet the balance shows 0 and requests still fail with 402. Here is the order I use to tell a short delay from a real billing problem.
When Your config Raises "Extra inputs are not permitted", Check the Spelling of Every Key
If a google-genai call fails with a pydantic ValidationError (extra_forbidden) the moment you pass a config, it is almost always a one-letter typo. Here is the output I reproduced, a small function that checks keys before the call, and how to tell why response.text came back as None.
Deep Research's Old Agent Stops on October 23: Finding and Swapping the Name Across Code and Config
deep-research-pro-preview-12-2025 shuts down on October 23, 2026. A small script to find every use of the old agent name, how to choose between the standard and Max agents, and what to check after the swap.
Free Tier Shows Up, but You Get a 429 With `limit: 0` — What to Check in the First Hour of a New Gemini API Project
A new Gemini API project says Free tier, yet the very first call returns 429 with limit: 0. Here is the order I check things in, how to read the error body, and a 40-line script that tests models one by one.
When a Deprecation Has No Shutdown Date: Re-Picking an Image Model on Three Conditions
gemini-nano-banana-2.1 went GA on October 6, and gemini-3.1-flash-image was deprecated with no shutdown date. Here is a table and a short script for choosing a replacement by resolution, reference images, and search grounding.
Estimating a Sheets-Driven Gemini Bill Across the Year-End Price Switch with Apps Script
If you call the Gemini API from a spreadsheet, log the token counts per call and estimate the month in two columns: the intro price that ends on December 31, 2026 and the standard price from January 1, 2027. Apps Script, with real output.