◉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

Python

159 articles
← Back to all tags
Related:
gemini-api94Gemini API41production40gemini23troubleshooting22automation18cost-optimization13multimodal11indie-dev9structured-output6error6function-calling6
◈ Gemini API/2026-06-11Intermediate

Gemini 3.2 API Developer Guide — Correct Model IDs, Migration from 3.1, and Production Checklist

A practical guide to calling Gemini 3.2 via the API: correct model IDs, what changed from Gemini 3.1, Python and TypeScript code examples, and a production migration checklist.

◈ Gemini API/2026-06-01Intermediate

Empty Output but finish_reason Is MAX_TOKENS on Gemini 2.5/3: Cause and Fix

Your prompt is just a few lines, yet a low maxOutputTokens on gemini-2.5-flash returns empty text with finish_reason MAX_TOKENS. The culprit is thinking tokens. Here are three fixes with working code.

◈ Gemini API/2026-05-30Intermediate

Why Gemini 2.5 Pro Rejects thinkingBudget: 0 (and How to Fix It)

Setting thinkingBudget to 0 on Gemini 2.5 Pro returns a 400 INVALID_ARGUMENT error. Here is why the per-model thinking budget ranges differ, how to minimize thinking on Pro the right way, and when to switch to Flash, with Python and JavaScript examples.

◈ Gemini API/2026-05-28Intermediate

Why per-turn generationConfig is ignored in Gemini API chat sessions

If you pass a different generationConfig (temperature, max_output_tokens, response_schema) to each send_message in a google-genai chat session and the behavior never changes, this walkthrough shows what is actually happening, why the SDK is designed that way, and three workarounds we use in production for review-summary and reply-draft pipelines.

◈ Gemini API/2026-05-25Intermediate

When gemini-2.5-flash-image Ignores Your Reference Image — Diagnosing Why Nano Banana Returns a Totally Different Picture

A field-tested triage order for the situations where gemini-2.5-flash-image (Nano Banana) silently ignores your reference image, swaps the subject, or refuses to honor your edit instructions. Covers parts ordering, response_modalities, image size, and chat-session pitfalls with runnable code.

◈ Gemini API/2026-05-24Intermediate

Why Your Gemini File API Uploads Vanish After 48 Hours — and How to Code Around It

Gemini File API resources are auto-deleted 48 hours after upload. Here is how to recognize the failure, why it happens, and concrete patterns for re-uploading, falling back to inline data, and managing expiration safely.

◈ Gemini API/2026-05-14Intermediate

3 Gemini Code Execution Errors and How to Fix Them — Import Errors, Timeouts, and Empty Outputs

Fix the most common Gemini API Code Execution issues: missing tool configuration, unsupported library imports, and timeout errors. Includes working code examples for each fix.

◈ Gemini API/2026-05-13Intermediate

Building an AdMob Revenue Anomaly Detector with Gemini API Function Calling

Learn how to build an automatic AdMob revenue anomaly detection system using Gemini API Function Calling — with real Python code, practical tips from 10+ years of indie app development, and Slack alerting integration.

◈ Gemini API/2026-05-12Intermediate

Automating Pre-Release UI Checks with Gemini 3.2 Flash Vision — A Personal Dev Story

How I used Gemini 3.2 Flash's multimodal input to automatically QA iOS/Android app screenshots before each release. Detect text overflow, dark mode contrast issues, and layout breaks with a 30-line Python script — and why this works for indie developers without a QA team.

◈ Gemini API/2026-05-12Intermediate

Gemini File API Stuck in PROCESSING State: Timeout Handling and Retry Design

Fix Gemini File API files stuck in PROCESSING state. Learn proper polling with exponential backoff, timeout design, and cleanup strategies with working Python code examples.

◈ Gemini API/2026-05-11Intermediate

Gemini 3.2 API Suddenly Broke — 5 Common Errors and How to Fix Them

Switched to Gemini 3.2 API and hit a wall? This guide covers 5 common errors developers encounter during migration — wrong model IDs, rate limits, context overflow, streaming interruptions, and Function Calling schema failures — with working code fixes.

⬡ Gemini Advanced/2026-05-10Advanced

Turning my own artworks into 120 wallpaper variants in 30 days with Gemini 3.2 Pro and Imagen 4 — an artist-developer's content supply pipeline

A 30-day production log of building a pipeline that takes one of my own paintings and expands it into a 120-piece wallpaper series, using Gemini 3.2 Pro for structural analysis and Imagen 4 for variations. Includes real costs, quality gates, and downstream app KPIs.