Claude Sonnet 5API
Near-Opus coding and agentic quality at Sonnet cost — 1M context.
Giá input
$2.10
per 1M tokens
Giá output
$10.50
per 1M tokens
Prompt caching
Truyền cache_control trên các tiền tố ổn định — hit cache được tính bằng một phần nhỏ giá input. Ghi cache luôn theo giá input bình thường.
Được tính tự động bằng input × 0.1
Thông số kỹ thuật
- ID mô hình
claude-sonnet-5- Endpoint
POST /v1/chat/completions- Danh mục
- Text
- Nhà cung cấp
- Anthropic
- Khả năng
- visionfunctionstreamingthinkinglong-context
Tương thích drop-in với OpenAI
Trỏ SDK OpenAI của bạn tới api.kunavo.com/v1 và đổi ID mô hình. Không thay đổi streaming, không SDK mới.
Xem tài liệuClaude API pricing guideTự mình thử
Thiết lập KUNAVO_API_KEY từ /app/keys và chạy đoạn mã bên dưới.
curl https://api.kunavo.com/v1/chat/completions \
-H "Authorization: Bearer $KUNAVO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "claude-sonnet-5",
"messages": [
{"role": "user", "content": "Hello, Claude Sonnet 5"}
],
"stream": false
}'FAQ
How much does Claude Sonnet 5 cost?
On Kunavo, Claude Sonnet 5 is $2.10 per 1M input tokens and $10.50 per 1M output tokens — about 30% under Anthropic's official price. Failed requests are never billed, and it's pay-as-you-go — you only pay for successful calls.
Can I call Claude Sonnet 5 with the OpenAI SDK?
Yes. Set base_url to https://api.kunavo.com/v1, pass your Kunavo key, and set model to "claude-sonnet-5". Requests and responses are OpenAI-compatible; Claude is also available on the native /v1/messages endpoint.
What endpoint does Claude Sonnet 5 use?
Claude Sonnet 5 is called via POST /v1/chat/completions on Kunavo's OpenAI-compatible API.
What is Claude Sonnet 5 good for?
Claude Sonnet 5 is a text model from Anthropic, with support for vision, function, streaming, thinking, long-context.