Grok 4.5 API pricing and context window
Grok 4.5 costs $2.00 per 1M input tokens and $6.00 per 1M output tokens on the xAI API. Cached input reads cost $0.30 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.30 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% |
- Prompts over 200,000 tokens are billed at $4.00 input and $12.00 output per 1M for the whole request.
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.042 |
| 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.5 compared with the previous and next version
| Model | Input /1M | Output /1M | What changes | |
|---|---|---|---|---|
| Newer | Grok 4.7 | $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 |
| Older | Grok 4.3 | $1.25 -38% | $2.50 -58% | Grok 4.3 → Grok 4.5: input: $1.25 → $2.00; output: $2.50 → $6.00; cached input: $0.20 → $0.30; context: 1M → 500K+4 more differenceslong-context input: $2.50 → $4.00; long-context output: $5.00 → $12.00; long-context cached input: $0.40 → $0.60; Batch API: listed only for Grok 4.3 |
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% |
Price history
| Date | Input /1M | Output /1M | Cached input /1M |
|---|---|---|---|
| $2.00 | $6.00 | $0.30 |
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-5"><img src="https://vibecodingturkey.com/models/badge/grok-4-5.svg" alt="Grok 4.5 API price" height="20"></a>[](https://vibecodingturkey.com/models/grok-4-5)
Questions
How is Grok 4.5 different from Grok 4.3?
Grok 4.3 → Grok 4.5: input: $1.25 → $2.00; output: $2.50 → $6.00; cached input: $0.20 → $0.30; context: 1M → 500K; long-context input: $2.50 → $4.00; long-context output: $5.00 → $12.00; long-context cached input: $0.40 → $0.60. +1 more differences in the table above.
Does Grok 4.5 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.
Does Grok 4.5 support prompt caching?
Yes. Cached input reads cost $0.30 per 1M tokens, 85% less than standard input.
How much does Grok 4.5 cost per 1M tokens?
$2.00 per 1M input tokens and $6.00 per 1M output tokens on the xAI API, as of November 27, 2026.