Grok 4 token cost

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.

Privacy first counting

TokenCalculator counts tokens in your browser when an Exact encoding is available. Prompt text does not need to leave your device for local counting.

Pricing snapshot

USD per 1 million tokens. Verify against the provider source before you lock budget.

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

Model details

DetailValue
ProviderxAI
Context window256K
TokenizerApprox
Last verified2026-08-12
API model idgrok-4

Related tools

Related guides

Sources and references