To calculate API costs for a call in LiveKit, follow these steps:
1.
Gather Required Information: Determine session duration, average bitrate, number of participants, and your LiveKit Cloud plan details.
2.
Estimate Bandwidth Costs:
◦ Convert bitrate to bytes per second and calculate bandwidth in gigabytes (GB).
◦ Multiply by the number of participants and the cost per GB.
1.
Estimate Connection Minutes Costs:
◦ Calculate billable participants and multiply by session duration and cost per minute.
1.
Estimate Transcoding Costs (if applicable):
◦ Calculate transcoding minutes based on room or participant usage and multiply by the cost per minute.
1.
Estimate SIP Costs (if applicable):
◦ Determine SIP participants and calculate SIP minutes cost.
1.
Calculate Total Cost: Add up bandwidth, connection minutes, transcoding, and SIP costs.
For example, a 60-minute session with 100 participants and a 500,000 bps bitrate would result in approximately 21.09 GB of bandwidth, costing $2.53 at $0.12/GB. Adjust calculations based on your specific session details.
Sources:
Understanding LiveKit Cloud Pricing |
LiveKit Cloud Pricing | livekit/livekit_composite | DeepWiki