In a livekit server are there multiple rooms in an...
# ask-ai
a
In a livekit server are there multiple rooms in an agent session or multiple agent sessions in a room
t
Thanks for reaching out, David. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Just to clarify, in a LiveKit server, you have multiple agent sessions within a single room—not multiple rooms within an agent session. Think of each agent as a participant who joins the room and interacts with others. So, one room can have several agents, each running in their own separate session or process. If anything’s still unclear or you want to chat more about this, don’t hesitate to ask—I’m here to help! Sources: Anatomy of an Agent | LiveKit Docs | Worker options | LiveKit Docs | README.md | OpenAI Realtime API and LiveKit | LiveKit Docs
a
What is the purpose of multiple rooms then
t
Think of multiple rooms in a LiveKit server like separate hangout spots where people can chat, share video, and send data without bumping into each other. Each room is its own little bubble, keeping things private and interference-free. These rooms also help the server handle lots of conversations at once. In bigger setups, rooms can live on different servers to spread out the load and keep everything running smoothly. Plus, rooms pop up when someone joins and disappear when the last person leaves, so resources aren’t wasted. If you want to dive deeper or have specific scenarios you’re curious about, just give me a shout—I’m here to help! Sources: Core API primitives | LiveKit Docs | Rooms, participants, and tracks | LiveKit Docs | Distributed Setup | LiveKit Docs | Distributed Setup | LiveKit Docs
a
Imagine an app with 150 active users all in different rooms with a single agent. How would the agent session billing be like? Would it be $ 0.01 per min for each room. What livekit plan can support 1000 active users and agent pair in different rooms
t
Hey there! Just to break it down, agent session billing is $0.01 per minute for each active agent session. So, if you have 150 users in different rooms with one agent per room, it works out to $0.01 per minute per room, which adds up to $1.50 per minute for all 150 rooms. If you're looking to support 1,000 active users with agents spread across different rooms, the Scale plan is a great fit. Here’s what it includes: • 50,000 agent session minutes per month (and if you go over, it’s just $0.01 per extra minute). • 50 concurrent agent sessions, with the option to request more if you need them. • Unlimited concurrent connections for both participants and agents. Need more than 50 concurrent agent sessions? No worries! You can easily request an increase through the project settings on the Scale plan. And for even bigger setups, LiveKit offers custom Enterprise plans tailored just for you. Feel free to reach out if you want to chat more or need any help — I’m here for you! Sources: Deploy and scale agents on LiveKit Cloud | LiveKit Pricing | Quotas and limits | LiveKit Docs
a
What if there are two users and one agent in a room how much would that cost
t
Hey there! For a room with two users and one agent, here’s a simple breakdown of the costs: • Connection Minutes: Each user is charged $0.0005 per minute, and the agent is $0.01 per minute. So, for a 10-minute session, it adds up like this: (2 × $0.0005 × 10) + ($0.01 × 10) = $0.11. • Bandwidth: This is $0.12 per GB of outbound data. For a 10-minute audio-only session, the bandwidth cost is roughly $0.01. • Transcoding: Since this is a WebRTC-to-WebRTC session, there’s no transcoding cost here. Total Estimated Cost: Altogether, a 10-minute session would be about $0.12. If you have more details, like if you’re using video or SIP connections, just let me know! I’m happy to help fine-tune the estimate for you. Sources: Understanding LiveKit Cloud Pricing | LiveKit Cloud Pricing | livekit/livekit_composite | DeepWiki | LiveKit Pricing | Billing | LiveKit Docs