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.