Skip to main content
Watch: I Built an AI App Without Leaving Databricks

xAI - Closed weights

Grok 4.5 pricing and specs

Grok 4.5 is a closed-weights model from xAI that costs $2 per 1M input tokens and $6 per 1M output tokens on the first-party API, with a 500K-token context window.

Last verified from docs.x.ai. All sources

Input / 1M
$2
Output / 1M
$6
Context
500K tokens
Weights
Closed

Pricing per 1M tokens

ItemPrice / 1M tokens
InputPrompts up to 200,000 tokens$2
OutputPrompts up to 200,000 tokens$6
Cache readPrompts up to 200,000 tokens$0.30
Long-context inputPrompts over 200,000 tokens$4
Long-context outputPrompts over 200,000 tokens$12
Long-context cache readPrompts over 200,000 tokens$0.60

Note: Previous generation, still sold and priced. release date is the API release-notes entry (July 8, 2026); the x.ai 'Introducing Grok 4.5' post is dated July 16, 2026. Cached input is $0.30 (cheaper than 4.6/4.7 at $0.50). Aliases: grok-4.5-latest, grok-build-latest. max output not stated on any primary page. Long-context rates apply to all tokens once the prompt reaches 200k. Batch API not supported. Priority Processing 2x.

Specs

Context window
500,000 tokens
Release date
Provider
xAI
API model id
grok-4.5
Vercel AI Gateway id
spacexai/grok-4.5
Weights
Closed weights

What Grok 4.5 costs in practice

Worked from the standard list rates above, with the math shown so you can swap in your own token counts. These use the base rates, which apply while each request's prompt stays at or under 200,000 tokens; above that, Grok 4.5 bills $4 input and $12 output for the whole request.

One agent session

1M input tokens and 100K output tokens, no caching.

  • Input1M x $2 = $2.00
  • Output0.1M x $6 = $0.60

$2.60per session

A chat app

10,000 requests a day at 2K input and 500 output tokens each.

  • Input20M x $2 = $40.00
  • Output5M x $6 = $30.00

$70.00per day

$2,100.00 per 30-day month

The same session at a 90% cache hit

90% of the input is read from the prompt cache. The one-time cache write premium is not included.

  • Cached input0.9M x $0.30 = $0.27
  • Uncached input0.1M x $2 = $0.20
  • Output0.1M x $6 = $0.60

$1.07per session

Compare with

ModelInput / 1MOutput / 1M
Grok 4.5 (this page)$2$6
Grok 4.6xAI$2$6
Grok 4.7xAI$2$6
Qwen3.8-2.4T-A95BAlibaba Cloud (Qwen)$2$6
Qwen3.8-MaxAlibaba Cloud (Qwen)$2$6
Grok 4.20xAI$1.25$2.50
Grok 4.20 (Non-Reasoning)xAI$1.25$2.50
Grok 4.20 Multi-Agent BetaxAI$1.25$2.50
Grok 4.3xAI$1.25$2.50

Compare

Side-by-side pages with both models' prices, specs, cost examples and like-for-like benchmark rows.

FAQ

How much does Grok 4.5 cost per million tokens?

Grok 4.5 costs $2 per 1M input tokens and $6 per 1M output tokens on xAI's first-party API, per docs.x.ai on October 17, 2026. Per 1M tokens, cache reads cost $0.30. Prompts over 200,000 tokens are billed at $4 input and $12 output for the whole request.

What is Grok 4.5's context window?

Grok 4.5 has a 500,000-token context window.

Are Grok 4.5's weights open?

No. Grok 4.5 is a closed-weights model. You call it through xAI's API as grok-4.5 or through Vercel AI Gateway as spacexai/grok-4.5.

When was Grok 4.5 released?

xAI released Grok 4.5 on July 8, 2026.

Sources

Last verified from docs.x.ai.

Newsletter

Get model price changes as they ship

One email per week. New model releases, price cuts and what they mean for your bill.