Grok 4 API pricing
Grok 4 costs $3.00 per 1M input tokens and $15.00 per 1M output tokens on this gateway, with a 256K token context window. You reach it with the same key and the same OpenAI-compatible base URL as every other model in the catalogue.
Last updated: October 2026- Input / 1M tokens
- $3.00
- Output / 1M tokens
- $15.00
- Context window
- 256K
- Vendor
- xAI
What does Grok 4 cost per request?
A typical request of 5,000 input tokens and 1,500 output tokens costs about $0.037 at list price. A thousand of those requests costs about $37.50.
| Workload | Tokens | Cost at list price |
|---|---|---|
| Single chat turn | 5K in / 1.5K out | $0.037 |
| 1,000 chat turns | 5M in / 1.5M out | $37.50 |
| Small production month | 10M in / 2M out | $60.00 |
| Busy production month | 100M in / 20M out | $600 |
Model usage is drawn from your balance at the upstream list price of each model. Figures above are indicative and exclude any plan fee; the console is the source of truth for live pricing.
Where Grok 4 fits
Grok 4 combines a 256K context window with $3.00 per 1M input and $15.00 per 1M output tokens, the same price band as Claude Sonnet 4.5.
Pick it when
- You want to compare vendors on the same task and the same budget rather than only on price.
- You need a 256K window - larger than the Anthropic models, smaller than the 1M options.
- Your workload mixes long-context reading with a moderate amount of generation.
What to watch
- At the same price as Sonnet 4.5 the choice comes down to output quality and tool behaviour, so test both on your own cases.
- The cheaper Grok 4 Fast sits alongside it in the catalogue when throughput matters more than depth.
Best for: Vendor comparison runs, 256K-context analysis and workloads already built around xAI output.
How to call Grok 4 through the gateway
Point your client at https://api.quickrouter.homes/v1 with a QuickRouter key and pass grok-4 as the model name. Nothing else in an OpenAI-style client changes.
curl https://api.quickrouter.homes/v1/chat/completions \
-H "Authorization: Bearer sk-qr-your-key" \
-H "Content-Type: application/json" \
-d '{
"model": "grok-4",
"messages": [{"role": "user", "content": "Hello"}]
}'The console lists the model ids your key can reach - use the id exactly as it appears there.
Frequently asked questions
How much does Grok 4 cost?+
List price on this gateway is $3.00 per 1M input tokens and $15.00 per 1M output tokens, with a 256K token context window.
How does Grok 4 compare with Grok 4 Fast?+
Grok 4 Fast is priced far lower per token and carries a larger advertised window, so it suits high-volume work while Grok 4 suits deeper reasoning.
Can I run a GPT-5 and Grok comparison with one key?+
Yes. Both models are reached through the same endpoint, so a comparison is a model-name change in the same request shape.
One key covers every model in this guide
Create an account, pick a plan and copy an API key. Gateway plans start at $19 per month and model usage is billed at upstream list prices.