Claude

Claude Sonnet 4.5

Anthropic按量收費
Alias:claude-sonnet-4-5

Claude Sonnet 4.5 可處理程式碼、文件與影像,適合開發協作、內容整理、搭配工具的多步驟任務與既有應用程式維護。

textimagestreamingfunction_callingtoolsvisionreasoningcachingcontext:200000
起始價格
輸入 / 輸出 · 1M
上下文
200K
最大輸入窗口
最大輸出
64K
單次回應最大 token 數
模態
→
知識截止
Jan 2025
發佈於
Sep 2025

Pricing by Supplier

比較同一模型在不同供應商的價格與服務表現。

供應商4
USD · 每 1M tokens效能 · Last 24 hours
供應商Discount輸入/M輸出/M緩存讀取/M
Anthropic

Anthropic 官方 API

—
$3.315
$16.575
$0.3315
CCMax

僅使用 CCMax 帳號池,適合個人 vibe coding

省67.5%
$0.975$3
$4.875$15
$0.0975$0.3
Claude kiro

Kiro 帳號池,適合個人 vibe coding

省87%
$0.39$3
$1.95$15
$0.039$0.3
AmazonBedrock

AWS 官方 API

省35%
$1.95$3
$9.75$15
$0.195$0.3
刪除線金額為標準價。效能統計涵蓋最近 24 小時,實際表現隨請求變化。

左右滑動表格,查看完整價格與效能。

能力 / 支援的模態

函數呼叫工具JSON 模式結構化輸出推理視覺提示詞緩存
輸入
輸出

廠商與數據私隱

供應商
Anthropic文件
分詞器
Anthropic Claude tokenizer
許可證
Proprietary (commercial)商業閉源
數據保留9 日預設不會用於上游訓練

效能

基準測試

標準化評測得分。百分比越高越好,並展示排名百分位。

指標來源:Artificial Analysis 2026-09-30·Claude Sonnet 4.5

目前基準快照不包含此模型。

缺少模型或測量值不代表零分。

基準圖表保留來源中的模型選擇和推理設定。缺少模型或測量值不代表零分,基準成本或速度也不是本站的服務承諾。

About Claude Sonnet 4.5

Claude Sonnet 4.5 可處理程式碼、文件與影像,適合開發協作、內容整理、搭配工具的多步驟任務與既有應用程式維護。

查看介紹原文

日常开发与文档工作的协作助手

Claude Sonnet 4.5 适合阅读项目代码、分析问题、起草内容和整理资料。你可以用它解释一个模块、根据需求规划改动,或把会议讨论转成任务与验收项。对于已经采用这一版本的应用,它也适合做固定任务回归与既有流程维护。

它支持文字和图片输入,输出文字。产品截图、流程示意和图文材料可以补充需求描述,例如根据截图分析表单提示是否清楚,或对照流程图检查代码缺少的异常分支。让它引用可见区域、文件位置或资料段落,可以使团队更容易核对。

在编程场景中,提供运行环境、关联文件与预期行为,再要求最小修改与测试方案。扩展思考可以帮助处理多条件判断;函数调用可以连接查询、文件处理与执行工具;结构化输出则适合把结果转成工单或检查记录。所有实际操作都需要相应工具反馈来确认。

较长的上下文能够容纳项目资料,但应把当前规范与历史讨论区分清楚。处理长文时,可以先生成索引和重点问题,再按章节分析,最后统一术语与结论。不要将未确认的讨论意见直接写成既定规则。

维护已有应用

现在还适合新项目选用吗? 官方已将 Sonnet 4.5 列为弃用,并计划于 2026 年 11 月 30 日退役。新项目和长期工作流应安排版本评估,既有调用也要关注渠道通知。

切换版本时怎样检查? 保留真实任务样本,对比回答格式、工具调用和业务结果,确认满足原有验收条件后再调整应用。

Use cases and prompting

Starting points for evaluation; supported inputs and options are listed in API access.

Use cases to explore

  • Draft and revise text with explicit audience, tone and format requirements.
  • Summarize supplied documents and compare answers against the original sources.

Practical tips

Separate instructions from source material, describe the desired output and provide an example. Test tool use or structured output only when listed as supported.

Example prompt

Summarize the following document in five bullet points. Separate confirmed facts from open questions, cite the relevant passages and do not invent missing information. Document: [paste your text]

查看使用指南原文

用明确任务维护现有流程

说明当前行为、改动目标和保持兼容的部分。

根据这份反馈,改进注册表单的错误提示。
结合页面截图和校验规则,找出用户难以理解的地方,给出简短清楚的替换文案。
保留字段名称和校验条件;按触发场景列出旧文案、新文案与原因,再给交互验收步骤。

代码修改附上相关测试,长文编辑列明必须保留的事实。维护版本迁移时保存代表样本,核对结构化字段、工具参数和异常分支;同时留意模型退役时间与渠道可用性。

API access

API 介面文件

呼叫示例

請求POST/v1/messages
請求範例
參數
參數類型預設值 / 範圍說明資訊
temperature
number
=10 ~ 2
採樣溫度;越低越穩定
top_p
number
=10 ~ 1
核採樣累積概率
max_tokens
integer>= 1回應中最大 token 數
frequency_penalty
number
=0-2 ~ 2
懲罰高頻 token 的重複出現
presence_penalty
number
=0-2 ~ 2
鼓勵引入新話題
stop
array—最多 4 個停止生成的字串
seed
integer—盡量保證可復現的採樣種子
n
integer
=1>= 1
生成的候選條數
stream
boolean
=false
透過 SSE 串流返回 token
response_format
object—強制輸出 JSON 物件或符合 Schema 的結果
tools
array—模型可呼叫的工具 / 函數聲明
tool_choice
string
autononerequired
工具選擇策略或具體工具名
logprobs
boolean
=false
返回每個 token 的對數概率
top_logprobs
integer0 ~ 20每個 token 返回的 top 概率數量
logit_bias
object—按 token 的 logit 偏置映射
user
string—用於風險審計的終端用戶標識

替換 <YOUR_API_KEY> 替換為 API 金鑰頁面中的金鑰。

身份驗證

所有請求必須攜帶 Authorization: Bearer <TOKEN> 請求頭。Anthropic 格式的端點也接受 x-api-key 請求頭。

在「令牌」頁面生成 API Key,可以按模型、分組、IP、速率等維度精細化授權。

支援的參數

Generation parameters
參數類型預設值 / 範圍說明資訊
temperature
number
=10 ~ 2
採樣溫度;越低越穩定
top_p
number
=10 ~ 1
核採樣累積概率
max_tokens
integer>= 1回應中最大 token 數
frequency_penalty
number
=0-2 ~ 2
懲罰高頻 token 的重複出現
presence_penalty
number
=0-2 ~ 2
鼓勵引入新話題
stop
array—最多 4 個停止生成的字串
seed
integer—盡量保證可復現的採樣種子
n
integer
=1>= 1
生成的候選條數
stream
boolean
=false
透過 SSE 串流返回 token
response_format
object—強制輸出 JSON 物件或符合 Schema 的結果
tools
array—模型可呼叫的工具 / 函數聲明
tool_choice
string
autononerequired
工具選擇策略或具體工具名
logprobs
boolean
=false
返回每個 token 的對數概率
top_logprobs
integer0 ~ 20每個 token 返回的 top 概率數量
logit_bias
object—按 token 的 logit 偏置映射
user
string—用於風險審計的終端用戶標識

速率限制

供應商RPMTPMRPD
CCMax無限制無限制無限制
AmazonBedrock無限制無限制無限制
Claude kiro無限制無限制無限制
Anthropic無限制無限制無限制

無限制

Frequently asked questions about claude-sonnet-4-5

What is claude-sonnet-4-5?

Claude Sonnet 4.5 可處理程式碼、文件與影像,適合開發協作、內容整理、搭配工具的多步驟任務與既有應用程式維護。

How do I call claude-sonnet-4-5?

Create an API key with access to claude-sonnet-4-5, then use the exact model ID and a supported endpoint from the API access section. Request fields depend on the selected endpoint.

How is claude-sonnet-4-5 priced?

Pricing depends on the selected provider group and the model billing unit. The current input, output, request, or media prices are shown on this page before sign-up.

What is the context window of claude-sonnet-4-5?

The model catalog lists a context window of 200000 tokens. Check the selected endpoint for request limits.

What is the maximum output of claude-sonnet-4-5?

The model catalog lists a maximum output of 64000 tokens. Your request settings may set a lower limit.

How should I evaluate claude-sonnet-4-5 for my project?

Separate instructions from source material, describe the desired output and provide an example. Test tool use or structured output only when listed as supported.