xAI API pricing
9 xAI models tracked, updated daily. Full rates below, with guidance on which tier fits which workload.
Grok 4.20 costs $873 a month for your workload ($1.25 per 1M input, $2.50 per 1M output).
Grok 4.6 scores highest of the xAI models (157.8), at $1,740 a month.
xAI models for your workload
| Model | Input /1M | Cached /1M | Output /1M | Context | ECI | GPQA | Tokens/s | Your month |
|---|---|---|---|---|---|---|---|---|
| $1.25 | $0.200 | $2.50 | 2M | 152.3 | 89.3 | — | $873.00 | |
| $1.25 | $0.200 | $2.50 | 2M | — | — | — | $873.00 | |
| $1.25 | $0.200 | $2.50 | 1M | — | — | — | $873.00 | |
| $2.00 | $0.300 | $6.00 | 500K | 155.0 | 95.0 | — | $1,692.00 | |
| $2.00 | $0.500 | $6.00 | 500K | 157.8 | 95.8 | 71.5 | $1,740.00 | |
| $2.00 | $0.500 | $6.00 | 500K | 156.4 | 94.1 | 79.8 | $1,740.00 |
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.