Grok 4.5

xai/grok-4.5

smartest model for coding, agentic tasks, knowledge work.

cmd --model xai/grok-4.5
Intelligence index
55.8
Output speed
51 tok/s
Input
$2 /M
Output
$6 /M
Cache read
$0.50 /M
Agent-loop cost
$0.95 /M in
Context window
500K tokens
Released
July 8, 2026
Modalities

vs. the lineup

Grok 4.5 beside its stablemates and nearest rivals. The ◆ marks the best value in each column across every row shown.

pin a rival:
ModelIntelligenceCodingSpeedInput $/MOutput $/MBlended $/MContext
Muse Spark 1.256.872.2$1.25$4.25$21.05M
GPT-5.6 Terra56.676.7120.5$2$12$4.501.05M
GPT-5.556.374.9$5$30$11.25200K
Grok 4.555.872.451$2$6$3500K
Step 3.7 Flash30.939.6391.3$0.20$1.15$0.44256K
Grok 4.6$2$6$3500K
DeepSeek V4 Pro (latest)pinned45.359.463.3$0.43$0.87$0.541M
DeepSeek V4 Flash (latest)pinned5269.1115.9$0.14$0.28$0.181M

coding performance

The Intelligence Index and its sub-scores, ranked against every scored model in the catalog. A metric that has not been measured for Grok 4.5 has been left empty.

Coding Index
72.4
#9 of 40 scored
Terminal-Bench
81.6
#9 of 40 scored
Intelligence Index
55.8
#10 of 46 scored
Long-context reasoning
74
reasoning across a long context
SciCode
54.1
scientific coding
GPQA Diamond
93.1
graduate-level QA

usage calculator

How far a month of credits goes on Grok 4.5.

Input tokensfresh prompt
800
Output tokensmodel reply
180
Cache read tokensre-read context
50K
cost / request $0.028 · in $2 · out $6 · cache $0.50 per M
fresh input 6%output 4%cache reads 90%
Requests / 30 days
361
$10 credits ÷ $0.028 per request
~72 quick fixes~14 bug fixes~2 feature PRs

what real work costs

Real coding tasks priced end to end on Grok 4.5, from a quick lookup to a full-repo agent run.

One agent task
$0.23
180K in at 75% cache hit, 12K out
What you pay
$1.20 /M
all-in across every token that task touched
Sticker input
$2 /M
cache reads bill at $0.50 /M instead
TaskTokens in · outGrok 4.5Muse Spark 1.2Claude Haiku 4.5
Quick lookup / one-liner8K · 1K$0.01$0.0063$0.0065
Review a 500-line PR60K · 4K$0.08$0.05$0.04
Fix a bug (agent loop)180K · 12K$0.23$0.13$0.12
Refactor a module320K · 20K$0.41$0.23$0.21
Full-repo agent run900K · 45K$1.02$0.54$0.49

frequently asked

What is Grok 4.5 best for?+
Grok 4.5 is SpaceXAI's smartest model with frontier performance on coding, knowledge work, and STEM.
How much does Grok 4.5 cost?+
$2/M input and $6/M output, cache reads $0.50/M. In an agent loop most input is cache-read, so the effective input rate is about $0.95/M.
Which plan do I need?+
Available on Go and above.
How do I switch to it?+
Run cmd --model xai/grok-4.5, or type /model in a session and pick it. You can switch mid-session without losing context.

Ship code that matches your taste

Command Code is the AI coding agent that continuously learns your taste. Start for $1.

Benchmarks from Artificial Analysis (v4.1)commandcode.ai/models/grok-4-5