Savings Playbooks // DialStack Metrics
Xiaomi MiMo vs GPT-4o-mini: Voice Dialog Token Economics
Conversational phone turns repeat the system prompt on every utterance, making input-token pricing the hidden multiplier in long calls.
Measured Unit Economics & Telemetry
A 6-minute call with 22 user turns re-sends an expanding 1,500-4,000 token context window repeatedly. Routing routine scheduling and qualification turns through fast, low-cost OpenAI-compatible endpoints like Xiaomi MiMo trims LLM spend to ~$0.0012/min.
| Cost / Latency Line | Audited Value | FinOps Impact |
|---|---|---|
| Avg Context Tokens / Min | 14,000 - 22,000 input | Cumulative across 4-5 turns/min |
| Xiaomi MiMo Fast Cost/Min | ~$0.0012 / min | Lowest unit cost for structured turns |
| GPT-4o-mini Cost/Min | ~$0.0045 / min | Higher cumulative context cost |
| Prompt Cache Hit Savings | 45% - 65% | Keep static system prompt prefix fixed |
Implementation & Configuration Checklist
- Freeze Static System Prefix: Place dynamic caller CRM fields at the end of the prompt so prefix caching hits on every turn.
- Cap Tool-Call JSON Verbosity: Use concise enum keys for appointment booking functions to save 40-80 output tokens per turn.
- Trim History Beyond 12 Turns: Summarize older turns asynchronously so context window cost stays flat on 15-minute calls.
LLM_PROVIDER=mimo
LLM_MODEL=mimo-v2-flash
LLM_MAX_TOKENS=140
LLM_TEMPERATURE=0.3
FinOps Engineering FAQ
Why do short phone calls burn so many input tokens?
Every time the caller pauses, the full system prompt plus conversation transcript is re-submitted to generate the next spoken sentence.
Can Pipecat swap LLMs without changing SIP or TTS?
Yes. Any OpenAI-compatible endpoint swaps cleanly via LLM_BASE_URL and LLM_MODEL environment variables.