Grok 4.5 Explained: Coding Benchmarks, 80 TPS, Token Efficiency, and API Pricing

Grok 4.5 is a frontier model aimed at coding, agents, and knowledge work. Its strongest practical advantages are the combination of competitive engineering performance, up to 80-token-per-second serving, a 500K context window, and lower token consumption on the published SWE-Bench Pro comparison. The training approach combines large-scale infrastructure, curated data, Cursor interaction traces, and reinforcement learning in realistic tool-using environments. That helps move the model from isolated code generation toward longer, end-to-end workflows. **The main story is not only that Grok has become more capable; it is that xAI is competing on the full cost and speed of completing real work.**

发布于 2026年7月11日generalGEO 评分: 013 次阅读
Grok 4.5Grok 4.5 benchmarkGrok 4.5 pricingGrok 4.5 APIGrok coding modelGrok 4.5 CursorxAI coding modelagentic AI modelSWE-Bench ProTerminal-Bench 2.1Grok token efficiency
图片为Grok 4.5的介绍封面,背景为深色科技风格,带有模糊的“X”形图案。画面中央以蓝色和紫色字体显示“Grok 4.5 Explained”,下方用白色字体标注“Coding Benchmarks, 80 TPS, Token Efficiency, and API Pricing”。画面底部有四个图标,分别是代码符号、秒表、堆叠方块和美元符号,分别代表编码基准、80 TPS、Token效率和API定价。该图片与文档中对Grok 4.5的SEO相关设置内容相关,作为封面用于吸引读者关注。

Grok 4.5 Explained: Coding Benchmarks, 80 TPS, Token Efficiency, and API Pricing

Introduction

Grok 4.5 puts xAI back into the front row of the coding-model race.

Released on July 8, 2026, the model is designed for software engineering, agentic tasks, and broader knowledge work. It was trained with Cursor and is now available through the xAI API, Grok Build, and Cursor. The headline is not only model quality. Grok 4.5 is also positioned around faster serving, fewer generated tokens, and a lower cost per completed task.

The official model documentation lists a 500,000-token context window, text and image input, configurable reasoning, function calling, structured output support, and API pricing of $2 per million input tokens** and **$6 per million output tokens.

This article explains where Grok 4.5 performs well, how its efficiency claims should be interpreted, what changed in training, and why the surrounding inference stack may become just as important as the model itself.

图片是SpaceX AI创始人Elon Musk于2026年7月8日发布的推文。内容提到,基于测试阶段客户积极反馈,SpaceX AI将于明日向公众发布Grok 4.5版本。该模型属于Opus系列,但运行速度更快、处理效率更高、成本更低。推文下方显示时间为下午2:21,发布日期为2026年7月8日,有5.3M次浏览。此推文与文档中介绍Grok 4.5模型发布及特点的内容相呼应。

Grok Gets Its Own Opus-Class Coding Model

Grok 4.5 is xAI's flagship model for coding, agentic work, and general computer-based knowledge tasks. The official launch materials describe it as a model that can handle long-running work, use tools, recover from errors, and verify results instead of stopping after a single response.

That places it in the same broad category as high-end models used for autonomous coding, repository-level changes, technical research, data analysis, and multi-step office workflows.

Core Model Specifications

Item Grok 4.5
Model name grok-4.5
Primary use cases Coding, agentic tasks, knowledge work
Input modalities Text and images
Output modality Text
Context window 500,000 tokens
Reasoning Configurable
Function calling Supported
Structured outputs Supported
Input price $2 per 1M tokens
Cached input price $0.50 per 1M tokens
Output price $6 per 1M tokens
Reported serving speed Up to 80 tokens per second
Availability xAI API, Grok Build, Cursor

The 500K context window is large enough for substantial codebases, long technical documents, multi-file investigations, and extended agent histories. A large context window does not automatically guarantee better results, but it gives tools more room to provide relevant source material without aggressive truncation.

Coding Benchmark Results

The official xAI announcement publishes results across several software-engineering evaluations. Grok 4.5 is not the top model on every benchmark, but it remains competitive with other frontier systems.

Benchmark Grok 4.5 Selected comparison results
DeepSWE 1.0 62.0% Fable max 66.1%; GPT-5.5 xhigh 64.31%; Opus 4.8 max 55.75%
DeepSWE 1.1 53.0% Fable max 70%; GPT-5.5 xhigh 67%; Opus 4.8 max 59%
Terminal-Bench 2.1 83.3% Fable max 84.3%; GPT-5.5 xhigh 83.4%; Opus 4.8 max 78.9%
SWE-Bench Pro 64.7% Fable max 80.4%; Opus 4.8 max 69.2%; Opus 4.7 max 64.3%
SWE Marathon 29.0% Opus 4.8 max 26.0%; Fable max 24.0%; Opus 4.7 max 16.0%

图片为DeepSWE得分柱状图,展示了不同模型在该基准测试中的表现。Fable max得分最高,为66.1%;GPT 5.5 xhigh得分为64.31%;Grok 4.5得分为62.0%;Opus 4.8 max得分为55.75%;Opus 4.7 max得分为40.12%。该图与上文提到的xAI官方公告中跨多个软件工程评估结果相呼应,直观呈现了Grok 4.5在DeepSWE基准测试中的得分情况。

These numbers suggest a model that is especially strong on terminal work, practical engineering tasks, and longer agentic workflows. They should still be read carefully. Benchmark harnesses, reasoning settings, tool access, and provider-specific configurations can affect the outcome.

Cursor also disclosed that an older snapshot of the Cursor codebase was accidentally present in training data, which could influence CursorBench. The company excluded that benchmark from its public comparison and said the data would not be used for future models.

图片展示了Grok 4.5在多个基准测试中的表现。其中,Grok 4.5在Terminal-Bench 2.1中得分为83.3%,在SWE-Bench Multilingual中得78.0%,在DeepSWE 1.0(Artificial Analysis)中得62.0%,在SWE-Bench Pro中得64.7%。对比其他模型,如Opus 4.8、GPT-5.5、Composer 2.5、Fable 5等,Grok 4.5在部分测试中表现突出。该图与上文提到的Grok 4.5在多个软件工程评估基准测试中的表现相呼应,直观呈现了其在不同测试中的得分情况。

Faster Serving and Lower Token Use

The most practical claim around Grok 4.5 is efficiency.

xAI says the model is served at up to 80 tokens per second. That is fast enough to make long reasoning traces, repository edits, and iterative agent loops feel more responsive than slower premium models.

The company also reports that Grok 4.5 used an average of 15,954 output tokens per SWE-Bench Pro task, compared with 67,020 output tokens for Opus 4.8 at its maximum setting. That works out to roughly 4.2 times fewer output tokens on the measured workload.

图片展示了Grok 4.5和Opus 4.8(最高级别)在每项SWE Bench Pro任务的平均输出令牌数对比。Grok 4.5平均输出令牌数为15,954,Opus 4.8(最高级别)为67,020,Grok 4.5的令牌数是Opus 4.8的4.2倍。图中还标注了Grok 4.5的令牌数为4.2倍更少,直观呈现了Grok 4.5在令牌效率上的优势,与上下文提到的Grok 4.5平均使用15,954输出令牌,相比Opus 4.8在最大设置下67,020输出令牌,平均少用4.2倍输出令牌的内容相契合。

Token efficiency matters for three reasons:

  1. Lower latency: fewer generated tokens usually mean the task finishes sooner.
  2. Lower API cost: output tokens are often more expensive than input tokens.
  3. Shorter agent loops: concise reasoning can reduce the time spent passing large histories between tools.

The important metric is not simply price per million tokens. Teams should compare the cost of completing the same task at an acceptable quality level. A model with a higher listed token price can still be cheaper if it needs fewer attempts, fewer tool calls, or fewer generated tokens.

API Pricing

The base API price is:

Token type Price
Input $2 per 1M tokens
Cached input $0.50 per 1M tokens
Output $6 per 1M tokens

Cursor also lists a faster variant at $4 per million input tokens** and **$18 per million output tokens inside its own model offering. Pricing and availability may differ by platform, so production teams should confirm the rate in the environment they actually use.

From Code Generation to Full Workflows

Grok 4.5 is meant to do more than complete a function or explain an error. The official examples include:

  • Building a solar-system simulation from one prompt
  • Creating end-to-end web applications
  • Producing PowerPoint slides with native shapes
  • Constructing multi-sheet spreadsheet models
  • Working across software engineering, finance, legal, and research tasks
  • Using tools over long-running agent sessions

图片展示了Grok 4.5构建的太阳系模拟示例。上方输入指令要求创建一个美观的宇宙和太阳系模拟,需具备可调节时间、真实运动、轨道、星星等功能,使用three.js,HUD需符合现代设计原则。下方呈现了模拟效果,太阳位于中心,周围有水星、金星等行星,界面有时间、轨道、标签、星星、轨迹等控制选项,还显示了太阳、水星、金星的类型、质量、半径等信息。此图与上下文介绍的Grok 4.5在办公工作中的应用相呼应,展示了其在构建复杂任务方面的成果。

The solar-system demo is useful because it combines design, front-end code, 3D rendering, controls, and interaction logic. It is not proof that every one-prompt application will be production-ready, but it shows the kind of integrated task the model is being optimized to handle.

Grok 4.5 also extends into office work. In the launch materials, it creates structured business-review slides and works with spreadsheets that involve formulas, web research, and multiple sheets.

图片展示了Grok 4.5在办公工作中的应用示例,即制作一份包含5页的季度业务回顾报告。界面左侧为PowerPoint编辑区域,显示了“Q3 Review”演示文稿,包含“Outlook”“FY27: invest behind the momentum”等内容。右侧是Grok 4.5的编辑界面,提示“Outline a 5-slide quarterly business review”并列出大纲要点,如“Q3 Business Review”“Revenue growth”等。该图片与上下文介绍的Grok 4.5在办公工作中的应用相契合,展示了其生成结构化商业评审幻灯片的能力。

For development teams, a practical workflow may look like this:

  1. Give Grok 4.5 the repository context and a clearly scoped task.
  2. Let it inspect files, implement the change, and run validation commands.
  3. Require it to provide a concise change summary and evidence from tests.
  4. Review the patch with a human or a second model before merging.
  5. Keep production deployment and sensitive operations behind explicit approval.

A model can be fast and capable while still producing incorrect assumptions, unsafe changes, or incomplete validation. The best use of agentic coding models is usually structured automation with visible evidence, not unrestricted autonomy.

Efficiency Gains Come From a Different Training Strategy

The efficiency gains are not presented as a simple serving optimization. Both xAI and Cursor describe changes across model architecture, data preparation, reinforcement learning, and distributed training.

Mixture-of-Experts Architecture

Cursor describes Grok 4.5 as a mixture-of-experts model. In a MoE system, only part of the network is activated for a given token or task. This can increase total model capacity without requiring every parameter to participate in every inference step.

The official sources do not publish enough implementation detail to calculate the exact compute used per token. It is therefore more accurate to focus on measured behavior—speed, benchmark quality, and token consumption—than to infer performance from an unverified parameter count.

Training at GB300 Scale

xAI says Grok 4.5 was trained across tens of thousands of NVIDIA GB300 GPUs. Training at this scale requires more than raw hardware. Long runs need stable distributed systems, checkpoint recovery, networking, data pipelines, and monitoring that can keep thousands of accelerators productive.

The announcement emphasizes stability techniques designed for very large training runs. This matters because a failure in a long experiment can waste a large amount of compute if the system cannot recover efficiently.

Better Data Density, Not Just More Tokens

The training pipeline included:

  • Large-scale deduplication
  • Quality scoring
  • Domain-focused filtering
  • High-signal data selection
  • A broader mix of coding, science, engineering, mathematics, and knowledge-work material

The objective is to improve the density of useful training signals instead of relying only on raw token volume. Repeated, low-quality, or weakly relevant data can increase training cost without providing the same improvement as carefully selected examples.

Cursor Interaction Data

Cursor says the model was trained with trillions of tokens of Cursor data. According to the company, the dataset captures interactions between users, codebases, software tools, and agents.

This distinction is important. A code-only dataset teaches syntax, patterns, libraries, and common implementations. Interaction data can also teach the sequence of work:

  • How developers inspect an unfamiliar repository
  • Which files they open before making a change
  • How they respond to test failures
  • When they use terminal commands
  • How they revise a patch after feedback
  • How an agent interacts with tools and its environment

That helps explain why Grok 4.5 is positioned around software engineering rather than isolated code completion.

Reinforcement Learning on Difficult, Realistic Tasks

xAI says its reinforcement-learning program covers hundreds of thousands of tasks, with a focus on multi-step software engineering and other technical work.

Cursor describes environments that train the model to:

  1. Explore the problem
  2. Use tools
  3. Recover from mistakes
  4. Verify the result
  5. Continue working across long task horizons

The companies also built distributed agent systems to generate, test, and refine these training environments at scale. Some agent rollouts can run for hours while the larger training process continues asynchronously.

This is a meaningful change from narrow benchmark optimization. The model is being trained not only to produce a correct final answer, but to navigate the process that leads to one.

One More Thing: Systems Engineering May Be the Next Battleground

Model weights are only one part of the final product.

A public statement from Elon Musk said Grok 4.5 was not yet using xAI's internally developed C/C++ inference software mapped specifically to GB300 hardware. He suggested that the optimized stack could potentially double serving speed or improve it further.

图片展示了Elon Musk和Farzad关于Grok 4.5的推文。Musk称Grok 4.5未使用xAI内部开发的C/C++推理软件,与GB300硬件完美匹配,运行速度可能提升一倍。Farzad认为AI达到重要里程碑,Grok 4.5是体现这一点的绝佳例子,处理项目或任务时需不断改进。图片与上下文紧密相关,上下文提到Grok 4.5在系统工程方面可能成为下一个重点,图片中的推文进一步阐述了模型性能提升对系统优化的影响。

This is a forward-looking claim rather than a measured production result, so it should not be treated as guaranteed performance. Still, it highlights where model competition is moving.

When frontier models become closer in benchmark quality, the surrounding system can create the practical advantage:

  • Kernel and compiler optimization
  • Request scheduling
  • Mixture-of-experts routing
  • Quantization
  • Memory management
  • Prompt caching
  • Batch processing
  • Hardware-specific inference code
  • Agent orchestration
  • Tool latency and reliability

For users, this means model comparisons should include more than a single intelligence score. A model that responds faster, produces fewer tokens, uses caching effectively, and completes tasks with fewer retries may deliver better real-world value even when another model leads on a benchmark.

Getting Started with the Grok 4.5 API

Grok 4.5 is available through xAI's Responses API. The following Python example uses the OpenAI-compatible client interface:

import os
from openai import OpenAI

api_key = os.environ.get("XAI_API_KEY")
if not api_key:
    raise RuntimeError("Set the XAI_API_KEY environment variable first.")

client = OpenAI(
    api_key=api_key,
    base_url="https://api.x.ai/v1",
)

response = client.responses.create(
    model="grok-4.5",
    input=(
        "Review this JavaScript function, fix the bug, "
        "and explain the change: "
        "function median(values) { values.sort(); "
        "return values[values.length / 2]; }"
    ),
)

print(response.output_text)

Before using the model in production:

  1. Store the API key in an environment variable or secret manager.
  2. Add timeouts and retry handling.
  3. Log token usage and total request cost.
  4. Validate tool calls before execution.
  5. Require approval for destructive or production-impacting actions.
  6. Pin a dated model version when deterministic behavior matters.

FAQ

What is Grok 4.5?

Grok 4.5 is xAI's frontier model for coding, agentic tasks, and knowledge work. It supports text and image input, configurable reasoning, function calling, and structured outputs.

How large is the Grok 4.5 context window?

The official xAI model documentation lists a 500,000-token context window. Actual usable context may depend on request format, tool output, and platform-specific limits.

How much does the Grok 4.5 API cost?

The published base price is $2 per million input tokens, $0.50 per million cached input tokens, and $6 per million output tokens. Platform-specific variants or priority serving may use different rates.

Is Grok 4.5 better than Claude Opus for coding?

The answer depends on the benchmark and workflow. Grok 4.5 is competitive on several engineering tests and leads some comparisons, while other models remain ahead on others. Speed, token use, tool reliability, and task-completion cost should be evaluated alongside benchmark scores.

Why is Grok 4.5 described as token-efficient?

xAI reports that Grok 4.5 used 15,954 output tokens per SWE-Bench Pro task on average, compared with 67,020 for Opus 4.8 at its maximum setting. That is about 4.2 times fewer output tokens for the measured workload.

Can Grok 4.5 process images?

Yes. The official model page lists text and image input with text output. This makes it suitable for tasks such as screenshot analysis, document review, and visual context inside an agent workflow.

Is Grok 4.5 available in Cursor?

Yes. Cursor says Grok 4.5 is available across its desktop, web, iOS, CLI, and SDK experiences. Usage allowances and pricing depend on the selected Cursor plan.

Is Grok 4.5 suitable for production agents?

It can be used as the reasoning model inside a production agent, but the surrounding system still needs permission controls, validation, observability, retries, and human approval for high-impact actions. Benchmark strength does not remove the need for operational safeguards.

Related Tools

  • xAI API Console: Create API keys, manage credits, and access xAI models.
  • Cursor: An AI coding environment that includes Grok 4.5 across multiple products.
  • Grok Build: xAI's agentic coding environment powered by Grok 4.5.
  • xAI Python SDK: The official Python SDK for building with xAI models.
  • OpenAI Python Library: A compatible client library that can call the xAI Responses API through a custom base URL.

Related Links

Summary

Grok 4.5 is a frontier model aimed at coding, agents, and knowledge work. Its strongest practical advantages are the combination of competitive engineering performance, up to 80-token-per-second serving, a 500K context window, and lower token consumption on the published SWE-Bench Pro comparison.

The training approach combines large-scale infrastructure, curated data, Cursor interaction traces, and reinforcement learning in realistic tool-using environments. That helps move the model from isolated code generation toward longer, end-to-end workflows.

The main story is not only that Grok has become more capable; it is that xAI is competing on the full cost and speed of completing real work.