Skip to content

Durasi: 5 menit | Block: 5 Tujuan: Peserta paham dari hari 1 bahwa AI punya biaya.


💰 Konsep Dasar

Token = Satuan Hitung AI

Input tokens  = Apa yang kamu kirim (prompt + context)
Output tokens = Apa yang AI balas

Rule of thumb:

  • 1 token ≈ 4 karakter ≈ 0.75 kata bahasa Indonesia
  • 1000 tokens ≈ 750 kata

💵 Estimasi Biaya per Model

ModelInput (per 1M token)Output (per 1M token)Best For
GPT-4o-mini$0.15$0.60Task simple, routing
GPT-4o$2.50$10Task umum, reasoning
Claude 3.5 Sonnet$3$15Writing, analysis
Claude 3 Haiku$0.25$1.25Quick tasks, classification
Gemini 1.5 Flash$0.075$0.30Budget option

⚡ Harga bisa berubah. Selalu cek pricing page resmi.


🧮 Budget Calculator Sederhana

Contoh: Auto-reply customer, 50 inquiry/hari

Per inquiry:
- Input:  ~500 tokens (context + question)
- Output: ~200 tokens (reply)
- Total:  ~700 tokens

Per hari: 700 × 50 = 35,000 tokens
Per bulan: 35,000 × 30 = 1,050,000 tokens ≈ 1M tokens

Dengan GPT-4o-mini:
- Input:  0.5M × $0.15/1M = $0.075
- Output: 0.3M × $0.60/1M  = $0.18
- Total/bulan: ~$0.25 ≈ Rp 4.000

Dengan Claude 3.5 Sonnet:
- Input:  0.5M × $3/1M  = $1.50
- Output: 0.3M × $15/1M = $4.50
- Total/bulan: ~$6.00 ≈ Rp 96.000

Insight: Pilih model yang sesuai task. Routing pakai murah, reasoning pakai kuat.


🛡️ Safety Rules

  1. Set budget cap di provider (OpenAI, Anthropic, dll)
  2. Monitor usage minimal 1x/minggu
  3. Gunakan model murah untuk task yang ga butuh reasoning berat
  4. Cache ketika bisa — ga perlu call API untuk data yang sama
  5. Token counting sebelum deploy — tahu estimasi biaya

📋 Checklist Peserta

  • [ ] Punya API key dari minimal 1 provider
  • [ ] Tahu cara set billing limit
  • [ ] Bisa estimasi biaya per task sederhana

Bootcamp AI Automation — akala.id