# Grok API pricing

Grok 4.7 and 4.6 each cost $2 input, $0.50 cached input and $6 output per million tokens on the global API below 200,000 prompt tokens. At 200,000 and above, the rates rise to $4, $1 and $12 for the entire request.

## Grok text prices by model

Prices are in USD per million tokens. Each rate cell lists uncached input, cached input and billable output in that order.

| Model ID | Context window | Short-context rates | Long-context rates |
| --- | --- | --- | --- |
| grok-4.7 | 500k | $2 / $0.50 / $6 | $4 / $1 / $12 |
| grok-4.6 | 500k | $2 / $0.50 / $6 | $4 / $1 / $12 |
| grok-4.5 | 500k | $2 / $0.30 / $6 | $4 / $0.60 / $12 |
| grok-4.3 | 1M | $1.25 / $0.20 / $2.50 | $2.50 / $0.40 / $5 |
| grok-4.20-multi-agent-0309 | 1M | $1.25 / $0.20 / $2.50 | $2.50 / $0.40 / $5 |
| grok-4.20-0309-reasoning | 1M | $1.25 / $0.20 / $2.50 | $2.50 / $0.40 / $5 |
| grok-4.20-0309-non-reasoning | 1M | $1.25 / $0.20 / $2.50 | $2.50 / $0.40 / $5 |

## What happens at the long-context threshold?

A Grok 4.7 request with 190,000 uncached input tokens and 10,000 billable output tokens costs $0.44. Increase the prompt to 200,000 tokens with the same output and it costs $0.92. The higher rates apply to the whole request. If your workload spans both tiers, estimate each group separately and add the totals.

## What else can add to a Grok bill?

Check the official price for server-side tools, priority processing and regional endpoints separately. Grok 4.7 Fast is available in Cursor and Grok Build with separate plan billing. It is outside the public API prices in this table.

## Sources

- [xAI: Grok API pricing](https://docs.x.ai/developers/pricing)
- [xAI models and availability](https://docs.x.ai/developers/models)

Source-checked by codemux.net on 2026-11-30.
