◉GEMINI LABJP
●ARGON — gemini-4-argon is generally available as of 10/13, aimed at complex coding, agents, math and science●DEEP RES — deep-research-pro-preview-12-2025 shuts down 10/23, 6 days left. Move to deep-research-preview-04-2026●NANO — gemini-nano-banana-2.1 is GA (10/06). gemini-3.1-flash-image is deprecated with no shutdown date yet●MCP — One write-up cut an 85,000-token tool result to 310 tokens by wrapping it in an ADK FunctionTool●FLASH — gemini-3.7-flash and 3.5-flash now route automatically to newer Flash models (10/08)●NEW — Stop Re-Reading Every Crash Report: Gre…●ARGON — gemini-4-argon is generally available as of 10/13, aimed at complex coding, agents, math and science●DEEP RES — deep-research-pro-preview-12-2025 shuts down 10/23, 6 days left. Move to deep-research-preview-04-2026●NANO — gemini-nano-banana-2.1 is GA (10/06). gemini-3.1-flash-image is deprecated with no shutdown date yet●MCP — One write-up cut an 85,000-token tool result to 310 tokens by wrapping it in an ADK FunctionTool●FLASH — gemini-3.7-flash and 3.5-flash now route automatically to newer Flash models (10/08)●NEW — Stop Re-Reading Every Crash Report: Gre…
Articles/API / SDK
◈ API / SDK/2026-07-05Advanced

Catching only the deprecations that touch you — feeding the official changelog to url-context

I found out an image model was being shut down three days before the deadline. Here is a deprecation radar that reads the official changelog through url-context and surfaces only the models I actually use, with working Python and the over-alerting tuning I had to do in production.

gemini-api286url-contextdeprecation9structured-output28automation55production140

✦ Premium Article

I realized an image generation model was being retired on August 17 only three days before the deadline. As an indie developer running iOS and Android apps while also maintaining a few technical blogs, I honestly do not have the time to read the changelog of every API I touch, every day. That day I happened to open the changelog, saw the deadline staring back at me, and felt my stomach drop.

The problem was not that the information was missing. It was published, clearly and on time. I simply could not go read it every day. And if that is the real bottleneck, then the reading is what should be automated — especially if the automation grounds itself on the official page and surfaces only the deprecations that hit the models I actually use. Do that, and the notifications suddenly go quiet.

Gemini's url-context makes this straightforward to build. Below, we assemble a deprecation radar that reads the official changelog through url-context, cross-references it against your own list of models, and alerts you only on the delta. Pitfalls included, in a form you can run today.

Do not cram grounding and structured output into one call

Let me share the one design decision that matters most. Miss it, and you will end up rewriting the whole thing.

A call that enables a tool like url-context and a call that enforces strict JSON output via response_schema do not behave reliably when you put them in the same generate_content request. The path where the tool returns fetched content and the path that structures output against a schema compete with each other — the schema gets ignored, or the tool never fires. I burned half a day here.

So we split the work into two stages.

StageJobToolOutput
1Read the official page and extract deprecation notices as plain texturl-context enabledPlain text
2Cross-reference that text with your manifest and structure only the impactNo tools, response_schema onlyStrict JSON

Two calls looks wasteful at first, but in practice it is cheaper. Stage 1 runs fine on the lightweight gemini-flash-latest, and stage 2 only receives the already-extracted short text, so its input token count stays small. In my setup the total lands at a few cents per run, and running it three times a month is nothing.

Step 1: put the models and endpoints you actually use on one sheet

The radar's precision is decided by your own ledger — the thing you cross-reference against. Leave it vague and you get a noisy notifier that reacts to every deprecation in the world.

I keep everything my apps and sites actually call in a single YAML file. The key is to always record where each one is used. When a deprecation notice arrives, the first thing I want to know is which app I have to fix.

# manifest.yaml — the Gemini surfaces I actually use
used:
  - id: "gemini-flash-latest"
    kind: model
    where: ["wallpaper-app-android", "labs-auto-post"]
    note: "Main lightweight generator. An alias, so watch for silent promotion"
  - id: "gemini-embedding-2"
    kind: model
    where: ["labs-related-articles"]
  - id: "url_context"
    kind: feature
    where: ["labs-migration-radar"]
  - id: "batch-api"
    kind: feature
    where: ["wallpaper-app-review-classify"]
watch_pages:
  - "https://ai.google.dev/gemini-api/docs/changelog"
  - "https://ai.google.dev/gemini-api/docs/deprecations"

Writing the App Store / Google Play app name, or which blog's auto-posting pipeline, into where means I know the fix target the moment I read the alert. I even note the screens that wire into AdMob, as a reminder to not break the ad initialization order when I swap a model out.

✦

Thank you for reading this far.

Continue Reading

What follows includes implementation code, benchmarks, and practical content we hope you'll find useful. This site runs without ads — server and development costs are supported entirely by members like you. If it's been helpful, we'd be truly grateful for your support.

WHAT YOU'LL LEARN
✦If you are tired of tracking model deprecations by hand, you will be able to point url-context at the official changelog and automatically catch only the changes that affect the models you actually run
✦You get the two-call design that keeps grounding and structured output apart, plus state management that alerts only on the delta since last run, as working Python
✦You take home the over-alerting and blind-spot fixes I learned in production: alias drift, wording of notices, and the danger of a swallowed retrieval failure
Secure payment via Stripe · Cancel anytime
✦

Unlock This Article

Get full access to the rest of this article. Buy once, read anytime. This site is ad-free — your support goes directly toward keeping it running.

or
Unlock all articles with Membership →
Share

Thank You for Reading

Gemini Lab is ad-free, supported entirely by members like you. We publish practical guides daily with implementation code, benchmarks, and production-ready patterns. If you've found it useful, we'd love to have you on board.

  • ✦Copy-paste ready implementation code
  • ✦New advanced guides published daily
  • ✦$5/mo or $10 for lifetime access
View Membership →

Related Articles

◈ API / SDK2026-05-20
Evolving Gemini API Structured Output Schemas in Production — Design Notes from an Indie App
How I rebuilt the JSON contract layer for a Gemini-powered recommendation feature in a long-running indie app — Dual-Emit, Sunset protocol, and a Python compatibility checker.
◈ API / SDK2026-08-22
Once You Pass Twenty Mediation Groups, How Do You Find the Setting That Went Missing?
As ad mediation groups multiply, missing sources and type drift accumulate quietly. Here is the split I settled on: normalize the settings into one matrix, let code confirm the gaps, and send Gemini only the cells that need judgment.
◈ API / SDK2026-07-23
When to Hand Conversation State to the Server: previous_interaction_id vs. Pruning History Yourself
With the Interactions API, passing previous_interaction_id lets the server hold conversation state so you stop resending history. But a large tool output that lands mid-conversation can't be pruned afterward, and every later turn drags its weight. Here is a branching design that mixes server-side state with client-side pruning, plus a thin, working Python wrapper.