Grok 4.5 is a genuinely strong, cheap coding model — priced 60% below Claude Opus 4.8 and built on real Cursor developer session data — but it beats Anthropic’s flagship on some benchmarks and loses to it on others, so “Opus-class” is closer to marketing than measurement.
TL;DR
- Grok 4.5 launched July 8, 2026, under the SpaceXAI brand — xAI’s identity since folding into SpaceX earlier this year
- Built on a 1.5-trillion-parameter foundation model called V9, trained partly on real Cursor IDE session data after SpaceX’s ~$60B Cursor acquisition
- Priced at $2 per million input tokens and $6 per million output — Opus 4.8 costs $5/$25 for the same
- Cursor also offers a priority “fast” tier at $4/$18 — same model, faster serving, not a different weight class
- Context window is 500,000 tokens, a cut from Grok 4.3’s 1 million, likely traded for the ~80 tokens/sec inference speed
- On provider-run DeepSWE 1.0, Grok 4.5 scores 62.0% versus Opus 4.8’s 55.75% — but on the neutral DeepSWE 1.1 harness, Opus 4.8 wins, 59% to 53%
- Real-world cost estimates put it at $2.49 per resolved coding task vs. $5.07 for GPT-5.5 in Codex and $11.80 for Fable 5 in Claude Code
- It’s a genuine drop-in OpenAI SDK swap: change
base_urltohttps://api.x.ai/v1, set the model togrok-4.5, done- Not available in the EU at launch; xAI expects regional access by mid-July 2026
Every model launch page is full of bar charts these days. Grok 4.5’s is no exception, and Elon Musk’s line — “an Opus-class model, but faster, more token-efficient and lower cost” — is exactly the kind of claim that gets repeated without anyone checking it.
Here’s the part that’s more interesting than the marketing: it’s mostly true. Just not in the uncomplicated way it sounds. And going by pre-launch chatter, Musk’s own internal comparison point was reportedly Opus 4.7, not 4.8 — which makes “Opus-class” a fairer label than “beats Opus.” It’s also a meaningful jump from where the Grok lineup stood as recently as version 4.1, which was still a general-purpose model rather than something purpose-tuned for software engineering.
The timing isn’t incidental, either. Grok 4.5 shipped the same week OpenAI’s GPT-5.6 family moved from a Trump-administration-restricted preview to full public release, after Washington’s Center for AI Standards and Innovation completed its review. Two frontier launches from competing labs, cleared and shipped within a day of each other, are unusual even by 2026’s pace.
What SpaceXAI Actually Shipped

xAI now operates as SpaceXAI, following its merger into SpaceX earlier in 2026. Grok 4.5 is the company’s first major release since that consolidation — and its first since SpaceX closed on a roughly $60 billion deal to bring Cursor, the Anysphere-built coding editor, into the fold. SpaceXAI’s own launch announcement frames it as the company’s “most intelligent model” and the first built for more than software engineering alone.
That acquisition isn’t a footnote to the launch. It’s the actual training strategy. Instead of learning from finished, static code repositories, Grok 4.5 trained on real Cursor session data: multi-file edits, terminal errors, the moment a developer backtracks mid-refactor. That’s a different signal than “here’s what correct code looks like.” It’s closer to “here’s how someone actually got there.”
The foundation underneath is a 1.5-trillion-parameter model xAI calls V9, trained across tens of thousands of Nvidia GB300 GPUs using an asynchronous RL method — agentic rollouts run for hours in parallel with ongoing training rather than in sequence.
The positioning goes beyond coding, too. SpaceXAI’s launch post pitches Grok 4.5 for “software engineering, data science, finance, legal work, or anything else you do on a computer.” How well it actually performs on that non-coding work is still untested territory; the published benchmarks are entirely coding-focused.
Grok 4.5 Pricing: What It Costs vs. Opus 4.8 and GPT-5.5
The pricing argument is where Grok 4.5 makes its cleanest case, and the numbers back it up.
| Metric / Feature | SpaceXAI Grok 4.5 | Anthropic Claude Opus 4.8 | OpenAI GPT-5.5 (xhigh) |
|---|---|---|---|
| Input cost (per 1M tokens) | $2.00 (fast: $4.00) | $5.00 | Premium tier |
| Output cost (per 1M tokens) | $6.00 (fast: $18.00) | $25.00 | Premium tier |
| Context window | 500,000 tokens | 200,000 tokens | 1,000,000+ tokens |
The price drop comes with an immediate catch: xAI chopped the context window down to 500K tokens, half of what Grok 4.3 offered. No official reason given, but the likely tradeoff is speed — bounding the active attention window is what keeps V9 running at a sustained ~80 tokens per second on dense MoE inference. Need the full million? You’re stuck on 4.3.

The fast tier isn’t a separate model, worth repeating — it’s the same Grok 4.5 with priority serving for latency-sensitive agent loops. Pay for it only if your workflow is actually latency-bound, not throughput-bound.
⚠️ Sticker price isn’t the whole story. Benchmark estimates put Grok 4.5 at roughly $2.49 per resolved coding task, against $5.07 for GPT-5.5 in Codex and $11.80 for Fable 5 running in Claude Code. Independent testing is still catching up, but the gap suggests token efficiency compounds faster than raw per-token pricing implies.
Token efficiency is doing real work here. On SWE-Bench Pro, Grok 4.5 resolves the average task using about 15,954 output tokens; Opus 4.8 needs 67,020 for comparable work. That 4.2x gap is what turns a 60% sticker discount into something closer to 90% cheaper per finished task, per one developer’s independent teardown.
The Benchmark Trap: Grok 4.5’s Numbers Depend on Who’s Grading
This is the part most launch-day coverage skipped, and it’s the one that actually determines whether Grok 4.5 fits your workflow — and whether Grok can genuinely compete with ChatGPT on the tasks that matter to you.
| Benchmark | Grok 4.5 | Opus 4.8 (max) | GPT-5.5 (xhigh) |
|---|---|---|---|
| DeepSWE 1.0 (provider-run harness) | 62.0% | 55.75% | 64.31% |
| DeepSWE 1.1 (neutral mini-swe-agent harness) | 53% | 59% | 67% |
| Terminal Bench 2.1 | 83.3% | 78.9% | 83.4% |
| SWE Bench Pro | 64.7% | 69.2% | 58.6% |
| SWE Marathon (pass@1) | 29.0% | 26.0% | — |
DeepSWE 1.0 lets each provider deploy its own agent scaffolding. Grok 4.5 wins there by over six points against Opus 4.8. DeepSWE 1.1, run by the same evaluator (Datacurve) but locked to a single neutral mini-swe-agent harness, flips it — Opus 4.8 reclaims the lead, 59% to 53%. Which number you trust probably depends on whether your production setup looks more like a provider’s own scaffolding or a stripped-down agent loop.

The Cursor Code Leak: Are the Benchmarks Artificially Inflated?
Cursor disclosed in its own launch post that an earlier snapshot of its own codebase was accidentally included in Grok 4.5’s training data. The company says the exact impact is unclear, that the data has been removed for future models, and that a larger CursorBench update is in progress specifically because of this.
That’s a real asterisk, and it points in one direction: any benchmark where Grok 4.5’s edge shows up on Cursor-adjacent tasks specifically is the one to be most skeptical of. It doesn’t invalidate the DeepSWE or Terminal Bench numbers, which come from outside evaluators, but it’s exactly the kind of detail that separates a genuine capability story from a training-data shortcut.
Inside Cursor: How Grok 4.5 Actually Feels to Use

Benchmarks aside, early hands-on reaction is mixed rather than uniformly glowing. Developer Theo Browne’s independent teardown found Grok 4.5 dramatically cheaper per task than Fable 5, but reported it still struggles with agentic orchestration — knowing when to hand off subtasks rather than trying to do everything in one pass. Another developer’s first-impressions writeup described it as a clear step up from Composer 2.5, closer in feel to running GPT-5.5 inside Codex, and particularly solid on non-frontend work.
Broader sentiment tracked across Hacker News and the Cursor Discord in the first day after launch was split: strong on greenfield code generation, but noticeably weaker than Claude Opus 4.8 on deep-context reasoning across large, legacy multi-file repositories. If your work leans toward big inherited codebases rather than net-new features, that’s the gap worth testing against your own workload before switching.
Inside the editor itself, Grok 4.5 is selectable across tab completion, inline edits, chat, and Composer’s multi-file mode — it’s not limited to one interaction pattern, and it’s now the default model on Cursor’s free-usage pool rather than something you opt into.
Getting Grok 4.5 Into Your Stack
If you’re already on the OpenAI SDK, switching over to Grok is genuinely two lines of code:
python
# Quick-swap test configuration for Grok 4.5 import openai client = openai.OpenAI( base_url="https://api.x.ai/v1", api_key="YOUR_XAI_KEY" ) response = client.chat.completions.create( model="grok-4.5", # drops into standard OpenAI SDK calls messages=[{"role": "user", "content": "Find and fix the bug in this function"}] )
Keep your existing chat.completions.create() calls, just change the base_url and model name. xAI also ships a native xai_sdk and support for the newer Responses API format if you want streaming or built-in tool access, but neither is required to get running. It’s live in Grok Build, Cursor (all plans, doubled usage for launch week), the SpaceXAI API console, and through gateways like OpenRouter.
Who Should Use Grok 4.5
It’s the better call for teams running high-volume agentic coding loops where token cost compounds fast, anyone already standardized on Cursor, and developers who want a same-day API swap without rewriting integration code. It’s a weaker fit if you regularly need to hold an entire large legacy codebase in context — early tester feedback backs this up, not just the spec sheet — or if you’re in the EU, where access isn’t live yet. For mission-critical work where a 6-point swing on a neutral benchmark is expensive to get wrong, run your own eval set before committing. And treat the legal/finance positioning as an unproven claim until independent testing catches up.
FAQs
Q. Is Grok 4.5 better than Claude Opus 4.8?
Neither model wins across every benchmark. Grok 4.5 beats Claude Opus 4.8 on provider-run tests like DeepSWE 1.0 and Terminal Bench 2.1, while Claude leads on independent evaluations such as DeepSWE 1.1 and SWE-Bench Pro. If you need a lower-cost coding model, Grok 4.5 offers excellent value. If you work with large, complex codebases, Claude Opus 4.8 still delivers stronger reasoning.
Q. How much does Grok 4.5 cost?
Grok 4.5 charges $2 per million input tokens and $6 per million output tokens, making it around 60% cheaper than Claude Opus 4.8’s $5/$25 pricing. Cursor also offers a priority Fast tier at $4/$18. Independent estimates put Grok 4.5 at roughly $2.49 per resolved coding task, making it one of the most affordable frontier coding models available.
Q. Is Grok 4.5 worth it?
Grok 4.5 offers excellent value if you want strong coding performance without paying premium API prices. It combines competitive benchmarks, OpenAI SDK compatibility, and low token costs. However, if your work depends on deep reasoning across massive repositories, Claude Opus 4.8 remains the safer choice.
Q. Is Grok 4.5 available in Europe?
No. xAI did not launch Grok 4.5 in the European Union. The company expects to expand availability in mid-July 2026, although it has not announced an exact release date.
Q. Does Grok 4.5 work with the OpenAI SDK?
Yes. Grok 4.5 supports the OpenAI SDK. You only need to change the base_url to https://api.x.ai/v1 and select grok-4.5 as the model. Your existing chat.completions.create() code should continue to work with minimal changes.
Q. Why does Grok 4.5 have a smaller context window than Grok 4.3?
xAI reduced Grok 4.5’s context window from 1 million to 500,000 tokens. The company hasn’t explained the decision, but the smaller window likely helps the model maintain faster inference speeds of around 80 tokens per second during coding tasks.
Q. Did the Cursor acquisition affect Grok 4.5’s benchmark results?
Yes. Cursor confirmed that an earlier snapshot of its own codebase accidentally entered Grok 4.5’s training data. That mistake may have boosted performance on Cursor-related benchmarks. Cursor says it has removed the data from future training and is updating CursorBench to measure the model more accurately.
Q. Is Grok 4.5 good for coding?
Yes. SpaceXAI built Grok 4.5 primarily for software engineering. The model handles code generation, debugging, refactoring, and agentic coding well while keeping API costs low. If you want a high-performance coding model without paying flagship prices, Grok 4.5 stands out as a strong option.
Q. Is Grok 4.5 good for large legacy codebases?
Not always. Early developers report that Grok 4.5 performs best on greenfield projects and new feature development. Claude Opus 4.8 still handles large, inherited codebases and deep multi-file reasoning more consistently, making it the better choice for many enterprise workflows.
Related: How to Recover Deleted Grok Conversations (xAI) — 2026 Guide
| Disclaimer: This article is based on official announcements, published benchmarks, independent developer testing, and reputable third-party sources available at the time of writing. AI models evolve quickly, so pricing, availability, benchmarks, and features may change. We aim to keep this guide accurate and up to date, but we recommend verifying important details with the official documentation before making technical or purchasing decisions. |
