Skip to content
inetGeek

xAI Grok API pricing and limits

iScore36–52 · ≈#10/10
x.ai · LLM APIs
SEPT 2026 audit

Hosted 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.

No affiliate links, sponsored placements or paid rankings appear on this site. Ordering follows the sourced data and the stated criteria.

Entry paid planNo 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.
RegionsTwo API endpoints: the global api.x.ai, which may route requests between regions and guarantees no processing location, and a US regional endpoint (us.api.x.ai) serving only grok-4.7 and grok-4.6 at a 10% token premium.
Free tierNo
CategoryLLM APIs

Reviewed by Palash BagchiUpdated 18 criteria comparedSources last checked

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 ↗

First line of each sourced value. The full text is in xAI Grok API pricing below.

xAI Grok API prices by model

API prices per modelStandard prices in USD per 1M tokens from xAI's API pricing page, at the short-context rate. Once a prompt reaches 200k tokens the long-context rate in Notes applies to every token in the request. Priority processing bills at 2x standard rates and the US regional endpoint at 1.1x. Text models only; image, video and voice models are priced separately.
ModelInput (per 1M tokens)Output (per 1M tokens)Notes
grok-4.7$2.00$6.00500k 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.00500k 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.00500k 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.501M 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.501M 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.501M 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.501M 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.00Early-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

01.Evaluation guide

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

4 criteria
Free tierNo
Sources (1) →
Kind of free offerNo free offer — Usage draws on purchased credits; the billing page mentions promo codes but publishes no free offer.
Sources (1) →
Entry paid planNo 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.
Sources (1) →
  • 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

Pricing modelPer 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.
Sources (1) →
  • 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

1 criteria
RegionsTwo API endpoints: the global api.x.ai, which may route requests between regions and guarantees no processing location, and a US regional endpoint (us.api.x.ai) serving only grok-4.7 and grok-4.6 at a 10% token premium.
Sources (1) →
  • 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

8 criteria
Input price, top model$2.00 per million input tokens for grok-4.7 below 200k prompt tokens; $4.00 once a prompt reaches 200k, billed on every token in that request.
Sources (1) →
  • 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

Output price, top model$6.00 per million output tokens for grok-4.7 below 200k prompt tokens; $12.00 at long context.
Sources (1) →
  • 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

Input price, cheapest model$1.25 per million input tokens for grok-4.3 below 200k prompt tokens (output $2.50), the cheapest generally available text model. The early-access coding model grok-build-0.1 is listed at $1.00.
Sources (1) →
Context window500,000 tokens on grok-4.7; 1M on grok-4.3 and the grok-4.20 models, 256k on grok-build-0.1.
Sources (1) →
  • 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

Max output tokensNo separate output cap on grok-4.7: its overview lists no text output limit.
Sources (1) →
Prompt cachingSupported — Automatic prefix caching; cached input is billed at a lower per-model rate, e.g. $0.50 vs $2.00 on grok-4.7.
Sources (1) →
Batch discount20% off all token types through the Batch API on grok-4.3 and the three grok-4.20 models; other models, including grok-4.7, get no batch discount.
Sources (1) →
  • 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

Rate limitsPer-team, per-model caps in requests per second and tokens per minute, set by a tier that rises with cumulative spend (Tier 0 at $0 to Tier 4 at $5,000; Enterprise on request) and never downgrades. grok-4.7 allows 150 RPS and 50M TPM at Tier 0, 500 RPS and 100M TPM at Tier 4.
Sources (1) →
  • 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

5 criteria
SOC 2SOC 2 Type 2 compliant; the Trust Center carries certification details for customers with a signed NDA.
Sources (1) →
HIPAABAA by inquiry: xAI's answer to whether the API is HIPAA compliant is to complete a BAA questionnaire, after which the team reviews it and follows up.
Sources (1) →
  • 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

GDPR / data residencyThe only residency option is the US endpoint, which keeps request handling, inference, moderation and retained request data in the US; files, collections and server-side tools are outside it, and xAI says it is not by itself a comprehensive data-residency guarantee.
Sources (1) →
  • 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

Encryption at restAPI requests and responses kept for the default 30-day abuse-audit window are stored encrypted at rest; Zero Data Retention teams have nothing persisted.
Sources (1) →
Role-based access controlTwo team roles: Admin (team name, billing and members) and Member.
Sources (1) →

When these numbers change, hear about it. Sources are re-checked monthly; a repricing goes out as a short note.

Confirm by email; unsubscribe from any issue. Your address goes to Kit and nowhere else — what we do with it.

xAI in the news

Headlines from other publications, not checked by us · collected

Selected by a search on this company, refreshed weekly. Nobody here has verified these claims — where something material is confirmed, it is written into the page above with its source, the way every other fact on this site is.

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.

Billing, Credits & Invoices | SpaceXAI Docs · read

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

Does xAI have a free tier?

No.

Grok API Quickstart: Get Your API Key | SpaceXAI Docs · read

Comments

Every page here is sourced and dated.