Models / Grok pricing

Grok API pricing

5 Grok models from xAI on one key, per million tokens. Input 40% to 70% under xAI's list price, output 40% to 70%. Lowest price: Grok 4.3, $0.75 in and $1.50 out.

Prices · per million tokens, USD, next to xAI's list price

ModelInputCached inputOutputUnder list
Grok 4.6grok-4.6$0.60list $2.00$0.15list $0.50$1.80list $6.0070% in · 70% out
Grok 4.7grok-4.7$0.60list $2.00$0.15list $0.50$1.80list $6.0070% in · 70% out
Grok 4.5grok-4.5$0.60list $2.00$0.09list $0.30$1.80list $6.0070% in · 70% out
Grok 4.3grok-4.3$0.75list $1.25$0.12list $0.20$1.50list $2.5040% in · 40% out
Grok 4.20 Multi-Agent (0309)grok-4.20-multi-agent-0309$0.75list $1.25$0.12list $0.20$1.50list $2.5040% in · 40% out
List price: xAI's published rate, read October 2026. Live from GET https://api.uplinkswitch.com/v1/catalog.

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.

ModelxAI under 200KxAI at 200K and upHere300,000-token prompt, xAISame 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$0.75 / $1.50$0.77$0.231

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. Each key carries its own requests-per-minute and concurrency limit.

Call them · same base URL and key for every model

Python · OpenAI SDK
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)
TypeScript · OpenAI SDK
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);
Guides: Cursor, SDKs.

Questions

Which Grok model costs the least?
Grok 4.3 (grok-4.3): $0.75 per million input tokens and $1.50 per million output tokens.
How far under xAI's list price is it?
Input runs 40% to 70% under xAI's list price, output 40% to 70%, depending on the model. Each row above shows both prices.
Is there a subscription?
No. Prepaid credit from $10, with no subscription or monthly fee. Each top-up locks your prices for 30 days.
How is cached input billed?
At the cached rate in the table. A model with no cached rate bills cached tokens at its input rate.
Are there rate limits?
Every key carries a request-per-minute limit and a concurrency limit.
Is the Grok API free?
No. xAI bills from prepaid credits and rejects requests once they run out; its docs list no free credits (read 2026-10-19). Here Grok bills from prepaid credit from $10.
How much does the Grok API cost?
Grok 4.7 is $2.00 input and $6.00 output per million tokens at xAI under 200K prompt tokens, double at 200K and up. Here it is $0.60 and $1.80 at any length.
What API does Grok use?
An OpenAI-compatible one: the OpenAI SDKs work with a new base URL and key. Every Grok model here answers the OpenAI chat completions format.
Which Grok models have an API?
Grok 4.6, Grok 4.7, Grok 4.5, Grok 4.3, Grok 4.20 Multi-Agent (0309): each is in the table above with its model id and price, and one key calls all of them.