Grok 4.5 API pricing

Last verified

Grok 4.5 costs $2.00 per million input tokens and $6.00 per million output tokens on xAI's first-party API.

Rates

Token type$ per million
Input$2.00
Output$6.00
Cached input$0.30

Note: Doubles above a 200k-token prompt.

Output costs 3.0× input. That ratio is what decides whether a workload is expensive: reading a lot is cheap, generating a lot is not. Weight your estimates accordingly.

What it costs to run something

Monthly cost at Grok 4.5's rates, assuming no caching. Token figures are stated so you can check the arithmetic.

WorkloadMonthly cost
Support chatbot
1,000 conversations/month · 2,000 in + 500 out each
$7.00
RAG search
10,000 queries/month · 8,000 in + 400 out each
$184
Bulk extraction
10,000 documents · 3,000 in + 300 out each
$78.00
Coding agent
100 runs/month · 400,000 in + 20,000 out each
$92.00

With prompt caching on a stable prefix, the input side of each of these falls toward $0.30 per million — frequently a majority of the bill.

Caching economics for Grok 4.5

Cached input is billed at $0.30 per million tokens — 0.15× the base input rate. For a workload that resends the same prefix, that is the single largest lever available.

Cache reads are 85% cheaper than fresh input, so repeated prefixes are worth structuring for.

Where it sits, and what's cheaper

Among xAI's current models, Grok 4.5 is #3 of 3 by input price (1 = cheapest).

Cheaper models that may do the job — worth testing before you assume you need this tier:

ModelInputOutputSaving on input
Grok 4.3$1.25$2.5038%
o3-mini$1.10$4.4045%
o4-mini$1.10$4.4045%

The honest caveat: a cheaper model is only cheaper if it still does the task. Test on your actual workload rather than assuming, and measure quality before you migrate.

Tracking what you actually spend

These are list prices. What you are billed also reflects credits, discounts, caching and batch usage — which is why the number worth watching comes from xAI's billing API, not a calculator.

How to track spend across providers · Why billing data is daily

Source

Rates verified 2026-08-05 against xAI's pricing documentation. Prices change — if this page is more than a month old, check the source.