Guides · API pricing by lab

Grok API pricing explained (December 2026): Grok 4.7, 4.6, 4.3 and long prompts

Updated 2026-12-02

Short answer: as of December 2026, xAI's newest grok-4.7 costs $2 per million input tokens and $6 per million output ($0.50 cached), the same as grok-4.6. The grok-4.3 and grok-4.20 models cost $1.25 / $2.50. Prompts of 200K tokens or more pay double on every token in the request.

Prices

Dollars per million tokens, from xAI's models and pricing page, read December 2, 2026. "1k requests" = 1,000 requests with 1,200 input and 300 output tokens.

ModelContextInputCachedOutput1k requests
grok-4.7500K$2.00$0.50$6.00$4.20
grok-4.6500K$2.00$0.50$6.00$4.20
grok-4.5500K$2.00$0.30$6.00$4.20
grok-4.31M$1.25$0.20$2.50$2.25
grok-4.20-0309-reasoning / -non-reasoning1M$1.25$0.20$2.50$2.25
grok-4.20-multi-agent-03091M$1.25$0.20$2.50$2.25

Prices above are for prompts under 200K tokens.

The 200K-token rule

When a request's prompt is 200K tokens or more, every token in that request is billed at the higher rate: $4 / $12 for grok-4.7, 4.6 and 4.5, and $2.50 / $5 for grok-4.3 and 4.20. If you send long documents or long conversation histories, check how close you get to 200K: trimming below it halves the cost of that request.

How Grok's pricing compares

Grok's output price is low relative to its input price: at $2 / $6, grok-4.7 costs the same as Claude Sonnet 5.5 and GPT-6.2 Sol for input ($2) but 40% less for output ($6 vs $10). For tasks with long answers that matters more than the input price. The full cross-lab table is in LLM API pricing compared.

xAI's page says not every model accepts Batch API requests and points to each model's page for details; it doesn't show a batch discount in the pricing table.

Picking a Grok model

grok-4.3 and grok-4.20 are about half the price of grok-4.7 per typical request, and grok-4.20 comes in reasoning and non-reasoning versions. Non-reasoning models are faster and spend fewer output tokens, so they're worth testing first for simple tasks. Run your own prompts on two or three and compare pass rate, cost and speed: how.

Let every new model take your test, automatically

Modeldrop (in development) keeps your prompts and your rules for a correct answer. Every time a major lab releases a model, it runs your prompts on it, compares the results with the model you use today and emails you the verdict: how many pass, what it would cost at your volume and how fast it is. No API keys, no eval code.

See the founding offer

Related guides