Grok 4.7 API pricing
As of November 30, 2026, Grok 4.7 costs $2.00 per million input tokens and $6.00 per million output tokens on the xAI API. Cached input is $0.50 per million.
It is the most expensive of 5 Grok models tracked here, by blended price. The closest Standard-tier model from another provider is Mistral Medium 3 (Mistral) at $1.50 / $7.50, the same blended price. Same list price as Grok 4.5, Grok 4.6. First listed in the LiteLLM price data on September 21, 2026. Prompts longer than 200K tokens are billed at $4.00 input / $12.00 output.
Every published rate
| Rate | Per 1M tokens |
|---|---|
| Input (standard) | $2.00 |
| Output (standard) | $6.00 |
| Cached input (read) | $0.50 |
| Batch input | $1.60 |
| Batch output | $4.80 |
| Input, prompts over 200K tokens | $4.00 |
| Output, prompts over 200K tokens | $12.00 |
What it costs in practice
| Task | Tokens | Per request | Per 1,000 requests |
|---|---|---|---|
| Chatbot reply | 1,000 in / 500 out | $0.005 | $5.00 |
| Summarize a long document | 20,000 in / 1,000 out | $0.05 | $46.00 |
| Coding agent step | 50,000 in / 2,000 out | $0.11 | $112 |
Standard rates, no caching or batch discount; prompts over 200K tokens are billed at the higher long-prompt rate. Compare your own numbers across all models →
Price history
Dates are when each change first appeared in the LiteLLM price data, usually within days of the provider's announcement.
Details
| Provider | xAI |
| Price tier | Standard |
| Features | Vision, Reasoning, Prompt caching, Tool use, Web search |
| API model names | grok-4.7, grok-4.7-latest |
| Official pricing | api.x.ai |
Models at a similar price
| Model | Input / 1M | Output / 1M |
|---|---|---|
| Mistral Medium 3 | $1.50 | $7.50 |
| Mistral Medium 3.5 | $1.50 | $7.50 |
| Grok 4.5 | $2.00 | $6.00 |
| Grok 4.6 | $2.00 | $6.00 |
| Gemini 4 Hydrogen | $1.50 | $7.50 |
| Gemini 3.5 Flash | $1.50 | $9.00 |