添加或更改 Gemini 订阅
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
本文档介绍了如何访问和使用 Gemini Code Assist 管理员控件。
Gemini Code Assist 订阅需遵守 Google Cloud 服务专用条款“价格和结算”中关于承诺单位的部分。
授予 IAM 权限
如需获得添加或修改 Gemini Code Assist 订阅所需的权限,请让您的管理员为您授予结算账号的 roles/billing.admin
IAM 角色。
或者,请让管理员为您授予 roles/consumerprocurement.orderAdmin
角色和 roles/billing.viewer
角色。
这些角色包含添加或更改 Gemini Code Assist 订阅所需的权限。如需查看所需的确切权限,请展开所需权限部分。
所需权限
consumerprocurement.orders.place
billing.billingAccountPrices.list
在 Google API 控制台中访问 Gemini for Google Cloud 管理员控件
如需在 Google API 控制台中访问 Gemini for Google Cloud 管理员控件,请在导航菜单中选择 Gemini 管理中心。
前往 Gemini 管理中心
选择结算账号
如要修改或购买 Gemini Code Assist 订阅,您必须选择结算账号。Gemini Code Assist 订阅与结算账号相关联,可用于任何项目。每个结算账号只能有一个 Gemini Code Assist 订阅。
以下列表列出了选择结算账号的可能方式:
修改 Gemini Code Assist 订阅
在 Google API 控制台中,前往 Gemini 管理中心页面。
前往 Gemini 管理中心
系统会加载 Gemini 管理中心页面。
使用页面顶部的项目选择器,确保您当前处于已订阅 Gemini Code Assist 的项目或文件夹。
找到 Gemini Code Assist 产品图块,然后点击管理 Gemini Code Assist。
选择管理订阅。
此时会显示管理订阅页面。
选择管理订阅以修改订阅,包括:
管理版本 - 如果您正在修改 Gemini Code Assist 订阅,则可以从 Standard 版本升级到 Enterprise 版本,升级后立即生效。或者,您也可以将 Enterprise 版降级为 Standard 版,变更将在当前订阅期结束后生效。如需查看每个版本中提供的功能列表,请参阅支持的功能。
增加或减少订阅中的许可数量 - 添加许可后,通常几乎可立即使用。不过,如果您减少许可数量,则相应更改将在订阅期结束时生效。此外,在您应用更改之前,原始许可数量仍会反映在您的账单中。
更改订阅期 - 您可以设置按月或按年结算订阅费用。包年订阅可享受折扣价,并按月分期付款,而非一次性付款。如果您从包年订阅改为包月订阅,则该更改要到包年订阅期结束时才会生效。此外,除非您已启用订阅自动续订,否则无法更改订阅期。
启用或停用自动续订 - 如果您停用自动续订,订阅将在订阅期结束时到期,并且订阅中的所有许可都将失效。订阅一旦过期,将无法重新启用。您需要购买新的订阅才能重新分配这些许可。此外,如果停用自动续订,则无法进行以下更改:
- 减少许可数量
- 将订阅期限从按年改为按月
- 从 Enterprise 版本改为 Standard 版本
选择继续,然后选择确认更改。
后续步骤
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-08-31。
[null,null,["最后更新时间 (UTC):2025-08-31。"],[[["\u003cp\u003eAccess the Gemini for Google Cloud admin controls by selecting "Admin for Gemini" in the Google Cloud console navigation menu.\u003c/p\u003e\n"],["\u003cp\u003eYou can edit a Gemini for Google Cloud subscription by navigating to the "Admin for Gemini" page and selecting "Manage" for the specific product you wish to update.\u003c/p\u003e\n"],["\u003cp\u003eSubscription edits include managing the edition (upgrading or downgrading), increasing or decreasing the number of licenses, and changing the subscription period (monthly or annually).\u003c/p\u003e\n"],["\u003cp\u003eEnabling auto-renewal is necessary to reduce license count, switch from annual to monthly subscription periods, or change from Enterprise to Standard edition.\u003c/p\u003e\n"],["\u003cp\u003eGemini for Google cloud subscriptions are subject to Google Cloud service specific terms regarding pricing and billing.\u003c/p\u003e\n"]]],[],null,["# Add or change Gemini subscriptions\n\nThis document describes how to access and use the\nGemini Code Assist administrator controls.\n\nGemini Code Assist subscriptions are subject to\nGoogle Cloud [Service Specific Terms](https://cloud.google.com/terms/service-terms)\nregarding Pricing and Billing for Committed Units.\n\nGrant IAM permissions\n---------------------\n\nIn order to get the required permissions for adding or editing\nGemini Code Assist subscriptions, ask your administrator to grant\nyou the [`roles/billing.admin` IAM role](https://cloud.google.com/billing/docs/how-to/billing-access#billing.admin) on the billing account.\n\nAlternatively, ask your administrator to grant you the\n[`roles/consumerprocurement.orderAdmin` role](https://cloud.google.com/marketplace/docs/access-control#consumerprocurement.orderAdmin)\n*and* the\n[`roles/billing.viewer` role](https://cloud.google.com/billing/docs/how-to/billing-access#billing.viewer).\n\nThese roles contain the permissions required to add or change\nGemini Code Assist subscriptions. To see the exact permissions\nthat are required, expand the **Required permissions** section. \n\n#### Required permissions\n\n- `consumerprocurement.orders.place`\n- `billing.billingAccountPrices.list`\n\nAccess Gemini for Google Cloud admin controls in the Google API Console\n-----------------------------------------------------------------------\n\nTo access Gemini for Google Cloud admin controls in the\nGoogle API Console, select **Admin for Gemini** in the navigation menu.\n\n[Go to **Admin for Gemini**](https://console.cloud.google.com/gemini-admin)\n\n### Pick a billing account\n\nTo edit or purchase a Gemini Code Assist subscription, you must\npick a billing account. Your Gemini Code Assist subscription is\ntied to a billing account and can be used with any project. You can only have\none Gemini Code Assist subscription per billing account.\n\nThe following list shows possible ways to pick a billing account:\n\n- **Manage subscriptions with project access**.\n\n - If you don't have a subscription yet, click **Get Gemini Code Assist**\n to purchase one. Note that you must\n [set up a billing account](/billing/docs/how-to/create-billing-account)\n first.\n\n - If you have a subscription already but it's not associated with this\n billing account, click **Manage subscriptions** and then select a\n different billing account where you want to manage the subscription.\n\n - If you already have a subscription associated with your current billing\n account, click **Manage Gemini Code Assist** to navigate to the settings\n page. Then, click **Manage Subscriptions** to select and manage existing\n subscriptions.\n\n- **Manage subscriptions without project access** . If you have permission to\n manage subscriptions, select the product you want to edit or purchase. Then,\n select **Manage Subscription** and select a billing account.\n\n- **Manage subscriptions for projects in a folder**. If you start from a folder,\n you must select a billing account before you purchase a subscription, since\n billing accounts can't be directly associated with a folder.\n\nEdit a Gemini Code Assist subscription\n--------------------------------------\n\n1. In the Google API Console, go to the **Admin for Gemini** page.\n\n [Go to **Admin for Gemini**](https://console.cloud.google.com/gemini-admin)\n\n The **Admin for Gemini** page loads.\n2. Use the project picker at the top of the page to ensure you are scoped to the\n project or folder that has an existing Gemini Code Assist\n subscription.\n\n3. Locate the **Gemini Code Assist** product tile, and then click\n **Manage Gemini Code Assist**.\n\n4. Select **Manage subscription**.\n\n The **Manage subscription** page appears.\n5. Select **Manage subscription** to edit the subscription, including:\n\n - **Manage edition** - If you're editing your Gemini Code Assist\n subscription, then you can upgrade from Standard edition to Enterprise\n edition, which takes effect immediately. Alternatively, you can downgrade\n from Enterprise edition to Standard edition, which takes effect at end of\n the current subscription term. To see a list of features available in each\n edition, see\n\n [Supported features](/gemini-code-assist/docs/overview#supported-features).\n\n - **Increase or decrease the number of licenses in the subscription** -\n Adding licenses makes them available to you almost immediately.\n However, if you reduce the number of licenses, then the changes won't take\n effect until the end of the subscription term. Additionally, the original\n license count is still reflected in your bill until the changes are\n applied.\n\n - **Change the subscription period** - You can set the subscription to bill\n monthly or annually. With an annual subscription, you are given a\n discounted rate that is charged on a monthly basis rather than a one-time\n payment. If you change from an annual subscription to a monthly\n subscription, then the change won't take effect until the end of the\n annual term. Additionally, you cannot change the subscription period\n unless you have enabled subscription auto-renewal.\n\n - **Enable or disable auto-renewal** - If you disable auto-renewal, the\n subscription expires at the end of the subscription term and all the\n licenses in the subscription become invalid. You cannot re-enable a\n subscription after it expires. Instead, you'll need to purchase a new\n subscription to re-assign those licenses. Additionally, if auto-renewal\n is disabled, then you can't make the following changes:\n\n - Reduce number of licenses\n - Change from annual to monthly subscription period\n - Change from Enterprise edition to Standard edition\n6. Select **Continue** , and then select **Confirm changes**.\n\nWhat's next\n-----------\n\n- Learn more about [Gemini for Google Cloud billing](https://cloud.google.com/gemini/docs/billing-questions).\n- [Manage your Gemini for Google Cloud licenses](/gemini-code-assist/docs/manage-licenses)."]]