47 model prices
  1. Home
  2. Models
  3. xAI
  4. Grok 4.7

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.

Last updated: Provider pricing pagePricing data: LiteLLM (MIT)

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 /1MOutput /1Mvs standard (input / output)
Prompt over 200K tokens$4.00$12.00+100% / +100%
Batch API$1.60$4.80-20% / -20%

Typical task cost

TaskCost
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

ModelInput /1MOutput /1MWhat changes
OlderGrok 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

Similar models by price

ModelProviderInput /1MOutput /1MContext windowvs this model (input / output)
Mistral Medium 3.5Mistral$1.50$7.50256K-25% / +25%
Gemini 3.5 FlashGoogle$1.50$9.001M-25% / +50%
Gemini 2.5 ProGoogle$1.25$10.001M-38% / +67%
GPT-5OpenAI$1.25$10.00272K-38% / +67%
GPT-5.1OpenAI$1.25$10.00272K-38% / +67%

Compare Grok 4.7

Price history

DateInput /1MOutput /1MCached 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

Grok 4.7 API price

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>
[![Grok 4.7 API price](https://vibecodingturkey.com/models/badge/grok-4-7.svg)](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.