A practical guide to controlling AI API cost with model selection, token budgets, observability, and tested fallback policies.