Skip to content

Interactive Avatar

This example assumes using HeyGen; is in scope and apiKey contains your HeyGen API key.

1
2
3
4
5
6
7
// https://app.heygen.com/settings?nav=API
// Your Trial Token can be used to test the following HeyGen APIs at no charge:
// Video Generation: Create up to 5 watermarked videos per day. Documentation.
// Interactive Avatar: Create up to 3 concurrent Streaming sessions; up to 300 minutes per month. Documentation.
using var api = new HeyGenClient(apiKey);

await api.StreamingApi.StreamingCreateTokenAsync();