What dominates my AI coding bill?
Input re-billing across turns — typically 90%+ of session tokens. Output is the receipt, input is the bill.
Glossary · AI Coding Token Costs (2026)
Price the input, not the prose.
Direct answer
2026 reference pricing: Claude Sonnet-class input ~$2/M tokens, Opus-class ~$5/M; cached input ~10% of fresh. A 200-turn session re-bills its context every turn — so a 50K-window habit costs ~10M tokens per session before output. The bill equation is per-turn-context × turns, which is why packing (smaller context) beats prompting (cleverer words) by orders of magnitude. Refresh yearly; providers reprice.
In Anvaya
Questions
Input re-billing across turns — typically 90%+ of session tokens. Output is the receipt, input is the bill.
Caching discounts price (~90% off stable tokens); memory shrinks quantity (12–25x fewer dynamic tokens). Stack them.
Per-turn packed context × expected turns ÷ cache-hit share. Measure one week with /cost-style accounting, then project.
One binary. 11+9 Rust crates. 545 tests. Hand-written HNSW index. Three transport modes. Four providers, Ollama, Anthropic, OpenAI, Siemens. Zero API keys required to start. Mind remembers everything after the first session.