配额和限制
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
本文档列出了适用于 Gemini Code Assist 的配额和系统限制。
- 配额用于指定您可以使用的可计数共享资源的数量。
- 系统限制是无法更改的固定值。
Gemini Code Assist 配额
Gemini Code Assist 会对某些功能强制执行配额。
配额 |
值 |
本地代码库感知 |
100 万个 token 的上下文窗口 |
代码自定义代码库 |
20,000 |
代理模式和 Gemini CLI 的配额
Gemini Code Assist 代理模式和 Gemini CLI 的请求配额会合并计算。在代理模式下或使用 Gemini CLI 时,一个提示可能会生成多个请求。
配额 |
Gemini Code Assist 版本 |
值 |
每个用户每分钟的请求数 |
个人 |
60 |
标准 |
120 |
企业 |
120 |
每个用户每天的请求数 |
个人 |
1000 |
标准 |
1500 |
企业 |
2000 |
Gemini in BigQuery 配额
对于代码编写协助功能,Gemini Code Assist 和 Gemini in BigQuery 代码请求(针对代码补全和代码生成等功能)的配额是相同的。
对于使用 Gemini in BigQuery 且拥有 BigQuery 按需计算版或企业版/企业 Plus 版的客户,系统会根据上一个完整日历月的扫描 TiB 数或槽小时数的每日平均用量来提供数据分析洞见等高级功能的配额。此配额适用于组织级,并适用于该组织中的所有项目。配额会向上舍入到最接近的 100 个槽时使用量。
每 100 个槽时数的配额(企业版或企业 Plus 版每日平均用量)或使用按需计算模型每扫描 1 TiB 数据的配额 |
值 |
在 Google API 控制台的 Cloud Assist 面板中显示回答的对话、可视化、表格扫描的每日请求数,以及其他请求数。 |
5 |
示例:如果某个组织拥有 100 个槽的企业版预留作为基准,则每天平均使用 2,400 个槽时(100 个槽 * 24 小时 = 2,400 个槽时)。因此,在下个月,他们将获得以下每日配额:
- 每天 120 次对话、可视化、数据分析洞见表格扫描和自动元数据生成
如果您的组织此前尚未购买任何 BigQuery 企业版、企业 Plus 版槽或按需计算 (TiB),则在首次使用后,您将在第一个完整的日历月内获得以下默认配额:
- 每天 250 次对话、可视化、数据分析洞见表格扫描和自动生成元数据
如果您在月中开始使用按需计算、企业版或企业 Plus 版预留,则默认配额将持续有效至下一个月末。
申请增加配额
如需调整大多数配额,您必须
购买 Gemini Code Assist Standard 或 Enterprise 版。如需了解详情,请参阅
查看和管理配额。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-08-31。
[null,null,["最后更新时间 (UTC):2025-08-31。"],[],[],null,["# Quotas and limits\n\nThis document lists the quotas and system limits that apply to Gemini Code Assist.\n\n\u003cbr /\u003e\n\n- *Quotas* specify the amount of a countable, shared resource that you can use.\n- *System limits* are fixed values that cannot be changed.\n\nQuotas for Gemini Code Assist\n-----------------------------\n\nGemini Code Assist enforces quotas for certain features.\n\n| Quota | Value |\n|---------------------------------|--------------------------------|\n| Local codebase awareness | 1,000,000 token context window |\n| Code customization repositories | 20,000 |\n\nQuotas for agent mode and the Gemini CLI\n----------------------------------------\n\nQuotas for requests from Gemini Code Assist agent mode and the\nGemini CLI are combined. When in agent mode or when using the\nGemini CLI, one prompt might result in multiple requests.\n\n| Quota | Gemini Code Assist edition | Value |\n|------------------------------|----------------------------|-------|\n| Requests per user per minute | Individuals | 60 |\n| Requests per user per minute | Standard | 120 |\n| Requests per user per minute | Enterprise | 120 |\n| Requests per user per day | Individuals | 1000 |\n| Requests per user per day | Standard | 1500 |\n| Requests per user per day | Enterprise | 2000 |\n\nQuotas for Gemini in BigQuery\n-----------------------------\n\nFor code assistance features, the quota for Gemini Code Assist\nand Gemini in BigQuery code requests for features\nlike code completion and code generation is the same.\n\nFor customers using Gemini in BigQuery with\nBigQuery on-demand compute or with Enterprise or Enterprise Plus editions,\nthe quotas for advanced features such as data insights are provided based upon\nthe daily average use of TiB scanned or the slot-hours for the last full\ncalendar month. This quota applies to the organization level and is available to\nall projects in that organization. Quotas are rounded up to the nearest 100\nslot-hour usage.\n\n| Quotas per 100 slot-hours (Enterprise or Enterprise Plus edition daily average usage) or per TiB scanned using on-demand compute model | Value |\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------|-------|\n| Requests per day for chat, visualization, table scans, and other requests that display responses in the **Cloud Assist** panel in the Google API Console. | 5 |\n\n**Example**: An organization that has an Enterprise edition reservation\nwith 100 slots as its baseline will use an average of 2,400 slot-hours each\nday (100 slots \\* 24 hours = 2,400 slot-hours). As a result, in the following\nmonth they get the following daily quotas:\n\n- 120 chat, visualizations, data insights table scans and automated metadata generations per day\n\nIf your organization has not purchased any BigQuery Enterprise edition, Enterprise\nPlus edition slots, or on-demand compute (TiB) until now, then after your first usage you will receive the default quota of the following for the first full calendar month:\n\n- 250 chat, visualizations, data insights table scans, and automated metadata generations per day\n\nIf you start using on-demand compute, Enterprise edition or Enterprise Plus edition reservations mid-month, then the\ndefault quota applies until the end of the following month.\n\nRequest a quota increase\n------------------------\n\nTo adjust most quotas, you must [purchase the Standard or Enterprise edition of Gemini Code Assist](https://cloud.google.com/gemini/docs/discover/set-up-gemini#purchase-subscription). For more information, see [View and manage quotas](https://cloud.google.com/docs/quotas/view-manage)."]]