Home / Providers / xAI / Grok 4

Grok 4 token cost

xAI · context 256,000 tokens · tokenizer Approx

When to use Grok 4

Earlier xAI frontier Grok kept for migration math. Prefer Grok 4.6 for new agent and coding workloads; confirm rates on xAI docs as the lineup moves quickly.

Pricing

Input
$3.00/1M
Output
$15.00/1M
Verified

Official pricing source · Open main calculator · Cheaper frontier models

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.

Estimate cost for Grok 4 · Count tokens · Pricing guide

Compare

All featured comparisons · More xAI models

Related tools

Estimate API cost · Count tokens · Check context fit · Estimate cache savings · Compare batch pricing · Cheapest LLM API

Related guides

LLM API pricing · Exact vs Approx · How prompt cost is calculated · Prompt caching explained

Sources and references

Official documentation used for definitions, counting methods, or rate cards. Always confirm critical budgets on the provider page.