Claude

Claude Sonnet 5

AnthropicToken-based
Alias:claude-sonnet-5
Create API Key

Compare claude-sonnet-5 API pricing, supported endpoints, capabilities and access options on Modelsell.

textimagestreamingfunction_callingtoolsvisionreasoningcachingcontext:1000000
Starting price
Input / Output · 1M
Context
1M
Maximum input window
Max output
128K
Maximum tokens per response
Modalities
→
Knowledge cutoff
Jan 2026
Released
Jun 2026

Pricing by Supplier

Anthropic
-10%
Anthropic 官方
Input$2$1.8/ 1M
Output$10$9/ 1M
Cache Read$0.2$0.18/ 1M
Cache Write (5m)$2.5$2.25/ 1M
Cache Write (1h)$4$3.6/ 1M
AmazonBedrock
-40%
AWS 官方
Input$2$1.2/ 1M
Output$10$6/ 1M
Cache Read$0.2$0.12/ 1M
Cache Write (5m)$2.5$1.5/ 1M
Cache Write (1h)$4$2.4/ 1M
Vertex Claude
-30%
Google Vertex 官方 Claude直连
Input$2$1.4/ 1M
Output$10$7/ 1M
Cache Read$0.2$0.14/ 1M
Cache Write (5m)$2.5$1.75/ 1M
Cache Write (1h)$4$2.8/ 1M
claude特供
-40%
适合生产环境,AWS Bedrock组成
Input$2$1.2/ 1M
Output$10$6/ 1M
Cache Read$0.2$0.12/ 1M
Cache Write (5m)$2.5$1.5/ 1M
Cache Write (1h)$4$2.4/ 1M
CCMax
-70%
使用自用 vibe coding,纯血 ccmax号池
Input$2$0.6/ 1M
Output$10$3/ 1M
Cache Read$0.2$0.06/ 1M
Cache Write (5m)$2.5$0.75/ 1M
Cache Write (1h)$4$1.2/ 1M
Claude kiro
-90%
使用自用 vibe coding,kiro号池
Input$2$0.2/ 1M
Output$10$1/ 1M
Cache Read$0.2$0.02/ 1M
Cache Write (5m)$2.5$0.25/ 1M
Cache Write (1h)$4$0.4/ 1M
CCMax-ZL
-70%
CCmax微注-可蒸
Input$2$0.6/ 1M
Output$10$3/ 1M
Cache Read$0.2$0.06/ 1M
Cache Write (5m)$2.5$0.75/ 1M
Cache Write (1h)$4$1.2/ 1M

Capabilities / Supported modalities

Function callingToolsJSON modeStructured outputReasoningVisionPrompt caching
Input
Output

Provider & data privacy

Provider
AnthropicDocs
Tokenizer
Anthropic Claude tokenizer
License
Proprietary (commercial)Proprietary
Data retention44 daysNot used for upstream training by default

Performance

Benchmarks

Scores on standardized evaluations. Higher percentages are better — and rank percentile shows

Metrics sourced fromArtificial Analysis 2026-09-30·Claude Sonnet 5

This model is not included in the current benchmark snapshot.

Missing models or measurements are not zero scores.

Benchmark charts preserve the source model selection and reasoning settings. Missing models or measurements are not zero scores, and benchmark cost or speed is not this site’s service commitment.

About Claude Sonnet 5

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

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

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

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

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

Use cases and prompting

功能开发提示词

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

常见问题

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

API access

API documentation

Code samples

RequestPOST/v1/messages
Example request
Parameters
ParameterTypeDefault / rangeDescription
temperature
number
=10 ~ 2
Sampling temperature; lower is more deterministic
top_p
number
=10 ~ 1
Nucleus sampling probability mass
max_tokens
integer>= 1Maximum number of tokens in the response
frequency_penalty
number
=0-2 ~ 2
Penalises repetition of frequent tokens
presence_penalty
number
=0-2 ~ 2
Encourages introducing new topics
stop
array—Up to 4 strings that stop generation
seed
integer—Deterministic sampling seed (best-effort)
n
integer
=1>= 1
Number of completions to generate
stream
boolean
=false
Stream tokens via Server-Sent Events
response_format
object—Force JSON object or schema-conforming output
tools
array—Tool / function declarations the model may call
tool_choice
string
autononerequired
Tool-choice policy or specific tool name
logprobs
boolean
=false
Return per-token log probabilities
top_logprobs
integer0 ~ 20Number of top log probabilities returned per token
logit_bias
object—Per-token logit bias map
user
string—End-user identifier for abuse monitoring

Replace <YOUR_API_KEY> with the API key from your token settings.

Authentication

All requests must include Authorization: Bearer <TOKEN> header. Anthropic-formatted endpoints accept the x-api-key header instead.

Generate tokens from the Tokens page; you can scope them to specific models, groups, IPs, and rate-limits.

Supported parameters

Generation parameters
ParameterTypeDefault / rangeDescription
temperature
number
=10 ~ 2
Sampling temperature; lower is more deterministic
top_p
number
=10 ~ 1
Nucleus sampling probability mass
max_tokens
integer>= 1Maximum number of tokens in the response
frequency_penalty
number
=0-2 ~ 2
Penalises repetition of frequent tokens
presence_penalty
number
=0-2 ~ 2
Encourages introducing new topics
stop
array—Up to 4 strings that stop generation
seed
integer—Deterministic sampling seed (best-effort)
n
integer
=1>= 1
Number of completions to generate
stream
boolean
=false
Stream tokens via Server-Sent Events
response_format
object—Force JSON object or schema-conforming output
tools
array—Tool / function declarations the model may call
tool_choice
string
autononerequired
Tool-choice policy or specific tool name
logprobs
boolean
=false
Return per-token log probabilities
top_logprobs
integer0 ~ 20Number of top log probabilities returned per token
logit_bias
object—Per-token logit bias map
user
string—End-user identifier for abuse monitoring

Rate limits

SupplierRPMTPMRPD
Claude kiro ZLUnlimitedUnlimitedUnlimited
defaultUnlimitedUnlimitedUnlimited
AmazonBedrockUnlimitedUnlimitedUnlimited
CCMaxUnlimitedUnlimitedUnlimited
Claude kiroUnlimitedUnlimitedUnlimited
claude特供UnlimitedUnlimitedUnlimited
Vertex ClaudeUnlimitedUnlimitedUnlimited
AmazonBedrock-ZLUnlimitedUnlimitedUnlimited
AnthropicUnlimitedUnlimitedUnlimited
CCMax-ZLUnlimitedUnlimitedUnlimited

No restriction

Frequently asked questions about claude-sonnet-5

What is claude-sonnet-5?

Compare claude-sonnet-5 API pricing, supported endpoints, capabilities and access options on Modelsell.

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?

Start with the use cases and prompting guidance on this page, then evaluate the model with representative inputs from your project.