สถานะ: 🟢 Complete | อัพเดท: 2026-06-27
ตาราง Pricing
หมายเหตุ: ราคาอาจเปลี่ยนได้ — ตรวจสอบล่าสุดที่ anthropic.com/pricing เสมอ
ราคา (per million tokens)
| Model | Input | Output | Cache Write | Cache Read |
|---|---|---|---|---|
| Opus 4.8 | $15 | $75 | $18.75 | $1.50 |
| Sonnet 4.6 | $3 | $15 | $3.75 | $0.30 |
| Haiku 4.5 | $0.80 | $4 | $1.00 | $0.08 |
ประหยัด Cost
- ใช้ Haiku สำหรับ simple tasks
- ใช้ Prompt Caching สำหรับ system prompt ยาว
- Batch requests ด้วย Message Batches API (50% discount)
- ลด output tokens ด้วยการ specify format ชัดเจน
ดู Usage
print(response.usage)
# Usage(input_tokens=123, output_tokens=456, cache_read_input_tokens=0)