Grok 4.5: The Cursor-Trained MoE That Solves SWE-bench Pro Tasks in 4.2Γ Fewer Tokens
xAI and Cursor jointly release Grok 4.5 on July 8, 2026 β a 1.5T-parameter MoE model trained on trillions of tokens of real developer workflows, hitting 64.7% on SWE-bench Pro, 83.3% on Terminal-Bench 2.1, and 62.0% on DeepSWE 1.0, all at $2/$6 per million tokens with a 500K context window.
Executive Summary
On July 8, 2026, xAI (SpaceXAI) and Cursor jointly announced Grok 4.5, a frontier model built specifically for coding, agentic tasks, and knowledge work. Unlike previous Grok models that focused on general capability, Grok 4.5 represents a strategic pivot: a 1.5-trillion-parameter Mixture-of-Experts (MoE) model trained on trillions of tokens of real Cursor user interaction data, then further refined with reinforcement learning on deliberately difficult problems in realistic environments.
The model's headline achievement is token efficiency. xAI reports that Grok 4.5 resolves SWE-bench Pro tasks using an average of 15,954 output tokens β approximately 4.2Γ fewer than Claude Opus 4.8 (max) at 67,020 tokens for the same tasks. This efficiency, combined with aggressive pricing of $2 per million input tokens and $6 per million output tokens, positions Grok 4.5 as a cost-effective alternative to more expensive frontier models on coding and agentic workloads.
Grok 4.5 is immediately available through the xAI API, Cursor (across desktop, web, iOS, CLI, and SDK), and major model gateways (OpenRouter, Vercel, Cloudflare, Snowflake, Databricks Mosaic). EU availability is expected later in July 2026. The model supports configurable reasoning effort (low, medium, high), function calling, web search, X search, and code execution tools.
1. The Cursor Training Advantage
1.1 Trillions of Tokens of Real Developer Data
What distinguishes Grok 4.5 from previous coding-specialist models is its training data. While models like Claude Fable 5 and GPT-5.5 were trained on curated code corpora and synthetic tasks, Grok 4.5 was trained on trillions of tokens of Cursor user interaction data.
This dataset captures:
- Real developer workflows β how developers actually write, edit, and debug code in production environments
- Debugger interactions β step-through sessions, breakpoint analysis, stack trace interpretation
- Multi-file diffs β complex refactoring across entire codebases, not isolated functions
- User corrections β when developers reject or modify model suggestions, providing implicit feedback signals
The Cursor blog post states: "This dataset lets the model learn both from existing software as well as developer-agent interactions, capturing how developers work and how agents interact with their environments."
1.2 Broader Than Just Code
While Cursor's previous model, Composer 2.5, was trained to be a coding specialist, Grok 4.5 deliberately broadened the training data mix:
"For Grok 4.5 we kept the training data mix deliberately broader. This involved drawing on high-quality STEM tasks, research papers, and other knowledge work, so that the model gained proficiency across a wide range of domains."
This makes Grok 4.5 the first Grok model explicitly positioned for general knowledge work β data science, finance, legal research, and other computer-based tasks β rather than pure software engineering.
1.3 The Compounding Advantage
The most significant aspect of the Cursor training approach is the compounding data flywheel:
- Grok 4.5 is the default model inside Cursor
- Cursor users generate interaction data with Grok 4.5
- That data trains the next generation of models
- The next generation becomes the default in Cursor
This creates a feedback loop where the model that generates the training data is also the model being improved by it. As one analyst noted: "The thing Grok 4.5 has that neither of those models has at this moment is: it is the default model inside the editor that generated the training data."
2. Architecture: V9 Foundation with MoE
2.1 The V9 Foundation
Grok 4.5 is built on xAI's V9 foundation model, which completed its primary training run on May 26, 2026. The V9 architecture is a 1.5-trillion-parameter Mixture-of-Experts model.
Key architectural characteristics:
| Property | Value |
|---|---|
| Architecture | Mixture-of-Experts (MoE) |
| Total parameters | ~1.5 trillion |
| Context window | 500,000 tokens |
| Knowledge cutoff | February 1, 2026 |
| Training location | SpaceXAI data centers, Memphis |
| Training completion | May 26, 2026 (V9 base) |
The MoE architecture allows Grok 4.5 to activate only a subset of its parameters per token, making inference more efficient than a dense model of equivalent total parameter count. This is consistent with the observed token efficiency on benchmarks.
2.2 Reinforcement Learning on Difficult Problems
Beyond the base training, Grok 4.5 underwent reinforcement learning on deliberately difficult problems in realistic environments:
"We used reinforcement learning on difficult problems in realistic environments spanning both software engineering and broader knowledge work. These environments teach the model to investigate problems, use tools, recover from mistakes, and verify results."
The problems were specifically designed to be difficult enough that even frontier models fail:
"Many of these problems had to be designed to be difficult enough that even frontier models fail at them. As models improve, existing tasks stop teaching them anything new, and problems that once required extensive reasoning become routine."
2.3 Distributed Agent Environment Construction
xAI developed a distributed agent system to construct these training environments at scale:
"Engineers specify a problem and how a solution is verified, and large groups of agents construct, test, and refine each environment. Some would have taken teams of hundreds of engineers months to build."
This approach uses the previous model (Grok 4) to accelerate progress on the next model (Grok 4.5) β a form of self-improving training infrastructure.
3. Benchmark Performance
3.1 Software Engineering Benchmarks
Grok 4.5's benchmark results, sourced from xAI's official announcement, show strong performance with a notable pattern: competitive on efficiency-focused metrics, trailing slightly on absolute capability against the very top models.
| Benchmark | Grok 4.5 | Fable 5 (max) | GPT-5.5 (xhigh) | Opus 4.8 (max) | Opus 4.7 (max) |
|---|---|---|---|---|---|
| DeepSWE 1.0 (Datacurve, AA harnesses) | 62.0% | 66.1% | 64.31% | 55.75% | 40.12% |
| DeepSWE 1.1 (mini-swe-agent, Datacurve) | 53% | 70% | 67% | 59% | β |
| SWE-bench Pro (resolve rate) | 64.7% | 80.4% | 58.6% | 69.2% | 64.3% |
| SWE-bench Multilingual | 78.0% | β | 74.0% (Cursor internal) | β | β |
| Terminal-Bench 2.1 | 83.3% | 84.3% | 83.4% | 78.9% | 78.9% |
| SWE Marathon (pass@1) | 29.0% | 24.0% | β | 26.0% | 16.0% |
Key observations:
- DeepSWE 1.0: Grok 4.5 at 62.0% trails Fable 5 (66.1%) and GPT-5.5 (64.31%) but significantly beats Opus 4.8 (55.75%). The DeepSWE benchmark uses a verifier with only 0.3% false positive rate, making it more reliable than standard SWE-bench.
- SWE-bench Pro: At 64.7%, Grok 4.5 is competitive with Opus 4.8 (69.2%) but trails Fable 5 (80.4%).
- Terminal-Bench 2.1: At 83.3%, Grok 4.5 is essentially tied with GPT-5.5 (83.4%) and just 1 point behind Fable 5 (84.3%).
- SWE Marathon: Grok 4.5 leads at 29.0%, suggesting strength on very long-running tasks.
3.2 Token Efficiency: The Headline Metric
The most significant benchmark result is token efficiency:
| Model | Avg. Output Tokens per SWE-bench Pro Task | Relative to Grok 4.5 |
|---|---|---|
| Grok 4.5 | 15,954 | 1.0Γ (baseline) |
| Claude Opus 4.8 (max) | 67,020 | 4.2Γ |
| Claude Fable 5 (max) | ~35,000 (estimated) | ~2.2Γ |
Grok 4.5 resolves tasks with 4.2Γ fewer tokens than Opus 4.8. When combined with the pricing difference ($6/M output vs. $25/M for Opus 4.8), this translates to dramatically lower cost per completed task.
3.3 CursorBench Caveat
xAI explicitly excluded Grok 4.5 from CursorBench comparisons:
"Grok 4.5 has an advantage on CursorBench because an earlier snapshot of the Cursor codebase was accidentally included in training. The exact impact is unclear. That data has been removed for future models, and in parallel we are working on a larger update to CursorBench, hence the exclusion here."
This transparency about training data contamination is notable and suggests the benchmark scores would be inflated if included.
4. Pricing Analysis
4.1 Grok 4.5 Pricing Structure
| Variant | Input (per 1M tokens) | Output (per 1M tokens) | Cache Hit |
|---|---|---|---|
| Grok 4.5 (standard) | $2.00 | $6.00 | $0.50 |
| Grok 4.5 (fast) | $4.00 | $18.00 | β |
The fast variant offers lower latency at higher cost, suitable for interactive coding sessions where response time matters more than cost.
4.2 Competitive Pricing Context
| Model | Input (per 1M) | Output (per 1M) | Provider |
|---|---|---|---|
| DeepSeek V4-Flash | $0.14 | $0.28 | DeepSeek |
| DeepSeek V4-Pro | $0.435 | $0.87 | DeepSeek |
| Grok 4.5 | $2.00 | $6.00 | xAI |
| Claude Sonnet 5 (intro) | $2.00 | $10.00 | Anthropic |
| GPT-5.6 Terra | $2.50 | $15.00 | OpenAI |
| Claude Opus 4.8 | $5.00 | $25.00 | Anthropic |
| GPT-5.6 Sol | $5.00 | $30.00 | OpenAI |
| Claude Fable 5 | $10.00 | $50.00 | Anthropic |
4.3 Cost Per Completed Task
The real comparison is cost per successful task, not cost per token. Using the SWE-bench Pro average token counts:
| Model | Avg. Output Tokens | Output Price (per 1M) | Est. Output Cost per Task |
|---|---|---|---|
| Grok 4.5 | 15,954 | $6.00 | ~$0.096 |
| Claude Opus 4.8 (max) | 67,020 | $25.00 | ~$1.676 |
| Claude Fable 5 (max) | ~35,000 (est.) | $50.00 | ~$1.750 |
Grok 4.5 costs approximately 17Γ less per completed SWE-bench Pro task than Opus 4.8 and 18Γ less than Fable 5, even though its absolute benchmark score is lower.
4.4 Prompt Caching
xAI strongly recommends setting prompt_cache_key for reliable cache hits:
"We highly recommend setting a
prompt_cache_key(Responses API;x-grok-conv-idheader on Chat Completions). It routes a conversation's requests to the same server, making cache hits reliable; without it you often pay full input price on a cache-cold server."
With caching enabled, input costs drop to $0.50 per million tokens (75% discount), making long-context agent loops significantly cheaper.
5. Deployment Guidance
5.1 API Access
Grok 4.5 is available through the xAI API with OpenAI-compatible endpoints:
import os
from xai_sdk import Client
from xai_sdk.chat import user
client = Client(api_key=os.getenv("XAI_API_KEY"))
chat = client.chat.create(model="grok-4.5")
chat.append(user("Find and fix the bug, then explain it: function median(a){a.sort();return a[a.length/2]}"))
response = chat.sample()
print(response.content)
OpenAI-compatible SDK:
import os
from openai import OpenAI
client = OpenAI(
api_key=os.getenv("XAI_API_KEY"),
base_url="https://api.x.ai/v1",
)
response = client.responses.create(
model="grok-4.5",
input=[{"role": "user", "content": "Debug this function..."}],
)
print(response.output_text)
5.2 Configurable Reasoning Effort
Grok 4.5 supports three reasoning effort levels:
| Effort Level | Description | Recommended Use |
|---|---|---|
high (default) | Maximum reasoning depth | Complex debugging, multi-file refactoring |
medium | Balanced reasoning | Standard coding tasks, code review |
low | Minimal reasoning | Simple fixes, formatting, quick lookups |
# High effort (default) β for complex tasks
response = client.responses.create(
model="grok-4.5",
input=[{"role": "user", "content": "Debug this distributed system issue..."}],
reasoning_effort="high",
)
# Low effort β for simple, fast tasks
response = client.responses.create(
model="grok-4.5",
input=[{"role": "user", "content": "Format this JSON..."}],
reasoning_effort="low",
)
5.3 Available Tools
Grok 4.5 supports the following tools via the API:
- Function calling β custom tool definitions for domain-specific operations
- Web search β real-time web information retrieval
- X search β search within X (Twitter) content
- Code execution β run code in a sandboxed environment
5.4 Platform Availability
| Platform | Availability | Notes |
|---|---|---|
| xAI API | Available | Direct access, US-first |
| Cursor | Available | All plans, default model |
| Grok Build | Available | Default model for coding agent |
| Office add-ins | Available | Word, PowerPoint, Excel |
| OpenRouter | Available | Via model gateway |
| Vercel | Available | Via model gateway |
| Cloudflare | Available | Via model gateway |
| Snowflake | Available | Via Databricks Mosaic |
| Databricks Mosaic | Available | Via model gateway |
| EU API console | Pending | Expected mid-July 2026 |
5.5 Context Compaction for Long Agent Loops
For tool-heavy workloads with long conversation histories, xAI recommends context compaction:
"Long agent loops additionally benefit from context compaction; for tool-heavy workloads see function calling."
This is particularly relevant for multi-step agentic workflows where the conversation history grows beyond the 500K token window.
6. Integration with Prior Research
The Grok 4.5 launch connects to several ongoing research threads:
-
Claude Sonnet 5 Most Agentic Sonnet 1m Context Adaptive Thinking 2026 07 14: Claude Sonnet 5 launched July 10 with 1M context and adaptive thinking at $2/$10 pricing. Grok 4.5 matches the $2 input price but offers lower output pricing ($6 vs. $10) and superior token efficiency. Sonnet 5 has 1M context vs. Grok 4.5's 500K, but Grok's MoE architecture and Cursor training data give it an edge on coding-specific tasks.
-
Deepseek V4 Flash Pro Api Migration July 24 Deadline Architecture Pricing 2026 07 10: DeepSeek V4's $0.14/$0.28 pricing for Flash is still the cost floor, but Grok 4.5's 62.0% DeepSWE score vs. DeepSeek V4-Pro's 8% (DeepSWE) demonstrates the capability gap that raw pricing doesn't close. Grok 4.5 occupies the "affordable frontier" space between DeepSeek's open-weight models and Anthropic/OpenAI's premium tiers.
-
Gemini 3 5 Pro Rebuilt Frontier 2m Context Deep Think July 17 Showdown 2026 07 13: Gemini 3.5 Pro targets July 17 with 2M context and Deep Think reasoning. Grok 4.5's 500K context is smaller, but its token efficiency and Cursor training data may make it more practical for coding workflows where context window size is less critical than task completion efficiency.
-
Openai Gpt 56 Sol Terra Luna Public Launch Ultra Mode Cyber Safeguards July 9 2026: OpenAI's GPT-5.6 family uses a three-tier specialist strategy (Sol/Terra/Luna). Grok 4.5 represents a different approach: a single model with configurable reasoning effort, positioned between Terra and Sol in capability but closer to Terra in pricing.
-
Meta Muse Image Ecosystem Superintelligence Labs Watermelon 2026 07 08: Meta's Muse ecosystem focuses on image generation. Grok 4.5's strengths are in coding, reasoning, and agentic work β complementary capabilities rather than direct competition.
7. Key Takeaways
-
Token efficiency is the headline, not raw capability: Grok 4.5 doesn't lead on absolute benchmark scores β Fable 5 and GPT-5.5 still top the charts. But its 4.2Γ token efficiency on SWE-bench Pro tasks, combined with $6/M output pricing, makes it dramatically cheaper per completed task.
-
The Cursor training data is a moat: Trillions of tokens of real developer workflows, debugger interactions, and user corrections create a training advantage that pure code corpora can't match. The compounding flywheel β where the model that generates the data is also the model being improved β is hard to replicate.
-
Broader than just coding: Unlike Composer 2.5, Grok 4.5 was deliberately trained on STEM tasks, research papers, and knowledge work. It's positioned as a general-purpose agentic model, not just a coding specialist.
-
Transparent about training data contamination: xAI's exclusion of Grok 4.5 from CursorBench due to accidental training data inclusion shows commendable transparency. This kind of honesty about benchmark limitations is rare and should be noted.
-
The fast variant fills a specific need: At $4/$18, the fast variant is 3Γ more expensive but offers lower latency. This is relevant for interactive coding sessions where a 3-second wait breaks developer flow, but the standard variant is the cost champion for batch workloads.
-
EU availability is delayed: Grok 4.5 is not yet available in the EU API console or products, citing the EU AI Act. This creates a geographic split in access that may affect global teams.
-
Context compaction matters for agents: The 500K token window is sufficient for most coding tasks, but long-running agentic workflows will need context compaction. This is a practical consideration for teams building multi-step agent pipelines.
8. Future Directions
8.1 Immediate (July-August 2026)
- EU availability: Watch for the mid-July EU rollout. The EU AI Act compliance timeline will determine whether Grok 4.5 faces restrictions similar to those that affected Claude Fable 5.
- Independent benchmarks: The vendor-reported scores need independent replication. Watch for evaluations from yage.ai, BenchLM, and Scale AI's SEAL leaderboard.
- Gemini 3.5 Pro comparison: The July 17 launch creates a direct comparison opportunity between Grok 4.5's Cursor-trained efficiency and Gemini 3.5 Pro's 2M context and Deep Think reasoning.
- DeepSeek V4 stable release: The July 24 migration deadline creates a three-way comparison: Grok 4.5 (Cursor-trained frontier), DeepSeek V4 (open-weight frontier), and Gemini 3.5 Pro (long-context frontier).
8.2 Medium-Term (Q3-Q4 2026)
- Cursor data flywheel: As more developers use Grok 4.5 in Cursor, the training data grows. The question is whether this creates a sustainable advantage or whether competitors can replicate the approach.
- Next-generation models: xAI stated that "we will release new models of this size going forward." Expect iterative improvements building on the V9 foundation.
- Enterprise adoption: Will Grok 4.5's cost efficiency drive enterprise migration from more expensive models for coding workloads?
- Open-weight release: Will xAI ever release an open-weight version of Grok 4.5? The current strategy is closed API access, but the MoE architecture is increasingly common in open models.
8.3 The Bigger Picture
Grok 4.5 represents a strategic shift in xAI's model strategy: optimizing for cost-per-task rather than cost-per-token. By training on real developer workflows and optimizing token efficiency, xAI is targeting the practical reality that most teams care about cost per completed task, not cost per token.
This approach complements the specialist model strategies of OpenAI (Sol/Terra/Luna) and Anthropic (Sonnet 5 with effort parameter) by offering a single model that is inherently efficient rather than requiring users to tune effort levels or choose between model tiers.
The combination of Cursor training data, MoE architecture, and aggressive pricing creates a scenario where Grok 4.5 may become the default choice for coding and agentic workloads, even if it doesn't lead on absolute benchmark scores.
References & Resources
Official Sources
- xAI. (2026). Introducing Grok 4.5. https://x.ai/news/grok-4-5
- Cursor. (2026). Introducing Grok 4.5. https://cursor.com/blog/grok-4-5
- xAI. (2026). Grok 4.5 API Documentation. https://docs.x.ai/developers/grok-4-5
- Cursor. (2026). Grok 4.5 Model Documentation. https://cursor.com/docs/models/grok-4-5
- xAI. (2026). Release Notes β July 2026. https://docs.x.ai/developers/release-notes
- xAI. (2026). Pricing. https://docs.x.ai/developers/pricing
- xAI. (2026). Reasoning Effort Parameter. https://docs.x.ai/developers/model-capabilities/text/reasoning
- xAI. (2026). Prompt Caching. https://docs.x.ai/developers/advanced-api-usage/prompt-caching
- xAI. (2026). Context Compaction. https://docs.x.ai/developers/advanced-api-usage/context-compaction
- xAI. (2026). Function Calling. https://docs.x.ai/developers/tools/function-calling
Related Research
- Claude Sonnet 5 Most Agentic Sonnet 1m Context Adaptive Thinking 2026 07 14
- Deepseek V4 Flash Pro Api Migration July 24 Deadline Architecture Pricing 2026 07 10
- Gemini 3 5 Pro Rebuilt Frontier 2m Context Deep Think July 17 Showdown 2026 07 13
- Openai Gpt 56 Sol Terra Luna Public Launch Ultra Mode Cyber Safeguards July 9 2026
- Meta Muse Image Ecosystem Superintelligence Labs Watermelon 2026 07 08
- Ai News Week 2026 07 06 2026 07 13
This article was researched and written on July 15, 2026, based on official xAI announcements, Cursor blog posts, xAI API documentation, and Cursor model documentation. All benchmark figures are sourced from xAI's official launch announcement (https://x.ai/news/grok-4-5) and cross-referenced with BenchLM.ai and OpenRouter listings.
π Referenced by
- π¬Kimi K3: The First Open 3T-Class Model β 2.8T Parameters, Frontier Coding, and $3/$15 Pricing2026-07-20T00:00:00.000Z
- π¬Gemini 3.5 Flash: Frontier-Level Agents & Coding at Flash-Tier Cost β The Model That Delivered While Pro Rebuilt2026-07-17T00:00:00.000Z
- π¬MiniMax M2.7: The First Model to Evolve Itself β Self-Improving Agent Harnesses, 56.2% SWE-Pro, and $0.30/M Pricing2026-07-16T00:00:00.000Z
- π July 15: Grok 4.5 β The Cursor-Trained MoE That Redefines Cost-Per-Task2026-07-15T00:00:00.000Z