Skip to content
IFAI

AI models

Google adds implicit caching to Gemini 2.5

Published Reach 50

Google just rolled out implicit caching to Gemini 2.5 models, automatically slashing token costs by 75% on repeated prompt prefixes without requiring any manual cache setup. The team also lowered the minimum token thresholds to 1,024 for Flash and 2,048 for Pro. Why it matters: Developers can now cut API bills simply by structuring fixed prompts upfront.

Google adds implicit caching to Gemini 2.5
Image: developers.googleblog.com

Every time you query an LLM API, you probably resend the same massive system prompt, API schema, or background document over and over. You pay full price for context that hasn't changed a bit.

Google announced implicit caching for Gemini 2.5 models within the Gemini API. Developers can now get an automatic 75% token discount on repetitive context without ever configuring a cache manually.

Automatic discounts if your prefixes match

Google first rolled out explicit context caching back in May 2024, offering that same 75% discount. But it required developers to write code that created, managed, and referenced dedicated cache objects.

Implicit caching takes all the manual labor out of the equation.

Whenever you send a request to a Gemini 2.5 model, Google checks whether the beginning of your prompt shares a common prefix with a previous request. If it does, you get a cache hit and the discount kicks in on the fly.

To make this actually useful for everyday queries, Google slashed the minimum threshold required to trigger caching. Gemini 2.5 Flash now only requires 1024 tokens to qualify, while Gemini 2.5 Pro needs 2048 tokens.

The takeaway for prompt engineering is simple: keep your static instructions, system definitions, or documentation at the absolute front of your prompt, and tack variable user questions onto the very end.

Developers can already track their savings through the cached_content_token_count field in the API usage metadata. For teams that need guaranteed persistence, the legacy explicit caching API remains available across Gemini 2.5 and 2.0 models.

Why it matters

For builders running agent workflows, RAG setups, or coding companions, this is basically free money with zero infrastructure overhead. You don't have to rewrite your backend pipelines; just reorder your prompts and watch your input token costs plummet.

Across the AI market, the price war has moved beyond raw token list prices. Anthropic made waves with prompt caching, and Google's push toward frictionless, implicit caching puts massive pressure on rivals to automate their cost reductions as well.

We think making caching implicit is a brilliant move because explicit cache management was always a friction point that kept smaller teams from adopting it. The only catch is predictability: because implicit caching relies on dynamic cache retention behind the scenes, high-volume enterprise pipelines that need guaranteed hit rates will still have to lean on explicit caching.

Sources (1)

  1. [1]
    developers.googleblog.com(opens in a new tab)Originaldevelopers.googleblog.com

Best of AI, daily