Jonas
03/27/2025, 4:00 PMVapi Support Bot
03/27/2025, 4:02 PMin-progress
state even after being hung up," with the ended reason being "Unknown Error." This is one of the most common causes of duration discrepancies.
2. **Call Status Updates**: Vapi updates the call status based on callbacks from Twilio (which has four states: queued, ringing, answered/in-progress, and completed). If the system doesn't receive the proper "completed" status callback, it may continue counting the duration.
3. **Voicemail Detection Issues**: If the call involved voicemail detection, issues with the machineDetectionSilenceTimeout
parameter could cause the system to record a longer duration than the actual recording.
## How Charges Are Calculated
Your charges are affected by this discrepancy because:
- **STT (Speech-to-Text)**: Vapi charges $0.05/min for STT, prorated per second. With a system-stated duration of 4m27s, this explains the $0.05 STT charge shown.
- **LLM (Language Model)**: LLM charges are based on token usage rather than duration. Your call used 29,954 prompt tokens and 54 completion tokens, but the cost shows as $0.00, suggesting minimal LLM usage during the call.
The total cost of $0.31 likely includes the platform fee and other components based on the system-stated duration of 4m27s, not just the 15-second recording duration.
Would you like me to provide more details about any specific aspect of how Vapi calculates these charges?
Sources:Vapi Support Bot
03/27/2025, 4:02 PMJonas
03/27/2025, 9:03 PMKyle Brunker
03/31/2025, 10:14 AMJonas
04/01/2025, 4:44 AMKyle Brunker
04/01/2025, 10:11 PM