Claude Sonnet 5 API
Anthropic Claude Sonnet 5 长上下文智能体与编程模型,支持流式响应和工具调用。
Starting price 按实际 Token 用量计费 · Price snapshot
Waiting to refresh live prices…
Model pricing
Compare all public tiers and current prices for this series on one page.
Input
按实际 Token 用量计费
Output
总价 = 各类 Token 用量 × 对应单价
Context
—
Max output
—
- Model ID
-
claude-sonnet-5 - Billing model
- Fixed combination billing
- Available groups
- default, svip
- Capabilities
- chat
- Combination pricing rules
按实际 Token 用量计费总价 = 各类 Token 用量 × 对应单价
- Token 单价由当前计费表达式推导;实际费用按请求用量结算
查看高级计费表达式
v2:tier("base", tokens(p, 1.154) + tokens(c, 5.765) + tokens(cr, 1.154) + tokens(cc, 1.4425) + tokens(img, 1.154) + tokens(ai, 1.154) + tokens(cc1h, 2.308) + tokens(ao, 1.154))
API reference
Base URL is https://api.rokoapi.com/v1. The model in requests must use the model IDs listed above.
curl https://api.rokoapi.com/v1/chat/completions \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "claude-sonnet-5",
"messages": [{"role":"user","content":"Introduce yourself in one sentence"}]
}' For more parameters, limits, and async task queries, read the Claude Sonnet 5 developer guide. Claude Sonnet 5 Developer guide · OpenAI · Authorization