xAI: Grok 4 Pricing & Specs

Released: Unknown
OpenRouter Model IDx-ai/grok-4

xAI: Grok 4 is an API-access large language model from X-ai priced at $3.00/1M input tokens and $15.00/1M output tokens with a 256k context window. Context caching reduces input costs to $1.50/1M for cache reads.

Economics (OpenRouter)

Input / 1M
$3.00
Output / 1M
$15.00
Est. Monthly Cost
$225.90
Based on current usage settings
Cache Read$1.50
Cache Write$3.75

Capabilities (models.dev)

ReasoningNo
Tool CallNo
Audio InNo
Audio OutNo
Modalitymultimodal
Context Window256k

Benchmarks (AA)

Intelligence Index
General reasoning and knowledge
Coding Index
Code generation & debugging
Math Index
Mathematical reasoning
Performance
tokens/sec

* Median output throughput

Model ID: x-ai/grok-4 • Data Sources: OpenRouter, Artificial Analysis, models.dev