Grok 4.7
Grok 4.7 API pricing is $2 per million input tokens and $6 per million output tokens.
- Provider
- xAI
- API model name
- grok-4.7
- Status
- Current
- Input, $ per 1M tokens
- $2.00
- Cached input, $ per 1M tokens
- $0.50
- Output, $ per 1M tokens
- $6.00
- Sample request (10K in, 2K out), $
- $0.032
- Context window, tokens
- 500K
- Price checked on
- Official pricing page
- docs.x.ai
That is the standard rate on xAI’s own API. xAI describes it as its flagship model for code and general work, with configurable reasoning and a knowledge cutoff of May 2026. A request with 10,000 input tokens and 2,000 output tokens costs about $0.032, less than GPT-6 Sol or Claude Sonnet 5.5 at about $0.04, because its output rate is lower. The API model name is grok-4.7, and the context window is 500K tokens.
Cached input costs $0.50 per million tokens, and prompts of 200K tokens or more are billed at $4 input and $12 output for the whole request.
- Max output, tokens
- 450K
- Input types
- Text, image, file
- Open weights
- No
- Long-context pricing
- Prompts of 200K tokens or more: $4 input, $1 cached input, $12 output
- Batch pricing
- Not supported
- Pricing notes
- xAI does not offer the Batch API for this model. Priority processing costs 2x standard rates.
- Sources
Page URL Checked xAI pricing https://docs.x.ai/developers/pricing 2026-09-30 xAI Grok 4.7 model page (prices, cached and long-context rates) https://docs.x.ai/developers/models/grok-4.7 2026-10-02 xAI models and pricing https://docs.x.ai/developers/models 2026-10-02 OpenRouter model listing (context and output limits) https://openrouter.ai/models 2026-09-29
Questions
How much does the Grok 4.7 API cost?
What is the API model name for Grok 4.7?
grok-4.7 in API calls to xAI. The context window is 500K tokens, and a response can run to 450,000 output tokens.What does one Grok 4.7 request cost?
Does Grok 4.7 cost more for long prompts?
Sources
Prices are read from each provider’s official pricing page: OpenAI, Anthropic, Google Gemini API, xAI, DeepSeek and Mistral AI. Context and output limits that a provider does not publish come from OpenRouter’s model listing. Each model’s Sources field lists the pages used and the date each was checked. How we check prices · Price change log
