xAI API pricing
Grok 4.7 API pricing.
Grok 4.7 costs $2 per million input tokens and $6 per million output tokens, with cached input at $0.50, on xAI's pricing page read 2026-11-01. A chat reply of 1,500 input and 500 output tokens costs $0.006, or $600.00 per 100,000 replies.
- Input per 1M
- $2
- Cached input per 1M
- $0.50
- Output per 1M
- $6
What common workloads cost
| Workload | Tokens in / out | Per request | Per 100K |
|---|---|---|---|
| Chat replya short conversation turn | 1,500 / 500 | $0.006 | $600.00 |
| RAG answerfive retrieved chunks plus a question | 4,000 / 300 | $0.0098 | $980.00 |
| Long document summarya 75,000-word report | 100,000 / 1,000 | $0.206 | $20,600 |
| Agent stepone step of a tool-using loop | 20,000 / 400 | $0.0424 | $4,240 |
List prices, standard tier, no caching. Your own numbers go in the calculator, already set to Grok 4.7.
Models priced closest to it
Questions
How much does Grok 4.7 cost per million tokens?
$2 for input and $6 for output; cached input reads cost $0.50. Read from xAI's pricing page on 2026-11-01.
Does Grok 4.7 have a Batch discount?
xAI does not list a Batch discount for this model on the page read 2026-11-01.
What is Grok 4.7's context window?
xAI's pages read on 2026-11-01 did not state it in a form we could verify, so it is left out here rather than guessed.
Is there a cheaper xAI model?
Grok 4.3 costs $1.25 input and $2.50 output per million tokens. Whether it is good enough is a question for your own evaluation, not a price table.
Source
- docs.x.ai/docs/models read 2026-11-01
List prices from xAI's public page, which may have changed since. Not a quote or advice. Norwell Tools is independent of xAI.