HeyGen
HeyGenProvider in the Vercel.AI.HeyGen namespace creates the HeyGen models that this port implements. The API reference lists every option: HeyGenProvider.
Browse the upstream catalog of HeyGen models and their pricing on the Vercel AI Gateway models page.
Models
Section titled “Models”| Kind | Factory method | Model ids in this port’s tests and docs |
|---|---|---|
| Video | Video, VideoModel |
heygen-video-1 |
| Decision | DecisionModel |
heygen-decision-1, heygen-decision-1-turbo |
A model id in the table is one that the tests or docs use. It is not the complete list of ids the provider accepts. Pass any id that the provider documents. An id that links to the Vercel AI Gateway catalog has a Gateway slug listed there.
Example
Section titled “Example”Video model:
var model = (IVideoCaller)HeyGenProvider.Create().Video("heygen-video-1");var result = await GenerateVideo.GenerateVideoAsync( new GenerateVideoRequest { Model = model, Prompt = new VideoPrompt("A yorkie among dandelions at Crissy Field."), });
await File.WriteAllBytesAsync("video.mp4", result.Video.Data);See the Providers guide for authentication and provider options.
Model capabilities
Section titled “Model capabilities”Use HeyGenModelCapabilitiesLookup.Get(modelId) from Vercel.AI.HeyGen to look up a model’s declared capabilities and provider options, grouped by endpoint. It makes no API request and needs no configuration. It returns null for a model id the catalog does not list.
using Vercel.AI.HeyGen;
var model = HeyGenModelCapabilitiesLookup.Get("heygen-video-1");foreach (var (endpoint, metadata) in model?.Endpoints ?? []){ Console.WriteLine($"{endpoint}: {metadata.Operation}");}Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product