> For the complete documentation index, see [llms.txt](https://docs.sprinthub.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sprinthub.com/en/topics/integrations/integrations-artificial-intelligence-apis/integrations-gemini/how-gemini-api-payment-works-in-google-cloud.md). Agents can also search and read this documentation through its [MCP server](https://docs.sprinthub.com/~gitbook/mcp).

# How Gemini API payment works in Google Cloud

<figure><img src="https://684109703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9FzUKkagBNy5uQ7AtGNa%2Fuploads%2FPlNIL6KpjX675ZrufbqO%2FChatGPT%20Image%20Aug%202%2C%202025%2C%2010_39_42%20AM.png?alt=media&amp;token=19766065-236c-4ec5-bf22-ff06797bfef2" alt=""><figcaption></figcaption></figure>

### Introduction

The Gemini API billing follows Google Cloud's pay-as-you-go model. You incur costs whenever you make API calls for text generation, images, or other services offered by Gemini. In this article, you'll see how to set up your billing account, understand the pricing model, and monitor your usage.

***

### Prerequisites

* Google account with permission to **Owner** or **Billing Administrator**.
* Project created in Google Cloud where the Gemini API is enabled.
* Billing account configured and linked to the project.

***

### Setting up Billing

**Access the Billing Console**

* In the main menu of the Google Cloud Console, click **Billing and Create account**.

<figure><img src="https://684109703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9FzUKkagBNy5uQ7AtGNa%2Fuploads%2Fqa6JO7eRvA0EM4yCEg61%2FSprintHub%20Suporte%20-%202025-08-02%2013.02.45.jpg?alt=media&amp;token=5a6764c9-7f34-41b4-98cc-1394872082fe" alt=""><figcaption></figcaption></figure>

**Create or Link a Billing Account**

* If you do not have an active billing account, select **+ Create account** and follow the wizard to enter your payment details.
* If you already have billing accounts, click **Manage billing accounts** and then on **Link a billing account**.

<figure><img src="https://684109703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9FzUKkagBNy5uQ7AtGNa%2Fuploads%2FwGYrrwqkNpzlnVOihud7%2FSprintHub%20Suporte%20-%202025-08-02%2013.02.40.jpg?alt=media&amp;token=32aa755f-9325-4ff0-88d9-bcc7275a7cc0" alt=""><figcaption></figcaption></figure>

**Linking to the Project**

* With the account created or selected, choose the project where you enabled the Gemini API and confirm the link.
* The banner “This project has no billing account” should disappear, indicating that billing is active.

<figure><img src="https://684109703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9FzUKkagBNy5uQ7AtGNa%2Fuploads%2FFC3Q2ooLGDfkKVtKhMcK%2FSprintHub%20Suporte%20-%202025-08-02%2013.02.42.jpg?alt=media&amp;token=27fbe0c7-0c53-4577-878c-81c1f7d8f385" alt=""><figcaption></figcaption></figure>

***

### Monitoring and Alerts

1. **Billing Reports**
   * In **Billing > Reports**, track cost charts by day, month, and product (Gemini API).
2. **Budgets and Alerts**
   * Go to **Billing > Budgets & alerts** to create a budget (e.g. R$ 500/month).
   * Set alerts at 50%, 80%, and 100% to receive emails if usage exceeds these thresholds.
3. **Quota Limits**
   * In **APIs & Services > Library > Gemini API > Quotas**, adjust request limits per minute or per day, preventing budget overruns.

### 8. Conclusion

Setting up billing correctly and understanding the Gemini API pricing model is essential to control costs and avoid surprises on your bill. Use Google Cloud's budget and reporting tools to monitor usage and optimize your calls to maximize return on investment.
