Connect Google AI to Stax.
Google AI Studio (aistudio.google.com) does not currently expose a usage or cost API. Stax tracks Gemini spend through a monthly Cloud Billing CSV until Google ships a programmatic endpoint, or until you wire up a BigQuery billing export.
Download your Cloud Billing export.
If your Gemini API spend goes through a Google Cloud project (the standard setup), you can pull a monthly cost report from the Cloud Console:
console.cloud.google.com/billing- Pick the billing account that owns your Generative Language API spend.
- Open Reports in the left sidebar.
- Filter by service: Generative Language API (and add Vertex AI if you use that too).
- Set the date range to the previous month.
- Click Download CSV at the top right.
AI Studio only? If you're paying for Gemini API spend through an AI Studio billing account rather than a Cloud project, your only data path is the invoice PDF emailed by Google each month — attach that to your email to [email protected] and we'll handle import.
Upload the CSV to Stax.
When the upload flow ships, you'll be able to drag the CSV into /app → Providers → Google AI → Upload invoice. Stax will parse the SKU descriptions, attribute spend to Gemini models, and add the rows to your dashboard.
Until that flow is live, the manual route is:
- Email the CSV (or invoice PDF) to [email protected] with subject Google AI import.
- Get a confirmation reply within one business day.
- Refresh your dashboard once the rows are imported.
What you'll see after the import.
- Monthly spend in USD per Gemini model, parsed from the SKU description (e.g. Generative Language API - Gemini 2.0 Flash - Input tokens).
- Per-project breakdown when you upload data from multiple Cloud projects.
- Comparison against the prior month, once you've uploaded at least two months of data.
Per-user attribution is not available at the billing layer — Cloud Billing rows attribute to projects, not users. If you need per-developer breakdowns, you'd need IAM tagging on the consuming application, which is outside Stax's scope.
Want live sync instead?
The longer-term solution is a BigQuery billing export — Google Cloud streams your invoice line items into a BigQuery dataset, Stax queries it on a service account you grant roles/bigquery.dataViewer on. Cost data appears within 24 hours of usage, no monthly upload needed.
This integration is on the v2 roadmap and we'll prioritize it for any customer who asks. Reply to your waitlist confirmation email or write to [email protected].
Common errors
Ready to track this in your AI bill?
Stax is in private beta. Track this provider and your entire AI spend in one dashboard. Join the waitlist to lock in founding-member pricing — $29/mo forever for the first 100 sign-ups.
Join the waitlist →