Skip to main content
POST
/
admin
/
ai
/
model
/
save
Saves or updates the AIModelType and its value
curl --request POST \
  --url https://api.example.com/admin/ai/model/save \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "aiModelTypeID": 123,
  "aiModelTitle": "<string>",
  "aiModelOfficialTitle": "<string>",
  "aiModelPlatformID": 123,
  "tokenInputCost": 123,
  "tokenOutputCost": 123,
  "isFeatured": true
}
'
{
  "success": true,
  "data": "<unknown>"
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Body

application/json
aiModelTypeID
integer<int32> | null
aiModelTitle
string | null
aiModelOfficialTitle
string | null
aiModelPlatformID
integer<int32> | null
tokenInputCost
number<double> | null
tokenOutputCost
number<double> | null

Response

Success

success
boolean
data
unknown