Page Summary
-
This document outlines the quotas and system limits for using Gemini Code Assist and Gemini CLI.
-
Quotas represent the amount of a shared resource you can use, while system limits are fixed values.
-
Gemini Code Assist and Gemini CLI have quotas for local codebase awareness, code customization repositories, and requests per user per minute/day, which vary depending on the edition or license type.
-
Usage of Gemini Code Assist on GitHub has separate quotas for pull request reviews.
-
Quotas for Gemini in BigQuery's code assistance features are the same as Gemini Code Assist, with additional quotas for advanced features based on BigQuery usage.
- Quotas specify the amount of a countable, shared resource that you can use.
- System limits are fixed values that cannot be changed.
Quotas for Gemini Code Assist
Gemini Code Assist enforces quotas for certain features.
| Quota | Value |
|---|---|
| Local codebase awareness | 1,000,000 token context window |
| Code customization repositories | 20,000 |
Quotas for agent mode and Gemini CLI
Quotas for requests from Gemini Code Assist agent mode and Gemini CLI are combined. When in agent mode or when using the Gemini CLI, one prompt might result in multiple model requests.
| Quota | Gemini Code Assist edition or license type | Way(s) to purchase | Value |
|---|---|---|---|
| Requests per user per minute | For individuals (free) | N/A | 60 |
| Gemini Code Assist via Google AI Pro | Google AI Pro | 120 | |
| Gemini Code Assist via Google AI Ultra | Google AI Ultra | 120 | |
| Standard | Google Developer Program premium or Google Cloud console | 120 | |
| Enterprise via Google Cloud | Google Cloud console | 120 | |
| Requests per user per day | For individuals (free) | N/A | 1000 |
| Gemini Code Assist via Google AI Pro | Google AI Pro | 1500 | |
| Gemini Code Assist via Google AI Ultra | Google AI Ultra | 2000 | |
| Standard | Google Developer Program premium or Google Cloud console | 1500 | |
| Enterprise | Google Cloud console | 2000 |
Quotas for Gemini Code Assist on GitHub
Usage of Gemini Code Assist on GitHub is not counted as part of the general quotas for Gemini Code Assist.
Users of the consumer version of Gemini Code Assist on GitHub have a quota of 33 pull request reviews per day.
Users of the enterprise version of Gemini Code Assist on GitHub (Preview) have a quota of at least 100 pull request reviews per day.
- The exact number of pull request reviews depends on the codebase and how many model calls are required to complete each code review. Because of this, in some cases the quota can be significantly greater than 100.
Gemini in BigQuery
For information about Gemini in BigQuery limits, see BigQuery Quotas and limits.
How to obtain higher daily model request limits
To adjust agent mode and Gemini CLI quotas, individual developers can purchase the Google Developer Program premium, Google AI Pro or Google AI Ultra.
If you are at a business or organization, we recommend purchasing the Standard or Enterprise edition of Gemini Code Assist. For more information about how to manage quotas within Gemini Code Assist Standard or Enterprise, see View and manage quotas.