Models / Grok pricing
Grok API pricing
5 Grok models from xAI on one key, per million tokens. Input 50% to 70% under xAI's list price, output 50% to 70%. Lowest price: Grok 4.6, $0.60 in and $1.80 out.
Prices · per million tokens, USD, next to xAI's list price
| Model | Input | Cached input | Output | Under list |
|---|---|---|---|---|
| Grok 4.6 APIgrok-4.6 | $0.60list $2.00 | $0.15list $0.50 | $1.80list $6.00 | 70% in · 70% out |
| Grok 4.7 APIgrok-4.7 | $0.60list $2.00 | $0.15list $0.50 | $1.80list $6.00 | 70% in · 70% out |
| Grok 4.7 Build Fast APIgrok-4.7-build-fast | $2.00list $4.00 | $0.20list $0.40 | $6.00list $12.00 | 50% in · 50% out |
| Grok 4.5 APIgrok-4.5 | $0.60list $2.00 | $0.09list $0.30 | $1.80list $6.00 | 70% in · 70% out |
| Grok 4.3 APIgrok-4.3 | $1.875list $1.25 | $0.30list $0.20 | $3.75list $2.50 | none |
What each model accepts
| Input | API | Pricing | |||||
|---|---|---|---|---|---|---|---|
| Text | Image | Audio | Video | OpenAI format | Anthropic format | Cached input | |
| Grok 4.6 | Supported | Supported | Not supported | Not supported | Supported | Not supported | Supported |
| Grok 4.7 | Supported | Supported | Not supported | Not supported | Supported | Not supported | Supported |
| Grok 4.7 Build Fast | Supported | Not supported | Not supported | Not supported | Supported | Not supported | Supported |
| Grok 4.5 | Supported | Supported | Not supported | Not supported | Supported | Not supported | Supported |
| Grok 4.3 | Supported | Supported | Not supported | Not supported | Supported | Not supported | Supported |
How Grok API pricing works · per million tokens, billed per request
Grok API pricing is per million tokens, with input and output billed separately. On Grok 4.6 input is $0.60 and output $1.80 per million here, so one output token costs 3 times one input token. xAI's list price for the same model is $2.00 and $6.00.
All 5 Grok models have a cached input rate. A cache read on Grok 4.6 costs $0.15 per million, 25% of its input rate, so a system prompt or document that repeats across requests bills at the cached rate after the first one. A model with no cached rate bills cached tokens at its input rate.
Every request bills from prepaid credit, from $10, with no subscription. Each paid top-up locks your rates for 30 days, and inside that window a price can only go down. A non-streamed response carries the request's cost and its saving against list in its headers, x-uplink-charge and x-uplink-saved.
Price your own token counts on every Grok model with the LLM cost calculator.
Grok API cost per request · three request shapes at live prices
A request costs its tokens times the rate. The table prices three shapes on every Grok model at today's rates, with xAI's list price under each figure where one is published.
| Model | Chat turn2,000 in, 500 out | Long document30,000 in, 1,000 out | Agent turn40,000 in, 30,000 of them cached, 1,500 out |
|---|---|---|---|
| Grok 4.6 | $0.0021list $0.007 | $0.0198list $0.066 | $0.0132list $0.044 |
| Grok 4.7 | $0.0021list $0.007 | $0.0198list $0.066 | $0.0132list $0.044 |
| Grok 4.7 Build Fast | $0.007list $0.014 | $0.066list $0.132 | $0.035list $0.07 |
| Grok 4.5 | $0.0021list $0.007 | $0.0198list $0.066 | $0.0114list $0.038 |
| Grok 4.3 | $0.0056list $0.0038 | $0.06list $0.04 | $0.0334list $0.0223 |
Worked through on Grok 4.6: a chat turn is 2,000 × $0.60 / 1,000,000 + 500 × $1.80 / 1,000,000 = $0.0021. A thousand such turns come to $2.10.
Long prompts · xAI doubles the rate at 200K prompt tokens
xAI bills every token of a request at its higher rate once the prompt reaches 200,000 tokens: double the input, cached and output rates on Grok 4.7, 4.6, 4.5 and 4.3 (xAI pricing, read 2026-10-19). A price here is the same at any prompt length.
| Model | xAI under 200K | xAI at 200K and up | Here | 300,000-token prompt, xAI | Same prompt, here |
|---|---|---|---|---|---|
| Grok 4.7grok-4.7 | $2.00 / $6.00 | $4.00 / $12.00 | $0.60 / $1.80 | $1.25 | $0.1872 |
| Grok 4.6grok-4.6 | $2.00 / $6.00 | $4.00 / $12.00 | $0.60 / $1.80 | $1.25 | $0.1872 |
| Grok 4.5grok-4.5 | $2.00 / $6.00 | $4.00 / $12.00 | $0.60 / $1.80 | $1.25 | $0.1872 |
| Grok 4.3grok-4.3 | $1.25 / $2.50 | $2.50 / $5.00 | $1.875 / $3.75 | $0.77 | $0.5775 |
The last two columns are one request: 300,000 input tokens and 4,000 output tokens, uncached.
Grok API key and rate limits · at xAI and here
At xAI, sign up at console.x.ai, load prepaid credits, then open API Keys in the sidebar and click Create API Key. Requests are rejected once the credits run out. Rate limits are set in requests per second and tokens per minute, by tier of cumulative spend ($0, $50, $250, $1,000 and $5,000); Grok 4.7 starts at 150 requests a second and 50 million tokens a minute (xAI rate limits, read 2026-10-19).
Here one key calls every Grok model above and every other model on the list, from prepaid credit from $10, in the OpenAI format at our base URL. Request limits come from the account's tier, which a larger balance or auto top-up raises; a key can be held lower still.
Which Grok model to choose on price · lowest to highest, per 1,000 chat turns
By the chat turn above, Grok 4.6 costs the least at $2.10 per 1,000 turns and Grok 4.7 Build Fast the most at $7.00, 3 times as much. The context window and output limit are xAI's published figures for each model.
| Model | 1,000 chat turns | Context window | Max output |
|---|---|---|---|
| Grok 4.6grok-4.6 | $2.10 | 500K | not published |
| Grok 4.7grok-4.7 | $2.10 | 500K | not published |
| Grok 4.5grok-4.5 | $2.10 | 500K | not published |
| Grok 4.3grok-4.3 | $5.625 | 1M | not published |
| Grok 4.7 Build Fastgrok-4.7-build-fast | $7.00 | 500K | not published |
Grok vs other model families · the lead model of each, per 1,000 chat turns
The lead model of each family on the same key, priced on the same chat turn. Grok 4.6 comes to $2.10 per 1,000 turns; GPT-6.1 Sol, the lead GPT model, to $2.70.
| Family | Lead model | Input | Output | 1,000 chat turns |
|---|---|---|---|---|
| Claude API pricing | Claude Fable 5.2 | $4.00 | $20.00 | $18.00 |
| GPT API pricing | GPT-6.1 Sol | $0.60 | $3.00 | $2.70 |
| Gemini API pricing | Gemini 4 Argon | $1.20 | $3.00 | $3.90 |
| Grok | Grok 4.6 | $0.60 | $1.80 | $2.10 |
| DeepSeek API pricing | DeepSeek V4 Pro 0813 | $0.792 | $1.188 | $2.178 |
| Kimi API pricing | Kimi K3 | $0.90 | $4.50 | $4.05 |
| GLM API pricing | GLM 5.3 | $0.3276 | $1.0296 | $1.17 |
| Qwen API pricing | Qwen3.7 Max | $0.6471 | $1.9412 | $2.2647 |
| MiniMax API pricing | MiniMax M3 | $0.09 | $0.36 | $0.36 |
| MiMo API pricing | MiMo V2.6 Flash | $0.084 | $0.12 | $0.228 |
Call them · same base URL and key for every model
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.6",
messages=[{"role": "user", "content": "Summarize this in one line."}],
)
print(completion.choices[0].message.content)import OpenAI from 'openai';
const client = new OpenAI({
baseURL: 'https://api.uplinkswitch.com/v1',
apiKey: 'sk-uplink-live-...',
});
const completion = await client.chat.completions.create({
model: 'grok-4.6',
messages: [{ role: 'user', content: 'Summarize this in one line.' }],
});
console.log(completion.choices[0].message.content);