Platform
AI Bill and billing imports
See one AI spend total for any date range, built from what your providers actually bill. Connect each provider account once, or upload a CSV, and Token Meter checks its own metered estimate against the invoice.
Related guides: Track AI spend across providers, Vercel AI Gateway cost tracking, OpenRouter cost tracking
Token Meter already estimates your spend from the usage it meters. The AI Bill adds the provider's own numbers: invoices, account reports and cloud billing exports. Each provider is counted once, so the total is what you will actually pay.
Before you start
- You need to be an Owner or Admin of the workspace.
- The AI Bill page is Analytics › Bill. Connections and CSV uploads are in Settings › Connections, and imported data is in Data health › Provider usage (open it with View history on a connection card, or from Settings › Workspace › Data health).
- Have the provider's console open, signed in with an account that can create admin or billing keys (each provider's section below says which role).
Where billing data comes from
Billing data from providers is stored apart from the usage Token Meter meters (through the SDK, the router or OpenTelemetry). The two are never merged. For each provider, the AI Bill picks one source, as explained in How the total is worked out.
| Source | Providers |
|---|---|
| Provider invoice (settled billing) | OpenAI and Anthropic (their cost reports, read with an Admin key), Google (Cloud Billing export in BigQuery), AWS Bedrock (Cost Explorer, through a role you create), Azure OpenAI (Cost Management, through a service principal). |
| Account report | OpenRouter, xAI, Vercel AI Gateway and Fireworks report spend in US dollars, and it counts toward the total. Mistral and DeepInfra send reports with no US dollar amount. Those are kept but never added to a total. |
| Manual bill import (CSV) | Any provider. Together AI, LiteLLM gateway and Other have no automatic connection, so use this for them. |
| Metered estimate | Every provider you send usage for: the tokens Token Meter saw, priced at your model rates (including private rates). |
Fireworks sends rated costs from its usage reports, not a settled invoice. They still count toward the total, like other account reports.
Connect a provider account
First create the key or role in the provider's console. The steps for each provider are in Provider setup, step by step. Then, in the Token Meter dashboard:
- Open Settings › Connections and choose Connect an account, top right.
- Pick the Provider. Under it, the form says what that provider can report and what it can't.
- Optional: open Advanced to change the Connection name (it defaults to the provider's name).
- Fill in the provider's account ID and credential. The field names for each provider are in the table below.
- Choose Connect and sync. Token Meter checks the credential with the provider, stores it encrypted, and starts the first import. You return to Settings › Connections, where the new card shows Syncing… and then Synced.
Connect each provider account only once. To change a key later, edit the existing connection.
| Provider | What the form asks for |
|---|---|
| OpenAI | Admin API key. Under Advanced: OpenAI organization ID (optional), only a label, and ChatGPT workspace ID (optional, to include Codex). |
| Anthropic | Anthropic organization ID (a UUID) and Admin API key. |
| Cloud Billing account ID, Service-account JSON key, BigQuery export project, BigQuery export dataset and AI service names from your billing export (comma-separated). | |
| Bedrock | AWS account ID and Cross-account role ARN. The form shows Your External ID, the Trust policy and the Permissions policy to copy into AWS. |
| Azure OpenAI | Azure subscription ID, Client secret, Tenant ID, Client ID and Azure OpenAI resource IDs (comma-separated). |
| OpenRouter | OpenRouter account / organization ID and Management key. |
| xAI | xAI team ID and Management key. |
| Vercel AI Gateway | Vercel team slug, AI Gateway API key and optional Extra breakdowns. |
| Fireworks | Fireworks account ID and Account reporting API key / auth token. |
| Mistral | Mistral organization ID, Admin API key, and optional Mistral workspace ID and Mistral API zone (All zones, Global, US or EU). |
| DeepInfra | DeepInfra account ID and Account reporting API key / auth token. |
What gets imported
- History: the first sync imports the last 7 days; the rest of the history, up to 90 days, follows in the background (the card says Filling in older history…). OpenRouter only serves 30 completed days. Mistral and DeepInfra report by month, so they import the whole window in one go and only whole months inside it come in.
- Days are in UTC. Today is never requested. Providers also take a few days to settle their figures, so the newest days can lag.
- Sync schedule: about once an hour. Google, Bedrock, Azure OpenAI, Mistral and DeepInfra sync once a day. Account reports re-read the last 3 days on every sync, so provider corrections replace older figures.
Provider setup, step by step
Every connection only reads billing and usage data. None of these keys or roles can change anything in your provider account, and Token Meter never uses them to make AI calls.
OpenAI
You need an Admin key (it starts with sk-admin-). Only an Owner of your OpenAI organization can create one. A normal project key (sk-proj-) does not work: Token Meter refuses it before saving.
- Sign in at
platform.openai.comand open Settings › Organization › Admin keys. - Create a new admin key and give it a name such as
token-meter. - Copy the key. OpenAI shows it only once.
- In Token Meter, pick OpenAI and paste the key into Admin API key. The organization ID, under Advanced, is optional; add it only if you want it as a label.
Codex usage (optional). If you fill in ChatGPT workspace ID, Token Meter uses the same key to read Codex usage from the ChatGPT Enterprise analytics API. That API needs a ChatGPT workspace Admin key with the enterprise.analytics.usage.read permission. An OpenAI organization Admin key usually doesn't have it. In that case the Codex row on Coding tools › Connect › All data sources says Codex can't be read (so does Coding tools › Agent usage, once other coding-tool data exists), and your billing sync carries on normally. Leave the field blank to skip Codex.
Anthropic
You need an Admin API key (it starts with sk-ant-admin). Only members with the admin role in your Claude Console organization can create one. An individual Console account can't: set up an organization first. A normal API key (sk-ant-api…) does not work.
- Sign in to the Claude Console at
platform.claude.comand open Settings › Admin keys. - Choose Create admin key, name it, pick an expiry, and choose Add.
- Copy the key. It is shown only once.
- Open Settings › Organization and copy the organization ID. It is a UUID, such as
4f8c2a1e-9b7d-4c3e-8a6f-2d1b0e9c7a54. - In Token Meter, pick Anthropic, paste the organization ID into Anthropic organization ID and the key into Admin API key.
If you picked an expiry, set a reminder. When the key expires, the card shows Needs attention; create a new key and use Edit credentials.
Google Cloud (Vertex AI and Gemini billing)
Token Meter reads your Standard usage cost billing export in BigQuery. You need to be a Billing Account Administrator to turn the export on, and able to grant IAM roles in the export project.
- In the Google Cloud console, open Billing › Billing export, then the BigQuery export tab.
- Under Standard usage cost, choose Edit settings. Pick a project and a dataset, then Save. Google can take a few hours to write the first rows.
- Note your billing account ID, shown at the top of Billing › Account management. It looks like
012345-6789AB-CDEF01. - In the export project, open IAM & Admin › Service accounts and choose Create service account. Name it
tokenmeter-billing. - Open IAM & Admin › IAM, choose Grant access, and give the service account the BigQuery Job User role on the export project. Token Meter runs its query there.
- In BigQuery, open the export dataset, choose Sharing › Permissions, then Add principal. Give the service account BigQuery Data Viewer.
- Optional, for Vertex AI token usage: give the service account Monitoring Viewer on each project that calls Vertex AI.
- Open the service account, then Keys › Add key › Create new key, and choose JSON. A key file downloads.
- In Token Meter, pick Google. Enter the billing account ID (with or without dashes), paste the whole JSON file into Service-account JSON key, and enter the export project and dataset.
- In AI service names from your billing export, list the services to import, comma-separated, for example
Vertex AI. Only those services are imported. To see the exact names in your export, run the query below in BigQuery.
SELECT DISTINCT service.description
FROM `your-export-project.your_dataset.gcp_billing_export_v1_XXXXXX_XXXXXX_XXXXXX`
WHERE usage_start_time >= TIMESTAMP_SUB(CURRENT_TIMESTAMP(), INTERVAL 30 DAY)
ORDER BY 1The same setup from a terminal, with the gcloud CLI:
# Run these in the project that holds your billing export dataset.
PROJECT_ID=your-export-project
SA=tokenmeter-billing@$PROJECT_ID.iam.gserviceaccount.com
# 1. Create the service account
gcloud iam service-accounts create tokenmeter-billing \
--project=$PROJECT_ID --display-name="Token Meter billing"
# 2. Let it run queries in this project
gcloud projects add-iam-policy-binding $PROJECT_ID \
--member="serviceAccount:$SA" --role="roles/bigquery.jobUser"
# 3. Let it read the export. This grants every dataset in the project;
# to grant only the export dataset, use the console steps above instead.
gcloud projects add-iam-policy-binding $PROJECT_ID \
--member="serviceAccount:$SA" --role="roles/bigquery.dataViewer"
# 4. Optional, for Vertex AI token usage: repeat for each project that calls Vertex AI
gcloud projects add-iam-policy-binding VERTEX_PROJECT_ID \
--member="serviceAccount:$SA" --role="roles/monitoring.viewer"
# 5. Download the JSON key you paste into Token Meter
gcloud iam service-accounts keys create tokenmeter-key.json --iam-account=$SA- Token Meter only checks that the JSON key is valid when you save. Access to the export dataset is first tested on the first sync.
- Cost to you: BigQuery bills the daily query to the export project. Billing export tables are small, so this usually stays inside BigQuery's free monthly allowance.
AWS Bedrock
You create an IAM role in your AWS account that Token Meter's AWS account is allowed to assume. No AWS keys are shared. You need permission to create IAM roles. Cost Explorer must be turned on: open Billing and Cost Management › Cost Explorer once, and allow up to 24 hours for data to appear.
Token Meter gives you everything to paste. Open the form first and keep it open while you work in AWS:
- In Token Meter, open Settings › Connections, choose Connect an account and pick Bedrock as the Provider. The form shows three things to copy:
- Your External ID: a value Token Meter made for your workspace. It never changes. It is what stops another Token Meter workspace from using your role, even if it knows the role's ARN.
- Trust policy: lets Token Meter's AWS account assume the role, only with your External ID. Token Meter's AWS account ID is already filled in.
- Permissions policy: what the role may read.
- In the AWS console, open IAM › Roles and choose Create role.
- For Trusted entity type, choose Custom trust policy. Delete what is in the box and paste the Trust policy from the form.
- Skip the managed policies, name the role
TokenMeterBilling, and create it. - Open the new role, choose Add permissions › Create inline policy, switch to JSON, paste the Permissions policy from the form, and save it as
TokenMeterBillingRead. - Copy the role's ARN from its summary page.
- Back in the Token Meter form, enter your 12-digit AWS account ID and paste the Cross-account role ARN. The account ID must be the one inside the role ARN. Save.
The two policies look like this. Use the ones from the form: they carry Token Meter's real account ID and your workspace's External ID.
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": { "AWS": "arn:aws:iam::<Token Meter's AWS account ID, from the form>:root" },
"Action": "sts:AssumeRole",
"Condition": { "StringEquals": { "sts:ExternalId": "<Your External ID, from the form>" } }
}
]
}{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "BedrockCosts",
"Effect": "Allow",
"Action": ["ce:GetCostAndUsage", "ce:GetTags"],
"Resource": "*"
},
{
"Sid": "BedrockTokenUsage",
"Effect": "Allow",
"Action": ["cloudwatch:ListMetrics", "cloudwatch:GetMetricData"],
"Resource": "*"
}
]
}ce:GetCostAndUsageis required: it reads Bedrock spend per day.ce:GetTagsis optional. With it, spend is also split by a cost allocation tag such asprojectorteam, if you have activated one.cloudwatch:ListMetricsandcloudwatch:GetMetricDataare optional. With them, token usage per model is read from CloudWatch in 15 default AWS regions. Without them, billing still works and the card says token usage is unavailable.
The same role from a terminal, with the AWS CLI:
# 1. Save the form's Trust policy as trust-policy.json and its Permissions policy as permissions.json, then:
aws iam create-role --role-name TokenMeterBilling \
--assume-role-policy-document file://trust-policy.json
aws iam put-role-policy --role-name TokenMeterBilling \
--policy-name TokenMeterBillingRead --policy-document file://permissions.json
# 2. Print the role ARN to paste into Token Meter
aws iam get-role --role-name TokenMeterBilling --query Role.Arn --output textToken Meter checks that the role needs your External ID. On the first sync after you save, and then at most once a day, it also tries the role with a wrong External ID. AWS should refuse that. If AWS lets it in, the role would let any workspace in, so Token Meter refuses to use it and the card says which condition to add. Each check leaves one refused AssumeRole attempt in your CloudTrail, with the session name token-meter-externalid-check. That is expected.
Connections made before 2026-11-14. These used an External ID you typed yourself. If the role really requires it, nothing changes. If the role works without any External ID, the card shows a warning and the date syncing stops, 30 days after the change. To keep syncing, open Edit credentials, copy the trust policy shown there into the role, then save the connection.
- Token Meter can only check the ARN's format when you save. The role itself is first tried on the first sync. If it fails, the card shows Needs attention with the reason.
- Create the role in the account whose Bedrock bill you want. If you use AWS Organizations, a member account sees only its own costs in Cost Explorer.
- If the form says "this connection can't be set up yet" and gives
support@timewastevc.com, write to that address. - Cost to you: AWS charges $0.01 per Cost Explorer API request. Each daily sync makes 1 to 3 requests, about $1 a month. With a tag split, it makes 1 more request per tag value (up to 20), so at most about $7 a month.
Azure OpenAI
You create a service principal (an app identity in Microsoft Entra ID) that can read Cost Management for the subscription. You need permission to register apps in Entra ID, and the Owner or User Access Administrator role on the subscription.
- In the Azure portal, open Microsoft Entra ID › App registrations and choose New registration. Name it
tokenmeter-billingand register it. - On its Overview, copy the Application (client) ID and the Directory (tenant) ID.
- Open Certificates & secrets › Client secrets › New client secret. Copy the secret's Value right away; Azure hides it later.
- Open Subscriptions, pick the subscription that pays for Azure OpenAI, and copy its Subscription ID.
- In that subscription, open Access control (IAM) › Add › Add role assignment. Choose Cost Management Reader and assign it to
tokenmeter-billing. - For each Azure OpenAI resource, open it and copy its Resource ID from Properties. It starts with
/subscriptions/. - Optional, for token usage per deployment: on each of those resources, add the role assignments Monitoring Reader and Reader for
tokenmeter-billing. - In Token Meter, pick Azure OpenAI. Enter the Azure subscription ID, Client secret, Tenant ID, Client ID, and the resource IDs separated by commas.
The same setup from a terminal, with the Azure CLI:
# Sign in and pick the subscription that pays for Azure OpenAI
az login
az account set --subscription "SUBSCRIPTION_ID"
# Create the service principal with Cost Management Reader on that subscription.
# In the output: appId = Client ID, password = Client secret, tenant = Tenant ID.
az ad sp create-for-rbac --name tokenmeter-billing \
--role "Cost Management Reader" \
--scopes /subscriptions/SUBSCRIPTION_ID
# Print the resource ID of each Azure OpenAI resource
az cognitiveservices account show --name RESOURCE_NAME \
--resource-group RESOURCE_GROUP --query id --output tsv
# Optional, for token usage per deployment: run both for each resource ID
az role assignment create --assignee APP_ID --role "Monitoring Reader" --scope RESOURCE_ID
az role assignment create --assignee APP_ID --role "Reader" --scope RESOURCE_ID- When you save, Token Meter only checks that the tenant, client ID and secret can sign in. The Cost Management Reader role is first tested on the first sync.
- Client secrets expire (one year by default with the CLI). Before then, create a new one and use Edit credentials.
Vercel AI Gateway
This needs a Vercel Pro or Enterprise team, because it uses Vercel's Custom Reporting API.
- In the Vercel dashboard, switch to the team you want to report on and open AI Gateway › API Keys.
- Create a key and copy it.
- Note the team slug: the part after
vercel.com/in the team's address. - In Token Meter, pick Vercel AI Gateway and enter the Vercel team slug and the AI Gateway API key.
- Optional: tick Extra breakdowns (Tag, User, Own keys vs Vercel credits, API key). Read the costs below first.
- The key reads spend for the whole Vercel team.
- Requests that use your own provider keys show as $0, because that spend is billed on your provider account.
- Breakdown rows overlap (one request counts once per tag), so they are shown beside the Gateway's models and never added to a total.
Vercel bills each report query
Vercel charges your team $5 per 1,000 report queries. Here is what Token Meter makes:- First import: up to 8 queries for the first 7 days, then 1 query plus 1 per day with traffic in the last 90 days. At most 99 queries, about $0.50.
- Each sync after that: 1 query plus 1 per day with traffic in the last 3 days, so at most 4. Syncs run up to once an hour: at most 96 queries a day, about $0.48 a day or $15 a month.
- Each extra breakdown adds 1 query per day with traffic: up to 97 more on the first import, and up to 3 more per sync (about $0.36 a day).
OpenRouter, xAI, Fireworks, Mistral and DeepInfra
| Provider | Where to get the key |
|---|---|
| OpenRouter | A Management key from openrouter.ai/settings/management-keys. A normal API key is refused. For the account ID, use your OpenRouter organization ID (or any stable name for a personal account). |
| xAI | A Management key from the xAI Console, Settings › Management Keys, with read access to billing. The team ID is on the console's team settings page. An inference API key does not work. |
| Fireworks | An API key from Settings › API Keys in the Fireworks dashboard, created by an account admin. The account ID is your Fireworks account's ID, as in accounts/your-account-id. |
| Mistral | An Admin API key for your Mistral organization, plus the organization ID. The workspace ID and API zone are optional filters. |
| DeepInfra | Your account's API token, from the API Keys page of the DeepInfra dashboard. For the account ID, use your DeepInfra account name or ID. |
For these providers, Token Meter fetches a small report when you save, so a wrong key is refused straight away.
Manage connections
Settings › Connections shows one card per connection, with its status and the history imported so far.
| Status | Meaning |
|---|---|
| Awaiting first sync | Saved. The first import has not finished yet. |
| Syncing… | A sync is queued or running. The page updates by itself. |
| Synced 5m ago | The last sync worked. Hover for the exact time. |
| Retrying | The provider was slow or rate-limited. The next sync tries again. |
| Needs attention | The last sync failed. The card shows why. Explain this error writes a plain-language explanation with steps to fix it (keys, ARNs and account numbers are removed from the error first). |
| Disconnected, history kept | The credential was erased. Imported data stays. |
After the first sync the card may say Filling in older history… while the rest of the history imports.
- View history opens that connection in Data health › Provider usage.
- Sync now starts a sync. If one is already waiting or running, nothing new starts.
- Edit credentials (in the ⋯ menu) replaces the key. You can't change the provider. Enter the credential again and choose Save credentials and sync. Editing never counts against your plan's connection limit.
- Backfill history (in the ⋯ menu) imports the provider's history again, up to 90 days (OpenRouter 30). Rows already imported are updated, not duplicated. It uses the provider's API quota, and for Vercel it makes billed report queries.
- Disconnect (in the ⋯ menu) asks you to type the connection name. The stored credential is erased and the imported history is kept. Reconnect opens the edit form, where you enter the credential again.
- Backfills and disconnects are recorded in the workspace's audit log.
Manual bill import (CSV)
Use this for a provider with no automatic connection, or to load an invoice you already have. It is on Settings › Connections, under Import a bill (CSV), below the connection cards.
| Column | Rule |
|---|---|
billing_day | Required. A date as YYYY-MM-DD. |
sku | Required. The provider's name for the line item. |
amount_usd | Required. The amount in US dollars. |
model_id | Optional. Lines without a model show as unmapped spend. |
token_class | Optional. input, output, cache_read, cache_write, reasoning or unit. |
quantity | Optional. A number. |
source_currency, source_amount | Optional. The original currency (3-letter ISO 4217 code) and amount, kept for reference. |
project_or_key | Optional. The project or key the line belongs to. |
A minimal file looks like this (the amounts are only an example):
billing_day,sku,amount_usd,model_id,token_class,quantity
2026-10-01,Input tokens,10.00,llama-3.3-70b,input,10000000
2026-10-01,Output tokens,5.00,llama-3.3-70b,output,2000000- Choose the Provider and the file (at most 5,000 rows and 2 MB), then Upload and preview.
- Check the preview: total, valid and invalid rows, the total of the valid rows, each invalid row with its reason, and a sample of what will be imported. Nothing is in your AI Bill yet.
- Choose Confirm import (N rows) to save the valid rows, or Discard. Invalid rows are skipped. Fix them in the file and upload it again.
- Recent uploads are listed with their state: Awaiting confirm, Processing, Imported or Failed.
- Uploading the exact same file again opens the earlier upload instead of creating a new one.
- A row identical to one already imported (same provider, day, SKU, model, token class, project or key and amount) is updated, not added twice.
- Imported rows count as that provider's invoice in the AI Bill. They are not reconciled against metered spend.
How the total is worked out
Billed and tracked spend, this period, at the top of Analytics › Bill, covers the range you pick: This month, Previous month, 30d or 90d (in UTC days). Each line is shown separately:
| Line | What it adds |
|---|---|
| Provider invoices | For each provider with invoice lines in the range: the sum of those lines. |
| Provider account reports | For each provider with no invoice lines but a US dollar account report: the report's spend, plus metered spend on days the report doesn't reach yet (shown as "of which tracked, on days the reports do not cover yet"). |
| Tracked, no invoice or report | For every other provider: the metered estimate. |
| Coding tools, pay-as-you-go | Pay-as-you-go dollars of coding tools (reported by the vendor or priced from tokens), unless the provider that bills them has its invoice imported. See below. |
| SaaS seats, run-rate prorated to N days | Your current monthly seat run-rate (from Coding tools › AI tools › Seats and licences) × days in the range × 12 ÷ 365. A run-rate, not billed seats. |
| Commitment overage, separately billed | Overage recorded under Contracts and credits that is billed separately from the provider invoice. |
| Credits & adjustments | Net credits and adjustments dated in the range, subtracted. |
So each provider counts once: its invoice, else its account report, else its metered estimate. A provider is never counted from two sources for the same day.
- An invoice covers the whole range. When a provider has any invoice line in the range, its invoice total is used and metered spend is not added, even for recent days the invoice has not reached yet.
- Account reports count whole periods. Only report periods that lie fully inside the range are added. A period is never split.
- Coding tools. Claude Code and Claude chat on API keys are billed by Anthropic, Gemini CLI by Google, and Codex on an OpenAI API key by OpenAI. When that provider's invoice is imported for the range, the tool's spend is already inside it. So it is left out and shown as Coding-tool spend already inside a provider invoice (disclosure). Codex from the ChatGPT Enterprise feed, and tools billed by no imported provider, are always added.
- Commitment overage. Overage already inside a provider invoice is shown as Commitment overage already inside provider invoice (disclosure) and not added.
What the total leaves out
The page lists these under the total:
- Cursor usage-based spend, which is not collected yet.
- Expense imports. They are used to find unmanaged AI tools, and they repeat bills already counted here.
- The API-equivalent value of subscription use, which is not money spent.
- Account reports with no US dollar amount (Mistral, DeepInfra, or a report in another currency). The note names the provider.
Possible overlap
Claude Code and Codex calls sent through the Token Meter router are metered too. So they can appear in both metered spend and coding-tool spend.Google coverage is partial. With a Google connection, per-model usage comes only from Vertex AI Cloud Monitoring. Gemini Developer API (AI Studio) traffic is not in metered estimates or reconciliation unless you send it through the SDK or the router. The Cloud Billing export may still include its spend.
The provider table
Below the total, the By provider table has one row per provider; the provider's name opens its requests. It shows every source side by side and never adds them up. Account report, Drift, Unpriced and Unmapped are hidden while they are empty for every provider. Show all columns adds Invoice qty, Lines, Projects and keys, and Invoice through. More detail shows provider spend, seat spend and credits as tiles.
| Column | Meaning |
|---|---|
| Tracked spend | Token usage priced at model rates. |
| Billed spend | Sum of imported invoice lines, or "No invoice". |
| Account report | Account-report spend for whole periods in the range (hover for the days covered), "no USD amount", or -. |
| Drift | Invoice minus metered, on reconciled days. See Reconciliation. |
| Reconciliation | Matched, Drift detected, Not reconciled yet, Uploaded, not reconciled, Not billed yet, Awaiting invoice or Not comparable. |
| Requests / Unpriced | Metered requests, and how many had no price. |
| Invoice qty / Lines / Projects and keys (Show all columns) | Quantity, line count and distinct projects or keys on the invoice lines. |
| Unmapped | Invoice dollars not tied to a model. |
| Invoice through (Show all columns) | The last day with an invoice line. |
Unmapped spend is normal for some line items: Google cache storage, audio, image, video, tuned models and SKUs shared by two models; Bedrock models other than Claude; Azure fine-tuning, realtime, audio, image and preview meters.
Reconciliation
Every day at 07:00 UTC, Token Meter compares metered spend with the invoice lines from connected providers, per provider and day. Drift is the invoice minus metered spend. A day is within tolerance when the drift is at most 2% of the invoice. A day with no invoiced amount matches only if metered spend is also zero.
| Status | Meaning |
|---|---|
| Matched | Every reconciled day in the range is within 2%. |
| Drift detected | Invoice lines exist, and at least one day differs by more than 2%. |
| Not reconciled yet | Invoice lines are imported, but no day in the range has been compared yet. A day is compared at the first 07:00 UTC run after the provider's settlement delay: 1 day for OpenAI, 3 days for other providers. A fresh import shows this until then. |
| Uploaded, not reconciled | The invoice lines come from a CSV upload. They count as the invoice but are never reconciled. |
| Not billed yet | The invoiced days carry no metered spend, and the metered spend in the range falls on days the invoice doesn't cover yet. There is nothing to compare until the provider bills those days. |
| Awaiting invoice | No invoice lines are imported for this provider in the range. |
| Not comparable | There is no invoice, only an account report. Account reports are not suitable for invoice reconciliation. |
- The Drift column reads No invoice without invoice lines, not billed yet when metered spend falls on days the invoice doesn't cover yet, not reconciled yet when lines exist but no day has been compared, not reconciled (CSV) for CSV uploads, and - under 50 cents. It turns amber when outside tolerance.
- To make metered spend match a negotiated contract, open Settings › Connections, expand Advanced and choose Add a private rate. It replaces the public list price for this workspace. A start date up to 365 days back reprices usage from that day.
- Azure OpenAI subscriptions billed in a currency other than US dollars are not reconciled.
Contracts and credits
Choose Contracts and credits at the foot of Analytics › Bill to track commitments, credits and invoice status, separately from metered usage and invoices. Nothing there changes an imported invoice line. Until you have recorded something there, only Add a contract shows; the other two buttons appear after that.
- Add a contract tracks a minimum-spend commitment against your imported invoice totals for the contract's dates. Record each period's consumption (leave the amount blank to use the invoice lines) and any separately billed overage. Overage enters the total only when Overage already on the provider invoice is unticked (it is ticked by default).
- Add a credit or adjustment: a Credit reduces spend; an Adjustment can go either way. It applies on the date you give and is subtracted once from the AI Bill total.
- Set invoice status records the accounts-payable status (open, invoiced, paid, disputed) for one provider and month.
Data health › Provider usage
Everything the connections imported, up to 90 days, kept apart from metered estimates and from reconciliation. Anything a provider didn't report reads Unavailable; nothing is guessed. Pick one from the View list at the top.
| View | What it shows |
|---|---|
| Provider detail | What each provider can report (request usage, model usage, account cost, invoice reconciliation, workspace, API key, member), and your connected accounts. |
| Attribution coverage | Per model: the provider's total, what Token Meter's per-call metering saw, and how much of it carries a team or a person. |
| Imported reports | Every account report row with its period, tokens, requests, spending, currency and the provider's own fields. Spending totals per provider are at the top. |
| By provider, account, team, team member, model | Provider usage in one common format. Per-key and per-member splits come from the OpenAI and Anthropic connections. |
| Unmapped identities | Provider users, API keys and projects not yet tied to anyone. Map each one to a member or a team. |
Evidence labels: SDK-metered was captured from a metered request. Provider-reported comes from the provider's usage or cost API and may be rated or provisional. Invoice-confirmed matches a settled invoice or a verified invoice import.
For the per-call metering behind the metered estimate, see the Quickstart and Providers.
Troubleshooting
Errors from a sync appear on the card in plain words; open Details on the card to see the exact message quoted below.
| What you see | What to do |
|---|---|
| Your plan allows 5 provider connections and you are using 5 | Disconnect one, or upgrade the plan. Editing an existing connection always works. |
| This provider account already has a connection | Use Edit credentials on the existing card instead of connecting it again. |
| Edit the existing connection to set its provider account ID before adding another account | An older connection has no account ID. Add it there first. |
| That looks like a project API key (starts with sk-proj-), not an admin key | Create an OpenAI Admin key (see OpenAI above) and paste that instead. |
| OpenAI accepted the key but denied billing access (403) | The Admin key lacks read access to usage and costs. Create a new Admin key with those permissions. |
| Anthropic rejected this key (401 Unauthorized) | You pasted a normal API key. Use an Admin key that starts with sk-ant-admin. |
| Anthropic organization IDs are UUIDs | Copy the ID from Claude Console › Settings › Organization. An ID like org-… is an OpenAI ID. |
| Vercel only serves AI Gateway spend reports to Pro and Enterprise teams | The key belongs to a Hobby or Pro trial team. Use a key from a Pro or Enterprise team. |
| The role must belong to the specified AWS account | The 12-digit number inside the role ARN must match the AWS account ID you entered. |
| AWS did not let Token Meter assume this role | The role's trust policy doesn't match. Open Edit credentials, copy the trust policy shown there into the role exactly, then use Sync now. |
| This role lets Token Meter in without your External ID | The role works without your External ID, so any workspace could use it. Add the sts:ExternalId condition the message gives (or copy the whole trust policy from Edit credentials), then use Sync now. A connection made before 2026-11-14 shows this as a warning with a stop date first. |
| That doesn't look like an IAM role ARN | Paste the role ARN, in the form arn:aws:iam::123456789012:role/TokenMeterBilling. |
| The provider denied access to reporting data (missing: ce:GetCostAndUsage) | Add the permissions policy to the role. If it names no action, check the trust policy: it must be the one from the form, with Token Meter's account ID and your External ID exactly as shown. |
| Specify Azure OpenAI resource IDs from this subscription | Each resource ID must start with /subscriptions/<subscription id>/resourceGroups/ and name a Microsoft.CognitiveServices account in that subscription. |
| Azure AD rejected this tenant/client/secret | Check the Tenant ID and Client ID, and paste the secret's Value (not its Secret ID). |
| That doesn't parse as JSON | Paste the whole service-account key file, from the first { to the last }. |
| Google: the provider denied access to reporting data | Give the service account BigQuery Data Viewer on the export dataset and BigQuery Job User on the export project. |
| Select AI service names from the Google billing export before syncing | Enter at least one service name, such as Vertex AI, exactly as it appears in the export. |
| Provider sync failed. Check the connection's settings with Edit credentials, then use Sync now to retry. If it keeps failing, contact support. | Check every ID in the form with Edit credentials. For Google, the export table must be named gcp_billing_export_v1_<billing account ID> in the project and dataset you entered, and a new export can take a few hours to get its first rows. |
| Connection is unavailable, its account identity changed, or a sync is running | Wait for the running sync to finish and save again. A connection's account ID can't be changed. |
| Needs attention on a card | Read the error, or choose Explain this error. Google, Azure and AWS access is first tested on the first sync. |
| A provider's invoice is lower than expected this month | The invoice is used for the whole range, and the newest days may not be settled yet. Check Invoice through (choose Show all columns on the By provider table). |
| "no USD amount" in Account report | The report has no US dollar figure (Mistral, DeepInfra, or another currency). It is not added to the total. |
| Missing required column(s) | The CSV header must contain billing_day, sku and amount_usd. |