To build AI agents on LiveKit, you create an AgentSession with your models, attach an Agent with instructions and tools, and run it with the LiveKit CLI so it joins rooms as a participant. Multimodal features are switches on top of that same session: video input, image content in the chat context, and an avatar session for video output.

This guide covers what LiveKit Agents is, the two architectures you can build on, the five rungs of multimodality with working code, and how LiveKit compares with other frameworks.

What is LiveKit Agents?

LiveKit Agents is an open-source framework that runs your AI as a participant inside LiveKit's WebRTC rooms, so it gets real-time audio, video and data the same way a human user does.

LiveKit started as an open-source WebRTC media server. LiveKit Agents adds a framework on top: your Python or Node.js program connects to a room, subscribes to the user's microphone, camera or screen share, and publishes its own audio, video and data back.

Build a Multimodal AI Agent on LiveKit

Discuss Your AI Agent Project
CTA Illustration

Because the agent is a room participant, every client LiveKit supports can talk to it: web, iOS, Android, Flutter, Unity and plain phone calls over SIP. You write the agent once.

Fact

Value

Source (date)

Free tier

1,000 agent session minutes a month, 5 concurrent sessions

LiveKit pricing (Nov 2026)

Paid plans

Ship from $50 a month, Scale from $500 a month

LiveKit pricing (Nov 2026)

Agent session overage

$0.01 per minute

LiveKit pricing (Nov 2026)

Network uptime

99.99%

LiveKit pricing (Nov 2026)

Media delivery

Voice and video worldwide in under 250 ms

LiveKit pricing (Nov 2026)

Turn detector languages

14

LiveKit turn detector docs (Nov 2026)

Live video sampling default

1 frame/s while speaking, 1 per 3 s otherwise, 1024x1024 JPEG

LiveKit video docs (Nov 2026)

Pipeline or realtime model: which architecture should you build on?

A pipeline gives you control and the lowest model cost; a realtime model gives you the most natural voice and native video understanding at a higher price per minute.

LiveKit supports two ways to wire the brain of a multimodal agent.

STT-LLM-TTS pipeline. Three specialized models in a chain. You choose each one, inspect the transcript at every step and swap providers freely. Video works by injecting sampled frames as images.

Realtime model. One speech-to-speech model, such as Gemini Live or OpenAI Realtime, hears audio and speaks back directly. It keeps tone and emotion that a transcript loses, and supports true live video input.

 

STT-LLM-TTS pipeline

Realtime model

Model cost per minute (LiveKit Inference list)

About $0.018 with defaults (LLM $0.0014, STT $0.0075, TTS $0.009)

Gemini 3.8 Live $0.0182, GPT Realtime 2.1 mini $0.0216, GPT Realtime 2.1 $0.0676

Voice expressiveness

Depends on the TTS

Highest; keeps tone and emotion

Live video input

Sampled frames as images

Native (Gemini Live, OpenAI Realtime)

Control and debugging

Full transcript and per-stage metrics

Less visibility inside the model

Provider choice

Any STT, LLM, TTS

Locked to the realtime provider

Best for

Phone agents, regulated workflows, cost-sensitive scale

Tutors, companions, visual assistants, demos that must feel alive

Model prices from the LiveKit pricing calculator, Build/Ship plan, Nov 2026. Agent session time ($0.01 a minute after plan allowances) is billed on top. Video frames add token cost on realtime models.

The LiveKit Multimodal Ladder: five rungs from voice to avatar

Add one modality at a time, in this order, and only climb a rung when the use case needs it; each rung raises cost, latency risk and test surface.

We call this the LiveKit Multimodal Ladder. Teams that jump straight to an avatar with live video usually spend weeks debugging problems that belong to rung 1.

Rung

Modality

What it adds

Works with

1

Voice in, voice out

Natural conversation, phone calls

Pipeline or realtime

2

Images

User uploads a photo, document or screenshot; agent sends images back

Pipeline or realtime (vision LLM)

3

Sampled video frames

Agent glances at the camera or screen when the user finishes a turn

Pipeline

4

Live video input

Agent watches camera or screen share continuously

Realtime (Gemini Live, OpenAI Realtime), Python only

5

Avatar video out

Agent appears as a lip-synced face

Pipeline or realtime

Rung 1: a voice agent in 10 minutes

Install the LiveKit CLI, sign in with lk cloud auth, then scaffold and run a starter:

Code Snippetjavascript
lk agent init my-agent --template agent-starter-python
 cd my-agent
 lk agent dev

The core of the generated agent is one session. This is LiveKit's current Python quickstart pipeline, using LiveKit Inference so you don't need separate provider keys:

Code Snippetjavascript
from livekit import agents
 from livekit.agents import AgentServer, AgentSession, Agent, inference, TurnHandlingOptions

 class Assistant(Agent):
 	def __init__(self) -> None:
         super().__init__(instructions="You are a helpful voice AI assistant. Keep answers short.")

 server = AgentServer()

 @server.rtc_session(agent_name="my-agent")
 async def my_agent(ctx: agents.JobContext):
 	session = AgentSession(
         stt=inference.STT(model="assemblyai/universal-3-6-pro", language="en"),
         llm=inference.LLM(model="google/gemma-4-31b-it"),
         tts=inference.TTS(model="fishaudio/s2.1-pro", voice="fa4c9eb3dccc4806b382b40d61c6b10a"),
     	turn_handling=TurnHandlingOptions(turn_detection=inference.TurnDetector()),
 	)
 	await session.start(room=ctx.room, agent=Assistant())
 	await session.generate_reply(instructions="Greet the user and offer your assistance.")

 if __name__ == "__main__":
 	agents.cli.run_app(server)

Get this rung right before anything else: replies within 800 ms of the user finishing, clean interruptions and no cut-offs. Our LiveKit voice agent latency guide covers the tuning.

Rung 2: images in and out

Users can send an image from the frontend over a byte stream, and your agent adds it to the chat context as image content so a vision-capable LLM can read it. The agent can send images back the same way: a chart, a QR code or a product photo.

Good fits: insurance claims ("send me a photo of the damage"), support ("share a screenshot of the error"), retail ("is this the right part?").

Turn Your LiveKit Agent Idea Into a Production Solution

Talk to Our LiveKit Experts
CTA Illustration

Rung 3: sampled video frames on a pipeline

A pipeline LLM isn't trained to follow motion, so don't stream it every frame. Buffer the latest frame from the user's video track and attach it when the user finishes speaking. LiveKit's docs show this pattern with on_user_turn_completed:

Code Snippetjavascript
async def on_user_turn_completed(self, turn_ctx: ChatContext, new_message: ChatMessage) -> None:
 	if self._latest_frame:
         new_message.content.append(ImageContent(image=self._latest_frame))
     	self._latest_frame = None
Frames are sent as JPEGs at native size by default. Set inference_width and inference_height to shrink them and cut token cost.

Rung 4: live video with a realtime model

For an agent that watches continuously, such as a tutor following a student's screen or a field-service assistant looking through a phone camera, use a realtime model with video support and turn on video input:

Code Snippetjavascript
session = AgentSession(
     llm=inference.RealtimeModel(model="openai/gpt-realtime-2.1", voice="marin"),
 )
 await session.start(
 	room=ctx.room,
 	agent=Assistant(),
     room_options=room_io.RoomOptions(video_input=True),
 )

Three details from LiveKit's docs that catch teams out:

  • Only Gemini Live and OpenAI Realtime process live video. With an audio-only realtime model, video frames are silently ignored, with no error.

  • The agent uses only the single most recently published video track, camera or screen share.

  • Video input is passive. It doesn't trigger turns. For a non-conversational watcher, use manual turn control and call the LLM on a timer.

Rung 5: an avatar for video output

An avatar provider joins the room as a second participant. Your AgentSession sends its audio to the avatar worker, which generates lip-synced video and publishes both tracks. With the Anam plugin, it's a few lines before session.start:

Code Snippetjavascript
avatar = anam.AvatarSession(
     persona_config=anam.PersonaConfig(name="...", avatarId="..."),
 )
 await avatar.start(session, room=ctx.room)

On the frontend, React apps get the right audio and video tracks from the useVoiceAssistant hook. Avatars add their own rendering latency and per-minute cost, so measure end-to-end response time again after you add one.

Add tools so the agent can act

A multimodal agent becomes useful when it can call your APIs; LiveKit exposes Python functions to the LLM as tools.

Seeing and hearing is half the job. The agent also needs to look up an order, book a slot or open a ticket. Define tools as methods on your Agent, and the LLM calls them mid-conversation. Keep tool results short and spoken-friendly, because they become part of what the agent says next.

For multi-step flows, LiveKit supports tasks and handoffs between agents, such as a front-desk agent that hands a caller to a billing agent with context intact.

Deploy to production

Deploy with the LiveKit CLI to LiveKit Cloud, or self-host the open-source server and agents; most teams start on Cloud.

From your project folder, lk agent create registers, builds and deploys the agent to LiveKit Cloud, and lk agent deploy ships later changes. The Ship plan adds instant rollback and 20 concurrent sessions. Scale adds region pinning, HIPAA with a signed BAA and up to 600 concurrent sessions.

Self-hosting is fully supported because both the server and the Agents framework are open source. You then own servers, Redis, TURN, autoscaling and on-call. Phone access comes through LiveKit SIP with your own trunk or LiveKit's numbers.

Create a LiveKit Agent Built Around Your Business

Start Your AI Agent Project
CTA Illustration

LiveKit Agents vs other ways to build multimodal agents

LiveKit is the strongest pick when you need media transport, telephony and agent logic from one stack; other options win on simplicity or flexibility in specific cases.

1. LiveKit Agents

Open-source agent framework plus WebRTC media, SIP telephony, avatars and a managed cloud, with RTC LEAGUE among the top-ranked contributors in the LiveKit community.

Best for: Production agents that combine voice, video and phone calls and need control over hosting.

2. Pipecat

An open-source Python framework built around a processor pipeline, with a choice of transports (it can even run over LiveKit's WebRTC).

Best for: Teams that want maximum pipeline flexibility and are happy to assemble transport and hosting themselves.

3. Vapi and Retell

Hosted voice-agent platforms configured through an API and dashboard.

Best for: Fast phone-agent launches where video and deep media control aren't needed.

4. Gemini Live API or OpenAI Realtime directly

Connect straight to the model provider's realtime API from your app.

Best for: Prototypes and single-user demos, before you need rooms, telephony, recording or scaling.

How to choose a stack for your multimodal agent

Decide by modality, channel, compliance and who will run it at 2 a.m.

  • Which rung do you actually need? Most business agents stop at rung 2.

  • Will users call by phone? Then telephony support decides the framework.

  • Do you need a BAA, region pinning or zero data retention?

  • What's your model budget per minute, including video tokens?

  • Who handles upgrades, incidents and model changes after launch?

Final take

Build multimodal agents on LiveKit when voice is the core and vision or a face makes the experience better: tutors, visual support, telehealth intake, field service and kiosk assistants. Start on rung 1, get latency and interruptions right, then climb only as far as the use case pays for.

If your team would rather ship features than run real-time infrastructure, a managed LiveKit partner can build and operate the stack while you keep the code.