◉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…
TAG

api-key

4 articles
← Back to all tags
Related:
troubleshooting3gemini-api3security2gemini-cli1authentication1google-cloud1google-genai1vertex-ai1production1prompt-injection1advanced1
⟐ Gemini Dev/2026-09-29Intermediate

Gemini CLI Kept Saying 'API key not valid' After I Gave It a New Key — It Was Reading an Old One From a Third Place

I switched Gemini CLI from Google login to a paid API key, and the 400 'API key not valid' error would not go away. The key can come from four places — the shell, a project .env, a home .env, and settings.json — and a short script that lights them up in order narrows the cause to one.

◈ Gemini API/2026-05-29Intermediate

Why HTTP Referrer Restrictions on Your Gemini API Key Cause 403 Errors in Production

Walks through why a Gemini API key with HTTP referrer restrictions can suddenly return 403 PERMISSION_DENIED in production. Covers the exact referrer string format, SDK behavior differences, how to safely route around the limitation with a tiny edge proxy, and how it differs from the CORS error you hit when calling straight from the browser.

◈ Gemini API/2026-04-28Beginner

Gemini API: GEMINI_API_KEY vs GOOGLE_API_KEY — Which One Should You Actually Use?

A practical, SDK-by-SDK guide to the GEMINI_API_KEY vs GOOGLE_API_KEY confusion. Covers precedence rules, the Vertex AI auto-switch, and four real-world traps with diagnostic snippets you can paste into a running app.

◈ Gemini API/2026-03-26Advanced

Gemini API Production Security Guide — API Key Management, Prompt Injection Defense, and Audit Logging

Securing the Gemini API in production: API key rotation, input/output sanitization, prompt injection defense, audit logging, and rate limiting, with production-ready code.