Claude

Claude Sonnet 5

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

Anthropic 開發了 Claude 系列 AI 模型,可用於語言、推理和程式設計任務。

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

Pricing by Supplier

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

供應商5
USD · 每 1M tokens效能 · Last 24 hours
供應商Discount輸入/M輸出/M緩存讀取/M緩存寫入 (5m)/M緩存寫入 (1h)/M
Anthropic

Anthropic 官方 API

省10%
$1.8$2
$9$10
$0.18$0.2
$2.25$2.5
$3.6$4
CCMax

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

省70%
$0.6$2
$3$10
$0.06$0.2
$0.75$2.5
$1.2$4
Claude kiro

Kiro 帳號池,適合個人 vibe coding

省90%
$0.2$2
$1$10
$0.02$0.2
$0.25$2.5
$0.4$4
CCMax-ZL

CCmax 微注 · 可蒸

省70%
$0.6$2
$3$10
$0.06$0.2
$0.75$2.5
$1.2$4
AmazonBedrock

AWS 官方 API

省40%
$1.2$2
$6$10
$0.12$0.2
$1.5$2.5
$2.4$4
刪除線金額為標準價。效能統計涵蓋最近 24 小時,實際表現隨請求變化。

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

能力 / 支援的模態

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

廠商與數據私隱

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

效能

基準測試

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

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

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

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

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

About Claude Sonnet 5

Use Claude Sonnet 5 through the API endpoints listed on this page. Compare its configured capabilities and supplier prices before choosing an integration.

查看介紹原文

适合有明确目标的日常协作

Claude Sonnet 5 能处理文字和图片输入,输出代码、分析和文稿等文本内容。它适合日常开发与专业工作:理解一个功能需求、修复一处业务问题、阅读项目文档,或把分散资料整理成面向特定受众的说明。

开发任务可以从用户行为出发。提供页面截图、相关代码和预期交互,让模型梳理各个状态,补齐加载、失败和边界情况,再给出实现与检查步骤。修改已有系统时,说明哪些接口与行为必须保持,可以减少建议偏离当前项目的情况。

文档任务则适合同时提供原始材料和交付要求。它可以比较不同版本、提取共同结论、调整结构与语气,也能结合图表或截图理解材料中的信息。需要写客户说明、内部方案或培训文稿时,把读者背景和读完后要采取的行动写清楚,输出会更有针对性。

自适应思考默认开启,可以通过 effort 调整推理投入。一般任务可以尝试较低投入,复杂判断再提高;需要实际查询或执行时,由应用提供对应工具。接入时应特别注意采样参数:将 temperature、top_p 或 top_k 设为非默认值会报错。想调整文风,直接在提示词里给出语气、结构和示例更合适。

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]

查看使用指南原文

功能开发提示词

“请根据这张页面截图和现有代码,补充批量选择与导出功能。先列出选择状态、空结果、导出失败等交互,再给出实现。保持现有接口兼容,完成后列出可逐项手动验证的操作步骤。”

常见问题

  • 想让回答更简洁,应该调什么?在提示词中指定篇幅与结构;需要缩短推理过程时,可调整 effort。
  • 改 temperature 后出现 400 怎么办?恢复采样参数默认值,通过提示词控制表达风格。
  • 截图能直接变成可用页面吗?它可以理解截图并生成代码,仍需结合项目组件、真实接口和运行结果完成验证。

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-ZL無限制無限制無限制
Claude kiro無限制無限制無限制
Anthropic無限制無限制無限制
CCMax無限制無限制無限制
AmazonBedrock無限制無限制無限制

無限制

Frequently asked questions about claude-sonnet-5

What is claude-sonnet-5?

Use claude-sonnet-5 through the API endpoints listed on this page. Compare its configured capabilities and supplier prices before choosing an integration.

How do I call claude-sonnet-5?

Create an API key with access to claude-sonnet-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-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-5?

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

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

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

How should I evaluate claude-sonnet-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.