Skip to main content

Function Signature

Creates and configures a Decart provider instance with custom settings. Use this when you need to configure API keys, base URLs, or other provider-level settings.

Parameters

DecartProviderSettings
default:"{}"
Optional configuration object for the provider

Returns

DecartProvider
A configured provider instance with methods to create image and video models.See DecartProvider for full interface details.

Examples

Default Configuration

Custom API Key

Custom Base URL

Custom Headers

Default Instance

A default pre-configured instance is also exported:

VERSION Export

The package version is also exported for runtime version checking:
string
The current version of the @decartai/ai-sdk-provider package.