Grok API cost per request, December 2026: a chat turn and a long document
Input, cached and output prices for every Grok model, xAI's list price next to ours, and what a chat turn and a long-document request cost on Grok 4.7, 4.5 and 4.3.

How a Grok API request is billed
xAI API pricing is per million tokens with separate input, cached and output rates, and xAI doubles the rate on prompts past 200K tokens (the Grok API pricing page works that out); every Grok request here bills at the one rate in the table. Grok output costs two to three times input, a smaller gap than most flagship models. A request costs its tokens times the rates of the model it named; there is no seat or plan price.
Grok per-token rates
5 Grok models. Each row shows our price and xAI's list price.
| Model | Input | Cached | Output | List input | List cached | List output |
|---|---|---|---|---|---|---|
| Grok 4.6 | $0.60 | $0.15 | $1.80 | $2.00 | $0.50 | $6.00 |
| Grok 4.7 | $0.60 | $0.15 | $1.80 | $2.00 | $0.50 | $6.00 |
| Grok 4.7 Build Fast | $2.00 | $0.20 | $6.00 | $4.00 | $0.40 | $12.00 |
| Grok 4.5 | $0.60 | $0.09 | $1.80 | $2.00 | $0.30 | $6.00 |
| Grok 4.3 | $1.875 | $0.30 | $3.75 | $1.25 | $0.20 | $2.50 |
USD per million tokens. Ours from the live catalog; list is the price on xAI's pricing page, the read date on each model page.
The lowest price here is Grok 4.6: $0.60 in and $1.80 out.
Grok API cost per request, worked
A chat turn of 2,000 input and 500 output tokens, and a long-document request of 50,000 input and 2,000 output. Both sizes are assumptions; nothing is counted at the cached rate.
| Model | Chat turn, list | Chat turn, here | Long document, list | Long document, here |
|---|---|---|---|---|
| Grok 4.7 | $0.007 | $0.0021 | $0.112 | $0.0336 |
| Grok 4.5 | $0.007 | $0.0021 | $0.112 | $0.0336 |
| Grok 4.3 | $0.0038 | $0.0056 | $0.0675 | $0.1013 |
Input tokens times the input rate plus output tokens times the output rate, per million.
Grok 4.7: $0.60 in and $1.80 out here, against $2.00 and $6.00 at list, 70% under on input and 70% on output.
Grok 4.5: $0.60 in and $1.80 out here, against $2.00 and $6.00 at list, 70% under on input and 70% on output.
Grok API cost per month, worked
Two monthly workloads on the same models: 1,000 chat turns a day and 100 long documents a day, each for 30 days. Every request is the size above, so a month of chat is 60 million input and 15 million output tokens, and a month of documents is 150 million input and 6 million output. The volumes are assumptions; nothing is counted at the cached rate.
| Model | Chat month, list | Chat month, here | Document month, list | Document month, here |
|---|---|---|---|---|
| Grok 4.7 | $210.00 | $63.00 | $336.00 | $100.80 |
| Grok 4.5 | $210.00 | $63.00 | $336.00 | $100.80 |
| Grok 4.3 | $112.50 | $168.75 | $202.50 | $303.75 |
USD for 30 days: the per-request cost above times 30,000 chat turns or 3,000 documents.
Grok 4.7: $163.80 a month here for both workloads, against $546.00 at list, $382.20 less.
Grok 4.5: $163.80 a month here for both workloads, against $546.00 at list, $382.20 less.
Cost scales with volume, so 10,000 chat turns a day is ten times the chat column.
What cached input does to the cost
When a request repeats a prefix the API has seen, such as a long system prompt or a document, the response reports those tokens as cached and they bill at the cached rate in the first table. A model with no cached rate bills them at its input rate.
Grok price by version
Each Grok model next to the version before it, per million tokens here. The last column is the change in xAI's list price where both versions have one.
| Model | Before it | Input | Output | List change |
|---|---|---|---|---|
| Grok 4.6 | Grok 4.5 | $0.60 → $0.60 | $1.80 → $1.80 | same in, same out |
| Grok 4.7 | Grok 4.6 | $0.60 → $0.60 | $1.80 → $1.80 | same in, same out |
| Grok 4.5 | Grok 4.3 | $1.875 → $0.60 | $3.75 → $1.80 | +60% in, +140% out |
USD per million tokens, ours from the live catalog. "Before it" is the closest earlier version in the catalog.
Grok 4.7 costs $0.60 in and $1.80 out here; Grok 4.6 costs $0.60 and $1.80. At xAI's list the move is $2.00 to $2.00 on input and $6.00 to $6.00 on output.
Grok 4.5 costs $0.60 in and $1.80 out here; Grok 4.3 costs $1.875 and $3.75. At xAI's list the move is $1.25 to $2.00 on input and $2.50 to $6.00 on output.
A long cached session on Grok, worked
Coding tools and agents send the whole conversation again on every turn, so most of each prompt is a repeat the API has cached. Take a turn of 40,000 cached tokens, 4,000 new input tokens and 1,000 output tokens, 200 times a day. The sizes are assumptions.
| Model | Turn, list | Turn, here | 200 turns, here | Turn, nothing cached |
|---|---|---|---|---|
| Grok 4.7 | $0.034 | $0.0102 | $2.04 | $0.0282 |
| Grok 4.5 | $0.026 | $0.0078 | $1.56 | $0.0282 |
| Grok 4.3 | $0.0155 | $0.0233 | $4.65 | $0.0863 |
Cached tokens at the cached rate, or the input rate on a model without one; the last column bills every prompt token at the input rate. Cache writes are not counted.
On Grok 4.7 the cached tokens are 88% of the turn's tokens and 58% of its cost here. Without the cache the same turn costs $0.0282.
Is it the real Grok? The daily check
Once a UTC day every model here gets the same fixed test prompt. The input token count it reports is set by the developer's tokenizer, so a swapped model or added instructions shows up as a changed count. Every result is public on the daily check. The latest for each Grok model:
| Model | Latest result |
|---|---|
| Grok 4.6 | Changed Dec 2 |
| Grok 4.7 | Steady since Dec 2 |
| Grok 4.7 Build Fast | Steady since Nov 11 |
| Grok 4.5 | Changed Dec 2 |
| Grok 4.3 | Changed Nov 28 |
From the public check results when this page was built.
Switching from xAI's API
- Create a key in the console at uplinkswitch.ai/console. Credit is prepaid from $10 with no subscription, and the key works at once.
- Point your SDK or tool at https://api.uplinkswitch.com/v1, for example with OPENAI_BASE_URL, and send the key as the bearer token.
- Send grok-4.7 as the model. The same key calls every other model in the catalog.
The request body stays as it is. Streams pass through unchanged, in each format's own events, and tools go out in OpenAI's tools schema with calls streaming back as tool events.
A failed request is not charged, and an answer the model refuses is not billed. Each paid top-up locks your rates for 30 days, and billing takes the lowest live rate, so inside that window a price can only go down. Every non-streamed answer carries a signed receipt of which model answered and what was billed; check one with the receipt verifier.
Calling it
Point the SDK at our base URL with your key. Every Grok id in the table works with the same two values.
from openai import OpenAI
client = OpenAI(
base_url="https://api.uplinkswitch.com/v1",
api_key="sk-uplink-live-...",
)
completion = client.chat.completions.create(
model="grok-4.7",
messages=[{"role": "user", "content": "Summarize this in one line."}],
)
print(completion.choices[0].message.content)More in the SDK guide.
Questions
Is there a subscription? No. Credit is prepaid from $10, and each top-up locks your prices for 30 days.
Which Grok model should I use? Grok 4.7 for most work; its input and output prices here match 4.5 and 4.6. Grok 4.3 has the lower output price, so it fits long answers where the newest model isn't needed. Run the same prompt on each and compare.
Where is the full price list? On the Grok API pricing page, and every other model on the Models page. To see what your own usage would cost, re-price an export on the savings page.
How much does a Grok 4.7 coding-agent turn cost? A turn of 40,000 cached, 4,000 new input and 1,000 output tokens costs $0.0102 here and $0.034 at xAI's list price. 200 of them a day is $2.04 here.
Is Grok cheaper here than on xAI's API? 4 of the 5 Grok models with a xAI list price are under it here on both input and output. Grok 4.7 is 70% under on input and 70% on output.
Does cached input cost less on Grok? Yes, on the models with a cached rate. Grok 4.7 bills cached input at $0.15 per million tokens here, against $0.60 for new input.
What happens if a Grok request fails? It is not charged. An answer the model refuses is not billed either, judged by the format's own refusal signal, never by the answer's wording.
Which Grok model has the largest context window? Grok 4.3, at 1,000,000 tokens. Grok 4.7 takes 500,000; Grok 4.5 takes 500,000.
What is the newest Grok model? Grok 4.7, released September 21, 2026. It costs $0.60 in and $1.80 out per million tokens here.
Can Grok 4.7 read images? Yes. Grok 4.7 takes text and image input. 4 of the 5 Grok models here take images.
Do Grok prices here change? They follow the live catalog, and this page rebuilds from it at most every five minutes. A paid top-up locks your rates for 30 days, and billing takes the lowest live rate, so inside that window a Grok price can only go down.
How many Grok models can I call with one key? 5: Grok 4.6, Grok 4.7, Grok 4.7 Build Fast, Grok 4.5 and Grok 4.3. The same key calls every other model in the catalog too.