All providers

xAIxAI API pricing

9 xAI models tracked, updated daily. Full rates below, with guidance on which tier fits which workload.

Prices updated Nov 29, 20269 models
Cheapest xAI model

Grok 4.20 costs $873 a month for your workload ($1.25 per 1M input, $2.50 per 1M output).

Highest intelligence (ECI)

Grok 4.6 scores highest of the xAI models (157.8), at $1,740 a month.

xAI models for your workload

2,000 in500 out10,000 requests a day40% cachedstandard pricing

ModelInput /1MCached /1MOutput /1MContextECIGPQATokens/sYour month
xAIGrok 4.20$1.25$0.200$2.502M152.389.3—$873.00
xAIGrok 4.20 Multi-Agent$1.25$0.200$2.502M———$873.00
xAIGrok 4.3$1.25$0.200$2.501M———$873.00
xAIGrok 4.5$2.00$0.300$6.00500K155.095.0—$1,692.00
xAIGrok 4.6$2.00$0.500$6.00500K157.895.871.5$1,740.00
xAIGrok 4.7$2.00$0.500$6.00500K156.494.179.8$1,740.00
Prices in USD per 1M tokens, from OpenRouter. Compare every provider on all models.

Next steps

xAI runs a more concentrated lineup than most providers — the current roster sits entirely in the Standard tier, spanning the numbered Grok releases (4.20, 4.3, 4.5, 4.6 and 4.7) alongside the "Build" line and a "Multi-Agent" variant. xAI's docs name Grok 4.7 as the default choice for everything, code included: it lists at $2 input / $6 output per million tokens with a 500k context window, and cached input at $0.50. The older Grok 4.3 and 4.20 models are cheaper at $1.25 / $2.50 and offer a 1M window. Requests with 200k or more prompt tokens are billed at a higher rate for the whole request (for Grok 4.7, $4 / $12). See the live table above for current rates.

No Budget or Premium tier — what that means for routing

Because Grok doesn't currently split into distinct Budget/Standard/Premium bands the way OpenAI or Google do, the usual "route simple tasks to a cheap tier" strategy (see How to Cut Your LLM API Bill by 80%) applies differently here: within the Grok lineup itself there's less headroom to downgrade for simple tasks. If your workload has a meaningful share of low-complexity requests, it's often worth comparing a Grok model against a genuinely Budget-tier model from another provider — DeepSeek, Qwen, or Moonshot — rather than assuming you need to stay within one provider's lineup.

The Multi-Agent variant

The Multi-Agent-branded Grok model is positioned specifically for orchestration and multi-step agentic workflows. If you're building an agent that coordinates multiple sub-tasks or tool calls, it's worth checking this variant against the standard numbered releases directly on the compare page — agentic workloads are also exactly where prompt caching tends to pay off most, since the tool schema and orchestration instructions repeat on every step.

Newer releases and version churn

Grok's numbered releases move relatively quickly, and a "Build"-branded preview line sits alongside the numbered models — preview and build variants can have different pricing and stability characteristics than the numbered releases, so confirm you're looking at the variant you intend to ship with, not a preview snapshot, before committing to it in production.

Coding and reasoning performance

Check Grok's standing on the FrontierCode and Epoch Capabilities Index cost-vs-quality charts (Grok 4.6 scores 48.01 on FrontierCode at $6 per 1M output tokens) before assuming it's the right fit for a coding-heavy workload — benchmark rank shifts between releases, and the value-frontier view will tell you whether a given Grok release is currently a strong price-for-capability pick or dominated by a cheaper alternative.

Rate limits

xAI uses a tiered structure gated by cumulative API spend since January 1, 2026: Tier 0 by default, then Tier 1 at $50, Tier 2 at $250, Tier 3 at $1,000 and Tier 4 at $5,000, with Enterprise on request. Tiers unlock automatically and never downgrade, and qualifying spend counts prepaid credit purchases and fulfilled invoices. Limits are expressed as requests per second (derived from a per-minute budget) plus tokens per minute, and the docs publish example numbers: Grok 4.7, 4.6 and 4.5 run from 150 requests per second and 50M tokens per minute at Tier 0 to 500 and 100M at Tier 4, while the Grok 4.3 and 4.20 models and the Multi-Agent model have lower ceilings. Your own tier and per-model limits appear on the Models page of the xAI Console, and you can ask for a raise there without extra spend.

See how this compares to the other 8 providers we track on the rate limits page.

When xAI vs. a competitor

With the lineup concentrated in a single tier, the comparison against competitors is usually straightforward: check Grok against the Standard-tier models from OpenAI, Google, and Anthropic on the compare page for your specific workload, and don't overlook the lower-cost providers if a meaningful share of your traffic is simple enough to not need Standard-tier capability at all.

See current Grok pricing live above, or put it head-to-head with any competitor on compare.

Frequently asked questions

How many xAI models does TokenCost track?
TokenCost currently tracks 9 xAI models, refreshed daily from live pricing data.
What is the cheapest xAI model?
Grok 4.3 (batch) is currently xAI’s lowest-cost model on input price, at $1.00 per 1M input tokens and $2.00 per 1M output tokens.
Does xAI support prompt caching?
Where a cached-input rate is published, TokenCost shows it directly in the pricing table (cached input is typically billed at a steep discount versus the standard input rate). See our prompt caching guide for the general mechanics.

Compare with other providers