Model: gemini-3.5-flash / gemini-3-flash-preview / gemini-3.1-flash-lite
Hi everyone, I’ve recently discovered that the Gemini API seems to be failing to hit the context cache.
I’ve made several rounds of calls to the API using the same system instructions, and normally a context cache hit should occur.
However, I can’t read cached_content_token_count in the response usage.
Response Example:
{
…,
“usageMetadata”:{“candidatesTokenCount”:107,“promptTokenCount”:13001,“promptTokensDetails”:[{“modality”:“TEXT”,“tokenCount”:13001}],“totalTokenCount”:13108}
}
The thoughts_token_count also disappeared.
I’m sure the request had thoughtLevel='low' set.
Dozens of conversations were conducted, but these counts did not appear in the logs.
I saw a thoughtSignature appear in the tool call request log, but the response didn’t show any token usage count.
Has anyone else observed the same problem?