TokenRate

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.

Official site: x.ai →

Cheapest

Grok 3 Mini

$0.300/1M in

Flagship

Grok 4.3

$1.25/1M in

Models

10 tracked

All tiers, latest pricing.

All xAI Models

ModelTierInput / 1MOutput / 1MContext
Grok 3 Minifast$0.300$0.500131K
Grok Build 0.1balanced$1.00$2.00256K
Grok 4.3flagship$1.25$2.501M
Grok 4.20 Multi-Agentflagship$1.25$2.502M
Grok 4.20flagship$1.25$2.502M
Grok 2balanced$2.00$10.00131K
Grok 4.7flagship$2.00$6.00500K
Grok 4.6flagship$2.00$6.00500K
Grok 4.5flagship$2.00$6.00500K
Grok 3flagship$3.00$15.00131K

Model Details

Grok 3 Mini

$0.300 in

Grok 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 in

Grok Build 0.1 is SpaceXAI’s fast coding model trained specifically for agentic software engineering workflows.

Grok 4.3

$1.25 in

Grok 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 in

Grok 4.20 Multi-Agent is a variant of SpaceXAI’s Grok 4.20 designed for collaborative, agent-based workflows.

Grok 4.20

$1.25 in

Grok 4.20 is a reasoning model from SpaceXAI with industry-leading speed and agentic tool calling capabilities.

Grok 2

$2.00 in

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

$2.00 in

Grok 4.7 is SpaceXAI's flagship model for coding, agentic tasks, and knowledge work, succeeding Grok 4.6.

Grok 4.6

$2.00 in

Grok 4.6 is a model from SpaceXAI with frontier performance on coding, knowledge work, and STEM. It is succeeded by Grok 4.7.

Grok 4.5

$2.00 in

Grok 4.5 is a model from SpaceXAI with frontier performance on coding, knowledge work, and STEM.

Grok 3

$3.00 in

Grok 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