Create an AI model config

Create an AI model config. You can use this in any variation for any AI Config in your project.

Path parameters

projectKeystringRequired

Headers

AuthorizationstringRequired
LD-API-Version"beta"Required
Version of the endpoint.

Request

This endpoint expects an object.
namestringRequired
Human readable name of the model
keystringRequired
Unique key for the model
idstringRequired
Identifier for the model, for use with third party providers
iconstringOptional
Icon for the model
providerstringOptional
Provider for the model
paramsmap from strings to anyOptional
customParamsmap from strings to anyOptional
tagslist of stringsOptional
costPerInputTokendoubleOptional
Cost per input token in USD
costPerOutputTokendoubleOptional
Cost per output token in USD

Response

Successful response
namestring
Human readable name of the model
keystring
Unique key for the model
idstring
Identifier for the model, for use with third party providers
globalboolean
Whether the model is global
tagslist of strings
versioninteger
isRestrictedboolean
Whether the model is restricted
_accessobject or null
iconstring or null
Icon for the model
providerstring or null
Provider for the model
paramsmap from strings to any or null
customParamsmap from strings to any or null
costPerInputTokendouble or null
Cost per input token in USD
costPerOutputTokendouble or null
Cost per output token in USD

Errors