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.

This guide applies to businesses using the rest of Ramp's platform. If your business uses Ramp only for AI Token Spend Management, follow the standalone setup guide.

Before you connect Google Cloud

Only Business Admins, Owners, and IT Admins can connect providers in Ramp. If you have an Auditor or Finance Admin role, ask a Business Admin, Owner, or IT Admin 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.