Connect Google Cloud (Gemini) to AI Token Spend Management

Overview

Connect Google Cloud so Ramp can import your Gemini and Vertex AI cost and usage data into AI Token Spend Management. This connection uses a Cloud Billing export to BigQuery — Ramp reads the exported billing table and does not store any Google Cloud credentials.

Note: Provider setup is the same whether your business has a standalone AI Token Spend Management account or a core Ramp account.

Before you connect Google Cloud

Business Admins, Owners, IT Admins, and users with the AI Token Spend Admin Custom Role can connect providers for core Ramp accounts. Owners and Admins can connect providers for standalone accounts. If you do not have one of these roles, ask someone who does to connect the provider.

You also need the following Google Cloud permissions before starting:

Step 1: Select or create a Google Cloud project

Before enabling Cloud Billing data exports, choose or create a Google Cloud project where the exported billing data will be stored. For ease of management, we suggest creating a new project specifically for billing if one doesn't already exist. Make sure billing is enabled on this project and that it is linked to the Cloud Billing account that pays for your Gemini or Vertex AI projects — otherwise the export setup will not offer this project as a destination.

Step 2: Create a BigQuery dataset

  1. Open BigQuery in the Google Cloud console.

  2. Select the project you created or chose in Step 1 from the project selector at the top of the BigQuery console.

  3. Click Create dataset.

    BigQuery project menu showing the Create dataset option

  4. Enter a dataset ID, such as all_billing_data.

  5. Click Create dataset. The dataset should now appear under your selected project.

Step 3: Enable Cloud Billing export

  1. Click the navigation menu icon to the left of the Google Cloud logo, then select Billing.

  2. If you have more than one Cloud Billing account, select the billing account that pays for your Gemini or Vertex AI projects. The export covers only the projects paid by the selected account.

  3. Click Billing export.

  4. Click Enable detailed export.

    Google Cloud Billing export page with Enable detailed export button

  5. Complete the setup modal with the project you want to export billing data to and the dataset you created in Step 2.

    Google Cloud detailed billing export setup modal with project and dataset fields

Step 4: Copy the billing table ID into Ramp

  1. The billing export should automatically create a BigQuery table under your selected project and dataset. This may take about 24 hours.

  2. After the table is created, navigate to it, select the three-dot menu next to it, and click Copy ID.

    BigQuery console showing the billing export table ID

  3. Return to the AI Token Spend page in Ramp, paste the billing table ID, and save the connection.