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 balasRule of thumb:
- 1 token ≈ 4 karakter ≈ 0.75 kata bahasa Indonesia
- 1000 tokens ≈ 750 kata
💵 Estimasi Biaya per Model
| Model | Input (per 1M token) | Output (per 1M token) | Best For |
|---|---|---|---|
| GPT-4o-mini | $0.15 | $0.60 | Task simple, routing |
| GPT-4o | $2.50 | $10 | Task umum, reasoning |
| Claude 3.5 Sonnet | $3 | $15 | Writing, analysis |
| Claude 3 Haiku | $0.25 | $1.25 | Quick tasks, classification |
| Gemini 1.5 Flash | $0.075 | $0.30 | Budget 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.000Insight: Pilih model yang sesuai task. Routing pakai murah, reasoning pakai kuat.
🛡️ Safety Rules
- Set budget cap di provider (OpenAI, Anthropic, dll)
- Monitor usage minimal 1x/minggu
- Gunakan model murah untuk task yang ga butuh reasoning berat
- Cache ketika bisa — ga perlu call API untuk data yang sama
- 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