provider AI Configs POST /api/v2/projects/{projectKey}/ai-configs/model-configs
@utdk/launchdarkly /api/v2/projects/{projectKey}/ai-configs/model-configs
Create an AI model config
Create an AI model config. You can use this in any variation for any AI Config in your project.
projectKey path required
string

Try it

Authentication
Configure credentials for LaunchDarkly REST API
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.

Saved automatically to browser storage.

postmodelconfig
POST/api/v2/projects/{projectKey}/ai-configs/model-configs
Create an AI model config. You can use this in any variation for any AI Config in your project.

Parameters

required

Input

required

Human readable name of the model

required

Unique key for the model

required

Identifier for the model, for use with third party providers

Icon for the model

Provider for the model

Cost per input token in USD

Cost per output token in USD

Cost per cached input token in USD

Enter a gateway URL above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import launchdarkly from '@utdk/launchdarkly';

await launchdarkly.postmodelconfig()