สถานะ: 🟢 Complete | อัพเดท: 2026-06-27

ตาราง Pricing

หมายเหตุ: ราคาอาจเปลี่ยนได้ — ตรวจสอบล่าสุดที่ anthropic.com/pricing เสมอ

ราคา (per million tokens)

ModelInputOutputCache WriteCache 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

  1. ใช้ Haiku สำหรับ simple tasks
  2. ใช้ Prompt Caching สำหรับ system prompt ยาว
  3. Batch requests ด้วย Message Batches API (50% discount)
  4. ลด output tokens ด้วยการ specify format ชัดเจน

ดู Usage

print(response.usage)
# Usage(input_tokens=123, output_tokens=456, cache_read_input_tokens=0)