xAI

xAI Integration

xAI Grok Cost Tracking

Monitor your team's Grok API spending with Grafient. Get daily cost breakdowns across Grok 4, Grok 3, and Grok 3 mini with 90 days of historical data and team-level billing visibility.

History Depth

90 days

Usage Unit

Tokens

Billing Scope

Team-level

Complete visibility into your xAI costs

Grafient captures every data point from the xAI billing API so nothing slips through the cracks.

1

Cost per model

Break down spend across Grok 4, Grok 3, and Grok 3 mini. See which tier drives the most cost and whether you can shift workloads to cheaper models.

2

Daily spend breakdown

View day-by-day cost trends across your xAI usage. Spot anomalies, track growth patterns, and correlate cost spikes with specific projects or deployments.

3

Team-level billing

xAI bills at the team level. Grafient connects to your team's billing data so every member's usage is captured in a single unified view.

4

Model tier comparison

Compare costs between Grok 4 flagship and Grok 3 mini fast tier. Make informed decisions about which model tier delivers the best value for each use case.

Supported models

Current xAI models with per-million-token pricing.

ModelInput / 1MOutput / 1MTier
Grok 4$3.00$15.00
Flagship
Grok 3$3.00$15.00
Balanced
Grok 3 mini$0.30$0.50
Fast

Start tracking in under 2 minutes

Three steps to connect xAI to Grafient.

1

Get your Management key and Team ID

Go to console.x.ai, navigate to API settings, and copy both your Management API key and your Team ID.

2

Enter both into Grafient

Open Grafient, add a new xAI integration, and paste your Management API key along with your Team ID. Both are encrypted at rest.

3

See costs instantly

Grafient fetches up to 90 days of team billing history. Your dashboard populates in seconds.

Requires both a Management API key and your Team ID. Without the Team ID, Grafient cannot access your team's billing data.

Start tracking xAI costs today

Free plan. No credit card. Set up in under two minutes.