xAI Usage logo
AI integrationUpdated

xAI Usage dashboard for Grok API billing, on Apple TV

xAI Usage is the billing side of the Grok API, and it matters most when credits run low, because xAI stops serving requests once prepaid credits are gone and the spending limit is reached. Dance Party reads your xAI team's billing with a management key and puts it on the office display as an Apple TV dashboard: credits left, spend by Grok model, and this period against its limit.

  • Read-only
  • API key connection
  • Multiple accounts
Grok API spend per day, last 30 daysLive
$2,146+9% vs prior 30 days

What teams running xAI Usage put on the screen, and what you would ask DJ Agent to get it.

Grok credits and limits

For whoever owns the xAI bill

When prepaid credits hit zero and the soft limit is reached, Grok calls start failing in production. Credits, accrued spend, and both limits on one tile give the team days of warning instead of an outage.

  • Prepaid credit balance
  • Spend accrued in the current billing period
  • Soft and hard spending limits, and the effective limit

Ask DJ Agent“Show our xAI prepaid credit balance, spend accrued this billing period, and our soft and hard spending limits, and turn the credits red under $200.”

xAI billing statusLive
$412.50
Prepaid credits
$1,388.20
Accrued this period
$2,500
Soft limit
$4,000
Hard limit

Grok spend by model

For AI engineers choosing between Grok models

xAI bills each model and request type as its own line. Ranking spend by model shows whether the reasoning model is carrying traffic a faster, cheaper model could handle.

  • Spend in USD grouped by model and request type
  • The same split for a day, week, or month
  • Each model's share of the period's spend

Ask DJ Agent“Rank our xAI spend by Grok model for the last 30 days.”

Grok spend by model, last 30 daysLive
1Chat grok-4-0709
$1,120
2Chat grok-4-fast-reasoning
$538
3Chat grok-code-fast-1
$301
4Chat grok-3-mini
$129

This billing period against the spending limit

For finance and engineering leads

The invoice preview is what xAI will bill this cycle so far. Watching it approach the effective limit tells the team to raise the limit or slow a job before requests are refused.

  • Invoice preview total for the current billing cycle
  • Effective spending limit for the team
  • Line items on the preview

Ask DJ Agent“Show our xAI invoice preview for this billing period as progress toward the effective spending limit.”

xAI billing period so farLive
Invoice preview vs effective limit
$1,388/ $2,500
56% to goal

Monthly xAI invoices

For finance and the head of engineering

Six months of invoices side by side answer the budget question plainly: is Grok spend growing with the product, or flat while usage moved elsewhere.

  • Invoice totals for past billing cycles
  • Line items on each invoice
  • The latest invoice against the one before

Ask DJ Agent“Show our last six xAI invoice totals by month as bars.”

xAI invoices by monthLive
$2,031August invoice
Mar
Apr
May
Jun
Jul
Aug

What Dance Party reads from xAI Usage

Dance Party reads your xAI team through the xAI Management API billing endpoints. It reads spend, credits, invoices, and limits. It never reads your payment method or billing address, and it never tops up credits or changes a limit.

  • Spend over time
    Grok API spend in USD by hour, day, week, or month for up to a year, optionally grouped, for example by model.

Credits, limits, and invoices

xAI Usage API docs ↗
  • Prepaid balance
    Your prepaid credit balance and the individual credit changes behind it.
  • Invoice preview
    What the current billing period has accrued so far, with line items and the effective spending limit.
  • Spending limits
    The soft and hard spending limits configured for the team.
  • Invoices
    Past invoices with line items and totals, for all cycles or a chosen month.

How to connect xAI Usage

Before you start

  • An owner or admin of your Dance Party workspace makes the xAI Usage connection.
  • Access to the xAI Console for the team, with permission to create management keys
  • A management key and the team's Team ID. A Grok API key, including the one you use for DJ Agent, is rejected by the billing API
  1. 1
    From Integrations in Dance Party, click Connect xAI Usage, or Add account when a team is already there. Type an Account name for this xAI team.
  2. 2
    Click Open xAI Management Keys. Click Create management key, name it Dance Party, and set Billing to Read only. Copy the key into Management key.Open xAI Management Keys ↗
  3. 3
    Click Find xAI Team ID. On the Team settings page, copy the Team ID into Team ID.Find xAI Team ID ↗
  4. 4
    Click Save. Dance Party reads your prepaid credit balance to prove the key and Team ID work together, and the account appears on the card.
The Connect xAI Usage pop-up with an Account name field, links to xAI Management Keys and Team ID, five numbered steps, and the Management key and Team ID fields
Captured from the Dance Party app, September 30, 2026.

Connecting more than one xAI Usage account

A management key and Team ID read one xAI team's billing, so each team becomes its own named account. If you run separate xAI teams for production and experiments, or one per client, add each with a name you will recognize on a board. Names are unique in the workspace, and a widget can read up to five teams at once.

Dance Party only sends billing reads. It never calls xAI's top-up, spending-limit, payment-method, or billing-info updates, and it does not read your card or billing address. Delete the key on the Management Keys page to cut access at any time.

From xAI Usage to your office display

Once xAI Usage shows Connected, the rest happens in plain English. No code, no drag-and-drop.

  1. 1. Describe it. Tell DJ Agent what you want to see.

    New dashboard+ Widget
    Describe a widget in DJ Agent, or click + Widget
    DJ Agent
    DATA SOURCES
    xAI Usage logoxAI UsageConnected
    Show our xAI prepaid credit balance, spend accrued this billing period, and our soft and hard spending limits, and turn the credits red under $200.Send
  2. 2. It gets built. The widget lands on your board with real xAI Usage data.

    New dashboard+ Widget
    xAI Usage logoxAI billing statusLive
    $412.50
    Prepaid credits
    $1,388.20
    Accrued this period
    $2,500
    Soft limit
    $4,000
    Hard limit
    DJ Agent
    DATA SOURCES
    xAI Usage logoxAI UsageConnected
    Show our xAI prepaid credit balance, spend accrued this billing period, and our soft and hard spending limits, and turn the credits red under $200.Send
  3. 3. Put it on a screen. Pair an Apple TV with the six-character code it shows, then assign the dashboard.

    The Pair your Apple TV card in Dance Party, with six boxes for the code the Apple TV shows

xAI Usage dashboard questions

Can I show Grok API spend on an office display?

Yes. Connect your xAI team with a management key and Team ID, ask DJ Agent for the board, and assign it to a screen running the Dance Party Apple TV app.

Why does my Grok API key fail to connect?

Grok API keys are for inference. xAI's billing API only accepts a management key, created in the xAI Console under Settings, Management Keys, together with your Team ID.

Can it warn us before xAI credits run out?

Yes. Dance Party reads the prepaid credit balance and the spending limits, so a board can turn amber or red at a threshold you name in the prompt.

Does Grok used inside Cursor or other tools show up here?

No. Grok calls made through another product are billed by that product, not your xAI team. Use the Cursor integration for Cursor's spend.

Can I connect more than one xAI team?

Yes. Each team is a named account with its own management key and Team ID. A widget can compare or total up to five of them.

Can Dance Party top up credits or change our spending limit?

No. It only reads billing data. The top-up, spending-limit, and payment-method endpoints are never called.

Put xAI Usage on every office display

Connect xAI Usage, describe the dashboard, and it runs on an Apple TV, refreshing on its own.

Get Started