AI pricing · November 2026

Grok API pricing

4 xAI models, priced per 1 million tokens from xAI's official pricing page (checked 2026-11-02). The cheapest is Grok Build 0.1 at $1 input and $2 output; the most expensive is Grok 4.7 at $2 / $6. Type your monthly volume to see what it costs on each.
ProviderCached inContext
Grok Build 0.1

prompts under 200K tokens; long-context rates apply to all tokens once prompt reaches 200K: $2 in / $4 out

xAI$1.00$2.00$0.200256K$14.00
Grok 4.3

prompts under 200K tokens; long-context rates apply to all tokens once prompt reaches 200K: $2.50 in / $5 out; no batch discount

xAI$1.25$2.50$0.2001M$17.50
Grok 4.7

prompts under 200K tokens; long-context rates apply to all tokens once prompt reaches 200K: $4 in / $12 out; batch 20% off

xAI$2.00$6.00$0.500500K$32.00
Grok 4.6

prompts under 200K tokens; long-context rates apply to all tokens once prompt reaches 200K: $4 in / $12 out; batch 20% off

xAI$2.00$6.00$0.500500K$32.00

Cached input and batch discounts

ModelInput $/1MCached input $/1MCache savingBatch
Grok 4.7$2$0.5075% off20% off
Grok 4.6$2$0.5075% off20% off
Grok 4.3$1.25$0.2084% offnone
Grok Build 0.1$1$0.2080% off—

What a typical workload costs

An app that sends 1,000 requests a day, each with a 2,000-token prompt and a 500-token answer, uses 60M input and 15M output tokens in 30 days. If 1,500 of those prompt tokens are the same system prompt and context every time, prompt caching bills 45M of them at the cached rate (cache writes and storage not included). Batch is the same traffic sent as asynchronous batch jobs.

ModelPer monthWith cachingWith batch
Grok 4.7$210$143$168
Grok 4.6$210$143$168
Grok 4.3$113$65.25—
Grok Build 0.1$90.00$54.00—

Closest-priced models from other providers

Matched on a 3:1 mix of input to output tokens. Open-model hosts are left out.

xAI modelIn / out $/1MClosest elsewhere
Grok 4.7$2 / $6Gemini 2.5 Pro (Google) $1.25 / $10 · Claude Sonnet 5.5 (Anthropic) $2 / $10
Grok 4.6$2 / $6Gemini 2.5 Pro (Google) $1.25 / $10 · Claude Sonnet 5.5 (Anthropic) $2 / $10
Grok 4.3$1.25 / $2.50Gemini 3.8 Flash (Google) $0.75 / $3.75 · DeepSeek V4 Pro (DeepSeek) $1.32 / $3.96
Grok Build 0.1$1 / $2Mistral Large 4 (Mistral) $0.70 / $2.10 · Gemini 3.8 Flash (Google) $0.75 / $3.75

Source: xAI pricing, checked 2026-11-02. To price a real prompt, paste it into the token counter.

FAQ

How much does the Grok API cost?+

xAI charges per token. On 2026-11-02 its official pricing page listed, per 1M tokens: Grok 4.7 $2 input / $6 output, Grok 4.6 $2 input / $6 output, Grok 4.3 $1.25 input / $2.50 output and Grok Build 0.1 $1 input / $2 output.

What is the cheapest xAI model?+

Grok Build 0.1: $1 per 1M input tokens and $2 per 1M output tokens. For the example workload on this page (30,000 requests a month) that is about $90.00 a month, against $210 on Grok 4.7, the most expensive xAI model here.

Does xAI have prompt caching or cheaper cached input?+

Yes. Cached input tokens cost $0.50 on Grok 4.7 (75% less than regular input), $0.50 on Grok 4.6 (75% less than regular input), $0.20 on Grok 4.3 (84% less than regular input) and $0.20 on Grok Build 0.1 (80% less than regular input).

Does xAI offer a batch discount?+

Yes: 20% off for asynchronous batch requests on Grok 4.7 and Grok 4.6. Batch requests are processed in the background instead of answered right away, so they suit evals, backfills and bulk summaries rather than chat. Grok 4.3 has no batch discount.

How does Grok 4.7 compare on price with other AI APIs?+

At $2 input / $6 output per 1M tokens, the closest-priced models from other providers are Gemini 2.5 Pro (Google, $1.25 / $10) and Claude Sonnet 5.5 (Anthropic, $2 / $10). Price per token isn't the whole bill: compare quality on your own prompts, and how many tokens each model uses for the same task.

How current are these prices?+

They were copied from xAI's official pricing page on 2026-11-02, and the month in this page's title is that check date. Prices change often, so confirm on the official page before you commit to a budget.

Other providers

Claude API pricing · OpenAI API pricing · Gemini API pricing · Mistral API pricing · DeepSeek API pricing · Groq API pricing · Together AI API pricing · Fireworks AI API pricing · All AI model prices compared