返回模型列表购买套餐
Anthropic
Claude Opus 4.8
Claude Opus 4.8 is Anthropic's most capable generally available model in the Opus family. It supports text, image, and file inputs with text output, with reasoning support and a 1M-token context window. Built for complex reasoning, long-horizon agentic coding, and high-autonomy professional work.
快速参数
上下文
1000K
最大输出
128K
出品方
Anthropic
规格数
2
模态
输入 text输入 image输入 file输出 text
规格与平台指导价(每百万 tokens)
高质量
输入 $5输出 $25缓存读取 $0.5缓存写入 5m $6.25缓存写入 1h $10
高性价比
输入 $2.5输出 $12.5缓存读取 $0.25缓存写入 5m $3.125缓存写入 1h $5
推荐套餐
Claude Opus 4.8 体验套餐
充值即用,按量计费;新用户享 $1 体验额度。
API 接入
Model ID
anthropic/claude-opus-4.8cURL
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-opus-4.8",
"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-opus-4.8",
max_tokens=1024,
messages=[{"role": "user", "content": "Hello!"}],
)
print(resp.content[0].text)