Why Output Tokens Dominate AI API Invoices
Across OpenAI, Anthropic, and Google models, output tokens cost 4x to 6x more than input tokens. Reasoning models also bill internal thinking tokens as output. Forecasting total monthly spend requires combining uncached input, cached prefix reads, output tokens, and batch discounts together.
The Monthly API Cost Formula
Worked Example: Hybrid Routing for a Support Bot
Sending 500 daily support tickets (2,500 input / 600 output tokens, 40% cached) entirely to a $2/$10 production model costs roughly $136.50/month. Routing 80% of simple questions to a $0.10/$0.50 high-volume tier and escalating only 20% drops the total bill to roughly $32.75/month.
Frequently Asked Questions
Does prompt caching have a minimum token threshold?
Yes. Most providers require static prefixes of at least 1,024 to 2,048 tokens before prompt caching activates.
When should I avoid Batch API mode?
Never use asynchronous Batch mode for live chat where users wait on screen. Use it for bulk overnight tagging, evaluation runs, and report generation.
What happens if my prompt exceeds 100K or 200K tokens?
Several models step up to higher long-context rates past 100K or 200K input tokens. Check your exact split in our Context Budget Planner.