配額與限制
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
這份文件列出 Gemini Code Assist 適用的配額和系統限制。
- 配額:指定可使用的可計數共用資源數量。
- 系統限制是無法變更的固定值。
Gemini Code Assist 配額
Gemini Code Assist 會對特定功能強制執行配額。
配額 |
值 |
本機程式碼集認知 |
支援 100 萬個詞元的脈絡窗口 |
程式碼自訂存放區 |
20,000 |
代理程式模式和 Gemini CLI 的配額
Gemini Code Assist 代理程式模式和 Gemini CLI 的要求配額會合併計算。在代理程式模式下或使用 Gemini CLI 時,一個提示可能會產生多個要求。
配額 |
Gemini Code Assist 版本 |
值 |
每位使用者每分鐘的要求數 |
個人票 |
60 |
標準 |
120 |
Enterprise |
120 |
每位使用者每日的要求數 |
個人票 |
1000 |
標準 |
1500 |
Enterprise |
2000 |
Gemini in BigQuery 的配額
程式碼輔助功能方面,Gemini Code Assist 和 Gemini in BigQuery 程式碼要求 (例如程式碼完成和程式碼生成) 的配額相同。
如果客戶使用 Gemini in BigQuery,並搭配 BigQuery 隨選運算或 Enterprise/Enterprise Plus 版,系統會根據上一個完整日曆月的每日平均掃描 TiB 數或時段時數,提供資料洞察等進階功能配額。這項配額適用於機構層級,且該機構中的所有專案都能使用。配額會無條件進位至最接近的 100 個時段小時用量。
每 100 個時段小時的配額 (Enterprise 或 Enterprise Plus 版每日平均用量),或使用隨選運算模型掃描的每 TiB 配額 |
值 |
每天的聊天、視覺化、表格掃描要求,以及在 Google API 控制台的「Cloud Assist」面板中顯示回應的其他要求。 |
5 |
示例:假設某機構預訂了 Enterprise 版本,並以 100 個運算單元做為基準,則每天平均會使用 2,400 個運算單元小時 (100 個運算單元 * 24 小時 = 2,400 個運算單元小時)。因此,他們在下個月會獲得下列每日配額:
- 每天 120 次的對話、視覺化、資料洞察資料表掃描和自動中繼資料生成
如果貴機構目前尚未購買任何 BigQuery Enterprise 版、Enterprise Plus 版運算單元或隨選運算 (TiB),首次使用後,您會在第一個完整曆月收到下列預設配額:
- 每天 250 次的對話、視覺化、資料洞察資料表掃描和自動產生中繼資料
如果您在當月開始使用隨選運算資源、Enterprise 版或 Enterprise Plus 版預留項目,則預設配額會套用至下個月底。
申請提高配額
如要調整大部分配額,請
購買 Gemini Code Assist Standard 版或 Enterprise 版。詳情請參閱「
查看及管理配額」。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-08-31 (世界標準時間)。
[null,null,["上次更新時間: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)."]]