xAI
Grok 4
grok-4
Input price
$3.00
per 1M tokens
Output price
$15.00
per 1M tokens
Context window
256K
tokens
Cost examples
| Token count | Input cost | Output cost | Combined |
|---|---|---|---|
| 1K tokens | < $0.01 | $0.015 | $0.018 |
| 10K tokens | $0.03 | $0.15 | $0.18 |
| 100K tokens | $0.3 | $1.5 | $1.8 |
| 1M tokens | $3 | $15 | $18 |
Combined column assumes equal input and output tokens. Actual costs depend on your prompt-to-completion ratio.
Track Grok 4 costs automatically.
One line of code. Real-time spend by agent, team, and feature.
Get started free →