HeyGenProvider
Namespace: Vercel.AI.HeyGen
public sealed class HeyGenProvider : OpenAICompatibleProviderHeyGen provider. It supports video generation only.
Inheritance: object → ProviderBase → OpenAICompatibleProvider
Constructors
Section titled “Constructors”HeyGenProvider(HttpClient, OpenAICompatibleOptions?)
Section titled “HeyGenProvider(HttpClient, OpenAICompatibleOptions?)”public HeyGenProvider(HttpClient httpClient, OpenAICompatibleOptions? options = null)Creates a provider. The API key is read when a model is used, not here.
Parameters
| Name | Type | Description |
|---|---|---|
httpClient |
HttpClient | |
options |
OpenAICompatibleOptions |
Fields
Section titled “Fields”DefaultBaseUrl
Section titled “DefaultBaseUrl”public const string DefaultBaseUrl = "https://api.heygen.com"Default API origin.
Value: string
ProviderId
Section titled “ProviderId”public const string ProviderId = "heygen"Provider id.
Value: string
Methods
Section titled “Methods”Create(OpenAICompatibleOptions?, HttpMessageHandler?)
Section titled “Create(OpenAICompatibleOptions?, HttpMessageHandler?)”public static HeyGenProvider Create(OpenAICompatibleOptions? options = null, HttpMessageHandler? handler = null)Creates a provider.
Parameters
| Name | Type | Description |
|---|---|---|
options |
OpenAICompatibleOptions | |
handler |
HttpMessageHandler |
Returns: HeyGenProvider
LanguageModel(string)
Section titled “LanguageModel(string)”public override ILanguageModel LanguageModel(string modelId)Returns a language model.
Parameters
| Name | Type | Description |
|---|---|---|
modelId |
string |
Returns: ILanguageModel
Video(string)
Section titled “Video(string)”public IVideoModel Video(string modelId)Creates a video model. Same as VideoModel(string).
Parameters
| Name | Type | Description |
|---|---|---|
modelId |
string |
Returns: IVideoModel
VideoModel(string)
Section titled “VideoModel(string)”public override IVideoModel VideoModel(string modelId)Returns a video model.
Parameters
| Name | Type | Description |
|---|---|---|
modelId |
string |
Returns: IVideoModel
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product