xAI Grok API pricing and limits
iScoreHosted inference for the Grok model family from xAI (SpaceXAI in its docs), priced per million tokens with a higher rate once a prompt reaches 200k tokens.
xAI Grok API pricing at a glance
- Entry paid plan
- No plan fee: API usage is drawn from prepaid credits bought in the xAI Console, with monthly invoicing off by default and requested through… source ↗
- Pricing model
- Per million tokens, per model, with a higher long-context rate applied to every token in a request once its prompt reaches 200k tokens source ↗
xAI Grok API prices by model
| Model | Input (per 1M tokens) | Output (per 1M tokens) | Notes |
|---|---|---|---|
| grok-4.7 | $2.00 | $6.00 | 500k context. Long context (prompt ≥200k tokens) $4.00 in / $12.00 out. Cached input $0.50 ($1.00 long context). No batch discount. US regional endpoint $2.20 in / $6.60 out. |
| grok-4.6 | $2.00 | $6.00 | 500k context. Long context (prompt ≥200k tokens) $4.00 in / $12.00 out. Cached input $0.50 ($1.00 long context). No batch discount. Also on the US regional endpoint at 1.1x. |
| grok-4.5 | $2.00 | $6.00 | 500k context. Long context (prompt ≥200k tokens) $4.00 in / $12.00 out. Cached input $0.30 ($0.60 long context). No batch discount. |
| grok-4.3 | $1.25 | $2.50 | 1M context. Long context (prompt ≥200k tokens) $2.50 in / $5.00 out. Cached input $0.20 ($0.40 long context). Batch API 20% off. |
| grok-4.20-0309-reasoning | $1.25 | $2.50 | 1M context. Long context (prompt ≥200k tokens) $2.50 in / $5.00 out. Cached input $0.20 ($0.40 long context). Batch API 20% off. |
| grok-4.20-0309-non-reasoning | $1.25 | $2.50 | 1M context. Long context (prompt ≥200k tokens) $2.50 in / $5.00 out. Cached input $0.20 ($0.40 long context). Batch API 20% off. |
| grok-4.20-multi-agent-0309 | $1.25 | $2.50 | 1M context. Long context (prompt ≥200k tokens) $2.50 in / $5.00 out. Cached input $0.20 ($0.40 long context). Batch API 20% off. |
| grok-build-0.1 | $1.00 | $2.00 | Early-access coding model. 256k context. Long context (prompt ≥200k tokens) $2.00 in / $4.00 out. Cached input $0.20 ($0.40 long context). No batch discount. |
API Pricing | SpaceXAI Docs · read · every row quoted from this page
Who it suits
Grok models on pay-as-you-go credits: grok-4.7 at $2 in / $6 out per million tokens with a 500k context, or grok-4.3 at $1.25 / $2.50 with a 1M context and 20% off through the Batch API, plus a US-only endpoint when data must stay in the US.
Consider something else if…
You need a free tier, EU residency or paperwork up front: there is no free offer, the only residency option is a US endpoint, HIPAA starts with a BAA questionnaire, and SOC 2 details sit behind an NDA. Prompts of 200k tokens or more are billed at double on every token.
Editorial · Palash Bagchi · approved
Each value below links to the page it was read from, with the sentence it came from. Criteria xAI does not publish are not listed.
xAI Grok API pricing
Sources (1) →Sources ↓
- Grok API Quickstart: Get Your API Key | SpaceXAI Docs ↗
“Sign up for an account at console.x.ai, then load it with credits to start using the API.”
Read 2026-09-25 · official docs · Report a correction
Sources (1) →Sources ↓
- Grok API Quickstart: Get Your API Key | SpaceXAI Docs ↗
“Sign up for an account at console.x.ai, then load it with credits to start using the API.”
Read 2026-09-25 · official docs · Report a correction
Sources (1) →Sources ↓
- Billing, Credits & Invoices | SpaceXAI Docs ↗
“Prepaid credits: Pre-purchase credits for your team. API consumption will be deducted from this credit balance. [...] Monthly invoiced billing is disabled by default. [...] top-up amount of credits that will be purchased (minimum $5).”
Read 2026-09-25 · official docs · Report a correction
Sources (1) →Sources ↓
- API Pricing | SpaceXAI Docs ↗
“Models with long context pricing bill the long context rates for all tokens in a request once its prompt reaches the model's long context threshold. [...] Priority requests are billed at a 2x premium over standard rates. [...] their token usage is billed at 1.1x the global token rates, a 10% premium.”
Read 2026-09-25 · official pricing · Report a correction
Infrastructure
Sources (1) →Sources ↓
- Regional Endpoints | SpaceXAI Docs ↗
“https://api.x.ai is the global endpoint. SpaceXAI may route requests between regions for capacity or reliability, so the processing location is not guaranteed. [...] The US endpoint currently serves two models, grok-4.7 and grok-4.6 , and none of the image generation, video generation, or voice APIs. Token usage costs 10% more than on the global endpoint.”
Read 2026-09-25 · official docs · Report a correction
Inference
Sources (1) →Sources ↓
- API Pricing | SpaceXAI Docs ↗
“Model Context Short context Long context Input Cached Output Input Cached Output grok-4.7 Long context ≥ 200k tokens 500k $2.00 $0.50 $6.00 $4.00 $1.00 $12.00 [...] Models with long context pricing bill the long context rates for all tokens in a request once its prompt reaches the model's long context threshold.”
Read 2026-09-25 · official pricing · Report a correction
Sources (1) →Sources ↓
- API Pricing | SpaceXAI Docs ↗
“Model Context Short context Long context Input Cached Output Input Cached Output grok-4.7 Long context ≥ 200k tokens 500k $2.00 $0.50 $6.00 $4.00 $1.00 $12.00”
Read 2026-09-25 · official pricing · Report a correction
Sources (1) →Sources ↓
- API Pricing | SpaceXAI Docs ↗
“grok-4.3 Long context ≥ 200k tokens 1M $1.25 $0.20 $2.50 [...] grok-build-0.1 Long context ≥ 200k tokens 256k $1.00”
Read 2026-09-25 · official pricing · Report a correction
Sources (1) →Sources ↓
- API Pricing | SpaceXAI Docs ↗
“grok-4.7 Long context ≥ 200k tokens 500k $2.00 $0.50 $6.00 $4.00 $1.00 $12.00 grok-build-0.1 Long context ≥ 200k tokens 256k [...] grok-4.3 Long context ≥ 200k tokens 1M”
Read 2026-09-25 · official pricing · Report a correction
Sources (1) →Sources ↓
- Grok 4.7 | SpaceXAI Docs ↗
“Context window 500,000 tokens Knowledge cutoff May 2026 Modalities Text and image input; text output Output limit No text output limit”
Read 2026-09-25 · official docs · Report a correction
Sources (1) →Sources ↓
- Prompt Caching | SpaceXAI Docs ↗
“When consecutive requests share the same starting messages, the xAI API automatically caches them. [...] Lower cost — cached tokens are billed at a reduced rate”
Read 2026-09-25 · official docs · Report a correction
Sources (1) →Sources ↓
- API Pricing | SpaceXAI Docs ↗
“The batch discount applies to all token types — input tokens, output tokens, cached tokens, and reasoning tokens. Batch discounts by model: Model Batch discount grok-4.3 grok-4.20-0309-reasoning grok-4.20-0309-non-reasoning grok-4.20-multi-agent-0309 20 % Models not listed above have no batch discount.”
Read 2026-09-25 · official pricing · Report a correction
Sources (1) →Sources ↓
- Rate Limits | SpaceXAI Docs ↗
“Every xAI API team has per-model rate limits on two dimensions: requests per second (RPS) and tokens per minute (TPM) [...] Tier Spend threshold Tier 0 $0 (default) Tier 1 $50 Tier 2 $250 Tier 3 $1,000 Tier 4 $5,000 Enterprise Available on request [...] Once you qualify for a tier, you stay there permanently; tiers never downgrade. [...] grok-4.7 T 0 T 1 T 2 T 3 T 4 150 172 208 312 500 50M 53M 60M 74M 100M”
Read 2026-09-25 · official docs · Report a correction
Compliance
Sources (1) →Sources ↓
- FAQ - API Security | SpaceXAI Docs ↗
“We are SOC 2 Type 2 compliant. Customers with a signed NDA can refer to our Trust Center for up-to-date information on our certifications and data governance.”
Read 2026-09-25 · official docs · Report a correction
Sources (1) →Sources ↓
- FAQ - API Security | SpaceXAI Docs ↗
“Is the xAI API HIPAA compliant? To inquire about a Business Associate Agreement (BAA), please complete our BAA Questionnaire . A member of our team will review your responses and reach out with next steps.”
Read 2026-09-25 · official docs · Report a correction
Sources (1) →Sources ↓
- Regional Endpoints | SpaceXAI Docs ↗
“The US guarantee covers API request handling, inference, moderation, and retained request data. It does not cover Files, Collections, server-side tools, or the network path from your systems to SpaceXAI. [...] A regional endpoint is not, by itself, a comprehensive data-residency guarantee.”
Read 2026-09-25 · official docs · Report a correction
Sources (1) →Sources ↓
- FAQ - API Security | SpaceXAI Docs ↗
“By default, all API requests and responses are stored on our servers (encrypted at rest) for 30 days for auditing purposes in the event of suspected abuse or misuse.”
Read 2026-09-25 · official docs · Report a correction
Sources (1) →Sources ↓
- FAQ - API Team Management | SpaceXAI Docs ↗
“Each team has roles : Admin : Can modify team name, billing details, and manage members. Member : Cannot make these changes.”
Read 2026-09-25 · official docs · Report a correction
When these numbers change, hear about it. Sources are re-checked monthly; a repricing goes out as a short note.
xAI in the news
xAI Grok API pricing questions
How much does xAI cost?
No plan fee: API usage is drawn from prepaid credits bought in the xAI Console, with monthly invoicing off by default and requested through sales. Auto top-ups start at $5; no minimum is stated for a one-off credit purchase.
How does xAI charge?
Per million tokens, per model, with a higher long-context rate applied to every token in a request once its prompt reaches 200k tokens. Priority processing bills at 2x, the US regional endpoint at 1.1x, and some models take a batch discount.
API Pricing | SpaceXAI Docs · read

Comments are hosted by EchoThread, which sets cookies and offers social sign-in. Like the analytics on this site, it does not load until you accept — see the privacy page.