Home / Providers / xAI / Grok 4
Grok 4 token cost
xAI · context 256,000 tokens · tokenizer Approx
Open in cost calculator · Count tokens · Full calculator · Official pricing
When to use Grok 4
Earlier xAI frontier Grok kept for migration math. Prefer Grok 4.7 for new agent and coding workloads; confirm rates on xAI docs as the lineup moves quickly.
Pricing
- Input
- $1.25/1M
- Output
- $2.50/1M
- Cached input
- $0.200/1M
- Verified
Official pricing source · Open main calculator · Cheaper frontier models
Retired slug redirects to grok-4.3 and bills at $1.25 / $2.50 (cached $0.20) under 200K. Prefer Grok 4.7 for new work.
Estimate with TokenCalculator
Preselect Grok 4 in the calculator to count tokens and project request or monthly cost. Exact vs Approx follows this model's tokenizer family. See the Exact vs Approx guide for honesty rules.
Compare
Related tools
Estimate API cost · Count tokens · Check context fit · Estimate cache savings · Compare batch pricing · Compare models
Related guides
Sources and references
Official documentation used for definitions, counting methods, or rate cards. Always confirm critical budgets on the provider page.