Home/Models/Anthropic/Claude Sonnet 4.5
C

Claude Sonnet 4.5

輸入:$2.4/M
輸出:$12/M
上下文:200K
最大输出:64K
Claude Sonnet 4.5 在计算机应用能力方面实现了显著跃升。在 OSWorld,这一用于测试 AI 模型在真实世界计算机任务上的基准平台上,Sonnet 4.5 以 61.4% 跃居榜首,而就在四个月前,Sonnet 4 以 42.2% 领先。我们的 Claude for Chrome 扩展程序将这些升级功能付诸实践。
新
商用
Playground
概览
功能亮点
定价
API
版本

Key features

  • Agentic capability: designed to run multi-step agents and coordinate multi-agent workflows.
  • Coding & software use: Anthropic markets ==Claude Sonnet 4.5==   as its best coding model, capable of end-to-end software work (design → implement → test → deploy).
  • Hybrid reasoning / Thinking mode: supports on-demand extended reasoning (“thinking”) to trade latency for higher accuracy on complex tasks.
  • Large context & output: advertised 200K context window and up to 64K output tokens for very large inputs/outputs.

Technical details (what the release changes)

Architecture & focus:==Claude Sonnet 4.5==   is a Sonnet-series mid-to-frontier model tuned for multi-step tool use, extended task horizons, and improved deterministic behavior when interacting with external systems. Anthropic emphasizes improvements in computer use (automation of workflows across files, spreadsheets, and developer tools) and reasoning/math capabilities versus previous Sonnet releases.

Long-horizon operation: The release specifically highlights the model’s ability to run as a continuous agent for extended periods (reported examples up to ~30 hours of autonomous operation in internal and early-customer tests), a large step up from previous multi-hour limits. This is important for use cases that require continuous monitoring, orchestration, or multi-step software projects.

Tooling & context:==Claude Sonnet 4.5==  ships with improved context-management and agent tooling (context editing, memory tools, multi-agent support), enabling developers to manage and persist agent state more robustly.

Performance benchmarks

  • SWE-bench Verified: 77.2% (200K thinking budget, scaffold + tools); 78.2% in 1M context; 82.0% reported for a “high-compute” candidate selection regime.
  • OSWorld (computer tasks): 61.4% for Sonnet 4.5 vs 42.2% for Sonnet 4 (four months earlier).
  • Autonomy length (internal tests): >30 hours continuous autonomous coding/agent operation (previous generation ~7 hours).
  • Operating-system/tool benchmark: Anthropic reports a jump to ~60% versus ~40% for the predecessor on an OS interaction benchmark — showing improved reliability when the model controls software.

Primary use cases

  • Software engineering & code generation: Large-scale code synthesis, multi-file project generation, autonomous coding agents.
  • Agentic automation & orchestration: Building long-lived agents that monitor systems, run repeated tasks, and coordinate tools (calendar, email, VMs, spreadsheets).
  • Data analysis & finance/cybersecurity workflows: Deep analysis over documents, litigation briefs, financial models, and cybersecurity triage where multi-step reasoning and reliable tool use matter.

How to access Claude Sonnet 4.5 API from CometAPI

Model version:

API call pointcursor suitable point
claude-sonnet-4-5-20250929-thinkingcometapi-sonnet-4-5-20250929-thinking
claude-sonnet-4-5-20250929cometapi-sonnet-4-5-20250929
claude-sonnet-4-5cometapi-sonnet-4-5

Claude Sonnet 4.5 API Pricing in CometAPI,20% off the official price:

  • Input Tokens: $2.4/ M tokens
  • Output Tokens: $12/ M tokens

Required Steps

  • Log in to cometapi.com. If you are not our user yet, please register first.
  • Sign into your CometAPI console.
  • Get the access credential API key of the interface. Click “Add Token” at the API token in the personal center, get the token key: sk-xxxxx and submit.

Use Method

  1. Select the “ claude-sonnet-4-5-20250929-thinking ”or “ claude-sonnet-4-5-20250929","claude-sonnet-4-5 ” endpoint to send the API request and set the request body. The request method and request body are obtained from our website API doc. Our website also provides Apifox test for your convenience.
  2. Replace <YOUR_API_KEY> with your actual CometAPI key from your account.
  3. Insert your question or request into the content field—this is what the model will respond to.
  4. . Process the API response to get the generated answer.

API Example

CometAPI provides a fully compatible REST API—for seamless migration. Key details:

  • Base URL: https://api.cometapi.com/v1/messages
  • Model Names: “ “ claude-sonnet-4-5-20250929-thinking ”or “ claude-sonnet-4-5-20250929","claude-sonnet-4-5 ”
  • Authentication: Bearer token via Authorization: Bearer YOUR_CometAPI_API_KEY header
  • Content-Type:application/json.

常见问题

Can Claude Sonnet 4.5 handle 30+ hours of autonomous coding sessions?

Yes, Claude Sonnet 4.5 excels at sustained long-horizon tasks, maintaining coherence across massive codebases during extended autonomous coding sessions.

How does Claude Sonnet 4.5 compare to GPT-5.2 for agentic workflows?

Claude Sonnet 4.5 is optimized for agents with superior instruction following, tool selection, and self-correction. It achieved 61.4% on OSWorld for computer use tasks, making it particularly strong for browser automation and multi-step workflows.

Does Claude Sonnet 4.5 support extended thinking mode?

Yes, Sonnet 4.5 is a hybrid reasoning model that can deliver instant responses or extended step-by-step thinking. API users have fine-grained control over thinking duration to balance performance with latency.

What is the maximum output token limit for Claude Sonnet 4.5?

Claude Sonnet 4.5 supports up to 64,000 output tokens, which is particularly valuable for rich code generation, detailed planning documents, and long-form content.

Is Claude Sonnet 4.5 suitable for financial analysis and cybersecurity?

Yes, Sonnet 4.5 has enhanced domain knowledge in finance and cybersecurity. It can monitor regulatory changes, perform predictive analysis, and generate creative attack scenarios for red teaming.

When should I choose Claude Sonnet 4.5 over Claude Opus 4.5?

Choose Sonnet 4.5 for high-volume production workloads where you need a balance of advanced capabilities and cost efficiency. Use Opus 4.5 for mission-critical tasks requiring maximum intelligence where cost is secondary.

Does Claude Sonnet 4.5 support computer use and browser automation?

Yes, Sonnet 4.5 excels at computer use capabilities, reliably handling browser-based tasks from competitive analysis to procurement workflows to customer onboarding.

Claude Sonnet 4.5 的功能

了解 Claude Sonnet 4.5 的核心能力,帮助提升性能与可用性,并改善整体体验。

Claude Sonnet 4.5 的定价

查看 Claude Sonnet 4.5 的竞争性定价,满足不同预算与使用需求,灵活方案确保随需求扩展。
Comet 价格 (USD / M Tokens)官方定价 (USD / M Tokens)折扣
輸入:$2.4/M
輸出:$12/M
輸入:$3/M
輸出:$15/M
-20%

Claude Sonnet 4.5 的示例代码与 API

获取完整示例代码与 API 资源,简化 Claude Sonnet 4.5 的集成流程,我们提供逐步指导,助你发挥模型潜能。
Python
JavaScript
Curl
import anthropic
import os

# Get your CometAPI key from https://api.cometapi.com/console/token, and paste it here
COMETAPI_KEY = os.environ.get("COMETAPI_KEY") or "<YOUR_COMETAPI_KEY>"
BASE_URL = "https://api.cometapi.com"

message = anthropic.Anthropic(
    base_url=BASE_URL,
    api_key=COMETAPI_KEY,
)
messages = message.messages.create(
    model="claude-sonnet-4-5-20250929",
    max_tokens=1024,
    messages=[{"role": "user", "content": "Hello, Claude"}],
)
print(messages.content[0].text)

Claude Sonnet 4.5 的版本

Claude Sonnet 4.5 可能存在多个快照,原因包括:更新后保持一致性需要保留旧版、给开发者留出迁移窗口,以及全球/区域端点提供的优化差异。具体差异请参考官方文档。
Version
claude-sonnet-4-5-20250929-thinking
claude-sonnet-4-5-20250929
claude-sonnet-4-5
cometapi-sonnet-4-5-20250929-thinkingcursor suitable point
cometapi-sonnet-4-5-20250929cursor suitable point
cometapi-sonnet-4-5cursor suitable point

更多模型