xAI API Pricing
xAI builds the Grok family of models, integrated with real-time X (Twitter) data. Available through the xAI API and X's premium tier.
All xAI Models
| Model | Tier | Input / 1M | Output / 1M | Context |
|---|---|---|---|---|
| Grok 3 Mini | fast | $0.300 | $0.500 | 131K |
| Grok Build 0.1 | balanced | $1.00 | $2.00 | 256K |
| Grok 4.3 | flagship | $1.25 | $2.50 | 1M |
| Grok 4.20 Multi-Agent | flagship | $1.25 | $2.50 | 2M |
| Grok 4.20 | flagship | $1.25 | $2.50 | 2M |
| Grok 2 | balanced | $2.00 | $10.00 | 131K |
| Grok 4.5 | flagship | $2.00 | $6.00 | 500K |
| Grok 3 | flagship | $3.00 | $15.00 | 131K |
Model Details
Grok 3 Mini
$0.300 inGrok 3 Mini is xAI's budget model — lightweight reasoning at very low cost with the same real-time X (Twitter) data access as its bigger siblings.
Grok Build 0.1
$1.00 inGrok Build 0.1 is xAI’s fast coding model trained specifically for agentic software engineering workflows.
Grok 4.3
$1.25 inGrok 4.3 is xAI's a flagship-tier model built for the most demanding reasoning, coding, and long-form tasks. It costs $1.25 per million input tokens with a 1M-token context window and native image understanding.
Grok 4.20 Multi-Agent
$1.25 inGrok 4.20 Multi-Agent is a variant of xAI’s Grok 4.20 designed for collaborative, agent-based workflows.
Grok 4.20
$1.25 inGrok 4.20 is a reasoning model from xAI with industry-leading speed and agentic tool calling capabilities.
Grok 2
$2.00 inGrok 2 is xAI's general-purpose model with built-in real-time context from X (Twitter). Competitive on text reasoning and uniquely positioned for social/news-aware applications.
Grok 4.5
$2.00 inGrok 4.5 is SpaceXAI's smartest model with frontier performance on coding, knowledge work, and STEM.
Grok 3
$3.00 inGrok 3 is xAI's flagship — a step up from Grok 2 on reasoning and coding benchmarks with the same X-platform real-time context.
Calculate xAI API Costs
Use the TokenRate calculator to estimate exactly what xAI models will cost for your workload.
Open Calculator →Other Providers