We are at re:Invent 2026Book my merch
Cloud Intelligence™Cloud Intelligence™

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

xAI · October
$71,940
Input tokens41%Reasoning output tokens34%Output tokens25%
Tokens
5.8B
Cached input
29%
API keys
17
By model
API grok-4.3 Grok API$31,280
API grok-4-fast Grok API$17,640
API grok-code-fast-1 Grok API$11,920
API grok-3-mini Grok API$5,410

Trusted by teams scaling SpaceXAI usage in production

Akamai
Blumira
Chess.com
Current
OneFootball
Promptly
Recurly
Lusha
Mux

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.

Cloud AnalyticsxAIExample
ProviderxAIxAI
Billing accountTeam ID0000...-0000
ServiceGrok APIGrok API
SKUProduct-prefixed modelAPI grok-4.3
Plus xAI labels
ModelUsage TypeCachedRegionAPI Key
Refreshed every 6 hours · 180 days of history on connect

what 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

1

Create a management key.

In the xAI Console, set Billing to read only and leave other access off.

2

Connect in the catalog.

Enter your team ID and management key, then test the connection.

3

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 free

Frequently 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.