API pricing per million tokens
- Input
- $2
- per 1M, list
- Output
- $6
- per 1M tokens
- Cached input
- $0.3
- no batch tier listed
- Context
- 500K
- 450K max output
Where to buy it (4)
xAI (list)the lab's own API$2 / $6cached $0.3
xAIzdr$2 / $6cached $0.3
xAIpriority+100%$4 / $12cached $0.6
xAIzdr-priority+100%$4 / $12cached $0.6
Through a gateway
Your own numbers100M input and 20M output tokens a month: $320.00 direct.
Helicone$320.00+0%
Kong AI Gateway$320.00+0%
LiteLLM$320.00+0%
Vercel AI Gateway$320.00+0%
AWS Bedrock$320.00+0%
Azure AI Foundry$320.00+0%
Google Vertex AI$320.00+0%
Databricks Mosaic AI$320.00+0%
Hugging Face Inference$320.00+0%
Cloudflare AI Gateway$336.00+5%
Requesty$336.00+5%
Eden AI$337.60+5.5%
OpenRouter$337.60+5.5%
Snowflake Cortex AI$384.00+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.7xAI · 500K$1.6 / $4.8in / out per 1M$1.6$4.8$0.4500KSep 21, 2026
Grok 4.6xAI · 500K$2 / $6in / out per 1M$2$6$0.5500KAug 12, 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.5
Grok 4.5 is a model from SpaceXAI with frontier performance on coding, knowledge work, and STEM.
Takes text, image, files in and returns text. First listed Jul 17, 2026. Blended price $3 per 1M tokens at 3 input to 1 output. Overall score 2 on leadersboard.fru.dev (rank 47).
Questions
How much does Grok 4.5 cost?
$2 per million input tokens and $6 per million output tokens, with cached input at $0.3.
What is the context window of Grok 4.5?
500K tokens, with up to 450K tokens of output.
Where is Grok 4.5 cheapest?
Of 4 routes tracked, xAI is cheapest at $2 input and $6 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.