xAI pricingPrevious flagship

Grok 4.5 pricing

Grok 4.5 bills per million tokens, metered separately for input and output. The current rates are below, along with the parts of the bill a per-token estimate leaves out.

Input
$2
per million tokens
Output
$6
per million tokens
Cached input
$0.30
per million tokens
Matched to live catalogRates checked September 16, 2026 against xAI published pricing.

Grok 4.5 rates in full

All figures are USD per million tokens, taken from xAI’s own pricing documentation. The API model identifier is grok-4.5.

Per million tokensStandard, <200K tokensStandard, ≥200K tokens
Input$2$4
Cached input read$0.30$0.60
Output$6$12

Context window: 500K tokens.

What the rate table does not tell you

Grok 4.5 shares the same headline input and output rate as Grok 4.6; the difference is cached input, priced 67% higher on the newer 4.6 than on 4.5.

Requests at or above 200K tokens double every rate on this table, the same structure as Grok 4.6.

The Batch API is not supported on Grok 4.5.

A worked monthly example

Take 500,000 calls in a month at 3,000 input tokens and 400 output tokens each. That is 1.5 billion input tokens against 200 million output tokens, so input is 88% of the token volume.

LineTokensRateCost
Input1,500M$2$3,000
Output200M$6$1,200
Total1,700M$4,200

Output is 12% of the tokens and 29% of the bill. That inversion is why prompt trimming so often fails to move the invoice, and it is the single most common reason a forecast built on Grok 4.5 comes in under the real number.

How this page stays current

The rate on this page was read off xAI’s published pricing and recorded with the date it was checked, September 16, 2026. The date changes only when someone checks again, not on each deploy. This model is also in the live model catalog Spendline uses to price API traffic, and our automated checks compare the two and fail if they disagree. At the last build the catalog agreed: $2 input and $6 output.

Frequently asked questions

How much does the Grok 4.5 API cost?

Grok 4.5 is billed per million tokens, metered separately for input and output. As of September 16, 2026 the rate is $2 per million input tokens and $6 per million output tokens, with cached input read at $0.30.

Why is my Grok 4.5 bill higher than the per-token estimate?

Most estimates multiply expected tokens by the input rate and stop there. Output is priced at $6 against $2 for input, so responses usually dominate the bill even when prompts look larger. Reasoning tokens bill as output. Retries and agent fan-out pay full input cost for calls that produced nothing. And a cache that gets written but never read is pure overhead rather than a saving.

What is the cheapest way to run Grok 4.5?

Caching a stable prefix takes repeat input to $0.30, 15% of the standard rate, and pays for itself once the cached content is read more often than it is written. The larger lever is usually routing: sending the requests that do not need this tier to a cheaper model, and capping spend per customer before the call goes out.

How do I track Grok 4.5 spend per customer or per feature?

Provider reports group usage by model, project or API key. Your application supplies the customer and workflow context needed to see cost per account. That means passing the customer, team or agent with each request from your server and recording the resolved cost against it. Spendline does this for supported requests routed through it, and checks configured budgets before forwarding them. Actual response cost can differ from the pre-call estimate.

See cost per customer, not just per token

A rate card tells you what a token costs. It does not tell you which customer, team or agent spent it. Spendline records attributed cost for supported requests routed through it and checks configured budgets before forwarding them.

Book a 30-minute call Explore a sample account