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

ตาราง Pricing

หมายเหตุ: ราคาอาจเปลี่ยนได้ — ตรวจสอบล่าสุดที่ anthropic.com/pricing เสมอ (ข้อมูล ณ 2026-07)

ราคา (per million tokens)

ModelInputOutputCache Write (5m)Cache Read
Fable 5$10$50$12.50$1.00
Opus 4.8$5$25$6.25$0.50
Sonnet 5$3$15$3.75$0.30
Sonnet 4.6$3$15$3.75$0.30
Haiku 4.5$1$5$1.25$0.10

Sonnet 5 มีราคา intro $2/$10 ถึง 2026-08-31 — Cache write = 1.25x input (5-min TTL), cache read = 0.1x input

ประหยัด 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)