Connect Google Gemini API / Vertex AI to Optimeter
These are the ways to get the cost of Google Gemini API / Vertex AI into Optimeter, best first. They are the same steps the guide in the app shows.
Upload in Optimeter's format
Fill in Optimeter's template with the cost of Vertex AI and Gemini API from Billing reports and upload it, once a month. For now the only way for Google Cloud. Gemini API shows as the service "Gemini API" on the same billing account as Vertex AI, can take more than a day to show and has been prepaid since 2026-03-23 (the balance is managed in AI Studio).
3 steps, about 12 min. Every month.
Download the template
In Optimeter
Download the template and read the column guide: one line per column with an example value. The source is google.
Fill in the cost
At the provider
Get the cost per day for Vertex AI and Gemini API from Billing reports and fill in one row per day and model.
Upload the file
In Optimeter
Upload the file. Optimeter shows what would be saved before anything is saved.
Common mistakes
- The file has other columns than the template.
- Start from the template and do not change the column headers.
Coming
These ways are in the guide but cannot be used yet.
Let Optimeter read the cost in BigQuery
Google Cloud writes the cost in the FOCUS format to BigQuery, and Optimeter's service account reads only the AI rows through a view. Done once, seven steps. The FOCUS export is a preview at Google. The guide's roles are for the FOCUS export; the standard export needs only Billing Account Costs Manager or Billing Account Administrator and BigQuery User. Gemini API shows as the service "Gemini API" on the same billing account as Vertex AI, can take more than a day to show and has been prepaid since 2026-03-23 (the balance is managed in AI Studio). The vendor's pages are in English; the buttons' names are therefore in English.
Opens when Optimeter has finished its part with the vendor.
Export the FOCUS file from BigQuery and upload it
Google Cloud's cost in the FOCUS format, saved as CSV from BigQuery. Done every month. Opens when the file's form has been checked against Google Cloud. The FOCUS export is a preview at Google. The guide's roles are for the FOCUS export; the standard export needs only Billing Account Costs Manager or Billing Account Administrator and BigQuery User. Gemini API shows as the service "Gemini API" on the same billing account as Vertex AI, can take more than a day to show and has been prepaid since 2026-03-23 (the balance is managed in AI Studio). The vendor's pages are in English; the buttons' names are therefore in English.
Opens when the format has been checked against the vendor's file.