GEMINI LABJP
OMNI — Gemini Omni is rolling out globally to all Google AI subscribers 18 and over, letting you create and edit video as easily as having a conversationSPARK — Gemini Spark has arrived in the Gemini app for macOS, available in English for Google AI Ultra subscribersAGENT — The general-purpose managed agent antigravity-preview-05-2026 is in public preview, autonomously planning, running code, and browsing the web inside its sandboxSHEETS — Since July 15, AI Expanded Access licenses get higher limits for Fill with Gemini and the AI function in SheetsSTUDENT — The free Gemini upgrade for students in Japan, Indonesia, the UK, and Brazil runs through July — sign up this month if you're eligibleIMGEND — Legacy image generation models shut down on August 17, 28 days away. Now is a good time to migrate to newer models like Nano Banana 2 LiteOMNI — Gemini Omni is rolling out globally to all Google AI subscribers 18 and over, letting you create and edit video as easily as having a conversationSPARK — Gemini Spark has arrived in the Gemini app for macOS, available in English for Google AI Ultra subscribersAGENT — The general-purpose managed agent antigravity-preview-05-2026 is in public preview, autonomously planning, running code, and browsing the web inside its sandboxSHEETS — Since July 15, AI Expanded Access licenses get higher limits for Fill with Gemini and the AI function in SheetsSTUDENT — The free Gemini upgrade for students in Japan, Indonesia, the UK, and Brazil runs through July — sign up this month if you're eligibleIMGEND — Legacy image generation models shut down on August 17, 28 days away. Now is a good time to migrate to newer models like Nano Banana 2 Lite
ARTICLES

All Articles

All (733) Gemini Basics (57) Dev Tools (106) API & SDK (405) Advanced (110) Workspace (37) Updates (18)
API & SDK/2026-06-28Advanced

Mixing Text and Images in One File Search Skewed My Results Toward Images — Rebalancing by Modality After Retrieval

When you put text and images in a single File Search store with gemini-embedding-2, results can quietly skew toward one modality. Here is how to measure that skew and even it out after retrieval, using per-modality normalization and quota-based merging — with working code.

API & SDK/2026-06-28Intermediate

Audit Your Gemini API Key Restrictions Before the Unrestricted-Key Block Stops Your Automation

Since June 19, 2026, requests from unrestricted Gemini API keys are blocked. Here is how to check whether your key is affected and add restrictions without taking your production automation down.

API & SDK/2026-06-28Advanced

A Promotion Gate So gemini-flash-latest Flipping to 3.5 Flash Doesn't Break Your Pipeline at 3 AM

Floating aliases like gemini-flash-latest swap their target on every GA, quietly shifting the assumptions your unattended automation depends on. Here is a role-to-pinned-ID indirection layer, an acceptance harness that measures four metrics against your own golden set, and threshold-driven promotion and automatic rollback — with working code.

API & SDK/2026-06-27Advanced

Don't Retry Every Gemini 429 — Telling Rate Limits Apart From Spend Cap Exhaustion

A 429 RESOURCE_EXHAUSTED can mean 'wait a second and it clears' or 'you're out of budget for the month.' Now that Project Spend Caps is generally available, the second case is real in production. Here's how to classify the two and build a retry layer plus a circuit breaker around them.

API & SDK/2026-06-27Advanced

Stopping Runaway Costs Twice: Project Spend Caps Plus an App-Side Soft Limit

Pairing Gemini API Project Spend Caps (a monthly USD ceiling) with an app-side soft circuit breaker that trips before the hard cap. Includes a working Python and sqlite daily cost ledger.

API & SDK/2026-06-27Advanced

Your Gemini Structured Output Keys Keep Reordering — Pin Them With propertyOrdering

You constrained the shape with responseSchema, yet the JSON key order shifts between calls and your snapshot tests go red for no reason. Here is why field order is not guaranteed by default, how propertyOrdering fixes it, how Pydantic sets it for you, and how to align few-shot examples — all with working code.

API & SDK/2026-06-26Advanced

Is Gemini 3.5 Flash Actually Cheaper? Measuring Retry Amplification to Find the Flash vs Pro Break-Even

Now that 3.5 Flash is generally available, it is tempting to route everything to it. But once you measure effective cost per success instead of per-call price, the decision changes. Here is a small harness to measure retry amplification and find the break-even.

API & SDK/2026-06-26Advanced

When Gemini's Safety Filter Silently Drops Legitimate Output — Field Notes on Catching False Positives Without Turning Everything Off

Field notes on handling Gemini API false positives in production without disabling every category. Separating input blocks from output blocks, instrumenting per-category false-positive rates, and recovering by relaxing only the offending category.

API & SDK/2026-06-26Advanced

When your Gemini API spend cap trips, paying users go down too — isolating the blast radius with per-tier projects

A Project Spend Cap stops the entire project at once. To keep a runaway free tier from taking paying users down with it, this is a design note on isolating the cap's blast radius across per-tier projects and closing the ~10-minute delay with an application-side soft budget gate.

API & SDK/2026-06-26Advanced

Reliable Text-in-Image with Gemini 3.1 Flash Image — an OCR-Verified Pipeline

After the preview shutdown, the GA gemini-3.1-flash-image still occasionally garbles text baked into images. Here is a generate -> read-back-verify -> regenerate/composite pipeline, with working code and an unattended retry budget.

API & SDK/2026-06-25Intermediate

Turning Articles into Audio with the Gemini 3.1 Flash TTS Preview: Splitting Long Text, Stitching It Back, and What It Actually Costs

The Gemini 3.1 Flash TTS preview launched today. Here is a single-narrator pipeline that converts a written article into clean audio, including how to split long text, stitch PCM without ugly seams, keep one voice steady, and estimate the real per-article cost.

API & SDK/2026-06-25Advanced

Gemini API × TypeScript Type-Safe AI Application Architecture — Integrating Zod Schemas, Structured Output, and Streaming

Type-safe AI applications with the Gemini API and TypeScript: Zod validation, Structured Output, streaming pipelines, and error handling that holds up in production.