Grok 2

xAIFirst listed Jan 2025
Context
131K
Max output
4K
Serving providers
2
Cheapest input
$2.00 /1M
On-demand listed rates, OpenRouter routed quotes and Vercel reseller quotes. Enterprise commitments (committed-use discounts, provisioned throughput, negotiated rates) can be materially lower.

Pricing by serving provider

standard tier · per 1M tokens · click a provider to expand
Serving providerInput /1MOutput /1MEndpoints
VercelVercel reseller quote$2.00$10.001
xAICheapest$2.00$10.001
Standardxai/grok-2
ComponentUnitStandard
Text input/1M tok$2.00
Text output/1M tok$10.00

Price history

listed seller prices, input and output per 1M tokens
Input Output
$0.00$5.00$10.00Jan 30Jul 30Jun 22$10.00$2.00

Cost calculator

estimate your monthly spend on this model
$1,200
estimated / month

Model IDs

copy the exact identifier for your platform
xai/grok-2vercel_ai_gateway/xai/grok-2

Frequently asked questions

Grok 2 pricing, context and availability

How much does Grok 2 cost?

Grok 2 costs $2.00 per 1M input tokens from xAI, and $10.00 per 1M output tokens from xAI.

What is the context window of Grok 2?

Grok 2 accepts up to 131K tokens of context and can return up to 4K output tokens.

Which providers serve Grok 2?

Grok 2 is available from 2 serving providers, each with its own pricing and model ID. xAI is currently the cheapest.

What can Grok 2 do?

Grok 2 supports tool use.

Other xAI models

compare pricing across the xAI lineup
Listed prices from LiteLLM, OpenRouter and Vercel · last checked Aug 27, 2026

Every weekday

AI moves fast. Here's your debrief.

News, analysis, tools, and more.

For people who build with AI