what is the concurrency limits in scale up plan an...
# ask-ai
f
what is the concurrency limits in scale up plan and how many livekit minutes are free
t
Thanks for reaching out, Viren. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Thanks — I’m responding about your question on concurrency limits and free minutes. Do you mean the "Scale" plan or a different "Scale Up" tier? If you mean the Scale plan: it includes up to 1,000 concurrent agent sessions and unlimited concurrent participant connections, imports, and exports. If you meant free minutes: the free Build plan includes 1,000 agent session minutes per month, 5,000 WebRTC participant minutes per month, and 50 GB downstream data transfer. Which plan were you asking about — Scale, Build (free), or another tier? Sources: LiveKit Pricing | Quotas and limits | LiveKit docs
f
i need the limits for "Ship" plan
t
You’re asking for the concurrency limits and included minutes for the Ship plan — here they are: • Concurrent agent sessions: Up to 20 across all agents. • Agent session minutes: 5,000 minutes included per month (overage $0.01/min). • Inference concurrency: 20 concurrent sessions for STT/LLM/TTS. • Participants (agents + end users): 1,000 concurrent connections. • WebRTC minutes: 150,000 minutes included per month (overage $0.0005/min). • Downstream data: 250 GB included per month (overage $0.12/GB). • Transcode minutes (shared for import & recording/export): 600 minutes included per month ◦ Overage: $0.02/min (video) or $0.005/min (audio-only). • Track egress: 600 minutes included per month (overage $0.001/min). • Telephony: 1 free US local number; 100 inbound minutes included (overage $0.01/min). • Price & extras: Plan starts at $50/month, includes team collaboration, email support, and instant rollback. Would you like this summarized as a one-line comparison to another plan (Build or Scale), or details about how overages are billed on your bill? Sources: LiveKit Pricing
f
what is the difference between Agent session minutes and WebRTC minutes
t
You're asking how Agent session minutes differ from WebRTC minutes — here's the distinction: • Agent session minutes: Time counted while an AI agent (an agent process) is actively connected and running a session. This measures how long agent instances are in use (conversation/processing time). • WebRTC minutes: Total media streaming time for WebRTC participants (agents plus end users). This measures actual audio/video/data streaming duration across participant connections. In short: Agent minutes track the AI agent's active runtime; WebRTC minutes track media streaming time for participant connections. Would you like an example showing how both meters accumulate during a typical call?
f
what's the difference between livekit and livekit-agents
t
You’re asking the difference between LiveKit and LiveKit Agents — here’s the concise distinction: • LiveKit: The core real-time communication platform (SFU-based). It provides the server, client SDKs, and tooling to build WebRTC audio/video/data apps (video conferencing, livestreaming, telehealth, etc.). Use it when you need scalable human-to-human or device-to-human RTC. • LiveKit Agents: A framework built on top of LiveKit that lets AI programs join rooms as virtual participants. It adds AI-specific features (LLM orchestration, STT/TTS pipelines, tool calling, agent handoffs) so models can interact with humans in real time. Use it when you want AI-driven participants (voice assistants, call-center bots, NPCs) within LiveKit rooms. If you’d like, I can give examples of how each is used in a typical call flow or list available SDKs for Agents. Which would help more? Sources: And…we’re Live(Kit)! | Groq and LiveKit | LiveKit Docs | Intro to LiveKit | LiveKit docs | Aggregated LiveKit Platform | livekit/livekit_composite | DeepWiki | LiveKit SDKs Overview | LiveKit Docs
f
i have telephony SIP trunk service can i connect with web-sockets and use livekit?
t
You're asking whether you can connect your SIP trunk via WebSockets to LiveKit. No — LiveKit does not support connecting SIP trunks over WebSockets. Connect SIP trunks to LiveKit using standard SIP (UDP/TCP/TLS on SIP ports), and LiveKit will bridge that SIP call into a room using WebRTC for participant media. If you want, tell me your SIP provider and whether you need inbound, outbound, or both, and I’ll outline the specific steps to route calls into a LiveKit room. Sources: SIP APIs | LiveKit docs | Ports and firewall | LiveKit docs | OpenAI and LiveKit partner to turn Advanced Voice into an API | LiveKit Docs | Making outbound calls | LiveKit docs
f
what is the cost for self hosting livekit and limits for concurrency and livekit agents minutes?
t
You’re asking about self‑hosting costs and limits for concurrency and LiveKit Agents minutes. Here’s the concise answer: • Cost: LiveKit is open‑source and free to self‑host. You pay your own infrastructure costs (compute, bandwidth, storage) — there’s no LiveKit license fee. • Concurrency limits: There are no fixed platform limits for self‑hosted deployments. Capacity depends on your hardware and architecture: ◦ A single node can handle hundreds to thousands of listeners depending on workload (examples: up to ~3,000 audio-only listeners or ~3,000 viewers in a 1→3,000 livestream in benchmarks). ◦ Rooms are single-node scoped, and you scale horizontally (multiple nodes + Redis) to support many rooms and thousands of concurrent users. • LiveKit Agents minutes: The Agents framework is free to self‑host and has no built‑in usage caps. Agent capacity (concurrent agents and agent session minutes) depends on how many agent processes/servers you run and their resources. If you want, tell me your expected concurrency (participants per room, number of simultaneous rooms, audio vs. video, and whether you’ll run agents per call) and I’ll provide a starting infrastructure estimate (VM sizes, bandwidth, and rough cost ranges). Sources: Intro to LiveKit | LiveKit docs | The end of Participant Minute pricing | Benchmarking | LiveKit docs | Distributed Setup | LiveKit docs | Deploying to custom environments | LiveKit Docs
f
50 concurrent audio SIP calls, 5 participants per room if i self host livekit, do i need to pay for ship plan? or is there any limit?
t
You can self‑host — you do not need to pay for the Ship plan just to run 50 concurrent audio SIP calls. LiveKit is free to self‑host and has no built‑in licensing limits; capacity is determined by your infrastructure. For 50 concurrent audio SIP calls with up to 5 participants per room (assumes audio-only media and SIP bridged into rooms), here are practical starting recommendations: • Compute: ◦ 1–2 medium‑sized nodes (each ~4 CPU cores, 8–16 GB RAM) should handle this load as audio is lightweight; start with 1 node and add a second for headroom and HA. • Network: ◦ Plan for ~1–2 Mbps upstream per concurrent active audio call peak (codec dependent); estimate ~50–100 Mbps total to be safe. • High availability: ◦ Use at least 2 nodes + Redis for coordination so rooms survive node failures. • SIP integration: ◦ Bridge SIP trunks to LiveKit using standard SIP (UDP/TCP/TLS). Each SIP call becomes a SIP participant in a room. • Agents: ◦ If you run LiveKit Agents in those rooms, size agent servers separately (agents consume CPU/memory based on model work). If you want, tell me your audio codec, expected bitrate per call, whether calls are mostly active talk or passive listening, and if you’ll run agents per call — I’ll produce a tighter VM/bandwidth estimate and a minimal deployment diagram.
f
active talk with AHT 1.4 minutes. can u give me the number of VMs and their configuration?
t
Thanks — based on 50 concurrent audio SIP calls, 5 participants per room, active talk, AHT 1.4 min, here’s a concise recommended self‑hosted deployment and rationale. Assumptions • Audio-only (Opus), active talk (many publishers), each room up to 5 participants. • 50 concurrent rooms → ~250 concurrent participants. • Average subscriptions per participant ~4 → ~1,000 downtracks. • Rooms are single-node scoped; Redis for multi-node coordination. • SIP bridging adds signaling + RTP handling. Recommended infrastructure 1. LiveKit servers • 2 × VMs (for HA / rolling updates) • Each VM: 16 vCPU, 16 GB RAM, 10 Gbps NIC • Role: run LiveKit server + SIP gateway component (can co-locate) 1. Redis • 3-node Redis (HA): 2 vCPU, 4 GB RAM each (or managed Redis) 1. Load balancer & TLS • 1 LB for signaling (TLS termination) → distribute WebSocket/API traffic to LiveKit nodes 1. TURN (optional) • Co-locate or separate small VM if required for clients behind restrictive NATs 1. SIP RTP ports / firewall • Ensure SIP ports (5060/5061) and RTP port range are open between SIP provider and SIP gateway. Why this sizing • Estimated need ≈ 10 CPU cores for forwarding ~1,000 downtracks; rounding/upheadroom → 14–16 vCPUs per node. • Two nodes provide fault tolerance and headroom for bursts and churn from short AHT. • 10 Gbps NIC prevents network bottlenecks (estimate ~50–100 Mbps aggregate; headroom for signaling and spikes). Optional adjustments • If you expect higher concurrency or add recording/noise-suppression, increase to 2 × 32 vCPU nodes or add more nodes horizontally. • If cost constrained, start with 1 × 16 vCPU node + 1 standby smaller node, run load tests, then scale to 2 equal nodes. If you want, I can: • produce a concrete VM SKU recommendation for AWS/GCP/Azure, • estimate monthly infra cost, • or provide a minimal Terraform/K8s pod spec for this setup. Which would you prefer? Sources: Benchmarking | LiveKit docs | Going beyond a single-core | Deploying LiveKit | LiveKit docs | Running LiveKit on AWS | LiveKit Server Platform | livekit/livekit_composite | DeepWiki
f
can u list the steps for self-hosting livekit and how to manage this scale and integrate telephony SIP for doing 50 concurrent calls? also estimate monthly infra cost
t
Acknowledging your request: you want step-by-step self-hosting instructions, how to manage scale for 50 concurrent audio SIP calls (5 participants/room), SIP integration steps, and a monthly infra cost estimate. Below is a concise, actionable plan. 1) Deployment choices (pick one) • Docker Compose (fast to get running; Caddy auto-SSL). Good for small clusters. • Kubernetes with Helm (recommended for production scale and HA). 2) Core components to deploy • LiveKit server (2 nodes for HA) • Redis cluster (3-node) for coordination • SIP gateway/service (livekit-sip) • Load balancer (for signaling / WebSocket) • TURN server (optional but recommended) • Monitoring (Prometheus + Grafana) and logging 3) Step-by-step setup (high level) 1. Provision VMs or k8s cluster in your cloud of choice. 2. DNS & TLS: point domain (e.g., livekit.example.com) and provision certs (Caddy/Let's Encrypt). 3. Install Redis (3-node or managed Redis) and secure it (VPC-only, auth). 4. Deploy LiveKit servers: ◦ Docker: generate compose with livekit/generate, configure livekit.yaml (API key/secret, redis addr, turn config), docker-compose up -d. ◦ Kubernetes: add LiveKit Helm repo, set domain/redis/turn, helm install. 1. Configure TURN (TLS) for NAT traversal. 2. Deploy SIP service (livekit-sip) and configure it to point at your LiveKit API endpoint and Redis. 3. Open firewall ports: ◦ TCP 443 (TLS / signaling), TCP 7880 (if using nonstandard), UDP/TCP 5060/5061 (SIP), UDP RTP range (e.g., 10000–20000), TURN ports (5349), Redis internal port (6379 internal). 1. Setup Load Balancer: route signaling (TLS) to LiveKit nodes; use health checks and sticky sessions for WebSocket resilience. 2. Configure SIP trunks with your provider: ◦ For inbound: set provider to forward to SIP gateway public IP/hostname, register numbers. ◦ For outbound: configure auth/peer settings on SIP provider and in livekit-sip. 1. Create dispatch rules in LiveKit to map incoming SIP calls to rooms/agents (use the SIP dispatch API). 2. Test end-to-end: SIP provider → SIP gateway → LiveKit room → WebRTC clients/agents. 3. Add monitoring & alerting; run load tests and scale nodes as needed. 4) Scaling and capacity management for your scenario • Target load: 50 concurrent SIP calls → 50 rooms × up to 5 participants = ~250 concurrent participants. • Sizing recommendation (safe starting point): ◦ LiveKit nodes: 2 × 16 vCPU, 16 GB RAM, 10 Gbps NIC (each runs LiveKit + SIP gateway). Two nodes provide HA and headroom. ◦ Redis: 3 × small VMs (2 vCPU, 4 GB) or managed Redis. ◦ TURN: co-locate or small dedicated VM depending on client distribution. • Placement notes: ◦ Rooms are single-node scoped; Redis coordinates across nodes. ◦ If one node fails, other nodes continue handling new rooms; existing rooms on failed node are disrupted unless you implement additional session handoff strategies. • Scaling approach: ◦ Horizontal: add LiveKit nodes and rebalance new connections via LB. ◦ Autoscale on CPU/network metrics during bursts. ◦ For SIP call density, consider separate SIP worker nodes if SIP processing grows. 5) SIP integration specifics • Use standard SIP (UDP/TCP/TLS). Do NOT attempt to bridge SIP over WebSockets to LiveKit. • Expose SIP ports (5060/5061) and RTP port range to your SIP provider. • livekit-sip will create SIP participants that join rooms; configure dispatch rules to assign rooms/agents. • Ensure RTP payload and codecs (Opus preferred) match between SIP provider and LiveKit (transcoding may be required). • If you need PSTN numbers, provision via providers like Twilio, Telnyx, etc., and point trunks to your SIP gateway. 6) Security & networking • Keep Redis internal (VPC/subnet) and protected. • Use TLS for signaling and TURN. • Harden SIP with TLS, IP allowlists, and authentication for outbound trunks. • Monitor RTP port usage and restrict to provider IPs where possible. 7) Monthly infra cost estimate (ballpark) • 2 × 16 vCPU, 16 GB VMs (LiveKit + SIP): ~$140–$300 total/month depending on cloud/provider (e.g., $70–$150 each). • Redis 3-node (small VMs or managed): ~$18–$80/month. • Load balancer: ~$15–$40/month. • TURN (if separate): ~$10–$50/month. • Bandwidth (egress): ~20–50 GB/month → ~$2–$5 (varies by region/provider). • Misc (DNS, logging, monitoring): ~$10–$30/month. Estimated total monthly: approximately $200–$500 depending on provider, VM SKUs, managed services, and redundancy choices. (If you use smaller VMs or a cheaper provider, costs can be lower; for more headroom or recording/noise-suppression, costs rise.) 8) Next steps I can help with • Translate this into exact AWS/GCP/Azure VM SKUs and pricing for your region. • Provide docker-compose or Helm values snippets for the config you need. • Create a checklist for SIP trunk setup for a specific provider (Twilio/Telnyx/etc.). Which next step would you like? Sources: Running LiveKit locally | LiveKit docs | Deploying LiveKit | LiveKit docs | Deploy to a VM | LiveKit docs | Deploy to Kubernetes | LiveKit docs | Deploying to custom environments | LiveKit Docs