Your app's data · Read with a key
BigQuery (request log query)
Request-level AI usage rows with customer ids from your own BigQuery tables, read by a SQL query you write and mapped to model, tokens, customer, feature and cost.
- How data moves
- AI Spendbook reads it on a schedule with a key, token or read-only role you give it.
- Credential
- Service account
- What it covers
- request telemetry
- Money
- An estimate priced by AI Spendbook, never a bill
- Runs
- each scheduler run (daily on the hosted deployment)
- Freshness
- As fresh as your table at the time of the sync.
- History on first sync
- Up to 365 days
- Status
- Built from the vendor's public documentation and tested with recorded responses. Not yet run against a live account.
Set it up
- Create a service account, grant it BigQuery Data Viewer on the dataset and BigQuery Job User on the project, and create a JSON key.
- Write one SELECT that returns one row per AI request and filters on the sync window: WHERE created_at >= @window_start AND created_at < @window_end.
- Map the result columns to the request fields (timestamp, id, model, tokens, customer, feature).
- Validate (a dry run that costs nothing), then sync.
What it needs
A service account with BigQuery Data Viewer on the tables the query reads and BigQuery Job User on the project that runs it. The connector uses the read-only BigQuery scope.