Skip to content

ProdiaProvider

Namespace: Vercel.AI.Prodia

public sealed class ProdiaProvider : OpenAICompatibleProvider

Prodia provider.

Inheritance: object → ProviderBase → OpenAICompatibleProvider

View source

ProdiaProvider(HttpClient, OpenAICompatibleOptions?)

Section titled “ProdiaProvider(HttpClient, OpenAICompatibleOptions?)”
public ProdiaProvider(HttpClient httpClient, OpenAICompatibleOptions? options = null)

Creates a provider.

Parameters

Name Type Description
httpClient HttpClient
options OpenAICompatibleOptions

View source

public const string DefaultBaseUrl = "https://inference.prodia.com/v2"

Default API origin.

Value: string

View source

public const string ProviderId = "prodia"

Provider id.

Value: string

View source

public HttpClient HttpClient { get; }

HTTP client used for job requests and image downloads.

Value: HttpClient

View source

Create(OpenAICompatibleOptions?, HttpMessageHandler?)

Section titled “Create(OpenAICompatibleOptions?, HttpMessageHandler?)”
public static ProdiaProvider Create(OpenAICompatibleOptions? options = null, HttpMessageHandler? handler = null)

Creates a provider.

Parameters

Name Type Description
options OpenAICompatibleOptions
handler HttpMessageHandler

Returns: ProdiaProvider

View source

public override IImageModel ImageModel(string modelId)

Returns an image model.

Parameters

Name Type Description
modelId string

Returns: IImageModel

View source

public override ILanguageModel LanguageModel(string modelId)

Returns a language model.

Parameters

Name Type Description
modelId string

Returns: ILanguageModel

View source

public override IVideoModel VideoModel(string modelId)

Returns a video model.

Parameters

Name Type Description
modelId string

Returns: IVideoModel

View source

Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product