返回模型列表
Anthropic

Claude Sonnet 5

The best combination of speed and intelligence

快速参数

上下文

1000K

最大输出

128K

出品方

Anthropic

规格数

2

模态

输入 text输入 image输入 file输出 text

规格与平台指导价(每百万 tokens)

高质量
输入 $2输出 $10缓存读取 $0.2缓存写入 5m $2.5缓存写入 1h $4
高性价比
输入 $1输出 $5缓存读取 $0.1缓存写入 5m $1.25缓存写入 1h $2

推荐套餐

Claude Sonnet 5 体验套餐

充值即用,按量计费;新用户享 $1 体验额度。

购买套餐

API 接入

Model IDanthropic/claude-sonnet-5

cURL

curl https://intertoken.ai/v1/messages \
  -H "x-api-key: $TOKENPORTAL_API_KEY" \
  -H "anthropic-version: 2023-06-01" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "anthropic/claude-sonnet-5",
    "max_tokens": 1024,
    "messages": [{"role": "user", "content": "Hello!"}]
  }'

Python (anthropic SDK)

import anthropic

client = anthropic.Anthropic(
    base_url="https://intertoken.ai",
    api_key="$TOKENPORTAL_API_KEY",
)

resp = client.messages.create(
    model="anthropic/claude-sonnet-5",
    max_tokens=1024,
    messages=[{"role": "user", "content": "Hello!"}],
)
print(resp.content[0].text)

立即使用此模型

免费注册,获取 API Key,30 秒接入