Skip to main content
LemonSlice provides real-time interactive AI avatars with synchronized lip-sync. Add a self-managed video avatar to your agent that speaks with natural movements and expressions.
Vision Agents uses Stream Video for real-time WebRTC transport by default. External WebRTC transports are supported as well. Most AI providers offer free tiers to get started.

Installation

Quick start

Set the following environment variables:
  • LEMONSLICE_API_KEY - Your LemonSlice API key
  • LIVEKIT_URL - Your LiveKit server URL (e.g., wss://your-server.livekit.cloud)
  • LIVEKIT_API_KEY - Your LiveKit API key
  • LIVEKIT_API_SECRET - Your LiveKit API secret

Parameters

How it works

The avatar works differently depending on your LLM type: With standard LLMs
  1. LLM generates text → TTS converts to audio → Audio sent to LemonSlice → LemonSlice generates synchronized avatar video and audio
With Realtime LLMs
  1. Realtime LLM generates audio → Audio sent to LemonSlice → LemonSlice generates video only (audio from LLM)

Custom avatar image

Instead of using a pre-configured agent ID, you can provide a custom avatar image:

Next steps

Build a voice agent

Get started with voice

Build a video agent

Add video processing

Build your own avatar

Subclass the Avatar base class