
Claude Sonnet 4.6 (Thinking) API
claude-sonnet-4-6-thinkingClaude Sonnet 4.6 (Thinking) 是扩展推理模式的 Sonnet 4.6,先推理再作答。单价同基础版,推理按输出计,输出价是输入 5 倍;已有 Sonnet 5.5。模型名 claude-sonnet-4-6-thinking,每百万 token $1.059/$5.295。
API Documentation
View complete API reference with all parameters and examples.
Advanced Features
Streaming
Enable real-time streaming responses with Server-Sent Events.
{
"model": "claude-sonnet-4-6-thinking",
"stream": true,
"max_tokens": 1024,
"messages": [...]
}Function Calling (Tools)
Enable Claude to use tools and call functions.
{
"model": "claude-sonnet-4-6-thinking",
"max_tokens": 1024,
"tools": [{
"name": "get_weather",
"description": "Get current weather for a location",
"input_schema": {
"type": "object",
"properties": {
"location": {"type": "string", "description": "City name"}
},
"required": ["location"]
}
}],
"tool_choice": {"type": "auto"},
"messages": [{"role": "user", "content": "What's the weather in Tokyo?"}]
}PDF Support
Analyze PDF documents by sending them as base64 encoded content.
{
"model": "claude-sonnet-4-6-thinking",
"max_tokens": 1024,
"messages": [{
"role": "user",
"content": [{
"type": "document",
"source": {
"type": "base64",
"media_type": "application/pdf",
"data": "<base64_encoded_pdf>"
}
}, {
"type": "text",
"text": "Summarize this document."
}]
}]
}Structured Output (JSON Schema)
Get structured JSON responses that match your schema.
{
"model": "claude-sonnet-4-6-thinking",
"max_tokens": 1024,
"output_format": {
"type": "json_schema",
"schema": {
"type": "object",
"properties": {
"name": {"type": "string"},
"age": {"type": "integer"}
},
"required": ["name", "age"]
}
},
"messages": [{"role": "user", "content": "Extract info: John is 30 years old"}]
}Web Search
Enable Claude to search the web for up-to-date information.
{
"model": "claude-sonnet-4-6-thinking",
"max_tokens": 1024,
"tools": [{
"type": "web_search_20250305",
"name": "web_search",
"max_uses": 5
}],
"messages": [{"role": "user", "content": "What's the latest news about AI?"}]
}API Parameters Reference
| Parameter | Type | Required | Description |
|---|---|---|---|
| model | string | Yes | Model identifier (e.g., claude-sonnet-4-6-thinking) |
| messages | array | Yes | Array of message objects with role and content |
| max_tokens | integer | Yes | Maximum tokens in the response (1 - 128000) |
| system | string | No | System prompt to set context |
| stream | boolean | No | Enable streaming responses (SSE) |
| temperature | number | No | Sampling temperature (0.0 - 1.0) |
| top_p | number | No | Nucleus sampling threshold (0.0 - 1.0) |
| top_k | integer | No | Top-k sampling (0 - infinity) |
| stop_sequences | array | No | Sequences that stop generation |
| tools | array | No | Function calling tools definition |
| tool_choice | object | No | Tool selection strategy (auto/any/tool) |
| thinking | object | No | Enable extended thinking mode |
| output_format | object | No | Structured output with JSON schema |
Full API Documentation
View complete API reference with streaming, thinking, and more.
Pricing
Billing: Cost = (input_tokens * input_price + output_tokens * output_price) / 1,000,000
Extended Thinking
Advanced reasoning mode
Best Performance
Top-tier capabilities
Deep Reasoning
Solve complex problems
Same Tools as Sonnet 4.6
Identical model and per-token price, thinking enabled
关于 Claude Sonnet 4.6 (Thinking)
Claude Sonnet 4.6 (Thinking) 是由 Anthropic 提供的大语言模型 API。Claude Sonnet 4.6 (Thinking) 不是另一个模型,而是以扩展推理模式调用的 Claude Sonnet 4.6:先把问题一步步拆开再作答,适合多步逻辑、审别人的代码和长篇分析。价格输入 $1.059、输出 $5.295 每百万 token,与 claude-sonnet-4-6 完全相同;改变账单的是用量 —— 推理按输出计费,而输出单价是输入的 5 倍。模型名要完整写 claude-sonnet-4-6-thinking,走原生 Anthropic Messages API。它属于较早一代的 Sonnet,最新的是 Sonnet 5.5。 通过 APIMODELS 平台,您可以使用统一的 API 接口调用该模型,按量计费、价格透明。当前定价:Input: $1.059, Output: $5.295 per 1M tokens。
核心功能
- Extended Thinking -- Advanced reasoning mode
- Best Performance -- Top-tier capabilities
- Deep Reasoning -- Solve complex problems
- Same Tools as Sonnet 4.6 -- Identical model and per-token price, thinking enabled
适用场景
聊天机器人与客服
构建智能对话系统,自动回答用户问题,提升客户服务效率。
内容生成
自动撰写文章、邮件、广告文案等文本内容,提高内容产出效率。
编程助手
辅助代码编写、调试和代码审查,加速软件开发流程。
数据分析
理解和分析非结构化数据,提取关键信息并生成报告摘要。
为什么选择 APIMODELS
- 统一 API 接口 -- 一个 API Key 调用所有模型,无需分别注册各平台账号
- 价格透明 -- 按量计费,每个模型页公开单次调用价格,适合小微开发者和初创团队
- 即开即用 -- 注册即可使用,支持支付宝、PayPal、银行卡和 USDT 充值
- 完整文档 -- 提供详细的 API 文档和代码示例(cURL、Python、Node.js)
常见问题
Claude Sonnet 4.6 (Thinking) 的价格是多少?
Claude Sonnet 4.6 (Thinking) 通过 APIMODELS 平台调用,当前定价:Input: $1.059, Output: $5.295 per 1M tokens。按量计费,用多少付多少。
如何使用 Claude Sonnet 4.6 (Thinking) API?
在 APIMODELS 注册账号并获取 API Key,然后通过我们的统一 API 端点调用即可。我们提供详细的 API 文档和 cURL、Python、Node.js 代码示例。
APIMODELS 与 Anthropic 官方 API 有什么区别?
APIMODELS 通过聚合平台提供与官方相同的 Claude Sonnet 4.6 (Thinking) 模型。我们提供统一的 API 接口,无需分别注册各平台账号,一个 API Key 即可调用所有模型。
Claude Sonnet 4.6 (Thinking) 和同类模型相比怎么选?
在 APIMODELS,Claude Sonnet 4.6 (Thinking) 与 60+ 个模型共用一个 API Key、一个余额,所以选型只看合不合适,不存在锁定。它支持 Extended Thinking、Best Performance、Deep Reasoning,你可以在价格和能力上把它和同属「大语言模型」类的其它模型对比,换模型只需改一个模型名字符串——无需新账号、无需重新对接。「大语言模型」类的全部模型与实时价格见 apimodels.app/models。
Claude Sonnet 4.6 (Thinking) 支持哪些能力?
Claude Sonnet 4.6 (Thinking) 支持:Extended Thinking、Best Performance、Deep Reasoning。完整参数与调用方式见 APIMODELS 的 API 文档。
国内能直接调用 Claude Sonnet 4.6 (Thinking) API 吗?需要代理吗?
能直接调用,不需要代理。apimodels.app 和 api.apimodels.app 在中国大陆可以直接访问,注册后用一个 API Key 就能调用 Claude Sonnet 4.6 (Thinking);不用单独注册模型厂商的账号,也不需要海外信用卡,支付宝就能充值。
怎么充值?支持哪些付款方式?
支持支付宝、PayPal、银行卡(Visa、Mastercard 等,经 Stripe 支付),以及 USDT(TRON 链 TRC20 或 BNB Smart Chain 链 BEP20)。支付宝、PayPal 和银行卡付款后即时到账,USDT 在链上转账确认后到账;也可以开启自动充值。单次充 $50 送 $1,充 $100 送 $3。余额按美元计,按量扣费,没有月费。