xAI · API pricing

Grok 4.7 API pricing

Grok 4.7 costs $2.00 per million input tokens and $6.00 per million output tokens on xAI's standard tier, and cached input is $0.50. Checked against the official pricing page on November 23, 2026.

Input / 1M$2.00
Cached input / 1M$0.50
Output / 1M$6.00
Context window500K

Higher rate for prompts of 200K+ tokens.

Prompts of 200,000 tokens or more are billed at $4.00 input, $1.00 cached input and $12.00 output per 1M tokens. The calculator applies this automatically. How long-context pricing works

What Grok 4.7 costs for common workloads

WorkloadMonthly costRank of 21
Support chatbot
60,000 requests · 1,500 in / 300 out
$288#13
Document summaries
20,000 requests · 6,000 in / 400 out
$288#13
Coding assistant
30,000 requests · 4,000 in / 800 out
$384#13
RAG search
100,000 requests · 2,500 in / 250 out
$650#13

Grok 4.7 price history

We check xAI's official pricing page for Grok 4.7 every week since October 12, 2026 and log every change we find. The standard price, $2.00 input and $6.00 output per 1M tokens, hasn't changed since we started tracking it.

DateTypeWhat we recordedSource
November 3, 2026Recordedlong-context rate: 200K+ tokens: $4 / $1 cached / $12 (all tokens in the request)docs.x.ai ↗
November 3, 2026Changednote: "Higher rate for prompts of 200K+" → "Higher rate for prompts of 200K+ tokens"docs.x.ai ↗
October 12, 2026AddedAdded to the rate card at $2.00 input / $6.00 output per 1M tokensdocs.x.ai ↗

"Recorded" means we added a detail the provider publishes, such as a long-context rate, to our data. "Changed" means the provider's page changed. Upcoming changes the provider has announced appear in the notes above.

Price it for your own workload

Compared against similar models from other providers.

Start from a use case

1,000 tokens is about 750 English words. Input includes your system prompt, chat history and any retrieved documents.

Mistral Large
MistralCheapest
$72.00 /mo
$95.04 /mo
$288 /mo
$360 /mo
$396 /mo
$720 /mo
$1,800 /mo
$1,800 /mo

Pricing news

Compare Grok 4.7