Integration
Track xAI API costs
Geiger tracks xAI API costs from xAI's official usage and cost reports. Create an xAI Management key in xAI Console (Settings → Management Keys), paste it into Geiger, and see month-to-date spend, a monthly forecast, cost per model and budget alerts by email. No SDK, proxy or code changes.
How to connect xAI
Your xAI Console account needs permission to manage Management keys (Management Keys read and write on your team's Users page).
- Open Management Keys. In the xAI Console, go to Settings → Management Keys. Open Management Keys
- Create a team key. Click Create Management Key and name it "Geiger". Scope it to the team you want to track, not the whole organization.
- Allow billing reads only. Give the key permission for the billing usage and billing info endpoints only. Leave API key, model and collection management unchecked. Geiger never writes anything.
- Paste it into Geiger. Sign in to Geiger, open Providers, choose xAI and paste the key. It is encrypted with AES-256-GCM and only the last 4 characters are shown.
What you get
- Projected monthly bill with a confidence range
- Cost by model, for example which models drive the bill
- Budget and unusual-spend email alerts
- Up to 90 days of history on Pro (7 on Free)
Good to know
- API keys
- Keys from the API Keys page call models and can't read billing. Both kinds start with xai-, so Geiger checks the key when you connect.
- Several teams
- Each team key reads one team. Connect one key per team to track them all.
xAI FAQ
Which xAI key does Geiger need?
An xAI Management key. xAI publishes billing usage only through its Management API. Regular API keys call models and can't read spend. Your xAI Console account needs permission to manage Management keys (Management Keys read and write on your team's Users page).
Where do I create the Management key?
In xAI Console, under Settings → Management Keys.
Can Geiger see my xAI prompts?
No. We only pull usage and cost data. Prompts and completions are never accessed or stored.
How much xAI history does Geiger show?
Up to 90 days of history on Pro (7 on Free).
Is Geiger free for xAI?
Yes. The free plan covers 1 provider with 7 days of history. Pro is $19/month for every provider, 90 days of history, daily sync and alerts.