The chatbot cost problem
AI chatbots are one of the fastest-growing cost centers in enterprise tech. A customer support bot handling 1,000 conversations per day on a flagship model - GPT 5.6 Sol or Claude Opus 4.8 - runs into thousands of dollars a month in API costs alone. Most of that spend is unnecessary.
Why chatbots overspend
Three patterns drive most chatbot waste:
1. Every message gets the same model
A "What are your hours?" question costs the same to answer as a "Walk me through migrating our Kubernetes deployment." Most chatbot frameworks pick one model and use it for everything.
2. System prompts rebuilt every call
Chat APIs are stateless. Every message in a conversation re-sends the full system prompt, conversation history, and any context documents. Without prefix caching, you pay full input price on every turn.
3. No visibility into per-conversation cost
Provider dashboards show monthly totals. You can't see that 5% of conversations (the complex technical ones) drive 40% of spend.
The fix
Step 1: Visibility
Wrap your chatbot's LLM client with Tokeven. Every message gets tracked with model, token counts, cost, session ID, and latency. Within a day you'll see:
- •Average cost per conversation
- •Which conversation types are expensive
- •How many tokens your system prompt costs per turn
- •Cache hit rates (if you're using prefix caching)
Step 2: Cache your system prompt
Structure your system prompt so the static parts come first. Provider-level prefix caching - available on every model in Tokeven's registry, across all four providers - caches the common prefix and charges a reduced rate on subsequent turns.
For a chatbot with a 2,000-token system prompt handling 20-turn conversations, this alone cuts input costs by roughly 40%.
Step 3: Tier your models
Use the advisor to identify which conversations can drop to a cheaper model. Common patterns:
| Conversation type | Suggested model | Token-price saving vs the flagship |
|---|---|---|
| FAQ / simple lookup | Claude Haiku 4.5 or GPT 5.6 Luna | 80-95% |
| Structured extraction | Claude Sonnet 4.6 or GPT 5.6 Terra | 40-50% |
| Complex reasoning | Keep on Claude Opus 4.8 or GPT 5.6 Sol | 0% (but now you know why) |
The percentages are the per-token price difference against that provider's flagship row in Tokeven's model registry - Claude Opus 4.8 and GPT 5.6 Sol - not a projection. What you actually save depends on your traffic mix.
The advisor gives you confidence scores so you can set your own threshold. Start conservative (95%+ confidence) and widen as you build trust.
Step 4: Track and iterate
The weekly digest shows cost trends, model mix changes, and new optimization opportunities. As your chatbot's topic distribution shifts, the advisor adjusts its suggestions.
Results
Teams that follow this pattern typically see 40-60% cost reduction within the first month. The savings come from three sources:
- •Cache optimization: 20-40% of input costs
- •Model tiering: 30-50% of total costs on downgraded calls
- •Prompt efficiency: 5-15% from tighter prompts (the advisor flags bloated system prompts)
All savings are verified and auditable in the Proof dashboard. You can see exactly which calls were optimized, what the original cost would have been, and how much was saved.