Model Comparison → xAI

Grok 2

Grok 2 by xAI. Input: $2.00/M tokens · Output: $10.00/M tokens · 131K context window.

✓ Vision✓ Tool use✗ Prompt caching✗ ReasoningMedium
Pricing (verified 2026-10-23)
TypePrice / 1M tokensNotes
Input$2.00Per 1M input tokens
Output$10.00Per 1M output tokens
Source: xAI official pricing page · Last verified 2026-10-23
Context Window
131K tokens
≈ 98K words · 0 pages of text

Calculate your Grok 2 costs

Prompt Cost Calculator
Exact cost for your prompt
Agent Cost Calculator
Multi-step agent loops
Prompt Caching Calculator
Caching savings
Conversation Cost
Chat history strategies

Other xAI models

Grok 3 — $3.00/MGrok 3 mini — $0.30/MGrok 3 Mini Fast — $0.60/M

Pricing verified 2026-10-23 from xAI official pricing. All prices in USD per 1M tokens. See methodology and price changelog.