xAI
Grok API spend, by model and key.
Cloud Intelligence™ imports your xAI cost and usage every six hours: Grok API spend by model, usage type, cached tokens, region and API key. Right next to the rest of your AI and cloud spend.
Read-only management key · 180 days of history · Refreshed every 6 hours
what we import
xAI data, in the dimensions you already use.
Every charge maps to standard Cloud Analytics dimensions, plus xAI labels for model, usage type, cached tokens, region and API key.
xAI0000...-0000Grok APIAPI grok-4.3what you can do with it
From the xAI bill to a decision
Cost by API key
Slice Grok API spend by model, usage type, region or API key.
Cached vs uncached
See how much input is served from prompt cache.
Reasoning vs output tokens
Reasoning and standard output token spend, side by side.
Next to your other providers
xAI alongside your other AI and cloud spend in Cloud Analytics.
Budgets and alerts
Guardrails on Grok API spend before the invoice lands.
Allocations
Put xAI spend on teams and products, by API key.
live in hours
Connect xAI in three steps
Create a management key.
In the xAI Console, set Billing to read only and leave other access off.
Connect in the catalog.
Enter your team ID and management key, then test the connection.
Reports in hours.
Up to 180 days of history imported. We email you when it's ready.
Read-only billing access. Disconnect any time.
Start freeFrequently asked
questions
How do I connect xAI?
Search for xAI in the integrations catalog, select Connect, and enter your Team ID and Management API key. Test the connection, then save.
Which key do I need?
A management key with Billing set to Read only and every other endpoint at No access. Inference API keys you use to call Grok models are rejected, because xAI serves billing data only through its Management API.
Should I restrict the key to an IP address?
No. Leave the Allowed IP Address list empty, because we ingest from a pool of egress addresses and a single-IP restriction causes intermittent connection failures.
How much history do you import, and how often?
We import up to 180 days of history on connect and refresh every six hours at daily granularity. You get an email when the data is ready in Cloud Analytics.
Which dimensions and labels are available?
Charges map to Provider, Billing Account (team ID), Service (Grok API) and SKU (product-prefixed model, such as API grok-4.3). Labels add model, usage type, cached, region and API key.
How does xAI show next to my other providers?
xAI appears as its own provider in Cloud Analytics, and usage type is normalized across AI providers. That lets you compare Grok spend with your other AI and cloud costs.
Connect xAI. Know what every Grok call costs.
Free to start. Read-only. Reports in hours.
