xAI · verified 2026-11-30

Grok API pricing

We track 2Grok models on xAI's first-party API. The cheapest is Grok 4.3 at $1.25 per million input tokens; the most expensive is Grok 4.7 at $2 input and $6 output.

Grok token cost by model

Model Input / 1M Output / 1M Input / token Output / token Context Class
Grok 4.3 $1.25 $2.50 $0.00000125 $0.0000025 1M workhorse
Grok 4.7 $2 $6 $0.000002 $0.000006 500K frontier

Estimated monthly cost

Workload Grok 4.3Grok 4.7
Light — chatbot 0.5K in / 0.2K out · 200 req/day $6.75$13.20
Typical — assistant 2K in / 0.5K out · 1K req/day $113$210
Heavy — RAG / agent 8K in / 2K out · 5K req/day $2,250$4,200

Plug in your own traffic in the LLM API cost calculator.

Compare Grok with other providers

Frequently asked questions

How much does the Grok API cost per token?

It depends on the model. Grok 4.3 costs $0.00000125 per input token and $0.0000025 per output token ($1.25 / $2.50 per million). Grok 4.7 costs $0.000002 per input token and $0.000006 per output token ($2 / $6 per million).

What is the cheapest Grok model?

Grok 4.3 is the cheapest Grok model at $1.25 input and $2.50 output per million tokens. Grok 4.7 is the most expensive at $2 / $6.

Why are output tokens more expensive than input tokens?

Generating a token takes a full forward pass of the model for each new token, while input tokens are processed in parallel. Providers price output higher to reflect that compute, often 4–8× the input rate.

How many tokens is a word?

For English text, one token is roughly 0.75 words, or about 4 characters. 1,000 words is about 1,333 tokens. Code, non-English text and numbers usually use more tokens per word, and each provider’s tokenizer differs slightly.

Is Grok the same as Groq?

No. Grok is the model family made by xAI. Groq is a separate company that sells fast inference on its own LPU chips and hosts open-weight models such as Llama. Prices on this page are for xAI’s first-party Grok API.

Source: xAI pricing page. USD, standard tier, no caching or batch discounts. Other providers: Claude · OpenAI · Gemini · DeepSeek · Mistral . All 29 models are on the pricing table.