Mô hìnhGiáDoanh nghiệp
500+ API Mô hình AI, Tất cả trong Một API. Chỉ cần CometAPI
API Mô hình
Nhà phát triển
Bắt đầu nhanhTài liệuBảng Điều Khiển API
Công ty
Về chúng tôiDoanh nghiệp
Tài nguyên
Mô hình AIBlogNhật ký thay đổiHỗ trợ
Điều khoản Dịch vụChính sách Bảo mật
© 2026 CometAPI · All rights reserved
Home/Models/Anthropic/Claude Sonnet 4.5
C

Claude Sonnet 4.5

Đầu vào:$3/M
Đầu ra:$15/M
Bối cảnh:200K
Đầu ra tối đa:64K
Claude Sonnet 4.5 achieves a significant leap in computer application capabilities. On OSWorld, a benchmark platform for testing AI models on real-world computer tasks, Sonnet 4.5 jumped to the top with 61.4%, whereas just four months prior, Sonnet 4 led with 42.2%. Our Claude for Chrome extension puts these upgraded features into practice.
Mới
Sử dụng thương mại
Playground
Tổng quan
Tính năng
Giá cả
API
Phiên bản

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.
    Claude Sonnet 4.5

Claude Sonnet 4.5

Claude Sonnet 4.5

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 call 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.
    Claude Sonnet 4.5

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.

Here’s a sample cURL  snippet for invoking the ==Claude Sonnet 4.5== API:

curl --location --request POST 'https://api.cometapi.com/v1/messages' \
--header 'Authorization: Bearer {{api-key}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "claude-sonnet-4-5-20250929",
"max_tokens": 1000,
"thinking": {
"type": "enabled",
"budget_tokens": 1000
},
"messages": [
{
"role": "user",
"content": "Are there an infinite number of prime numbers such that n mod 4 == 3?"
}
]
}'

Giá cả cho Claude Sonnet 4.5

Khám phá mức giá cạnh tranh cho Claude Sonnet 4.5, được thiết kế để phù hợp với nhiều ngân sách và nhu cầu sử dụng khác nhau. Các gói linh hoạt của chúng tôi đảm bảo bạn chỉ trả tiền cho những gì bạn sử dụng, giúp dễ dàng mở rộng quy mô khi yêu cầu của bạn tăng lên. Khám phá cách Claude Sonnet 4.5 có thể nâng cao các dự án của bạn trong khi vẫn kiểm soát được chi phí.
Giá Comet (USD / M Tokens)Giá Chính Thức (USD / M Tokens)Giảm giá
Đầu vào:$3/M
Đầu ra:$15/M
Đầu vào:$3.75/M
Đầu ra:$18.75/M
-20%

Mã mẫu và API cho Claude Sonnet 4.5

Truy cập mã mẫu toàn diện và tài nguyên API cho Claude Sonnet 4.5 để tối ưu hóa quy trình tích hợp của bạn. Tài liệu chi tiết của chúng tôi cung cấp hướng dẫn từng bước, giúp bạn khai thác toàn bộ tiềm năng của Claude Sonnet 4.5 trong các dự án của mình.
POST
/v1/messages
POST
/v1/chat/completions
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)

Python Code Example

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)

JavaScript Code Example

import Anthropic from "@anthropic-ai/sdk";

// Get your CometAPI key from https://api.cometapi.com/console/token, and paste it here
const api_key = process.env.COMETAPI_KEY;
const base_url = "https://api.cometapi.com";

const anthropic = new Anthropic({
  apiKey: api_key,
  baseURL: base_url,
});

const message = await anthropic.messages.create({
  model: "claude-sonnet-4-5",
  max_tokens: 1024,
  messages: [{ role: "user", content: "Hello, Claude" }],
});
console.log(message.content[0].text);

Curl Code Example

curl https://api.cometapi.com/v1/messages \
     --header "Authorization: $COMETAPI_KEY" \
     --header "content-type: application/json" \
     --data \
'{
    "model": "claude-sonnet-4-5",
    "max_tokens": 1024,
    "messages": [
        {"role": "user", "content": "Hello, Claude"}
    ]
}'

Các phiên bản của Claude Sonnet 4.5

Lý do Claude Sonnet 4.5 có nhiều snapshot có thể bao gồm các yếu tố tiềm năng như: sự thay đổi đầu ra sau các bản cập nhật cần các snapshot cũ để đảm bảo tính nhất quán, cung cấp cho nhà phát triển thời gian chuyển tiếp để thích ứng và di chuyển, cũng như các snapshot khác nhau tương ứng với các endpoint toàn cầu hoặc khu vực nhằm tối ưu hóa trải nghiệm người dùng. Để biết chi tiết về sự khác biệt giữa các phiên bản, vui lòng tham khảo tài liệu chính thức.
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