Claude Sonnet 5.5 API
用一个 TokenMilo API Key 即可调用 Claude Sonnet 5.5。速度、质量、价格均衡,是 Claude Code 等编程工具的常用默认选择。按 token 计费,比 Anthropic 官方便宜 79%。
| 模型 ID | claude-sonnet-5-5 |
| 厂商 | Anthropic |
| 系列 | Claude Sonnet |
| 折扣 | 官方 2.1 折 |
Claude Sonnet 5.5 价格
单位:美元 / 百万 tokens。价格更新于 2026-11-13。
| TokenMilo | Anthropic 官方 | |
|---|---|---|
| 输入 | $0.423 | $2 |
| 输出 | $2.13 | $10 |
| 缓存读取 | $0.022 | — |
| 缓存写入(5 分钟) | $0.531 | — |
| 缓存写入(1 小时) | $0.531 | — |
1 小时缓存写入与 5 分钟缓存写入同价。
实际花费举例
| 用量 | TokenMilo | 官方 | 节省 |
|---|---|---|---|
| 1,000 次请求 × 每次输入 2,000 / 输出 500 tokens | $1.91 | $9.00 | $7.09 |
| 1,000 次请求 × 每次输入 50,000 / 输出 2,000 tokens | $25.42 | $120 | $94.58 |
Claude Sonnet 5.5 适合做什么
- 在 Claude Code 和 IDE 插件里日常写代码
- 聊天机器人与客服
- 内容写作与翻译
- 大规模 RAG 与文档问答
支持的接口
| Anthropic Messages · 推荐 | POST https://api.tokenmilo.com/v1/messages |
| OpenAI Chat Completions | POST https://api.tokenmilo.com/v1/chat/completions |
所有接口格式使用同一个 Base URL 和 API Key。 接口指南 →
调用示例
curl
curl https://api.tokenmilo.com/v1/messages \
-H "x-api-key: $TOKENMILO_API_KEY" \
-H "anthropic-version: 2023-06-01" \
-H "content-type: application/json" \
-d '{
"model": "claude-sonnet-5-5",
"max_tokens": 1024,
"messages": [{"role": "user", "content": "Hello, Claude Sonnet 5.5!"}]
}'Python
# pip install anthropic
import os, anthropic
client = anthropic.Anthropic(
base_url="https://api.tokenmilo.com",
api_key=os.environ["TOKENMILO_API_KEY"],
)
msg = client.messages.create(
model="claude-sonnet-5-5",
max_tokens=1024,
messages=[{"role": "user", "content": "Explain prompt caching in one paragraph."}],
)
print(msg.content[0].text)在常用工具里使用 Claude Sonnet 5.5
- Claude Code 中转配置教程 — 在 macOS、Linux、Windows 上用 TokenMilo 的 Key 跑 Claude Code。
- Cursor 接入教程 — 用自己的 Key 在 Cursor 里添加 Claude 和 GPT 模型。
- Cline 接入教程(VS Code) — 在 Cline 编程 Agent 里通过 TokenMilo 使用 Claude。
- Cherry Studio 接入教程 — 在 Cherry Studio 桌面客户端里和 Claude、GPT 对话。
同系列 Claude Sonnet 模型
- Claude Sonnet 5 — $0.423 / $2.13 · −79%
- Claude Sonnet 4.6 — $0.639 / $3.19 · −79%
更多 Anthropic 模型
- Claude Fable 5.2 — $1.79 / $8.95
- Claude Fable 5.1 — $2.23 / $11.18
- Claude Fable 5 — $2.23 / $11.18
- Claude Opus 5.5 — $0.855 / $4.26
- Claude Opus 5 — $1.06 / $5.33
- Claude Opus 4.8 — $1.06 / $5.33
常见问题
这里的 Claude Sonnet 5.5 是满血原版吗?
是。模型 ID 为 claude-sonnet-5-5 的请求由 Anthropic 原版模型处理,不掺水、不偷换、不降智,效果与直接调用官方一致。
Claude Sonnet 5.5 在 TokenMilo 多少钱?
输入 $0.423 / 百万 tokens,输出 $2.13 / 百万 tokens;官方价格为 $2 / $10,相当于官方 2.1 折。没有订阅,没有最低消费。
Claude Sonnet 5.5 应该用哪种接口格式?
推荐使用 Anthropic 原生 Messages 接口(https://api.tokenmilo.com/v1/messages),支持提示词缓存、工具调用、扩展思考等全部 Claude 功能。简单对话也可以用 OpenAI 兼容的 Chat Completions 接口。
Claude Sonnet 5.5 支持提示词缓存吗?
支持。缓存读取按 $0.022 / 百万 tokens 计费,长系统提示词和编程 Agent 会话能省下很多钱。
国内能直接调用 Claude Sonnet 5.5 吗?
可以。不需要海外信用卡和海外手机号,注册充值后把 Base URL 换成 https://api.tokenmilo.com 即可。