Claude Sonnet 5.5
ราคา API Claude Sonnet 5.5 โปรโตคอลที่รองรับ และตัวอย่างคำขอบน API Hop
- ID โมเดล
claude-sonnet-5-5- ผู้เผยแพร่
- Anthropic
- ความพร้อมใช้งาน
- พร้อมใช้งาน
- โปรโตคอล
- Chat Completions, Messages
ราคาและการคิดค่าบริการ
เปรียบเทียบ APIราคาอย่างเป็นทางการ
- อินพุต
- $2.0000 /M
- เอาต์พุต
- $10.0000 /M
- อินพุตที่แคชไว้
- $0.1000 /M
- การเขียนแคช (5 นาที)
- $2.5000 /M
- การเขียนแคช (1 ชั่วโมง)
- $4.0000 /M
ราคา API Hop ประหยัด 45%
- อินพุต
- $1.1000 /M
- เอาต์พุต
- $5.5000 /M
- อินพุตที่แคชไว้
- $0.0550 /M
- การเขียนแคช (5 นาที)
- $1.3750 /M
- การเขียนแคช (1 ชั่วโมง)
- $2.2000 /M
ราคาอ้างอิงยังไม่ได้รับการตรวจสอบอย่างอิสระ โปรดตรวจสอบอัตราปัจจุบัน หน่วยคิดค่าบริการ และข้อกำหนดที่เกี่ยวข้องของผู้เผยแพร่ก่อนเปรียบเทียบต้นทุน
คำขอ API
เอกสาร APIคำขอใช้คีย์ API และยอดเงินในบัญชีของคุณ สิทธิ์เข้าถึงโมเดลขึ้นอยู่กับคีย์ API ตรวจสอบ GET /v1/models ก่อนส่งคำขอที่มีค่าบริการ
Chat Completions
POST /v1/chat-completions
curl --request POST 'https://api.apihop.ai/v1/chat-completions' \
--header "Authorization: Bearer $APIHOP_API_KEY" \
--header 'Content-Type: application/json' \
--data '{
"model": "claude-sonnet-5-5",
"messages": [
{
"role": "user",
"content": "Hello, introduce yourself in one sentence."
}
],
"stream": false
}' Messages
POST /anthropic/v1/messages
curl --request POST 'https://api.apihop.ai/anthropic/v1/messages' \
--header "Authorization: Bearer $APIHOP_API_KEY" \
--header 'Content-Type: application/json' \
--header 'anthropic-version: 2023-06-01' \
--data '{
"model": "claude-sonnet-5-5",
"messages": [
{
"role": "user",
"content": "Hello, introduce yourself in one sentence."
}
],
"stream": false,
"max_tokens": 4096
}'