← All guides
🧠

How to Pay for the xAI (Grok) API: Buying Credits on console.x.ai, Auto Top-Up and Declined Cards (2026)

The xAI (Grok) API is prepaid: sign in at console.x.ai, open Billing → API spend management and click Purchase credits; usage is deducted from that balance and requests are rejected once it runs out. Grok subscriptions on grok.com are billed separately and do not include API usage. Step-by-step purchase, auto top-up (minimum $5, at most 5 top-ups per 24 hours), refunds, rate-limit tiers by cumulative spend, why a purchase is declined, and real data from our own prepaid cards: 166 successful GROK XAI charges on 101 cards in 91 days, 54 of them API-sized amounts.

How to pay for the xAI (Grok) API: sign in at console.x.ai, open Billing → API spend management and click Purchase credits. You pay by card (xAI also mentions bank transfer, which takes 2–3 business days), and every API call is deducted from that prepaid balance. When the balance hits zero, requests are rejected.

Grok subscriptions are a separate bill. xAI’s FAQ says the same account works for Grok and the API, but billing is separate: a SuperGrok or X Subscription plan on grok.com does not include API usage, so API credits are always bought on console.x.ai.

On cards we issued, the charge shows as GROK XAI PALO ALTO. In the 91 days to 2026-11-12 (UTC) there were 166 successful GROK XAI charges on 101 cards; 54 of them on 33 cards were round amounts typical of API credits ($5, $10, $20, $50). Most declines were a card holding less than the charge, not xAI refusing the card.

Written by the Pink Card team (pinkcard.cc). xAI rules are from the xAI docs pages “Manage Billing”, “FAQ – Billing”, “FAQ – Accounts”, “Rate Limits” and “Pricing”, opened without signing in on 2026-11-13 (Beijing time); the docs now name the company SpaceXSI, we call it xAI below. They may change, so your console wins. Card data is from our own transaction records with no customer details. Pink Card is not affiliated with xAI.

How to buy xAI API credits on console.x.ai

xAI docs Manage Billing page: prepaid credits and monthly invoiced billing (off by default); Purchase credits under Billing, API spend management; bank transfer takes 2-3 business days; Indian cards must use Guest Checkout
xAI docs, “Manage Billing”: prepaid credits are the most common option and are bought under Billing → API spend management; monthly invoicing is off by default (screenshot 2026-11-13; the $100.00 balance is the docs example, not a real account).
Image source: xAI Docs (link). If this infringes your rights, contact [email protected] and we'll remove it immediately.
  1. Sign in at console.x.ai with your xAI account (the same account as grok.com; create one if you have none).
  2. Make sure the right team is selected. xAI warns that billing settings apply to the whole team.
  3. Open Billing → API spend management, click Purchase credits and enter the amount.
  4. Enter the card number, expiry, CVC and billing address. The address is printed on the invoice and xAI says it cannot regenerate invoices, so get it right the first time.
  5. Check the Credits balance on API spend management before buying again.
  6. Create an API key and start calling the API. Usage shows on the Usage explorer page.
  • The card you pay with is saved automatically for the next purchase. xAI says you cannot remove the last payment method on file.
  • Indian-issued cards cannot be saved for later charges (regulatory requirement); buy credits through Guest Checkout each time.
  • Bank transfer purchases take 2–3 business days; credits are added after the payment clears.
  • Monthly invoiced billing is disabled by default; you request it from [email protected]. Most individual developers use prepaid credits.
  • Promo codes are redeemed in the same place (Redeem promo code).

Auto top-up: minimum $5, at most 5 per 24 hours

xAI docs Auto top-up section: trigger balance, top-up amount (minimum $5) and maximum total top-ups per month; limited to 5 top-ups per 24 hours
xAI docs, “Manage Billing” → Auto top-up: trigger balance, top-up amount (minimum $5) and monthly maximum; the settings box says top-ups are limited to 5 per 24 hours (screenshot 2026-11-13; $10 / $25 / $200 are the docs example).
Image source: xAI Docs (link). If this infringes your rights, contact [email protected] and we'll remove it immediately.
  • Under Manage auto top-ups you set the balance that triggers a top-up, the amount bought each time (minimum $5) and a maximum total per month.
  • Automatic top-ups are limited to 5 per 24 hours “to prevent unexpected charges”.
  • A warning appears on the API spend management card at 80% of your monthly limit.
  • xAI recommends turning it on to avoid interruptions; you can turn it off any time.
  • On a prepaid card, every automatic top-up is a separate card charge. If the card is short, the top-up is declined and API requests stop once the credits run out, so keep enough on the card for the top-up amount plus any per-transaction fee.

What the Grok API costs and whether credits are refundable

From docs.x.ai/developers/pricing, checked 2026-11-13 (USD). Requests whose prompt reaches 200k tokens are billed at the higher long-context rate for all tokens; grok-imagine-image is $0.02 per image; tools such as Web Search are $5 per 1,000 calls on top.
ModelInput / 1M tokensCached input / 1M tokensOutput / 1M tokens
grok-4.7 (prompt under 200k tokens)$2.00$0.50$6.00
grok-4.3 (prompt under 200k tokens)$1.25$0.20$2.50
grok-build-0.1 (prompt under 200k tokens)$1.00$0.20$2.00
  • When you are charged: the card is charged when you buy credits; API usage is calculated per request and deducted from the credits.
  • Refunds: xAI’s billing FAQ says prepaid API credits are not refundable “unless in regions required by law”. Buy roughly what you expect to use.
  • Running out: the default invoiced billing limit is $0, so once prepaid credits are gone, API requests are rejected automatically.
  • The pages we checked do not state an expiry date for prepaid credits; check your console.

Rate limits go up with cumulative spend

xAI docs Rate limit tiers table: tier based on cumulative xAI API spend since January 1, 2026; Tier 0 $0, Tier 1 $50, Tier 2 $250, Tier 3 $1,000, Tier 4 $5,000, Enterprise on request; tiers never downgrade
xAI docs, “Rate Limits”: tiers unlock automatically from prepaid credit purchases and paid invoices since 2026-01-01 and never downgrade (screenshot 2026-11-13).
Image source: xAI Docs (link). If this infringes your rights, contact [email protected] and we'll remove it immediately.
  • Each team has per-model limits on requests per second and tokens per minute. Going over returns 429 Too Many Requests, which is not a payment problem.
  • Tiers by cumulative spend since 2026-01-01: $50 for Tier 1, $250 for Tier 2, $1,000 for Tier 3, $5,000 for Tier 4.
  • Several small purchases count the same as one large one, so there is no need to buy a big block just to move up a tier.
  • Your tier and limits are on the Models page in the console, where you can also request an increase.

Why an xAI credit purchase is declined, and what to check

  1. Check that xAI supports your region and that you accept its terms, and that you are paying for the right team.
  2. Work out the full charge: the card must hold the credit amount plus any per-transaction card fee. On our cards, too little balance was by far the most common cause.
  3. Check card number, expiry and CVC exactly. 4 of the declines on our cards were a wrong CVC (“CVV2 Code Mismatch”).
  4. Use the billing address the issuer has on file, in the same city as your network exit.
  5. If auto top-up is on, see whether it is the automatic top-up being declined again and again (at least $5 each, up to 5 per 24 hours).
  6. Do not retry in a loop. Check Billing for a purchase that already went through, then pay once.

What we saw on our cards: GROK XAI charges in 91 days

Every charge from merchant GROK XAI PALO ALTO on cards we issued, 2026-08-14 00:00 to 2026-11-13 00:00 UTC, with no customer details. API credits and grok.com subscriptions use the same merchant name, so the card record cannot tell them apart; we grouped them by amount, since subscriptions have fixed prices and API credits are an amount you type.

Pink Card transaction records, merchant GROK XAI PALO ALTO, 2026-08-14 to 2026-11-13 (UTC), queried 2026-11-13; plus 2 pending. Total: 166 successful charges on 101 cards, $4,753.06 billed in USD.
AmountMost likelySuccessfulDeclined
Round USD, not a plan price ($5, $10, $20, $25, $50 …)API credits54 on 33 cards, $1,28468 on 21 cards
$8, $15, $30, $300Plan prices (e.g. Plus $8, Premium $30, Premium first month $15)47 on 45 cards, $95121 on 4 cards
$100Super plan or $100 of API credits; cannot tell10 on 5 cards, $1,0006 on 1 card
USD with cents (e.g. $16.33, $32.66)Plan price plus tax20 on 19 cards, $635.227 on 3 cards
HKD, JPY, CNY and other currenciesPlans priced in local currency35 on 25 cards, $882.84 billed19 on 4 cards
  • Of the 54 API-sized successful charges: 28 were $10 or less ($5 was the most common, 21 times), 10 were $10–25, 15 were $25–100 (12 of them $50) and 1 was over $100.
  • Of the 68 declines in that group, 61 were limit messages (cumulative 18, monthly 16, over the single-transaction maximum 14, daily 13), which on our cards means the card held less than the charge; 4 were a wrong CVC, 2 a locked card, 1 an expiry check.
  • Declines cluster on a few cards: one card had 14. 14 of the 21 cards with a declined API-sized charge also had a successful one in the same 91 days, i.e. they paid once the balance was enough.
  • 15 of the 33 cards that bought API-sized amounts also paid plan-sized amounts: people who subscribe to Grok and buy API credits on the same card.
  • We found no “prepaid cards not accepted” rule in the xAI docs we checked, but successful charges on our cards do not guarantee every card and every charge will pass.

Buy xAI API credits with a prepaid virtual card

  1. Open pinkcard.cc/en and choose an amount: presets start at $50 ($50, $110, $220, $500, $1000), or enter a custom amount from $50.
  2. Pay with USDT on BEP-20 (shown as BSC or BNB Smart Chain on most exchanges; lowest network fee) or ERC-20, with USDC on ERC-20, or with Alipay (needs a mainland China Alipay account). Send exactly the amount shown, on exactly the network you picked.
  3. Enter your email twice. No account and no sign-up are needed.
  4. The card number, expiry and CVV arrive by email about 1–2 minutes after the payment confirms (check spam).
  5. On console.x.ai open Billing → API spend management → Purchase credits, pay with the card from the email and a billing address in the same city as your network exit, and submit once.
  6. Top up the same card when it runs low. The number does not change, so the card saved on console.x.ai keeps working; card top-ups usually arrive within 5–10 minutes.

Pink Card fees (as of 2026-11-13)

  • Card issuance: $10 one-time, plus a 3% service fee on (card amount + $10). A $50 card costs $61.80 in total.
  • From the card balance after activation: $1 per transaction and $2.50 per month.
  • Failed authorizations are charged $1 too (at most 3 failed charges per card per month), so do not retry a declined purchase in a loop.
  • Top-up of the same card: $5 plus 5% of (top-up amount + $5), minimum $30, usually on the card within 5–10 minutes. Full fee table: pinkcard.cc/en/fees.
  • Once the card details are emailed, the order cannot be cancelled, so double-check your email address before paying.
Worked example: a $50 card buys $25 of xAI credits for $25 + $1 = $26; after one $2.50 monthly fee, $21.50 is left, enough for another $20 of credits ($21). Because every charge costs $1, set auto top-up to $20–25 rather than $5 (where the fee would be 20%). A later $30 top-up of the card costs $5 + (30 + 5) × 5% = $6.75, $36.75 in total.

FAQ

Where do I buy xAI (Grok) API credits?

Sign in at console.x.ai, select your team, open Billing → API spend management and click Purchase credits. Usage is deducted from those prepaid credits, and requests are rejected when they run out.

Does a SuperGrok or X Subscription plan include API usage?

No. xAI’s FAQ says Grok and the xAI API share an account but are billed separately: subscriptions are managed on grok.com, API credits are bought on console.x.ai.

What is the minimum xAI auto top-up?

$5 per automatic top-up. You also set the trigger balance and a monthly maximum, and automatic top-ups are limited to 5 per 24 hours. On a prepaid card each one is a separate charge, so keep the card funded.

Can I get a refund for unused xAI API credits?

xAI’s billing FAQ says prepaid API credits are not refunded unless required by law in your region.

Can I pay for xAI API credits with a prepaid card or USDT?

The xAI billing docs mention only card and bank transfer for API credits, no crypto. The docs we checked do not exclude prepaid cards, and our prepaid cards had 54 successful API-sized GROK XAI charges in 91 days. You can buy a prepaid Visa/Mastercard with USDT or USDC and pay console.x.ai with it.

Get a Pink Card

Prepaid virtual card bought with USDT or USDC. No sign-up, details by email about 1–2 minutes after payment.