LLM API pricing / xAI

What the Grok API costs, model by model

Short answer. xAI lists 8 models with a per-token price on its API. Input: from $1.00 (Grok Build 0.1) to $2.00 (Grok 4.5, Grok 4.6 and Grok 4.7) per 1M tokens. Output: from $2.00 (Grok Build 0.1) to $6.00 (Grok 4.5, Grok 4.6 and Grok 4.7). Read on xAI's own pages on October 26, 2026.

In plain words. You pay for the tokens you send (input) and the tokens the model writes (output). One request of 10,000 tokens in and 1,000 out costs $0.012 on Grok Build 0.1 and $0.026 on Grok 4.5, Grok 4.6 and Grok 4.7. Output costs more than input on all 8 models.

Current models

8 models, cheapest input first, verified on October 26, 2026. The last column is the cost of one request of 10,000 input and 1,000 output tokens at these prices, with no cache.

ModelInput $/1MOutput $/1MCached inputContextExample requestVerified
Grok Build 0.1 $1.00 $2.00 $0.20 256K $0.012 2026-10-26
Grok 4.20 (non-reasoning) $1.25 $2.50 $0.20 1M $0.015 2026-10-26
Grok 4.20 (reasoning) $1.25 $2.50 $0.20 1M $0.015 2026-10-26
Grok 4.20 Multi-agent $1.25 $2.50 $0.20 1M $0.015 2026-10-26
Grok 4.3 $1.25 $2.50 $0.20 1M $0.015 2026-10-26
Grok 4.5 $2.00 $6.00 $0.30 500K $0.026 2026-10-26
Grok 4.6 $2.00 $6.00 $0.50 500K $0.026 2026-10-26
Grok 4.7 $2.00 $6.00 $0.50 500K $0.026 2026-10-26

How xAI describes its models

How xAI prices its models

Price lists with no figure per model

Batch

Condition: wait: completion is best effort, most within 24 hours. No figure is shown here: the per-model batch prices sit behind a toggle on each model's page that this site could not read without a browser, so no figure is shown.

What xAI's own pages say

Batch API

Long prompts

Retirements

Retired: Grok 3 (May 15, 2026), Grok 4 (May 15, 2026), Grok 4 Fast (non-reasoning) (May 15, 2026), Grok 4 Fast (reasoning) (May 15, 2026), Grok 4.1 Fast (non-reasoning) (May 15, 2026), Grok 4.1 Fast (reasoning) (May 15, 2026).

Analysis that cites xAI models

FAQ

What is the cheapest Grok model on the API?

Grok Build 0.1, at $1.00 per 1M input tokens and $2.00 per 1M output tokens, as xAI's pricing page printed it on October 26, 2026.

Which Grok models work with the xAI Batch API?

Grok 4.7 and Grok 4.6: “Batch API Supported in us-east-1, us-west-2”. Grok 4.5, Grok 4.3, Grok 4.20 (reasoning), Grok 4.20 (non-reasoning) and Grok 4.20 Multi-agent: “Batch API Supported”. Grok Build 0.1: “Batch API Not supported”. Read on October 26, 2026.

Do Grok prices change for long prompts?

xAI's model page for Grok 4.3: “We charge different rates for requests which exceed the 200K context window”. Read on October 26, 2026. On xAI's pricing page, all 8 models have a second price for prompts of 200,000 tokens or more.

How we checked

Full method: methodology. All providers: the full pricing table.