Home/Calculators/Grok Token Calculator

Grok Token Calculator

Price a Grok workload with xAI's short-context text rates before tools, search calls, or priority processing are added.

CalculatorConvert tokens to cost · live workload estimate
Typical workloads
Estimate tokens from text
≈ 0 tokens

Rough estimate from character count; tokenizers vary by model, language, and content.

Cost by model
Selected model

Grok 4.5

$0.50per request

$0.25 more than Grok 4.3 · 2.0× the cheapest

Model selection

Grok 4.5: $2.00 input / $6.00 output per 1M tokens.

How this Grok Token Calculator works

How the current Grok tiers are priced

Grok 4.7 and Grok 4.5 share xAI's higher standard short-context tier at $2 input and $6 output per 1M tokens. Grok 4.3 is the lower-priced general tier at $1.25 input and $2.5 output per 1M tokens, while the mapped Grok 4.20 reasoning route uses $1.25 input and $2.5 output per 1M tokens. The two lower-cost entries also share the same standard rates, so decisions within either price tier are driven by capability, reasoning behavior, and API compatibility rather than the baseline token bill. Benchmark the exact coding, knowledge, or agent tasks that justify moving to the higher tier instead of treating the newest label as an automatic default.

Grok's input and output asymmetry

Grok 4.3 and 4.20 charge twice as much for output as for standard input. Grok 4.7 and 4.5 widen the gap: each output token is priced at three times an input token. An input-heavy classifier or document question can therefore have a very different unit cost from an agent that produces long plans, code patches, and explanations, even when both process the same total token count. The separate input and output fields above make that asymmetry visible. Include hidden reasoning or completion usage reported by xAI in the output side, and set realistic response limits rather than budgeting from prompt length alone.

Long context, caching, and xAI tools

xAI applies higher long-context rates once a qualifying prompt crosses its published threshold; this calculator uses the standard short-context prices in the central store. Cached input can cost less, whereas priority processing can apply a premium. Web Search, X Search, code execution, file handling, and other server-side tools are also billed outside plain text tokens. Those extras are especially relevant to Grok because tool-connected research is a common use case. Use this page for the model portion of the bill, then add observed tool invocations and check whether your typical prompt falls into xAI's long-context band before forecasting production spend.

When Grok is the economical or costly choice

Grok 4.3 or 4.20 can be the economical xAI route when you need configurable reasoning, strong tool calling, or X-native workflows without paying the 4.7/4.5 tier's premium. Grok 4.7 and 4.5 become expensive choices for output-heavy generation because both their base rate and output multiplier are higher. They earn their place only when better task completion, fewer corrective turns, or stronger coding performance lowers the cost of the entire workflow. For simple extraction and bulk transformation, cheaper sibling providers may win on tokens. For live research, compare total model-plus-tool cost and quality rather than token rates in isolation.

Examples

Grok 4.7 coding batch

Grok 4.7 · 1,000,000 input and 500,000 output tokens. From the central pricing store ($2 input and $6 output per 1M tokens), input costs $2, output costs $3, and the total is $5.

FAQ

Does this include Grok Web Search or X Search charges?

No. The result covers text input and output tokens only. Add xAI's current per-invocation charge for each server-side search or code-execution tool your workflow uses.

Why can a long Grok prompt cost more than the calculator shows?

xAI publishes a higher rate band for qualifying long-context requests. This page uses standard short-context rates, so check the current threshold when prompts approach hundreds of thousands of tokens.

Is Grok 4.5 always more cost-effective than Grok 4.3?

No. Grok 4.5 costs more per input and output token. It is cost-effective only when its quality reduces retries, manual correction, or the number of model calls enough to offset that premium.