xAI · Flagship model

Grok 4.7 pricing & cost calculator

Prices last updated:

Input

$2.00

per 1M tokens

Output

$6.00

per 1M tokens

Context window

500K

500,000 tokens

Price shown is for inputs below 200K tokens.

About Grok 4.7 pricing

Grok 4.7 is xAI’s top-tier model, aimed at the hardest reasoning, coding and agentic work. It is billed per token: $2.00 for every million tokens you send and $6.00 for every million tokens it generates, so output costs 3× as much as input.

For a typical request of 1,000 input and 500 output tokens, Grok 4.7 costs about $0.005 — the 6th-cheapest of the 14 models we track. One million input tokens is roughly 2,000 pages of English prose.

xAI’s official pricing page is the source of truth; see our guide to how AI pricing works for caching and long-context rules.

Grok 4.7 cost calculator

Per request
$0.005
Per day
$5.00
Per month (30 days)
$150.00

Count tokens from your own text in the full calculator →

What Grok 4.7 costs for common tasks

Standard pricing, no caching or batch discount. Token sizes are typical estimates — see token cost by use case.
TaskInput tokensOutput tokensPer requestPer 1,000 requests
Short chat reply500300$0.0028$2.80
Support chatbot turn with history3,000400$0.0084$8.40
RAG answer (retrieved context)6,000600$0.0156$15.60
Summarize a 20-page document12,0001,000$0.03$30.00
Long-document analysis100,0002,000$0.212$212.00

Compare Grok 4.7 with…

Grok 4.7 pricing FAQ

How much does Grok 4.7 cost per token?
Grok 4.7 costs $2.00 per million input tokens and $6.00 per million output tokens through the xAI API. That is $0.000002 per input token and $0.000006 per output token.
How much does a typical Grok 4.7 request cost?
A request with 1,000 input tokens and 500 output tokens costs about $0.005 on Grok 4.7, or $5.00 per thousand requests.
What is the context window of Grok 4.7?
Grok 4.7 accepts up to 500,000 tokens (about 500K) of context per request, which covers the prompt, any documents you include and the conversation history.
Does Grok 4.7 have batch pricing?
xAI does not list a batch discount for Grok 4.7, so standard prices apply to all requests. Check xAI's pricing page for off-peak or cached-input discounts.
How accurate is the token count for Grok 4.7?
It is an estimate. xAI does not publish a browser tokenizer for Grok 4.7, so Tokenova counts with o200k_base and applies a xAI-specific adjustment. Expect real counts within roughly 10–20% for English text; use xAI's token-counting API for exact numbers.