Title: Gemini 4 removes explicit context caching: my per-call cost goes up 4× with no way to control it

Hello @fidiasd99f

Thanks for the detailed report. Gemini 4 models (gemini-4-hydrogen, gemini-4-argon, and gemini-4-carbon) use implicit caching only and do not support cachedContents. Implicit caching runs automatically on prompts of at least 4,096 tokens and discounts cached input tokens by 95% on cache hits, though hits are best-effort rather than guaranteed even with a shared prefix. In generateContent, cached counts appear under usageMetadata.cachedContentTokenCount (usage.total_cached_tokens is for the Interactions API).

For predictable per-call caching today, we recommend staying on gemini-3.8-flash (gemini-3.8-flash has introductory pricing through December 31, 2026, while gemini-4-hydrogen uses standard rates). For async jobs on gemini-4-hydrogen, the Batch API (batchGenerateContent) offers a 50% discount with a 24-hour target turnaround.

gemini-3.8-flash is a Stable model with no shutdown date or automatic routing announced. Deprecations, shutdowns, and cross-generation routing migrations (with migration guides for breaking changes) are announced ahead of time in our release notes and deprecations documentation.

References: