API pricing per million tokens
- Input
- $1.6
- per 1M, list
- Output
- $4.8
- per 1M tokens
- Cached input
- $0.4
- no batch tier listed
- Context
- 500K
- 450K max output
Where to buy it (4)
xAI (list)the lab's own API$1.6 / $4.8cached $0.4
xAIzdr$1.6 / $4.8cached $0.4
xAIpriority+100%$3.2 / $9.6cached $0.8
xAIzdr-priority+100%$3.2 / $9.6cached $0.8
Through a gateway
Your own numbers100M input and 20M output tokens a month: $256.00 direct.
Helicone$256.00+0%
Kong AI Gateway$256.00+0%
LiteLLM$256.00+0%
Vercel AI Gateway$256.00+0%
AWS Bedrock$256.00+0%
Azure AI Foundry$256.00+0%
Google Vertex AI$256.00+0%
Databricks Mosaic AI$256.00+0%
Hugging Face Inference$256.00+0%
Cloudflare AI Gateway$268.80+5%
Requesty$268.80+5%
Eden AI$270.08+5.5%
OpenRouter$270.08+5.5%
Snowflake Cortex AI$307.20+20%
Martian Gatewayn/a
Portkeyn/a
TrueFoundry AI Gatewayn/a
IBM watsonx.ain/a
OCI Generative AIn/a
BigQuery MLn/a
Cloudflare Workers AIn/a
NVIDIA NIMn/a
Related models
Grok 4.6xAI · 500K$2 / $6in / out per 1M$2$6$0.5500KAug 12, 2026
Grok 4.5xAI · 500K$2 / $6in / out per 1M$2$6$0.3500KJul 8, 2026
Grok Build 0.1xAI · 256K$1 / $2in / out per 1M$1$2$0.2256KMay 20, 2026
Grok 4.3xAI · 1M$1.25 / $2.5in / out per 1M$1.25$2.5$0.21MApr 30, 2026
GPT-5.6 SolOpenAI · 1.05M$2 / $10in / out per 1M$2$10$0.21.05MJul 9, 2026
Muse Spark 1.3Meta · 1M$1.25 / $4.25in / out per 1M$1.25$4.25$0.151MSep 2, 2026
Gemini 3.8 FlashGoogle Gemini API · 1M$0.75 / $3.75in / out per 1M$0.75$3.75$0.0751MSep 2, 2026
Gemini 3.1 Pro PreviewGoogle Gemini API · 1M$2 / $12in / out per 1M$2$12$0.21MFeb 19, 2026
About Grok 4.7
Grok 4.7 is SpaceXAI's flagship model for coding, agentic tasks, and knowledge work, succeeding Grok 4.6.
Takes text, image, files in and returns text. First listed Sep 21, 2026. Blended price $2.4 per 1M tokens at 3 input to 1 output. Overall score 5 on leadersboard.fru.dev (rank 26).
Questions
How much does Grok 4.7 cost?
$1.6 per million input tokens and $4.8 per million output tokens, with cached input at $0.4.
What is the context window of Grok 4.7?
500K tokens, with up to 450K tokens of output.
Where is Grok 4.7 cheapest?
Of 4 routes tracked, xAI is cheapest at $1.6 input and $4.8 output per million tokens.
List prices from providers' pages on the date shown; your contract may differ. Logos via logo.dev; trademarks belong to their owners.