What Happens to My Uploaded Files When Using Google API with Gemini 2.0 Flash? Storage Limits and Default Behavior Explained

When using the Google API in conjunction with Gemini 2.0 Flash, users can upload various types of media, such as images or videos, for processing or storage. However, many users may wonder about the default behavior when they exceed certain storage limits within a short period of time.

For instance, if I continuously upload files—such as images or videos—and the total size of my uploads exceeds 20GB without manually deleting any content, what happens next? Will the system automatically delete the oldest uploaded files to make room for new ones?

@Pei_Liu

when you are using Gemini API, you can use Files API to upload files >20KB
these files will be available to reference for 48 Hrs in files api . each file could be up to 2GB and a total of 20GB will be available.

you can have a look at files API documentation for more info