Grok 4.5
SpaceXAI's July 2026 coding and agent model, since succeeded by Grok 4.6 and Grok 4.7
SpaceXAI (xAI) has replaced this model with Grok 4.7.
Context window
500K
Input / 1M tokens
$2.00
Output / 1M tokens
$6.00
Provider
SpaceXAI (xAI)
Per 1M tokens for prompts under 200K tokens: input $2.00, cached input $0.30, output $6.00. Prompts of 200K tokens or more are billed at $4.00 / $0.60 / $12.00 for every token in the request. 500K-token context. · Data verified 2026-11-08
Grok 4.5 (July 2026) is SpaceXAI's frontier model trained jointly with Cursor on a 1.5T-parameter V9 foundation, built for coding, agentic tasks and knowledge work with an emphasis on token efficiency. At launch it offered near-frontier capability at well below Claude Opus 4.8 prices. Grok 4.6 (August 2026) and then Grok 4.7 (September 2026) replaced it as xAI's flagship at the same $2/$6 per 1M token price. Grok 4.5 stays in the xAI API and has the cheapest cached input of the three ($0.30 vs $0.50 per 1M).
Capability index
Relative estimates (0-100) to place this model against its peers, grounded in published benchmarks.
How to access it
xAI API (model ID grok-4.5) and GitHub Copilot (added August 5, 2026). At launch it was also offered in Grok Build, Cursor and SuperGrok/X Premium; Grok Build now defaults to Grok 4.7. Not available in the EU at launch.
Strengths
- ✓4.2x more token-efficient than Claude Opus 4.8 on SWE-Bench Pro (xAI-reported at launch)
- ✓Cheapest cached input of xAI's Grok 4.5 to 4.7 models ($0.30 per 1M)
- ✓Ranked #4 on the Artificial Analysis Intelligence Index at launch (July 2026)
- ✓Strong performance on coding and agentic tasks
Best for developers who...
When to choose it (and when not to)
Reach for Grok 4.5 when...
- →Workloads already tuned on grok-4.5 that you do not want to retest yet
- →Cache-heavy workloads, where its $0.30 cached input beats the $0.50 of Grok 4.6 and 4.7
- →Cost-sensitive multi-step coding and debugging
Look elsewhere if...
- ✕New projects: Grok 4.7 costs the same per token and is xAI's most capable model
- ✕Prompts of 200K tokens or more, which are billed at double rates ($4/$12)
- ✕EU-based teams (not available in the EU at launch)
How to use it
- ›Set prompt_cache_key to enable 75% cached input token discount
- ›Route requests consistently to same server for reliable cache hits
- ›Use extended reasoning for complex problems (chain-of-thought built-in)
Quickstart
Pythonfrom openai import OpenAI
client = OpenAI(api_key="YOUR_XAI_API_KEY", base_url="https://api.x.ai/v1")
response = client.chat.completions.create(
model="grok-4.5",
messages=[{"role": "user", "content": "Write a Python function that parses ISO dates"}],
)
print(response.choices[0].message.content)xAI's API accepts OpenAI-compatible clients. Grok 4.7 is xAI's current model.
API model id: grok-4.5
Benchmarks
| Benchmark | Score | Notes |
|---|---|---|
| GDPval-AA v2 (Agentic Knowledge Work) | 1543 Elo (rank #4) | Behind Fable 5, GPT-5.5, Opus 4.8 |
| Artificial Analysis Intelligence Index | 54 (rank #4) | Well above average; leading models at similar price tier |
| SWE-Bench Pro (Token Efficiency) | 4.2x fewer tokens than Opus 4.8 | Primary efficiency claim; fewer total tokens = lower cost per task |
| Terminal-Bench v2 | Outperforms Opus 4.8 | According to SpaceXAI official benchmarks |
| DeepSWE 1.0 | Ahead of Opus 4.8 | SpaceXAI official data |
| Harvey Legal Agent Benchmark | Top spot | Legal-focused reasoning task |
Source: SpaceXAI official announcement
Compare Grok 4.5
Compare Grok 4.5 with any other model
Build a comparison →All model comparisons →