Grok 2
Pricing & Specs

xAI · $2 input / $10 output per 1M tokens · 131.072K context window

No longer offered on OpenMark

$2
per 1M input tokens
$10
per 1M output tokens
131.072K
context window (tokens)

Grok 2 is no longer offered on OpenMark (deprecated or superseded upstream). Its specs are kept here for reference — if you're still running it in production, it's worth benchmarking current alternatives: newer models are often cheaper AND better on the same task.

Grok 2 API Pricing

TokensPrice
Input$2 / 1M tokens
Output$10 / 1M tokens

Cached tokens pricing is not available for this model.

What that means in practice

1x One typical task (1K input + 500 output tokens): $0.0070
1K 1,000 runs of that task: $7.00
💡 Real cost depends on how verbose the model is on YOUR prompts — benchmark to measure actual tokens, not estimates.

Grok 2 Specs

SpecValue
Context window131.072K tokens
Input modalitiestext
Output modalitiestext
Latency (measured by OpenMark)~372ms median response
Reasoning modelNo
Tool / function callingYes
JSON modeYes
StreamingYes
Prompt cachingNo

Capabilities

text generation reasoning function calling structured outputs streaming live search

Notes

Deprecated Sep 15, 2025. Use grok-3 instead.

FAQ

How much does Grok 2 cost?

Grok 2 costs $2 per 1M input tokens and $10 per 1M output tokens.

What is Grok 2's context window?

Grok 2 has a 131.072K-token context window.

Can I test Grok 2 on my own task?

Grok 2 is no longer offered on OpenMark, but you can benchmark its current alternatives from xAI and other providers on your own task — free tier available.

Still using Grok 2?

It's been superseded. Benchmark its current alternatives on your actual
workload — you'll likely find something cheaper AND better. Free tier available.

Test Current Alternatives — Free →