Create an AI model config

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

Authentication

Authorizationstring
API Key authentication via header

Path parameters

projectKeystringRequired

Request

AI model config object to create
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
paramsobjectOptional
customParamsobjectOptional
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
iconstring
Icon for the model
providerstring
Provider for the model
paramsobject
customParamsobject
costPerInputTokendouble
Cost per input token in USD
costPerOutputTokendouble
Cost per output token in USD

Errors

400
Bad Request Error
403
Forbidden Error
404
Not Found Error
500
Internal Server Error