Grok 4 API pricing
Published on-demand rates for xAI's xai/grok-4, captured 2026-08-10 from public pricing data and committed to our archive. Context window 256k tokens; first observed in our archive 2025-07-14.
| Meter | USD per 1M tokens |
|---|---|
| Input | $3.00 |
| Output | $15.00 |
| Cached inputno published cache-read rate; the whole input bills at the standard rate | — |
Standard on-demand rates. Excludes batch endpoints and negotiated pricing; confirm on xAI's pricing page before committing.
What it costs on a real workload
The four frozen profiles the LLMPrice indices price, per 1M tokens processed, at the rates above. Where no cache-read rate is published, the whole input bills at the standard rate.
| Profile | In / out mix | Cached share | Cost |
|---|---|---|---|
| Retrieval | 800k / 200k | 70% | $5.40 |
| Chat | 500k / 500k | 30% | $9.00 |
| Content | 200k / 800k | 20% | $12.60 |
| Agent | 900k / 100k | 85% | $4.20 |
Profile definitions are frozen and published on the methodology page. Compare every model on these profiles →
Observed rate history
No repricing observed since this model entered our archive on 2025-07-14. When a rate moves, the change appears here and on the sitewide ticker.
Priced near this one
The models closest to Grok 4 on a retrieval workload, cheaper and more expensive alike. We publish no quality score, so this is what they cost and nothing more.
| Model | Provider | Input | Output | vs Grok 4 |
|---|---|---|---|---|
| Sonar Pro | Perplexity | $3.00 | $15.00 | about the same |
| Claude Opus 5 | Anthropic | $5.00 | $25.00 | 20% more |
| GPT 5.6 | OpenAI | $5.00 | $30.00 | 39% more |
| GPT 5.3 | OpenAI | $1.75 | $14.00 | 39% less |
Compared on the retrieval profile: 800k input, 200k output, 70% of input cached where the model offers a cache rate.
No affiliate or referral arrangements: the console link carries no parameters and nothing on this page is paid placement. Grok 4 is a trademark of its owner; LLMPrice.io is independent and unaffiliated.