top of page

Gemini 4 implicit caching now lasts up to 12 hours at no extra fee

3 minutes ago
6 min read
Gemini 4 implicit caching now lasts up to 12 hours at no extra fee, Gemini API durable cache storage - Data Studios original cover

Google has changed how the Gemini API keeps cached prompt prefixes for its Gemini 4 models. According to the Gemini API release notes entry dated December 4, 2026, Gemini 4 models can now move evicted implicit cache prefixes into encrypted durable storage on SSD and keep them there for up to 12 hours. Google says the durable layer carries no storage fee, and the caching documentation states that a hit served from SSD receives the same 95% discount on cached input tokens as a hit served from memory.


The change applies to Gemini 4 Carbon, Gemini 4 Neon and Gemini 4 Hydrogen, the three Gemini 4 models currently priced on the Gemini Developer API, and to Gemini 4 Argon until its requests start routing to Carbon on December 15. Token prices are unchanged. What changes is how long a repeated prefix has a chance of being billed at the cached rate, which for Gemini 4 is the only caching mechanism available, since explicit caching through `cachedContents` is not supported on any Gemini 4 model.


Google describes the result in cautious terms. The release note says durable storage "may" raise cache hit rates, and the documentation still calls implicit caching best effort, with no guarantee that a given prefix will be retained. Projects that hold an approved zero data retention (ZDR) exception are excluded and keep in-memory caching only.


··········


GEMINI 4 DURABLE IMPLICIT CACHING: WHAT GOOGLE CHANGED ON DECEMBER 4.


Implicit caching has been switched on by default for Gemini 2.5 and newer models for some time. When several requests share the same opening block of tokens, the API can recognize that prefix and bill it at the cached-input rate instead of the full input rate, without any setup call from the developer. Until this update, those prefixes lived in memory, and once the system evicted them to make room, the next request with the same prefix paid full price.


The December 4 change adds a second tier for Gemini 4. Evicted prefixes can now be written to encrypted SSD storage and kept for up to 12 hours. The caching page states that Gemini 3 and earlier models continue to keep cached prefixes in RAM only, so the new behavior is specific to the Gemini 4 generation.


Google lists several conditions in the documentation. Data in durable storage is encrypted with Google's default encryption, isolated to the customer's project, and not used to train models on Paid Services. Setting `store=False` on the Interactions API still allows implicit caching, including the durable layer. Projects with an approved ZDR exception do not use SSD storage at all. The documentation does not describe a separate usage field that tells developers whether a particular hit came from memory or from SSD; cached tokens continue to appear in `usage.total_cached_tokens` on the Interactions API.


........


Gemini 4 implicit caching

Before December 4, 2026

From December 4, 2026

Where prefixes are kept

Memory only

Memory, then encrypted SSD after eviction

Retention of evicted prefixes

None

Up to 12 hours, best effort

Storage fee

None

None

Discount on cached input

95%

95%, also for SSD hits

Minimum prompt size

4,096 tokens

4,096 tokens

ZDR-exception projects

Memory only

Memory only

Explicit caching

Not supported

Not supported


........


··········


GEMINI 4 CARBON, NEON AND HYDROGEN API PRICES WITH CACHING.


The per-token prices below are taken from the official Gemini API model pages and release notes, as listed on December 6, 2026. All figures are in USD per 1M tokens on the paid tier. Output prices include thinking tokens. Carbon moved to these standard rates on December 1, when its introductory period ended.


........


Model

Input

Output

Cached input

Batch input / output / cached

Gemini 4 Carbon

$4.00

$20.00

$0.20

$2.00 / $10.00 / $0.10

Gemini 4 Neon

$3.00

$15.00

$0.15

$1.50 / $7.50 / $0.075

Gemini 4 Hydrogen

$1.50

$7.50

$0.075

$0.75 / $3.75 / $0.0375


........


Flex prices match Batch on all three models. Priority costs more: $7.20 input, $36.00 output and $0.36 cached for Carbon; $5.40, $27.00 and $0.27 for Neon; $2.70, $13.50 and $0.135 for Hydrogen. Hydrogen is the only one of the three with a free tier, and Batch, Flex and Priority are paid-tier only.


The contrast with the previous generation explains why retention length carries so much weight for Gemini 4 users. On Gemini 3.8 Flash, developers can still create explicit caches with a fixed time to live, at the price of a storage fee that the Gemini pricing page lists at $0.50 per 1M tokens per hour through December 31, 2026, rising to $1.00 from January 1, 2027. Holding a 100,000-token prefix for 12 hours that way costs $0.60 today and $1.20 next year, with a guaranteed hit. On Gemini 4 there is no such option and no fee: the 12-hour SSD tier is free, but retention is never guaranteed.


··········


WHAT GEMINI 4 CACHE HITS ARE WORTH IN A DOCUMENT WORKLOAD.


Google has not published how much durable storage changes real hit rates, so the useful calculation is how sensitive the bill is to the share of the prefix that gets billed at the cached rate. The example below assumes a document question-answering service that sends 1,000 requests a day, each built from the same 100,000-token reference prefix, a 2,000-token question and a 1,000-token answer including thinking. The question and the answer are always billed at full rates; only the shared prefix can be cached.


........


Model

Cost per day, 0% of prefix cached

50% cached

90% cached

Monthly at 90% (30 days)

Gemini 4 Hydrogen

$160.50

$89.25

$32.25

$967.50

Gemini 4 Neon

$321.00

$178.50

$64.50

$1,935.00

Gemini 4 Carbon

$428.00

$238.00

$86.00

$2,580.00


........


The arithmetic for one Hydrogen request at a 90% hit share is 100,000 × (0.9 × $0.075 + 0.1 × $1.50) / 1M plus 2,000 × $1.50 / 1M plus 1,000 × $7.50 / 1M, which gives about $0.032. With no cache hits the same request costs $0.1605, five times more. On Carbon the gap between a cold and a well-cached day is $342 for this workload. These are standard-tier figures; the same pattern applies at half the prices on Batch and Flex.


The workloads that gain the most from a 12-hour window are the ones with gaps between requests: internal tools used through a working day, document pipelines that run in waves, support assistants with quiet hours, and coding agents that pause while a developer reviews changes. Under memory-only caching, a prefix could disappear during those pauses. With SSD retention, a prefix used at 9 a.m. can in principle still be cached in the afternoon. Continuous high-volume traffic, which kept prefixes warm in memory already, should see less difference.


··········


WHAT GEMINI API DEVELOPERS SHOULD CHECK AFTER THE CACHING CHANGE.


No code change is required to use the durable tier, because it sits inside implicit caching, which is on by default. The documented rules for getting a hit still apply. Prompts must contain at least 4,096 tokens on Gemini 4 models, the stable content has to come first and stay byte-identical across requests, and variable content such as the user question belongs at the end.


Agent loops and multi-turn chats on Gemini 4 are governed by a rule that the SSD tier does not change. Each request recomputes a trailing window of 2,050 tokens at the standard input rate, and the full previous request is cached only when the new turn adds at least 2,050 tokens, counting model output, thinking, tool calls, tool results and the new user message. Short turns therefore keep paying full price for their last 2,050 tokens.


Developers should measure the effect on their own traffic by logging cached tokens per request before and after December 4 and comparing hit shares by time of day. Teams that need predictable caching costs rather than best-effort savings can still use explicit caching on Gemini 3.8 Flash, which supports a fixed time to live at the hourly storage fee listed above. Teams under a ZDR exception should not expect any change. Our guide to Gemini API pricing and model rates lists the full price grid, and our troubleshooting guide on Gemini API implicit caching returning 0 cached tokens covers how to structure prompts so that prefixes match. Projects still calling retired 2.5 models should also review the December 1 rerouting of Gemini 2.5 Pro and 2.5 Flash.


··········


GEMINI 4 DURABLE CACHING: CONFIRMED TERMS AND OPEN POINTS.


The confirmed part is narrow and clear. From December 4, Gemini 4 models on the Gemini API may keep evicted implicit cache prefixes on encrypted SSD for up to 12 hours, with no storage fee and the same 95% cached-input discount, while ZDR-exception projects stay in memory and explicit caching remains unavailable on Gemini 4. Prices for Carbon, Neon and Hydrogen did not change.


Google has not said how often prefixes will actually be retained, whether durable storage depends on load or region, or how developers can tell an SSD hit from a memory hit. The release note covers the Gemini Developer API and does not mention Vertex AI. For long-prefix workloads with idle periods, the update can move a large share of input spending to the cached rate, but the size of that saving will only be visible in each project's own usage data.


··········


FOLLOW US FOR MORE.


·····


DATA STUDIOS


·····


datastudios.org


bottom of page