LLM prices per 1M tokens

264 models · 161 price changes

xAI

Model lab · 7 models · also sold by 3 other providers · x.ai

xAI models

In / out per 1M
Grok 4.7
500K
$2 / $6Grok 4.7 is SpaceXAI's flagship model for coding, agentic tasks, and knowledge work, succeeding Grok 4.6.
Grok 4.6
500K
$2 / $6Grok 4.6 is a model from SpaceXAI with frontier performance on coding, knowledge work, and STEM.
Grok 4.5
500K
$2 / $6Grok 4.5 is a model from SpaceXAI with frontier performance on coding, knowledge work, and STEM.
Grok Build 0.1
256K
$1 / $2Grok Build 0.1 is SpaceXAI’s fast coding model trained specifically for agentic software engineering workflows.
Grok 4.3
1M
$1.25 / $2.5Grok 4.3 is a reasoning model from SpaceXAI.
Grok 4.20
2M
$1.25 / $2.5Grok 4.20 is a reasoning model from SpaceXAI with industry-leading speed and agentic tool calling capabilities.
Grok 4.20 Multi-Agent
2M
$1.25 / $2.5Grok 4.20 Multi-Agent is a variant of SpaceXAI’s Grok 4.20 designed for collaborative, agent-based workflows.

On other routes

ModelIn / out per 1M
Grok Build 0.1$1 / $2Same vs headlinezdr · Grok Build 0.1 is SpaceXAI’s fast coding model trained specifically for agentic software engineering workflows.
Grok 4.3$1.25 / $2.5Same vs headlineGrok 4.3 is a reasoning model from SpaceXAI.
Grok 4.3$1.25 / $2.5Same vs headlinezdr · Grok 4.3 is a reasoning model from SpaceXAI.
Grok 4.20 Multi-Agent$1.25 / $2.5Same vs headlinezdr · 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 / $2.5Same vs headlinezdr · Grok 4.20 is a reasoning model from SpaceXAI with industry-leading speed and agentic tool calling capabilities.
Grok Build 0.1$2 / $4+100% vs headlinepriority · Grok Build 0.1 is SpaceXAI’s fast coding model trained specifically for agentic software engineering workflows.
Grok Build 0.1$2 / $4+100% vs headlinezdr-priority · Grok Build 0.1 is SpaceXAI’s fast coding model trained specifically for agentic software engineering workflows.
Grok 4.7$2 / $6Same vs headlineglobal · Grok 4.7 is SpaceXAI's flagship model for coding, agentic tasks, and knowledge work, succeeding Grok 4.6.
Grok 4.7$2 / $6Same vs headlinezdr · Grok 4.7 is SpaceXAI's flagship model for coding, agentic tasks, and knowledge work, succeeding Grok 4.6.
Grok 4.6$2 / $6Same vs headlinezdr · Grok 4.6 is a model from SpaceXAI with frontier performance on coding, knowledge work, and STEM.
Grok 4.5$2 / $6Same vs headlinezdr · Grok 4.5 is a model from SpaceXAI with frontier performance on coding, knowledge work, and STEM.
Grok 4.3$2.5 / $5+100% vs headlinepriority · Grok 4.3 is a reasoning model from SpaceXAI.
Grok 4.3$2.5 / $5+100% vs headlinezdr-priority · Grok 4.3 is a reasoning model from SpaceXAI.
Grok 4.20 Multi-Agent$2.5 / $5+100% vs headlinepriority · Grok 4.20 Multi-Agent is a variant of SpaceXAI’s Grok 4.20 designed for collaborative, agent-based workflows.
Grok 4.20 Multi-Agent$2.5 / $5+100% vs headlinezdr-priority · Grok 4.20 Multi-Agent is a variant of SpaceXAI’s Grok 4.20 designed for collaborative, agent-based workflows.
Grok 4.20$2.5 / $5+100% vs headlinepriority · Grok 4.20 is a reasoning model from SpaceXAI with industry-leading speed and agentic tool calling capabilities.
Grok 4.20$2.5 / $5+100% vs headlinezdr-priority · Grok 4.20 is a reasoning model from SpaceXAI with industry-leading speed and agentic tool calling capabilities.
Grok 4.7$2.2 / $6.6+10% vs headlinezdr-us · Grok 4.7 is SpaceXAI's flagship model for coding, agentic tasks, and knowledge work, succeeding Grok 4.6.
Grok 4.6$2.2 / $6.6+10% vs headlineus-west-2 · Grok 4.6 is a model from SpaceXAI with frontier performance on coding, knowledge work, and STEM.
Grok 4.6$2.2 / $6.6+10% vs headlinezdr-us · Grok 4.6 is a model from SpaceXAI with frontier performance on coding, knowledge work, and STEM.

About xAI

SpaceXAI LLC is an American artificial intelligence company founded by Elon Musk. It is a subsidiary of spaceflight company SpaceX, also founded by Musk, since February 2026.

Caching: Cached input priced per model in tables (e.g. grok-4.7 $0.50 per 1M cached input under 200k tokens)

xAI on the price map

Size: context window, 8K to 2MEqual blended cost (3:1) 247 models, lower left is cheaper