Related:
◈ Gemini API/2026-07-06Advanced
When Context Caching Didn't Lower My Gemini Bill — Field Notes on Measuring the Real Hit Rate
When Context Caching is enabled but the Gemini API bill barely drops, this field note measures the real hit rate from usage_metadata, separates TTL churn from fragmentation, and walks through a staged recovery.
◈ Gemini API/2026-04-27Intermediate
Why Your Gemini File URI Suddenly Returns 404 — Designing Around the 48-Hour TTL
Your Gemini-powered image or video pipeline worked perfectly yesterday, then started returning 404 the morning after a restart. The culprit is the File API's 48-hour TTL. Here is how to detect it and design an app that survives it.