Model Cost Check

Home / Grok API pricing

Grok API pricing

What xAI charges for Grok models through its API, per million tokens, and what a month of your own use would cost.

Checked October 13, 2026 against xAI’s models and pricing page

$2.00 / $6.00Grok 4.7, input / output per 1M tokens (prompts under 200,000 tokens)
$0.50Grok 4.7 cached input per 1M tokens
$4.00 / $12.00Grok 4.7 for prompts of 200,000 tokens or more
500,000tokens of context on Grok 4.7
Start from an example:
Count in

A token is a piece of a word. For English, 100 tokens is about 60 to 80 words (Google).

In: your prompt, instructions and any pasted text. Out: the answer, including any thinking the model does before it answers.

The part of each prompt that repeats, such as fixed instructions, billed at the lower cached rate.

Your monthly Grok cost

Models

  1. Turn on JavaScript to see the costs. The price tables below work without it.

Text models

ModelInputCached inputOutputBatch in / outGood to know
Grok 4.7grok-4.7$2.00$0.50$6.00None200,000 tokens or more in a prompt: $4.00 in, $1.00 cached, $12.00 out500,000-token context
Grok 4.3grok-4.3$1.25$0.20$2.50None200,000 tokens or more in a prompt: $2.50 in, $0.40 cached, $5.00 out1,000,000-token context
Grok Build 0.1grok-build-0.1$1.00$0.20$2.00None200,000 tokens or more in a prompt: $2.00 in, $0.40 cached, $4.00 out256,000-token context

US dollars per 1 million tokens, standard tier, from xAI’s pricing page, checked Oct 13, 2026.

xAI also lists Grok 4.6 (same prices as 4.7), Grok 4.5 ($0.30 cached) and the Grok 4.20 models (same prices as 4.3).

What changes the bill

Prompts of 200,000 tokens or more

When a prompt reaches 200,000 tokens, xAI bills every token in that request at the higher rate. On Grok 4.7 that doubles everything: $4.00 in, $1.00 cached and $12.00 out per million.

No batch discount on Grok 4.7

xAI’s Grok 4.7 page lists the Batch API as not supported, so there is no batch price for it. In the calculator, batch mode charges Grok 4.7 the full price.

Regions

xAI says Grok 4.7 runs on several clusters, with regional prices on the model’s page. The prices here are the main list prices.

Image, video and voice

xAI Imagine and Voice prices
Model or modePrice
Grok Imagine Imagegrok-imagine-image$0.02 per image
Grok Imagine Image 2.0grok-imagine-image-2.0$0.04 per image
Grok Imagine Image, qualitygrok-imagine-image-quality$0.05 per image
Grok Imagine Video 1.5 Litegrok-imagine-video-1.5-lite$0.02 per second
Grok Imagine Videogrok-imagine-video$0.05 per second
Grok Imagine Video 1.5grok-imagine-video-1.5$0.08 per second
Speech to speech$0.08 per minute
Speech to text$0.10 per hour ($0.20 streaming)
Text to speech$15 per 1M characters

Compare