Last verified
PREVIOUS GROK500K CONTEXTTEXT + IMAGE INPUTCONFIGURABLE REASONINGTOOLS + CODE EXECUS REGIONS ONLY

Grok 4.5 API Pricing

Grok 4.5 is SpaceXAI's previous-generation frontier model for coding, agentic tasks, and knowledge work, superseded by Grok 4.6 on August 12, 2026. The official SpaceXAI (formerly xAI) pricing page lists $2.00/M input, $0.30/M cached input, and $6.00/M output; the model page lists 500K context and text + image input. Cached input was cut from $0.50/M to $0.30/M on August 13, 2026 — the newer Grok 4.6 launched at the $0.50/M cache price this tier used to carry, which leaves Grok 4.5 the cheaper of the two on cache-heavy work.

Input - per 1M tokens
$2.00/M
Previous Grok 4.5 live
Output - per 1M tokens
$6.00/M
Reasoning billed as output live
Cached input
$0.30/M
Prompt cache SpaceXAI row -85%
Effective - agentic blend
$1.04/M
92/8 split - 82% cache
§ 01 / TERMINAL

Run the numbers.

Live calculator pre-loaded with Grok 4.5's sub-200K rates from SpaceXAI's pricing page. The model supports configurable reasoning, tool use, code execution, and text plus image input. Send a prompt of 200K tokens or more and every rate below doubles, across the whole request.

$ /mo
Workload split
Prompt cache hit rate
Tokens you can process
Words equivalent (English)
Effective rate
Open full calculator (all models · share URL · CSV) →
§ 02 / SCENARIOS

Real-world presets.

§ 03 / TOKENIZER

Paste text. See tokens. See cost.

Estimate · grok-tokenizer-estimate · ≈3.85 chars/token Auto-counts as you type

This is a chars-per-token approximation, not a real tokenizer. Actual tokens vary by language, code density, and tool-call overhead — counts are typically ±10–20% off for English prose, more for code or non-Latin scripts. For exact billing, use the vendor's official tokenizer.

Characters 559
Words 91
Tokens (estimated) 145 tokens
Cost as input · uncached $0.00029 USD
Cost as output · uncached $0.00087 USD
Cost as cached input $0.00004 USD
§ 04 / SHELF

Up against the shelf.

All models →
Model Input /M Output /M Effective blended Context Best for
Grok 4.5 Current $2.00 cache $0.30 $6.00 $1.04 previous Grok, cheaper cache 500K Coding, agents, and knowledge work
Grok 4.6 $2.00 cache $0.50 $6.00 $1.19 newest Grok 500K Newest frontier Grok, dearer cache
Grok 4.3 $1.25 cache $0.20 $2.50 $0.558 cheaper previous Grok 1M Lower-cost Grok chat and tools
Grok Build 0.1 $1.00 cache $0.20 $2.00 $0.476 coding early access 256K Dedicated coding workflows
Grok 4.20 Multi-Agent $1.25 cache $0.20 $2.50 $0.558 multi-agent scaffolding 1M Pinned long-context agent loops
Claude Sonnet 5 $2.00 cache $0.20 $10.00 $1.36 Anthropic coding 1M Claude-class coding agents
GPT-5.6 Sol $4.00 cache $0.40 $20.00 $2.73 OpenAI flagship 1.05M OpenAI frontier workloads
DeepSeek V4 Pro $1.32 cache $0.044 $3.96 $0.569 budget reasoning 1M Low-cost reasoning alternative

Frequently asked.

Grok 4.5 pricing questions, with SpaceXAI token rates separated from tool-call and cache assumptions.

Q · 01 What is Grok 4.5's API price? +
SpaceXAI lists grok-4.5 at $2.00/M input, $0.30/M cached input, and $6.00/M output. These are USD prices per 1M tokens for prompts below 200K tokens; at or above that threshold every rate doubles to $4.00 / $0.60 / $12.00.
Q · 02 Does Grok 4.5 support prompt caching? +
Yes. The model detail page lists cached input at $0.30/M, versus $2.00/M for fresh input — an 85% discount, and cheaper than the $0.50/M the newer Grok 4.6 charges. SpaceXAI recommends setting a prompt cache key so long conversations route to the same server and reliably hit cache.
Q · 03 What context window does Grok 4.5 have? +
The SpaceXAI models page lists 500,000 tokens for Grok 4.5, the same window as the newer Grok 4.6. Grok 4.3 and the Grok 4.20 variants are listed at 1M, so the 500K models are not the longest-context Groks.
Q · 04 Which regions can I call Grok 4.5 from? +
As of our check on August 13, 2026, the SpaceXAI model page lists us-east-1 and us-west-2 — US regions only. At launch the docs carried a note that the model was not yet in the API console for EU users; that note is no longer on the page, and no EU region has replaced it.
Q · 05 Is Grok 4.5 only for coding? +
No. SpaceXAI describes it as a frontier model for coding, agentic tasks, and knowledge work. It supports configurable reasoning and tools including function calling, web search, X search, and code execution.
Q · 06 How does Grok 4.5 compare with Grok 4.3 on price? +
Grok 4.5 is more expensive: $2/$6 versus Grok 4.3's $1.25/$2.50. It is the latest model, but Grok 4.3 remains a cheaper option with a larger 1M context window.