image.png,image.png
# ask-ai
a
image.png,image.png
t
Thanks for reaching out, Anurag. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Could you please share a bit more about what you’re looking for with the usage and session metrics in the images? Whether you need help understanding the data, troubleshooting something, or anything else, I’m here to help you through it!
a
usage shows 329 minutes for 173 second calls
t
Thank you for reaching out! I’d love to help clarify how session minutes are calculated in LiveKit. Basically, we round up to the nearest whole minute when measuring usage. So, if you have a call that lasts 173 seconds (which is about 2 minutes and 53 seconds), we would round that up to 3 minutes for billing. This rounding method is consistent across all time-based usage, including WebRTC participant minutes, agent session minutes, and SIP participant minutes. We use a minimum increment of 1 minute, so any partial minute you use is always rounded up to ensure accuracy. Sources: Billing | LiveKit Docs | Quotas and limits | LiveKit Docs | .changeset/silly-books-attend.md
a
but how it makes sense 173 seconds billed as 329 minutes
t
Could you please share a bit more about the sessions you're referring to? For instance, are there several sessions adding up to the total, or is this difference showing up for just one session? Also, are you noticing this on the usage dashboard or in a particular billing statement? I'm here to help you get to the bottom of this!
a
image.png
t
The image shows session details with durations ranging from 18 to 56 seconds. I’d love to understand a bit more about how these sessions connect to the reported 329 minutes. For instance, are these the only sessions counted in that total, or are there additional ones not shown here? Your insights will really help us get to the bottom of this together!
a
image.png
billing statement for those sessions
t
Let's work together to reconcile the session durations with your billing statement. Here’s a simple way to do it: 1. Start by reviewing the individual session durations in the analytics dashboard. Each session's duration adds up to the total connection minutes. 2. Next, add up the connection time for all billable participants across sessions. Keep in mind, LiveKit rounds up each session duration to the nearest full minute. 3. Then, compare the total connection minutes with what you see on the billing statement. For instance, a 173-second session would be rounded up to 3 minutes for each participant. 4. Also, make sure that only human or agent participants are included in the connection minutes, since ingress, egress, and SIP users aren’t counted. If you still notice any differences, you can download a detailed invoice from the billing page and cross-check the session times with the analytics dashboard. Please feel free to reach out if you'd like me to guide you through any part of this—I’m here to help! Sources: Billing | LiveKit Docs | Understanding LiveKit Cloud Pricing | Say hello to improved Cloud analytics | pkg/telemetry/prometheus/rooms.go