Context cache not available for Gemini 2.0 Flash free tier?

Hello there

Anybody knows if this is can be right:

createInitialCache - Response Text (RAW): {
“error”: {
“code”: 429,
“message”: “TotalCachedContentStorageTokensPerModelFreeTier limit exceeded for model gemini-2.0-flash: limit=0, requested=4941”,
“status”: “RESOURCE_EXHAUSTED”
}
}

I thought i could use the cache with gemini 2.0 flash free tier, but since ive just tried this code a couple of times with my api, maybe i cant use it at all? Anybody know anything about this?

I thought i had 1.000.000 tokens to cache for free: Gemini Developer API Pricing  |  Gemini API  |  Google AI for Developers

I might have used 3-4 times the tokens, but not near 1.000.000.

Any help is much appreciated :slight_smile:

1 Like

Hi @Uvh, Welcome to forum!!

Are you using Caching with any other model as well?? You can check the list as per this doc.
If so, try again with deleting the cache.

Gemini API rate limit applies per project, so that also while using free tier API key.

Whats up with this thread? I have the same Issue, but it seems OP solved the problem??

1 Like

exactly the same problem