Repository Public
1This page outlines the storage and management of2[Gemini API logs](https://ai.google.dev/gemini-api/docs/logs-datasets), which are developer-owned3API data from supported Gemini API calls for projects with billing enabled. Logs4encompass the entire process from a user's request to the model's response.5These logs which are private to your Google Cloud project are separate from any6logs held solely for [abuse monitoring](https://ai.google.dev/gemini-api/docs/usage-policies)7purposes.89## Data that can be shared1011As a project owner you have the choice to opt-in to logging of Gemini API calls,12for your own use or for feedback and sharing with Google to help us continually13improve our models.1415With logging enabled, you can help us build AI systems that continue to be16valuable for developers across various fields and use cases by choosing to17contribute the following data for product improvements and model training:1819- **Datasets:** Use the Logs and Datasets interface of Google AI Studio to choose logs (requests, responses, metadata etc.) of interest from supported Gemini API calls; contributed through inclusion in datasets, with the option to opt-out during dataset creation.20- **Feedback:** When reviewing logs, you can provide feedback; including thumbs up and down ratings and any written comments you provide.2122When you share a dataset with Google, your logs in that dataset, including23requests and responses, will be processed in accordance with our24[Terms](https://developers.google.com/terms) for25"[Unpaid Services](https://ai.google.dev/gemini-api/terms#data-use-unpaid),"26meaning the dataset may be used to develop and improve Google27products, services, and machine learning technologies, including improving and28training our models. **Do not include personal, sensitive, or confidential29information.**3031> [!NOTE]32> **Note:** Options are dependent on your location.3334## How we use your data3536Logs are retained for a default maximum period of 55 days. After this period,37logs are automatically marked for deletion. The storage retention window for a38project can be updated in AI Studio to automatically mark logs for deletion39after 7, 14, 28, or 55 days.4041[Datasets](https://ai.google.dev/gemini-api/docs/logs-datasets) can be created to retain logs of42interest beyond the set retention period for downstream use cases and43optional contribution to model improvements. Logs stored in datasets don't44have set retention periods.4546By default, because logging is only available for billing-enabled projects,47prompts and responses within logs are not used for product improvement or48development, in accordance with our [Terms](https://developers.google.com/terms)49on data use.5051If you choose to share datasets of your logs with Google, those datasets will be52used as real-world demonstration data to better understand the diversity of53domains and contexts AI systems and applications are used in. This data may be54used to improve model quality, and inform the training and evaluation of future55models and services. This data is processed in accordance with our data use56terms for [Unpaid Services](https://ai.google.dev/gemini-api/terms#data-use-unpaid).5758Accordingly, human reviewers may read, annotate, and process the API inputs and59outputs you share. Before data is used for model improvement, Google takes steps60to protect user privacy as part of this process. This includes disconnecting61this data from your Google Account, API key, and Cloud project before reviewers62see or annotate it.6364## Data permissions6566By opting-in to contributing API data, you confirm that you have the necessary67permissions for Google to process and use the data as described in this68documentation. **Please do not contribute logs containing sensitive,69confidential, or proprietary information obtained through the paid service** .70The license you grant to Google under the "[Submission of Content](https://developers.google.com/terms#b_submission_of_content)"71section in the API Terms also extends, to the extent required under applicable72law for our use, to any content (e.g., prompts, including associated system73instructions, cached content, and files such as images, videos, or documents)74you submit to the Services and to any generated responses.7576## Data sharing and feedback7778You can help us advance the frontier of AI research, the Gemini API and Google79AI Studio by opting in to share your data as examples, enabling us to80continually improve our models across various contexts and build AI systems that81continue to be valuable to developers across various fields and use cases.