ospalabs
Guide · xAI

xAI Grok API spending limit: credits, invoiced limits and daily caps

Updated October 2026

xAI bills API usage to an API team, separately from any Grok subscription. Usage draws on free or promotional credits first, then prepaid credits, then monthly invoiced billing, but only if the team's invoiced spending limit is above $0. It's $0 by default, so out of the box requests are rejected once prepaid credits run out.

That default works as a prepaid cap for the whole team. It doesn't give you a daily limit, a cap per key, or a budget per customer.

  1. 01

    Check your billing setup

    In the xAI Console, open Billing → Credits. See how much prepaid credit is left and what the invoiced spending limit is. Keep it at $0, or at a number you're comfortable with, until you have other limits in place.

  2. 02

    See spend per key

    The Usage Explorer in the console breaks usage down by API key and model. Use one key per app so that view tells you something.

  3. 03

    Add daily and per-key ceilings with Fuse

    xAI is built into Fuse. Add your xAI key to a project under Providers & models, switch on the Grok models you use, and set a daily or monthly ceiling. Each Fuse key can have its own cap inside it.

    .env
    FUSE_BASE_URL=https://fuse.ospalabs.com/v1
    FUSE_API_KEY=fz_your_fuse_key
  4. 04

    Budget per customer if you resell Grok

    Send x-fuse-user with each request and set a cap per customer, so one heavy user can't use up the team's credits.

Questions

Does a Grok or SuperGrok subscription include API credits?
API usage is billed to your API team in the xAI Console, separately from consumer Grok subscriptions. Check the console for your team's current credits.
What happens when prepaid credits run out?
With the default $0 invoiced limit, xAI rejects further API requests until you add credit or raise the limit.