Streaming API Overview
HeyGen's Streaming API allows developers to seamlessly integrate dynamic Interactive Avatars into their applications for immersive user experiences. With this API, you can display an Interactive Avatar in a real-time seting to create virtual assistants, training simulations, and more, utilizing low-latency communication between users and Interactive Avatars with power of WebRTC.
Quick Start
For a quick start, you can use our Interactive Avatar Demo GitHub repository. or install our SDK NPM Package. directly to your project. Please see the GitHub projects for installation instructions.
Streaming API Version Comparison
v1 (Raw WebRTC) | v2 (LiveKit) |
---|---|
Flexibility: Full control over WebRTC setup. | Simplicity: Managed WebRTC via LiveKit. |
Customization: Direct access to WebRTC configurations. | Ease of Use: Pre-built connection handling. |
Difficulty: Requires WebRTC expertise. | Setup: Minimal configuration needed. |
Environment: Works in any WebRTC-compatible setup. | Integration: Get up and running quickly with LiveKit client SDKs. Easily integrate with LiveKit-supported environments and the LiveKit ecosystem. |
The streaming.new
endpoint defaults to v1
, to change to v2
include "version": "v2"
in the request body.
More Information
For more information about the Streaming API, please read our Interactive Avatar 101 Help center article
About the Streaming Protocol
The Streaming API leverages the WebRTC (Web Real-Time Communication) protocol to ensure low-latency, secure communication between browsers and applications. This foundational technology offers advantages including low latency, cross-browser compatibility, data security, and scalability. For detailed information on WebRTC, visit the WebRTC website or WebRTC API page on MDN.
Use Cases
From interactive e-learning and gaming to virtual customer support and immersive entertainment, Interactive Avatars have the potential to transform industries.
In summary, the Streaming API empowers developers to create dynamic and interactive experiences by embedding Interactive Avatars into apps and websites of all kinds. Whether you're building virtual assistants, customer support, or immersive training simulations, this API offer the tools needed to bring avatars to life within your applications, marking a significant advancement in user engagement and interactivity.
Updated 15 days ago