品牌
Claude
模型详情
通过无限星河AI(Infistar)调用 Claude 的 claude-sonnet-4-5:查看精确模型 ID、兼容端点(openai-response · anthropic · gemini)、透明人民币价格与快速接入示例。
精确模型 IDclaude-sonnet-4-5
Claude
openai-response · anthropic · gemini
text
按实际 Token 用量结算
输入 ¥0.8572 / 输出 ¥4.2858(每百万 tokens),缓存读取 ¥0.0858
官方价:输入 ¥20.044 / 输出 ¥100.2202
较官方参考价最高省 95%(不高于官方价)
使用统一 API Key 通过 POST /v1/messages 调用 claude-sonnet-4-5:
curl https://infistar.cc/v1/messages \
-H "x-api-key: $INFISTAR_API_KEY" \
-H "anthropic-version: 2023-06-01" \
-H "Content-Type: application/json" \
-d '{"model":"claude-sonnet-4-5","max_tokens":512,"messages":[{"role":"user","content":"Hello"}]}'import anthropic
client = anthropic.Anthropic(api_key="YOUR_INFISTAR_KEY", base_url="https://infistar.cc")
msg = client.messages.create(model="claude-sonnet-4-5", max_tokens=512, messages=[{"role": "user", "content": "Hello"}])
print(msg.content[0].text)模型和价格可能调整。请登录账户确认可用模型,并在调用前查看当前价格。