Gemini-4-argon returns no context cache hits; explicit caching returns 400 (gemini-3.7-flash caches the same prefix)

Title: gemini-4-argon returns no context cache hits; explicit caching returns 400 (gemini-3.7-flash caches the same prefix)

Hi, I’m seeing no context cache hits on gemini-4-argon, while gemini-3.7-flash caches the same prefix in the same session.

Setup

- Date: 2026-10-13

- Prefix: systemInstruction of ~36k tokens (1500 numbered lines), identical across calls

- Only the final user question changes between calls

- 15 s between calls, no tools, maxOutputTokens 30

Results (cachedContentTokenCount from usageMetadata)

- gemini-4-argon, AI Studio, 3 calls: 0, 0, 0 (promptTokenCount ~36,172-36,176)

- gemini-4-argon, Vertex AI global, 3 calls: 0, 0, 0

- gemini-3.7-flash, AI Studio, 3 calls: 0, 0, 34,093 (hit only on the 3rd call)

- gemini-3.7-flash, explicit cache (cachedContents, ttl 600s), 2 calls: 36,125 and 36,125 read

Explicit cache on Argon

- POST /v1beta/cachedContents with model models/gemini-4-argon

- Returns 400: “Explicit caching is not supported for models/gemini-4-argon”

Question

The model page says explicit caching is not supported, and the implicit caching table lists Gemini 4 Argon with a 4,096-token minimum. Is implicit caching expected to work on gemini-4-argon? If yes, what conditions are needed beyond the minimum? If no, can the table be updated?

Impact: agent sessions with a large stable prefix pay the full input price on every turn.

Hello @iseixas ,

Thank you for the detailed reproduction script. Explicit caching (cachedContents) is not supported for gemini-4-argon by design, as Gemini 4 models rely on implicit caching (see the Context caching documentation).
We are looking into the implicit caching behavior you reported.

Same here, Mr Sutar !

During our first test, we tried to use a 300k fixed input on Argon and none of the 12 requests got any hit on cache.

We’ll keep using 3.8 Flash till it’s fixed (or, at least, untill explicit cache is allowed!).

Same problem for me. I am calling Argon via livekit

Hi iseixas. I can confirm this is now fixed. Thanks for the report!

Following the October 29 fix announcement, I am still observing missing or very low implicit-cache reporting on gemini-4-argon tool follow-ups via direct Vertex AI global. Could you help determine whether this is expected behavior, a cache-reuse issue, or missing usage metadata?

Concrete example: November 5, 2026 (UTC+8)

These numbers come from retained application logs containing the provider-adapted request payloads and parsed provider usage, not a new controlled benchmark or a raw SSE packet capture.

Request promptTokenCount cachedContentTokenCount Reported ratio
Previous ordinary chat turn 37,250 33,833 90.8%
Next turn, call 1: requests application memory lookup 39,972 33,940 84.9%
Same turn, call 2: answers after lookup results 50,447 Field absent Unknown

The interval from call 1 completion to call 2 start was about 2.4 seconds. Call 2 completed normally: STOP, stream-completed flag true, and no recorded parse errors. Both calls used Vertex global, the same model, and identical systemInstruction, generationConfig and safetySettings. Neither referenced cachedContent.

A structural comparison of the captured final payloads showed:

  • Both contained 65 contents entries.
  • Entries 0 through 63 were identical.
  • The final user entry grew from 14 to 15 parts; all original 14 parts were unchanged.
  • The only appended part was the text memory-lookup result (15,892 characters).
  • Input grew by 10,475 tokens; no history pruning or prefix rearrangement occurred between the two calls.
  • The requests included an unchanged historical image; usage reported 1,100 image tokens in each request, with the remainder text. No audio was involved.

Important: this is an application-level text-command tool loop, NOT native Gemini functionCall/functionResponse. The first answer contains lookup commands, the application runs the lookup, and its text results are appended to the original request for the second generation.

Our UI showed 37.5% for the combined turn because it divided the known 33,940 cached tokens by the combined 90,419 input tokens. That aggregate must NOT be interpreted as a measured 37.5% hit rate for call 2, or as proof that the missing field means zero.

Historical comparison in the same application

For other gemini-2.5-pro tool follow-ups with no explicit cachedContent reference and preserved request prefixes, retained logs showed:

Date Follow-up input Reported cached input Ratio
Oct 30 25,143 24,259 96.5%
Nov 1 45,654 40,473 88.7%
Nov 2 24,947 24,302 97.4%
Nov 2 25,324 22,279 88.0%
Nov 4 32,110 14,191 44.2%

These are historical observations, NOT identical-prompt, same-time, same-region A/B tests; 2.5 also varies. Argon itself sometimes achieves high follow-up hits (e.g. Oct 30: 24,651 / 28,411 = 86.8%), but another preserved-prefix follow-up on Nov 4 reported only 4,916 / 48,528 = 10.1%.

Questions

  1. Does the October 29 fix cover Vertex global and this append-only application-tool continuation pattern?
  2. On a normally completed streamed response, does an absent cachedContentTokenCount definitively mean no cache read, or can cache usage be unreported?
  3. Are there additional requirements for preserving implicit cache reuse when appending a part to the final user contents entry, versus adding native function-response turns?
  4. The documented 2,050-token tail rule does not seem sufficient to explain this case, since call 2 added over 10k input tokens. What non-sensitive diagnostics would help investigate?

I am sharing only redacted structural/statistical evidence; private chat text, images, credentials and project identifiers are intentionally omitted. Thank you.

Hello @cici1 ,

For issues related to the Vertex API, please contact your sales representative if you have one. Otherwise, you can find more relevant assistance on the Google Cloud Forum.

Implicit caching does work for me on the Gemini API, but it has become unreliable since early November. On requests that begin with the complete previous request, my hit rate went from 93% (Oct 25 to 30) to 63% (Nov 2 to 6) to 25% on Nov 9. The misses report no cached tokens at all.

I posted the details in a separate thread, including the request format and 249 per-request rows, in case it’s related: