Grok 4.7 API pricing and context window
Grok 4.7 costs $2.00 per 1M input tokens and $6.00 per 1M output tokens on the xAI API. Cached input reads cost $0.50 per 1M. It accepts up to 500,000 input tokens. A typical chat request (10K input, 1K output) costs about $0.026. Prices last updated November 27, 2026.
- Input
- $2.00 per 1M tokens
- Output
- $6.00 per 1M tokens
- Cached input
- $0.50 per 1M tokens
- Context window
- 500,000 tokens
Pricing options
| Input /1M | Output /1M | vs standard (input / output) | |
|---|---|---|---|
| Prompt over 200K tokens | $4.00 | $12.00 | +100% / +100% |
| Batch API | $1.60 | $4.80 | -20% / -20% |
- Prompts over 200,000 tokens are billed at $4.00 input and $12.00 output per 1M for the whole request.
- The Batch API costs $1.60 input and $4.80 output per 1M: input and output 20% cheaper.
Typical task cost
| Task | Cost |
|---|---|
| Chat request (10K in + 1K out) | $0.026 |
| Codebase question (100K in + 2K out) | $0.212 |
| Same question with cached context (100K cached + 2K out) | $0.062 |
| Long prompt (220K in + 2K out) | $0.904 |
| Filling the whole context once (500K in) | $2.00 |
| 1M tokens a month (750K in + 250K out) | $3.00 |
Estimate your own workload in the calculator
Grok 4.7 compared with the previous and next version
| Model | Input /1M | Output /1M | What changes | |
|---|---|---|---|---|
| Older | Grok 4.5 | $2.00 0% | $6.00 0% | Grok 4.5 → Grok 4.7: cached input: $0.30 → $0.50; long-context cached input: $0.60 → $1.00; Batch API: listed only for Grok 4.7 |
Capabilities and details
- Image input: Yes
- Function calling: Yes
- Reasoning: Yes
- Prompt caching: Yes
- PDF input: Not listed
- Web search: Yes
- Structured output: Yes
- Input types: text, image
Similar models by price
| Model | Provider | Input /1M | Output /1M | Context window | vs this model (input / output) |
|---|---|---|---|---|---|
| Mistral Medium 3.5 | Mistral | $1.50 | $7.50 | 256K | -25% / +25% |
| Gemini 3.5 Flash | $1.50 | $9.00 | 1M | -25% / +50% | |
| Gemini 2.5 Pro | $1.25 | $10.00 | 1M | -38% / +67% | |
| GPT-5 | OpenAI | $1.25 | $10.00 | 272K | -38% / +67% |
| GPT-5.1 | OpenAI | $1.25 | $10.00 | 272K | -38% / +67% |
Compare Grok 4.7
- Claude Opus 5.5 vs Grok 4.7
- Claude Opus 5 vs Grok 4.7
- GPT-6.2 Astra vs Grok 4.7
- GPT-5.5 vs Grok 4.7
- Gemini 3.1 Pro Preview vs Grok 4.7
Price history
| Date | Input /1M | Output /1M | Cached input /1M |
|---|---|---|---|
| $2.00 | $6.00 | $0.50 |
Tracking started on November 21, 2026. A new row appears only when a price changes.
Embed this price badge
The badge shows the current list price and updates daily. Paste the HTML or Markdown into your site or README.
<a href="https://vibecodingturkey.com/models/grok-4-7"><img src="https://vibecodingturkey.com/models/badge/grok-4-7.svg" alt="Grok 4.7 API price" height="20"></a>[](https://vibecodingturkey.com/models/grok-4-7)
Questions
How is Grok 4.7 different from Grok 4.5?
Grok 4.5 → Grok 4.7: cached input: $0.30 → $0.50; long-context cached input: $0.60 → $1.00; Batch API: listed only for Grok 4.7. No other difference in the prices and limits shown on this page.
Does Grok 4.7 cost more for long prompts?
Yes. Once a prompt passes 200,000 tokens, the whole request is billed at $4.00 input and $12.00 output per 1M. A 220K-token prompt with a 2K answer costs about $0.904.
Is there a batch discount for Grok 4.7?
Yes. Through the Batch API it costs $1.60 per 1M input and $4.80 per 1M output tokens.
Does Grok 4.7 support prompt caching?
Yes. Cached input reads cost $0.50 per 1M tokens, 75% less than standard input.