Developer API

Build with Lyra

Integrate hyper-realistic digital humans into your own applications with our powerful REST and WebSocket APIs.

Getting Started

The Lyra API allows you to programmatically create, manage, and interact with digital human avatars. Whether you are building a web app, mobile app, or VR experience, our API provides the low-latency infrastructure you need.

REST API

Manage sessions, avatars, and knowledge bases.

Real-time WebSocket

Low-latency streaming for voice and video interactions.

example.js
const lyra = new LyraClient({
  apiKey: process.env.LYRA_KEY
});

// Create a new session
const session = await lyra.sessions.create({
  avatarId: "avatar_123",
  voiceId: "voice_abc",
  knowledgeBase: "kb_healthcare_v1"
});

// Listen for events
session.on('message', (msg) => {
  console.log('Avatar says:', msg.text);
});

await session.connect();